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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5cdf67
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5cdf48
mov dl, 1
mov eax, dword [0x48e884]
call fcn.004b1de4
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.004091e0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5cdf37
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.0052df28
test al, al
je 0x5cdf2a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5cdf78
lea eax, [ebp - 0x394]
call fcn.0042273c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5cdf2a
xor eax, eax
push ebp
push 0x5cdf23
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x5cdfe8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x5cdf0c
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00409dc4
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x5cdf0c
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00409dc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5cdf2a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5cde2d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.004b1d34
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5cdf6e
lea eax, [ebp - 0x3a0]
call fcn.004091e0
ret

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

Disassembly:
push ecx
mov eax, dword [0x606730]
cmp byte [eax + 0xc5], 0
jne 0x5ceb86
cmp dword [0x606754], 0
jne 0x5ceb46
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x5ff998]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x606754], eax
cmp dword [0x606750], 0
jne 0x5ceb61
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x606750], eax
cmp dword [0x606758], 0
jne 0x5ceb86
push esp
push 0
push 0
mov eax, dword [0x5ff994]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x606758], eax
pop edx
ret
Function at 0x5cf0f0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5cf107
add esp, 0xfffffff0
call fcn.00407b70
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004c5054
mov eax, dword [0x5ffa10]
cmp byte [eax], 0
jne 0x5cf134
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x5ffd30]
cmp word [eax + 2], 0
jne 0x5cf14e
mov eax, dword [0x5ffd30]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005d1384
mov eax, dword [0x5ffe60]
cmp word [eax + 2], 0
jne 0x5cf168
mov eax, dword [0x5ffe60]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005d1588
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x4fb3d0]
call fcn.00501520
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5d1b00
mov dl, 1
mov eax, dword [0x48b0c8]
call fcn.0040753c
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x48b0c8]
call fcn.0040753c
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x4ffdf8]
call fcn.0050ab08
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x5cf350
mov eax, dword [0x5ffbec]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0050af98
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5d1de8
mov dl, 1
mov eax, dword [0x48b0c8]
call fcn.0040753c
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x5ffbec]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0042253c
test eax, eax
je 0x5cf282
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00422378
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00422520
test eax, eax
je 0x5cf29a
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00409dc4
push ebx
push 0x5d0d68
call fcn.005c48bc
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x5ffa10]
cmp byte [eax], 0
jne 0x5cf2eb
mov eax, ebx
call fcn.005cf534
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.005d201c
mov eax, ebx
call fcn.005d2c64
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5cf348
call fcn.00407bc8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5cf878
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x5cf91a
cmp dword [ebx + 0xac], 0
jne 0x5cf914
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5cf7b4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5cf914
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_GetWindowLongW
test al, 8
je 0x5cf8da
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5cf914
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0xa8]
call fcn.004ad6a4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5cf8e9
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x5cfb38
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x606730]
cmp dword [eax + 0x188], 0
je 0x5cfc9d
test bl, bl
jne 0x5cfbeb
cmp dword [esi + 0xb4], 0
jne 0x5cfbe0
mov eax, esi
call fcn.005d2ab4
push eax
push 0x5cfa44
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5cfbb1
mov eax, dword [0x606730]
cmp byte [eax + 0xeb], 0
je 0x5cfbb1
mov eax, dword [esi + 0xf0]
call fcn.0040af84
mov edi, eax
cmp edi, 0
jl 0x5cfbb1
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5cfb9a
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5cfbe0
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xb0]
call fcn.004ad6a4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5cfbc0
inc dword [esi + 0xb4]
jmp 0x5cfc9d
cmp dword [esi + 0xb4], 0
jle 0x5cfc9d
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5cfc9d
cmp dword [esi + 0x58], 0
je 0x5cfc48
mov eax, dword [0x606730]
cmp byte [eax + 0xeb], 0
je 0x5cfc48
mov eax, dword [esi + 0xf0]
call fcn.0040af84
mov edi, eax
cmp edi, 0
jl 0x5cfc48
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5cfc31
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5cfc77
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xb0]
call fcn.004ad6a4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5cfc57
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xf0]
mov ecx, 1
mov edx, dword [0x5c1180]
call fcn.0040b198
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x5d08f8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5d0955
cmp byte [ebx + 0xeb], 0
jne 0x5d0955
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409368
mov eax, dword [esi]
test eax, eax
je 0x5d0942
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5d0962
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.004095c0
jmp 0x5d0962
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.004095c0
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5d21fc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5d226d
mov eax, esi
call fcn.00527da8
test al, al
je 0x5d226d
mov eax, dword [ebx + 0x98]
call fcn.005279d8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5d226d
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x114]
test al, al
je 0x5d225e
push 0
mov eax, dword [ebx + 0x98]
call fcn.005279d8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x98]
call fcn.0051e64c
jmp 0x5d226d
mov cl, 1
mov edx, dword [ebx + 0x88]
mov eax, ebx
call fcn.005d203c
pop esi
pop ebx
ret
Function at 0x408942
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jge 0x40896b
mov eax, 0xfffffffd
jmp 0x408b0c
mov ebx, dword [0x12dbc9c]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
je 0x408ada
mov ebx, dword [0x12dbc9c]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0xa
jne 0x4089ba
mov ebx, dword [0x12dbc9c]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x4089ba
mov eax, 1
jmp 0x4089bf
mov eax, 0
test eax, eax
je 0x4089ef
call fcn.00408b12
mov dword [ebp - 4], eax
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x4089dc
mov eax, dword [ebp + 8]
call dword [ebp - 4]
nop
nop
leave
ret 4
mov ebx, dword [0x12dbc9c]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 6
jne 0x408a26
mov ebx, dword [0x12dbc9c]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
jne 0x408a26
mov eax, 1
jmp 0x408a2b
mov eax, 0
test eax, eax
jne 0x408a7b
mov ebx, dword [0x12dbc9c]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 6
jne 0x408a6a
mov ebx, dword [0x12dbc9c]
add ebx, 8
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
cmp dword [ebx], 3
jne 0x408a6a
mov eax, 1
jmp 0x408a6f
mov eax, 0
test eax, eax
jne 0x408a7b
xor eax, eax
jmp 0x408a80
mov eax, 1
test eax, eax
je 0x408aac
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x408a95
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x12dbc9c]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x408b02
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x408b0c
mov esp, ebp
pop ebp
ret 4

