joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437760
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x43777c
cmp dword [esi + 4], 0
je 0x4377a9
test byte [ebx + 0x55], 1
jne 0x43779b
mov eax, ebx
call fcn.00436300
test eax, eax
jne 0x43779b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4378b9
mov edx, esi
mov eax, ebx
call fcn.00437284
jmp 0x4378b9
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4378b2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004395d0
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00433f88
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00437760
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004395d0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4378b9
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43df98
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x467148]
cmp byte [eax + 0xc], 0
je 0x43e105
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43e0fe
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x468b24], 0
jne 0x43dfec
push 0x43e10c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43e114
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468b24], eax
cmp dword [0x466b30], 0
jne 0x43e0e7
push 0x43e124
call sub.kernel32.dll_LoadLibraryA
mov dword [0x466b30], eax
cmp dword [0x466b30], 0
je 0x43e0e7
push 0x43e130
mov eax, dword [0x466b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468b28], eax
push 0x43e140
mov eax, dword [0x466b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468b2c], eax
push 0x43e154
mov eax, dword [0x466b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468b30], eax
push 0x43e16c
mov eax, dword [0x466b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468b34], eax
push 0x43e184
mov eax, dword [0x466b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468b38], eax
push 0x43e198
mov eax, dword [0x466b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468b3c], eax
push 0x43e1b0
mov eax, dword [0x466b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468b40], eax
push 0x43e1c8
mov eax, dword [0x466b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468b44], eax
push 0x43e1e4
mov eax, dword [0x466b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468b48], eax
push 0x43e1f0
mov eax, dword [0x466b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468b4c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e105
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x441fb8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404238
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x442007
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004044a8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4497d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449828]
test si, 4
je 0x4497ec
or bl, 1
test si, 8
je 0x4497f6
or bl, 4
test si, 1
je 0x449800
or bl, 8
test si, 2
je 0x44980a
or bl, 0x10
test si, 0x10
je 0x449814
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449823
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44982c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449864]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449845
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449854
or bl, 4
test esi, 0x20000000
je 0x44985f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44ff28
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44ff3a
add esp, 0xfffffff0
call fcn.004037e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419a80
mov eax, dword [0x466e38]
mov dword [eax + 4], ebx
mov dword [eax], 0x4502cc
mov eax, dword [0x466e44]
mov dword [eax + 4], ebx
mov dword [eax], 0x4502d8
mov eax, ebx
call fcn.004502e4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411c98]
call fcn.0040347c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411c98]
call fcn.0040347c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411c98]
call fcn.0040347c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411c98]
call fcn.0040347c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411c98]
call fcn.0040347c
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, 0x44c6fc
push eax
push 0
push 0
mov eax, dword [0x466f74]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b4d8]
call fcn.0041cc70
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b4d8]
call fcn.0041cc70
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b4d8]
call fcn.0041cc70
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00450734
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4505fc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4505fc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4505fc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450077
call fcn.0040383c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4503e0
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 0x45058b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45056c
mov dl, 1
mov eax, dword [0x4120b4]
call fcn.0040347c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404238
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45055b
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.0043e2f8
test al, al
je 0x45054e
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, 0x45059c
lea eax, [ebp - 0x254]
call fcn.00408ec4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45054e
xor eax, eax
push ebp
push 0x450547
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 0x4505d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450530
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044a8
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 0x450530
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45054e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450451
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415c18
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 0x450592
lea eax, [ebp - 0x260]
call fcn.00404238
ret

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

