joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450670
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45081b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4507fc
mov dl, 1
mov eax, dword [0x4121b8]
call fcn.00403298
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040409c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4507eb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043e6a4
test al, al
je 0x4507de
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45082c
lea eax, [ebp - 0x254]
call fcn.00408d04
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4507de
xor eax, eax
push ebp
push 0x4507d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x450864
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4507c0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040430c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4507c0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040430c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4507de
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4506e1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416664
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450822
lea eax, [ebp - 0x260]
call fcn.0040409c
ret

Function at 0x451150
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x466be4]
cmp byte [eax + 0xa5], 0
jne 0x4511c1
cmp dword [0x466bfc], 0
jne 0x451182
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45110c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x466bfc], eax
cmp dword [0x466bf8], 0
jne 0x45119d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x466bf8], eax
cmp dword [0x466c00], 0
jne 0x4511c1
push esp
push 0
push 0
push 0x4510b0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x466c00], eax
pop edx
ret
Function at 0x4512b8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4512cf
add esp, 0xfffffff0
call fcn.004035ec
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041aa2c
mov eax, dword [0x46575c]
cmp word [eax + 2], 0
jne 0x4512f7
mov eax, dword [0x46575c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004528a4
mov eax, dword [0x46587c]
cmp word [eax + 2], 0
jne 0x451311
mov eax, dword [0x46587c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452a9c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411b54]
call fcn.00403298
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411b54]
call fcn.00403298
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41d668]
call fcn.004249e0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x451498
mov eax, dword [0x46561c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424db0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45303c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46561c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c448
test eax, eax
je 0x451406
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004086cc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c470
test eax, eax
je 0x45141a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040430c
mov eax, dword [0x46545c]
cmp byte [eax], 0
jne 0x45144e
mov eax, ebx
call fcn.004515c0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00453218
mov eax, ebx
call fcn.00453bdc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45148e
call fcn.00403644
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451840
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x466be4]
cmp dword [eax + 0x30], 0
je 0x4518ea
cmp dword [ebx + 0x94], 0
jne 0x4518e4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4517d0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4518e4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4518aa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4518e4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004142e4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4518b9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45244c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x452481
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040418c
jmp 0x45248e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040f0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4533f4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x453435
mov eax, esi
call fcn.00439d64
test al, al
je 0x453435
mov eax, dword [ebx + 0x84]
call fcn.00439a8c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x453435
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439a8c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x454720
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040454c
xor eax, eax
push ebp
push 0x45479e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040455c
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x454769
mov eax, dword [ebx + 4]
call fcn.0040455c
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4547a5
lea eax, [ebp - 4]
call fcn.0040409c
ret
Function at 0x4557a0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45593d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402a54
cmp word [ebx + 0xa2], 0
je 0x4557e9
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4557fd
lea esi, [ebp - 8]
jmp 0x4557ff
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x45580c
xor edi, edi
jmp 0x455819
mov eax, dword [ebx + 0x80]
call fcn.0040455c
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.0040455c
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00454ed8
mov eax, dword [ebp - 0x14]
call fcn.0040455c
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.0040455c
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040455c
push eax
mov eax, ebx
call fcn.0045500c
push eax
mov eax, ebx
call fcn.00454fe0
push eax
mov eax, ebx
call fcn.00454f94
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00454da4
mov eax, dword [ebp - 0x18]
call fcn.0040455c
push eax
mov eax, dword [ebx + 8]
call fcn.0040455c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0xc], 0
jne 0x4558a2
call fcn.0040ccd4
xor edx, edx
push ebp
push 0x45591b
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4558e0
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x4558d6
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x455904
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455922
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x45594c
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x455978
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0040455c
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45599d
call fcn.0040ccd4
xor eax, eax
push ebp
push 0x4559d4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x4559bd
call fcn.0040ccd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4559db
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x463058
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov ebx, edx
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 0xc], eax
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4630f1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
ja 0x463093
call fcn.00403b00
jmp 0x4630f8
push 4
mov eax, ebx
call fcn.0040455c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
ja 0x4630b6
call fcn.00403b00
jmp 0x4630f8
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceStatus
cmp dword [ebp - 0x24], 4
sete byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4630f8
cmp dword [ebp - 0xc], 0
jbe 0x4630e7
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408ea7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x408eb6
pop dword [ebp - 0x34]
mov eax, 0x77056169
sub eax, 0x76c4d2b3
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3db4f
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x4563
mov edi, eax
mov ebx, 0x438200
add ebx, dword [ebp - 0x34]
mov edx, 0xe3126988
xor dword [ebp - 0x1c], 0x62fdf8ad
mov esi, dword [ebx]
sub esi, edx
mov dword [edi], esi
sub dword [ebp - 0x24], esi
add edi, 0xcd544332
sub edi, 0xcd54432e
add ebx, 4
loop 0x408efe
add eax, 0xcfe24236
sub eax, 0xcfe139d7
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x425510
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x804
mov eax, dword [0x42c004]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [0x81d808]
imul eax, eax, 0x343fd
cmp dword [0x81fc7c], 0x139e
mov dword [0x81d808], eax
jne 0x425551
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EraseTape]
mov eax, dword [0x81d808]
add eax, 0x269ec3
push esi
mov dword [0x81d808], eax
movzx esi, word [0x81d80a]
and esi, 0x7fff
cmp dword [0x81fc7c], 0x8e7
jne 0x425586
push 0
lea eax, [esp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [esp + 0x804]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00401000
add esp, 0x804
ret

Function at 0x4255d0
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
test ebx, ebx
jle 0x4255e4
call fcn.00425510
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jl 0x4255d7
pop esi
cmp ebx, 0x2d
jne 0x4255fe
mov dword [0x81fc88], 0xa62e7790
mov dword [0x81fc8c], 0xffffffff
ret

Function at 0x425600
Capabilities:
Create pipe

Disassembly:
mov eax, dword [0x42cdb8]
sub esp, 0x14
push ebx
mov ebx, dword [0x81fc7c]
push edi
mov edi, dword [0x81d80c]
call fcn.004255a0
cmp dword [0x81fc7c], 0x2f
jne 0x42565a
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.004255d0
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x425940
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00407bd0
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
jmp 0x425969
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xbbe0f4a
jge 0x425a11
cmp dword [0x81fc7c], 0xa5f
jne 0x4259b5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0x818]
push edx
push str.xonatoyuhejigoriramadiguyo
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp dword [ebp - 4], 0x84620b
jne 0x4259da
mov eax, dword [0x42dbd8]
mov dword [0x81fc7c], eax
mov ecx, dword [0x81fc7c]
add ecx, 0xa231
mov dword [0x81fc7c], ecx
cmp dword [0x81fc7c], 0x141
jne 0x425a0c
push str.wucusipeyekexe_zelisapecuyozabozecaxufer_miweyumeriwosizupuyubahu_regorekuzet_begazixezibunodumekacefasuhato
lea edx, [ebp - 0x1018]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [0x42f180], 0xec58acac
mov dword [0x42f184], 0xffffffff
jmp 0x425960
call fcn.00425670
jmp dword [0x81d80c]
Function at 0x1002ced
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov al, byte [esi]
cmp al, 0x22
jne 0x1002d1c
inc esi
mov al, byte [esi]
test al, al
je 0x1002d15
cmp al, 0x22
jne 0x1002d0a
cmp byte [esi], 0x22
jne 0x1002d2d
jmp 0x1002d2c
cmp al, 0x20
jle 0x1002d2d
inc esi
cmp byte [esi], 0x20
jg 0x1002d20
jmp 0x1002d2d
cmp al, 0x20
jg 0x1002d33
inc esi
mov al, byte [esi]
test al, al
jne 0x1002d28
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x1002d4d
movzx eax, word [ebp - 0x14]
jmp 0x1002d50
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1003c25
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], ebx
je 0x1003ce4
cmp dword [ebp + 0x10], ebx
je 0x1003ce4
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x1003c68
mov dword [ebp - 4], 0x80040116
jmp 0x1003cd8
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1003c81
mov dword [ebp - 4], 0x80040116
jmp 0x1003cd0
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
jne 0x1003c9a
mov dword [ebp - 4], 0x8007000e
jmp 0x1003ccf
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1003cb7
mov dword [ebp - 4], 0x80040116
jmp 0x1003ccf
cmp esi, dword [ebp - 8]
je 0x1003cc5
mov dword [ebp - 4], 0x80004005
jmp 0x1003ccf
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
pop edi
mov eax, dword [ebp + 8]
cmp eax, ebx
pop esi
je 0x1003cdf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x1003ce9
mov eax, 0x80070057
pop ebx
leave
ret 0xc
Function at 0x10015057
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002dffa
call fcn.10016e35
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015074
xor eax, eax
jmp 0x10015151
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001514f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x10015125
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000127b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000127b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10024887
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x1001512f
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x100150a4
jmp 0x10015148
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016ddf
ret