Function at 0x4098e9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0040994b
test eax, eax
je 0x40992c
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x40992c
cmp word [eax], 0x5a4d
jne 0x40992c
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x40992c
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00409a1d
mov eax, dword [ebp + 8]
jmp 0x409945
mov esp, ebp
pop ebp
ret 4

Function at 0x40994b
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x4099fe
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x472842
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 4]
mov eax, dword [ebp - 4]
jmp 0x472879
mov esp, ebp
pop ebp
ret

Function at 0x48a178
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x48a1b0
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x48a19e
mov al, 1
jmp 0x48a1fa
cmp dword [ebx + 0x54], ecx
jne 0x48a1a7
mov al, 2
jmp 0x48a1fa
cmp dword [ebx + 0x7c], ecx
jne 0x48a1fa
mov al, 3
jmp 0x48a1fa
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x48a1c5
mov al, 4
jmp 0x48a1fa
cmp ecx, 5
jne 0x48a1e5
cmp ebx, 0
jne 0x48a1d3
mov al, 5
jmp 0x48a1fa
cmp ebx, 1
jne 0x48a1dc
mov al, 6
jmp 0x48a1fa
cmp ebx, 2
jne 0x48a1e5
mov al, 7
jmp 0x48a1fa
cmp ecx, 6
jne 0x48a1f1
cmp ebx, 0
jne 0x48a1f3
mov al, 8
jmp 0x48a1fa
cmp ebx, 1
jne 0x48a1fa
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50bd3c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x50bdef
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x510ada
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0050bd3c
test eax, eax
je 0x510b1d
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x510b1d
cmp word [eax], 0x5a4d
jne 0x510b1d
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x510b1d
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00510b3c
mov eax, dword [ebp + 8]
jmp 0x510b36
mov esp, ebp
pop ebp
ret 4

Function at 0x510cf2
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jge 0x510d1b
mov eax, 0xfffffffd
jmp 0x510ebc
mov ebx, dword [0x12dc13c]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
je 0x510e8a
mov ebx, dword [0x12dc13c]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0xa
jne 0x510d6a
mov ebx, dword [0x12dc13c]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x510d6a
mov eax, 1
jmp 0x510d6f
mov eax, 0
test eax, eax
je 0x510d9f
call fcn.00510ec2
mov dword [ebp - 4], eax
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x510d8c
mov eax, dword [ebp + 8]
call dword [ebp - 4]
nop
nop
leave
ret 4
mov ebx, dword [0x12dc13c]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 6
jne 0x510dd6
mov ebx, dword [0x12dc13c]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
jne 0x510dd6
mov eax, 1
jmp 0x510ddb
mov eax, 0
test eax, eax
jne 0x510e2b
mov ebx, dword [0x12dc13c]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 6
jne 0x510e1a
mov ebx, dword [0x12dc13c]
add ebx, 8
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
cmp dword [ebx], 3
jne 0x510e1a
mov eax, 1
jmp 0x510e1f
mov eax, 0
test eax, eax
jne 0x510e2b
xor eax, eax
jmp 0x510e30
mov eax, 1
test eax, eax
je 0x510e5c
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x510e45
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x12dc13c]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x510eb2
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x510ebc
mov esp, ebp
pop ebp
ret 4
Function at 0x529be0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x61ee7b
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.00610f77
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x529c62
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0060e37d
mov eax, dword [eax]
push 0x12b4f40
push eax
call fcn.005fefd4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00611202
test bl, bl
je 0x529c62
push 0x12b4f40
lea ecx, [esp + 0xc]
call fcn.006115de
push 0x12b4f4c
lea ecx, [esp + 0xc]
call fcn.006115de
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 0x529c9e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00611202
jmp 0x529d69
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 0x529d22
lea edx, [esp + 0x7c]
push 0x12b4f48
push edx
call fcn.005fefd4
add esp, 8
test eax, eax
je 0x529d22
lea eax, [esp + 0x7c]
push 0x12b4f44
push eax
call fcn.005fefd4
add esp, 8
test eax, eax
je 0x529d22
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 0x529cb2
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.00611202
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 0x52a580
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 0x52a5e2
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
Function at 0x52a5f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x61eefb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x12d73b8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x52a728
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x52a656
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00611202
xor eax, eax
jmp 0x52a79f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0061138b
push esi
lea ecx, [esp + 0xc]
call fcn.0061161a
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x12b4f80
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x52a77d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x12b4f78
push closesocket
call fcn.0052a580
test eax, eax
jne 0x52a77d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x12b4f64
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0052a580
test eax, eax
jne 0x52a77d
lea eax, [esp + 0x14]
push 0x12b4f5c
push eax
call fcn.00600250
mov esi, eax
add esp, 8
test esi, esi
jne 0x52a75c
lea ecx, [esp + 0x14]
push 0x12b4f58
push ecx
call fcn.006001d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x52a75c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x52a75f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0061133b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x52a66e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00611202
xor eax, eax
jmp 0x52a79f
mov byte [esi], 0
push 0x12b4f54
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00611202
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4

Function at 0x5391a6
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x5391ce
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3a0], eax
pop esi
add esp, 0x190
ret