joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4494c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4494f8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4494d9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4494e8
or bl, 4
test esi, 0x20000000
je 0x4494f3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44fba0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44fbb2
add esp, 0xfffffff0
call fcn.00403da4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a504
mov eax, dword [0x456e80]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ff44
mov eax, dword [0x456e8c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ff50
mov eax, ebx
call fcn.0044ff5c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412298]
call fcn.00403a50
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412298]
call fcn.00403a50
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412298]
call fcn.00403a50
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412298]
call fcn.00403a50
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412298]
call fcn.00403a50
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44c378
push eax
push 0
push 0
mov eax, dword [0x456fd4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41bf58]
call fcn.0041d6cc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41bf58]
call fcn.0041d6cc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41bf58]
call fcn.0041d6cc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045037c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450258
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450258
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450258
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44fcef
call fcn.00403dfc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45003c
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 0x4501e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4501c8
mov dl, 1
mov eax, dword [0x4126b4]
call fcn.00403a50
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404854
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4501b7
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.0043e070
test al, al
je 0x4501aa
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, 0x4501f8
lea eax, [ebp - 0x254]
call fcn.00409568
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4501aa
xor eax, eax
push ebp
push 0x4501a3
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 0x450230
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45018c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ac4
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 0x45018c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ac4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4501aa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4500ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004161ec
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 0x4501ee
lea eax, [ebp - 0x260]
call fcn.00404854
ret

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

Disassembly:
push ecx
mov eax, dword [0x458be0]
cmp byte [eax + 0xa5], 0
jne 0x450b8d
cmp dword [0x458bf8], 0
jne 0x450b4e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450ad8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x458bf8], eax
cmp dword [0x458bf4], 0
jne 0x450b69
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x458bf4], eax
cmp dword [0x458bfc], 0
jne 0x450b8d
push esp
push 0
push 0
push 0x450a7c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x458bfc], eax
pop edx
ret
Function at 0x450c84
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x450c9b
add esp, 0xfffffff0
call fcn.00403da4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a504
mov eax, dword [0x456fc0]
cmp word [eax + 2], 0
jne 0x450cc3
mov eax, dword [0x456fc0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452404
mov eax, dword [0x45706c]
cmp word [eax + 2], 0
jne 0x450cdd
mov eax, dword [0x45706c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004525fc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412298]
call fcn.00403a50
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412298]
call fcn.00403a50
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 [0x41ca38]
call fcn.00423db0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x450e64
mov eax, dword [0x456ee0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424180
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x452b9c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x456ee0]
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.0040ccf8
test eax, eax
je 0x450dd2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408f5c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cd20
test eax, eax
je 0x450de6
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.00404ac4
mov eax, dword [0x456dd4]
cmp byte [eax], 0
jne 0x450e1a
mov eax, ebx
call fcn.00450f8c
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.00452d78
mov eax, ebx
call fcn.0045373c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450e5a
call fcn.00403dfc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45120c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x458be0]
cmp dword [eax + 0x30], 0
je 0x4512b6
cmp dword [ebx + 0x94], 0
jne 0x4512b0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45119c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4512b0
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 0x451276
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4512b0
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.0041465c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451285
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451e18
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 0x451e4d
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.00404944
jmp 0x451e5a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004048a8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452f54
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452f95
mov eax, esi
call fcn.00439730
test al, al
je 0x452f95
mov eax, dword [ebx + 0x84]
call fcn.00439458
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452f95
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439458
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x453dd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404d04
xor eax, eax
push ebp
push 0x453e49
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetStartupInfoA_1
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x453e58
mov eax, dword [ebp - 4]
call fcn.00404d14
push eax
call sub.kernel32.dll_CreateProcessA
mov eax, dword [ebp - 0x58]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
jns 0x453e33
call fcn.004039b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453e50
lea eax, [ebp - 4]
call fcn.00404854
ret
Function at 0x71835f
Capabilities:
Check for software breakpoints