Function at 0x10024887
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10024896
pop dword [ebp - 0x4c]
mov eax, 0x10024896
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x40436
push 0
mov eax, 0x679a1445
sub eax, 0x579712e9
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x1de68664
sub ecx, 0x1de63e57
mov edi, eax
mov edx, 0x1004bc00
add edx, dword [ebp - 0x4c]
mov esi, 0x74e772ea
add esi, 0x336d7e56
mov dword [ebp - 0x3c], 0x30f50b15
mov ebx, dword [edx]
xor dword [ebp - 0x24], esi
xor ebx, esi
xor dword [ebp - 0x20], 0x7a4afbff
mov dword [edi], ebx
sub dword [ebp - 0x3c], 0x348ff2a
add edi, 4
add edx, 4
loop 0x100248ea
add eax, 0x11307
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x90e56011
add ecx, 0x7f1a9fef
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x10001d8c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10073910]
jne 0x10001d96
repz ret
jmp fcn.1000203d

Function at 0x10002d30
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
mov eax, dword [0x100738e4]
sub eax, 0x267f
mov dword [0x100738e4], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [0x100738e4], 0x20ef
mov dword [ebp - 0x10], 0
jmp 0x10002def
jmp 0x10002e7d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dx, word [eax + ecx*2 - 0x12]
mov word [ebp - 0x12], dx
mov ax, word [ebp - 0x12]
movzx ecx, ax
cmp ecx, 0x64
je 0x10002db3
jmp 0x10002d77
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
je 0x10002d7c
jmp 0x10002e7d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
je 0x10002e4c
jmp 0x10002e78
mov dword [0x100738e8], 0x7f0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
je 0x10002d9c
jmp 0x10002e7f
cmp dword [ebp - 0x10], 0x104
jge 0x10002e1a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
cmp eax, 0
jne 0x10002e0b
jmp 0x10002e1a
jmp 0x10002e0d
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x10002def
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dx, word [eax + ecx*2 - 0x1a]
mov word [ebp - 0x14], dx
mov ax, word [ebp - 0x14]
movzx ecx, ax
cmp ecx, 0x6c
jne 0x10002e83
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + eax*2 - 0x18]
cmp eax, 0x6f
je 0x10002dce
jmp 0x10002e81
mov eax, dword [0x100738e4]
add eax, 0x26be
mov dword [0x100738e4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
jne 0x10002e76
mov dword [ebp - 4], 1
jmp 0x10002e99
jmp 0x10002e78
jmp 0x10002d77
jmp 0x10002e7f
jmp 0x10002e81
jmp 0x10002e83
mov eax, dword [0x100738e4]
sub eax, 0x1eda
mov dword [0x100738e4], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 0x14
pop ebp
ret
Function at 0x10003060
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [fcn.10003060]
mov dword [0x100738e4], 0x526
mov dword [ebp - 8], eax
mov dword [0x100738e4], 0x1fc2
jmp 0x100030ad
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp dword [eax + ecx], 0x4550
je 0x100030bc
jmp 0x100030ca
mov al, 1
test al, 1
jne 0x100030ad
jmp 0x100030de
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10003085
jmp 0x100030cc
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
jmp 0x100030e5
jmp 0x100030cc
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
jmp 0x100030a5
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add esp, 0x18
pop ebp
ret