Disassembly:
push ecx
mov eax, dword [0x468b70]
cmp byte [eax + 0xa5], 0
jne 0x450f45
cmp dword [0x468b88], 0
jne 0x450f06
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450e90
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x468b88], eax
cmp dword [0x468b84], 0
jne 0x450f21
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x468b84], eax
cmp dword [0x468b8c], 0
jne 0x450f45
push esp
push 0
push 0
push 0x450e34
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x468b8c], eax
pop edx
ret
Function at 0x4515d8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x468b70]
cmp dword [eax + 0x30], 0
je 0x451682
cmp dword [ebx + 0x94], 0
jne 0x45167c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451568
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45167c
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 0x451642
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45167c
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.00414014
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451651
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4521e0
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 0x452215
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.00404328
jmp 0x452222
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040428c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x453334
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x453375
mov eax, esi
call fcn.004398d4
test al, al
je 0x453375
mov eax, dword [ebx + 0x84]
call fcn.004395d0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x453375
push 0
mov eax, dword [ebx + 0x84]
call fcn.004395d0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45431c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebp, edx
mov ebx, eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp], eax
call fcn.00453e94
test al, al
jne 0x454347
push ebp
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp], eax
jmp 0x4543bd
test ebx, ebx
je 0x4543bd
lea eax, [ebx + 0x3c]
mov eax, dword [eax]
add eax, ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x78]
add eax, ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov edi, dword [eax + 0x18]
dec edi
test edi, edi
jl 0x4543b6
inc edi
xor esi, esi
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x20]
add eax, ebx
mov eax, dword [eax + esi*4]
add eax, ebx
mov edx, ebp
call fcn.0040893c
test eax, eax
jne 0x4543b2
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x24]
add eax, ebx
movsx eax, word [eax + esi*2]
mov edx, dword [esp + 8]
mov edx, dword [edx + 0x1c]
add edx, ebx
mov eax, dword [edx + eax*4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add eax, ebx
mov dword [esp + 0xc], eax
inc esi
dec edi
jne 0x454372
mov eax, dword [esp + 0xc]
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4115d4
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jge 0x4115fd
mov eax, 0xfffffffd
jmp 0x41179e
mov ebx, dword [0x12cfcb0]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
je 0x41176c
mov ebx, dword [0x12cfcb0]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0xa
jne 0x41164c
mov ebx, dword [0x12cfcb0]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x41164c
mov eax, 1
jmp 0x411651
mov eax, 0
test eax, eax
je 0x411681
call fcn.004117a4
mov dword [ebp - 4], eax
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x41166e
mov eax, dword [ebp + 8]
call dword [ebp - 4]
nop
nop
leave
ret 4
mov ebx, dword [0x12cfcb0]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 6
jne 0x4116b8
mov ebx, dword [0x12cfcb0]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
jne 0x4116b8
mov eax, 1
jmp 0x4116bd
mov eax, 0
test eax, eax
jne 0x41170d
mov ebx, dword [0x12cfcb0]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 6
jne 0x4116fc
mov ebx, dword [0x12cfcb0]
add ebx, 8
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
cmp dword [ebx], 3
jne 0x4116fc
mov eax, 1
jmp 0x411701
mov eax, 0
test eax, eax
jne 0x41170d
xor eax, eax
jmp 0x411712
mov eax, 1
test eax, eax
je 0x41173e
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x411727
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 [0x12cfcb0]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x411794
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x41179e
mov esp, ebp
pop ebp
ret 4

Function at 0x41257b
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.004125dd
test eax, eax
je 0x4125be
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x4125be
cmp word [eax], 0x5a4d
jne 0x4125be
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x4125be
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.004126af
mov eax, dword [ebp + 8]
jmp 0x4125d7
mov esp, ebp
pop ebp
ret 4

Function at 0x4125dd
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x412690
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 0x4d28c3
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 0x4d28fa
mov esp, ebp
pop ebp
ret

Function at 0x4e3b1b
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 0x4e3b53
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x4e3b41
mov al, 1
jmp 0x4e3b9d
cmp dword [ebx + 0x54], ecx
jne 0x4e3b4a
mov al, 2
jmp 0x4e3b9d
cmp dword [ebx + 0x7c], ecx
jne 0x4e3b9d
mov al, 3
jmp 0x4e3b9d
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x4e3b68
mov al, 4
jmp 0x4e3b9d
cmp ecx, 5
jne 0x4e3b88
cmp ebx, 0
jne 0x4e3b76
mov al, 5
jmp 0x4e3b9d
cmp ebx, 1
jne 0x4e3b7f
mov al, 6
jmp 0x4e3b9d
cmp ebx, 2
jne 0x4e3b88
mov al, 7
jmp 0x4e3b9d
cmp ecx, 6
jne 0x4e3b94
cmp ebx, 0
jne 0x4e3b96
mov al, 8
jmp 0x4e3b9d
cmp ebx, 1
jne 0x4e3b9d
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50f495
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x50f548
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 0x514233
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.0050f495
test eax, eax
je 0x514276
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x514276
cmp word [eax], 0x5a4d
jne 0x514276
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x514276
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00514295
mov eax, dword [ebp + 8]
jmp 0x51428f
mov esp, ebp
pop ebp
ret 4

Function at 0x51444b
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jge 0x514474
mov eax, 0xfffffffd
jmp 0x514615
mov ebx, dword [0x12d0158]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
je 0x5145e3
mov ebx, dword [0x12d0158]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0xa
jne 0x5144c3
mov ebx, dword [0x12d0158]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x5144c3
mov eax, 1
jmp 0x5144c8
mov eax, 0
test eax, eax
je 0x5144f8
call fcn.0051461b
mov dword [ebp - 4], eax
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x5144e5
mov eax, dword [ebp + 8]
call dword [ebp - 4]
nop
nop
leave
ret 4
mov ebx, dword [0x12d0158]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 6
jne 0x51452f
mov ebx, dword [0x12d0158]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
jne 0x51452f
mov eax, 1
jmp 0x514534
mov eax, 0
test eax, eax
jne 0x514584
mov ebx, dword [0x12d0158]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 6
jne 0x514573
mov ebx, dword [0x12d0158]
add ebx, 8
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
cmp dword [ebx], 3
jne 0x514573
mov eax, 1
jmp 0x514578
mov eax, 0
test eax, eax
jne 0x514584
xor eax, eax
jmp 0x514589
mov eax, 1
test eax, eax
je 0x5145b5
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x51459e
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 [0x12d0158]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x51460b
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x514615
mov esp, ebp
pop ebp
ret 4
Function at 0x52d330
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x6225cb
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.006146c7
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x52d3b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00611acd
mov eax, dword [eax]
push 0x12a8f40
push eax
call fcn.00602724
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00614952
test bl, bl
je 0x52d3b2
push 0x12a8f40
lea ecx, [esp + 0xc]
call fcn.00614d2e
push 0x12a8f4c
lea ecx, [esp + 0xc]
call fcn.00614d2e
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 0x52d3ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00614952
jmp 0x52d4b9
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 0x52d472
lea edx, [esp + 0x7c]
push 0x12a8f48
push edx
call fcn.00602724
add esp, 8
test eax, eax
je 0x52d472
lea eax, [esp + 0x7c]
push 0x12a8f44
push eax
call fcn.00602724
add esp, 8
test eax, eax
je 0x52d472
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 0x52d402
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.00614952
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 0x52dcd0
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 0x52dd32
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