Disassembly:
cmc
stc
sbb al, 0x75
mov al, byte [edi]
stc
push dword [esp]
test al, al
pushfd
push dword [esp + 8]
lea esp, [esp + 0x10]
je 0x864f2a
bt bp, ax
cmp ah, 0xcc
pushfd
mov byte [esp], ch
sub al, 0x30
cmc
pushfd
cmp al, 9
pushfd
lea esp, [esp + 0xc]
ja 0x84deac
push edi
imul edx, edx, 0xa
call fcn.00850055
call fcn.0086199c
adc dword [esi], ebx
loope 0x84df1b
les ebp, [edi + 0x12]
xor byte [edx - 0x3b5d0a33], 0x63
invalid
mov dword [0xa9ce5eac], eax
adc al, 0x1b
and al, 0x21
lahf
lcall 0xaeac, 0xf3e364eb
fstp dword [edi + 0x1011b8cf]
mov edi, 0xdd8c2512
call 0x77bc27af
and byte [esi + 0x36499911], al
mov ah, 4
xchg ebp, eax
sub dl, ah
jl 0x84df84
xchg esp, eax
inc edx
outsd dx, dword [esi]
jae 0x84dfa0
int3
rcr byte [eax - 0x121d3a18], 0xff
xchg ecx, eax
cwde
iretd
push ss
push ecx
lodsb al, byte [esi]
sub edx, ebx
aad 0x98
adc eax, 0x2cf6296a
adc dword [esi + edi + 0x2a9d4045], edi
mov byte [edx + eax*2 - 0x2fc8b20e], ah
adc bh, cl
cwde
lcall 0x6037, 0x8df22659
rcr dword es:[esi + 0x49], 1
pop ds
test al, 6
and dword [ecx + 0x66], ecx
inc ebp
adc dword [edi], 0x1811d655
cmp al, 0x9d
mov eax, 0x96693984
or edx, esp
sub eax, 0xe74ff068
invalid
xchg al, ch
call fcn.007194e0
add ebx, dword [edx + ebx*8 - 0x13]
xor al, 0x71
adc ah, byte [ebx + 0x20]
das
xlatb
loopne 0x864faa
cmp ebp, dword [ebx]
in al, 0xb4
and eax, dword [ebx + 0x5c]
test al, 0x97
lahf
push 0xd6d98728
test byte [ebx], al
clc
inc edi
aas
fsubr st(3)
push cs
mov ebp, 0x7c833367
dec eax
lds eax, [edx + 0x6cb36788]
scasb al, byte es:[edi]
test eax, 0x412b3420
mov bh, 0xd3
push eax
pop edi
daa
rol byte [edi + 0x3e], 1
jl 0x864f6a
out 0xa8, al
cmpsd dword [esi], dword es:[edi]
mov bl, 0xa6
push cs
int3
push edx
mov ebx, gs
les ebp, [ecx - 0xa]
movsb byte es:[edi], byte [esi]
or eax, 0xbb3c2ad9
imul esi, dword [eax], 0xfffffffd
cmp ah, byte [eax + 0x59a1261f]
invalid
pop edx
aam 0xb3
add byte [edi + 0x6a8dfc53], bl
test al, 0x47
mov ebx, 0xcfca624
lahf
movsb byte es:[edi], byte [esi]
sbb dword [ebx + 0x5eb3e0d5], ebx
cmp dword [eax + 0x76], edi
add dword [ecx - 0x3c4af96b], esi
jae 0x865036
add ch, byte [edx + ebx*8 - 0x35]
in al, 0x63
push 0xffffffffffffffc5
aad 0xb0
mov edx, 0x4cdb8037
imul edx, dword [esp + esi*4 + 0x71], 0xffffffbe
sbb byte [edi - 0x2d], dl
sub al, 0x3a
sub eax, 0x351e29ca
jno 0x864fff
xor al, bl
mov esp, 0x8d72480f
jb 0x864f8c
xchg edx, eax
call 0xbbe19cc4
in al, 0xaa
mov ch, 0xa9
cmpsb byte [esi], byte es:[edi]
push ss
and dword [0xb452755a], ebp
mov ebx, 0x97a94061
pushal
pushal
sbb eax, 0xf7c7f8ba
loopne 0x864fed
jno 0x864fb3
ljmp 0x81be:0xb1bdb293
inc edi
rcr byte [ecx + ebx*4 - 0x12], 1
invalid
Function at 0x8536e2
Capabilities:
Encode data using xor

Disassembly:
mov byte [esp + 8], bh
lea esp, [esp + 0x14]
and al, 0x14
je 0x864f2a
call fcn.0084bbcf
xor al, 0x73
cmp ecx, dword [ebp + ebp - 0x52a3eda4]
pop edx
aad 2
adc al, 0x93
mov byte [edi - 0x3d], al
jl 0x714780
mov byte [esi], bh
mov dword [0x36f10c2], esp
sub al, 0xf2
popfd
leave
jbe 0x714800
pop esi
aam 0x17
xor byte [esp + edx*8 + 0x4b], bh
inc esp
cwde
or byte [edi - 0x54], ah
retf
add al, 0xb3
or edx, esp
xor ch, ch
add eax, 0x6b8f9022
xchg esp, eax
mov ah, ch
sbb eax, 0xcb47e8fa
mov ah, 0x11
xor dword [0xd0e4171b], edx
fcomp qword [ebx + ebx*8 + 0x74]
mov bl, 0xd5
push ebp
and eax, 0xc808ec29
jne 0x7148a8
mov eax, 0xc2cf45ea
inc ebx
invalid
sti
retf 0x7cc6
push esp
jmp 0x71477b
sub edx, edx
bsf eax, eax
pushfd
movzx ax, bl
ror ah, cl
mov eax, edx
rcl al, cl
setbe al
add edi, 1
neg al
not al
mov al, byte [edi]
push ecx
push dword [esp + 4]
test al, al
jmp 0x84c323

Function at 0x865d32
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushal
lea esp, [esp + 0x24]
je 0x84ea97
bswap edx
mov esi, dword [eax + 0x3c]
neg dl
jmp 0x857d16
bsr dx, si
add esi, eax
jmp 0x864804
ror ax, 1
daa
btc ax, 1
push ebp
cmp cl, 0xf7
mov ebp, esp
lahf
rol ah, cl
shld ax, bp, 8
btr eax, ebp
sub esp, 0x10
daa
and eax, ebx
adc ax, di
btr ax, 0xc
push esi
shld ax, si, 4
push edi
inc al
shrd eax, ebp, cl
rcr ah, cl
push ebx
xor ah, 2
and eax, esp
daa
bsf ax, si
push edx
inc ah
ror ax, cl
aad 0x57
shr eax, 0x16
mov eax, dword [ebp + 8]
pushfd
test di, 0x6fc0
bt dx, 1
cmc
test eax, eax
jmp 0x84bcc9

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402af2
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x402b20
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x402b17
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x402b0f
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x402b41
mov esp, ebp
pop ebp
ret

Function at 0x402b45
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x402bb1
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x402bde
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x402bcd
xor ecx, eax
xor edx, ebx
dec edi
jne 0x402bbe
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x402c04
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x402ba5
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x402c30
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403337
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x403347
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
jle 0x40339c
push dword [ebp + 8]
call fcn.00403548
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x24], 0x5a4d
jne 0x40339c
xor eax, eax
jmp 0x4033a1
mov eax, 1
test eax, eax
je 0x4033b3
mov eax, 0
jmp 0x403542
push 0x3c
push dword [ebp + 8]
call fcn.0040358a
push eax
call fcn.00403564
push eax
push dword [ebp + 8]
call fcn.0040358a
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.00403564
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4550
jne 0x40340e
push 0x7c
push dword [ebp - 4]
call fcn.0040358a
push eax
call fcn.00403564
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40340e
xor eax, eax
jmp 0x403413
mov eax, 1
test eax, eax
je 0x403425
mov eax, 0
jmp 0x403542
push 0x78
push dword [ebp - 4]
call fcn.0040358a
push eax
call fcn.00403564
push eax
push dword [ebp + 8]
call fcn.0040358a
mov dword [ebp - 8], eax
push 0x20
push dword [ebp - 8]
call fcn.0040358a
push eax
call fcn.00403564
push eax
push dword [ebp + 8]
call fcn.0040358a
push eax
call fcn.00403564
push eax
push dword [ebp + 8]
call fcn.0040358a
mov dword [ebp - 0xc], eax
push 0x18
push dword [ebp - 8]
call fcn.0040358a
push eax
call fcn.00403564
mov dword [ebp - 0x10], eax
push 1
push dword [ebp - 0x10]
call fcn.004035b1
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x403535
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.0040358a
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.004035d8
test eax, eax
je 0x403518
push 0x1c
push dword [ebp - 8]
call fcn.0040358a
push eax
call fcn.00403564
push eax
push dword [ebp + 8]
call fcn.0040358a
mov dword [ebp - 0x24], eax
push 4
push dword [ebp - 0x10]
call fcn.0040360c
push eax
push dword [ebp - 0x24]
call fcn.0040358a
push eax
call fcn.00403564
push eax
push dword [ebp + 8]
call fcn.0040358a
jmp 0x403542
push dword [ebp - 0x14]
call fcn.00403634
push eax
push dword [ebp - 0x18]
call fcn.0040358a
mov dword [ebp - 0x18], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x4034a1
add esp, 0xc
mov eax, 0
jmp 0x403542
mov esp, ebp
pop ebp
ret 8
Function at 0x40f6b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48fa5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00483c7e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40f732
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048160d
mov eax, dword [eax]
push 0x4f11f0
push eax
call fcn.004736a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00483f09
test bl, bl
je 0x40f732
push 0x4f11f0
lea ecx, [esp + 0xc]
call fcn.00484299
push 0x4f4d94
lea ecx, [esp + 0xc]
call fcn.00484299
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40f76e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00483f09
jmp 0x40f839
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40f7f2
lea edx, [esp + 0x7c]
push 0x4f4d90
push edx
call fcn.004736a4
add esp, 8
test eax, eax
je 0x40f7f2
lea eax, [esp + 0x7c]
push 0x4f4d8c
push eax
call fcn.004736a4
add esp, 8
test eax, eax
je 0x40f7f2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f782
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00483f09
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x410f40
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x410fa2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc