joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4439a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4633e0]
cmp byte [eax + 0xc], 0
je 0x443b0d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x443b06
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x464b68], 0
jne 0x4439f4
push 0x443b14
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x443b1c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b68], eax
cmp dword [0x462c1c], 0
jne 0x443aef
push 0x443b2c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x462c1c], eax
cmp dword [0x462c1c], 0
je 0x443aef
push 0x443b38
mov eax, dword [0x462c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b6c], eax
push 0x443b48
mov eax, dword [0x462c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b70], eax
push 0x443b5c
mov eax, dword [0x462c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b74], eax
push 0x443b74
mov eax, dword [0x462c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b78], eax
push 0x443b8c
mov eax, dword [0x462c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b7c], eax
push 0x443ba0
mov eax, dword [0x462c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b80], eax
push 0x443bb8
mov eax, dword [0x462c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b84], eax
push 0x443bd0
mov eax, dword [0x462c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b88], eax
push 0x443bec
mov eax, dword [0x462c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b8c], eax
push 0x443bf8
mov eax, dword [0x462c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x443b0d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4479b4
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.00403f0c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x447a03
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.0040417c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44f164
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44f1b4]
test si, 4
je 0x44f178
or bl, 1
test si, 8
je 0x44f182
or bl, 4
test si, 1
je 0x44f18c
or bl, 8
test si, 2
je 0x44f196
or bl, 0x10
test si, 0x10
je 0x44f1a0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44f1af
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44f1b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44f1f0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44f1d1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44f1e0
or bl, 4
test esi, 0x20000000
je 0x44f1eb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x455898
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4558aa
add esp, 0xfffffff0
call fcn.0040345c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419824
mov eax, dword [0x463098]
mov dword [eax + 4], ebx
mov dword [eax], 0x455c3c
mov eax, dword [0x4630a4]
mov dword [eax + 4], ebx
mov dword [eax], 0x455c48
mov eax, ebx
call fcn.00455c54
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41158c]
call fcn.00403108
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41158c]
call fcn.00403108
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41158c]
call fcn.00403108
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41158c]
call fcn.00403108
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41158c]
call fcn.00403108
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, 0x452070
push eax
push 0
push 0
mov eax, dword [0x4631f4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b290]
call fcn.0041ca04
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b290]
call fcn.0041ca04
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b290]
call fcn.0041ca04
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00456074
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455f50
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455f50
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455f50
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4559e7
call fcn.004034b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x455d34
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 0x455edf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x455ec0
mov dl, 1
mov eax, dword [0x4119a8]
call fcn.00403108
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f0c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x455eaf
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.00443d00
test al, al
je 0x455ea2
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, 0x455ef0
lea eax, [ebp - 0x254]
call fcn.00408a40
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x455ea2
xor eax, eax
push ebp
push 0x455e9b
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 0x455f28
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x455e84
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040417c
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 0x455e84
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040417c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455ea2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x455da5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004154e0
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 0x455ee6
lea eax, [ebp - 0x260]
call fcn.00403f0c
ret

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

Disassembly:
push ecx
mov eax, dword [0x464bb4]
cmp byte [eax + 0xa5], 0
jne 0x456885
cmp dword [0x464bcc], 0
jne 0x456846
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4567d0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x464bcc], eax
cmp dword [0x464bc8], 0
jne 0x456861
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x464bc8], eax
cmp dword [0x464bd0], 0
jne 0x456885
push esp
push 0
push 0
push 0x456774
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x464bd0], eax
pop edx
ret
Function at 0x45697c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x456993
add esp, 0xfffffff0
call fcn.0040345c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419824
mov eax, dword [0x4631e0]
cmp word [eax + 2], 0
jne 0x4569bb
mov eax, dword [0x4631e0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458054
mov eax, dword [0x463290]
cmp word [eax + 2], 0
jne 0x4569d5
mov eax, dword [0x463290]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045824c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41158c]
call fcn.00403108
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41158c]
call fcn.00403108
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 [0x41bd70]
call fcn.0042326c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x456b5c
mov eax, dword [0x463100]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042363c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4587ec
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x463100]
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.0040c108
test eax, eax
je 0x456aca
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408434
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c130
test eax, eax
je 0x456ade
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.0040417c
mov eax, dword [0x462fec]
cmp byte [eax], 0
jne 0x456b12
mov eax, ebx
call fcn.00456c84
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.004589c8
mov eax, ebx
call fcn.0045938c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x456b52
call fcn.004034b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456f04
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x464bb4]
cmp dword [eax + 0x30], 0
je 0x456fae
cmp dword [ebx + 0x94], 0
jne 0x456fa8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x456e94
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456fa8
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 0x456f6e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456fa8
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.00413950
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x456f7d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x457b10
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 0x457b45
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.00403ffc
jmp 0x457b52
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f60
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458ba4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458be5
mov eax, esi
call fcn.0043f32c
test al, al
je 0x458be5
mov eax, dword [ebx + 0x84]
call fcn.0043f028
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458be5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043f028
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45c118
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
cmp dword [esi], 0
jne 0x45c13f
push 0
push 0
mov dx, 4
mov eax, ebx
call fcn.0045b820
mov eax, dword [esi]
mov byte [eax + 0x14], 1
cmp dword [ebx + 0x38], 0xffffffff
jne 0x45c15a
push 0xffffffffffffffff
push 0xffffffffffffffe8
mov dx, 0x18
mov eax, ebx
call fcn.0045b820
mov eax, dword [esi]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebx + 0x38]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x45c183
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x45c183
xor eax, eax
jmp 0x45c185
mov al, 1
test al, al
jne 0x45c19d
call sub.kernel32.dll_GetLastError
xor edx, edx
push edx
push eax
mov dx, 3
mov eax, ebx
call fcn.0045b820
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x45eed4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov edi, eax
xor eax, eax
push ebp
push 0x45f008
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x45f018
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x45efed
mov dl, 1
mov eax, dword [0x4119a8]
call fcn.00403108
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x45efe6
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov dword [ebp - 0x10], pe_nt_image_headers32
mov dword [ebp - 0x14], pe_nt_image_headers32
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00404558
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.00404558
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004043cc
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.004043cc
push eax
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov ebx, eax
test ebx, ebx
jne 0x45efa6
mov edx, dword [ebp - 0x14]
dec edx
lea eax, [ebp - 0xc]
call fcn.00404558
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
jmp 0x45efae
cmp ebx, 0x103
jne 0x45efb2
test ebx, ebx
je 0x45ef38
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x90]
mov edx, dword [ebp - 0x1c]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45efed
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0x1c]
call fcn.00403138
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f00f
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403f30
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x403955
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x283d620]
mov ecx, dword [0x283c274]
sub esp, 0x804
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x403a10
mov edi, ecx
mov ebx, eax
cmp dword [0x283d620], 0x959
jne 0x403a00
push esi
lea eax, [ebp - 0x400]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x403630
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0x403668
push esi
call dword [sym.imp.KERNEL32.dll_FatalAppExitA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
call fcn.004037e7
add edi, 8
dec ebx
jne 0x40397d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403c9d
Capabilities:
Get common file path
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x800
push esi
xor esi, esi
cmp dword [0x283d620], 0x400
push edi
jne 0x403d61
push esi
call dword [sym.imp.USER32.dll_GetDC]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push esi
push esi
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateA]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push esi
call fcn.00404370
pop ecx
push esi
push esi
call fcn.00404853
push esi
push esi
call fcn.00404330
push esi
push esi
call fcn.00404636
fldz
add esp, 8
fst qword [esp + 8]
fstp qword [esp]
call fcn.00403fd0
add esp, 8
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404010
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404510
fstp st(0)
push esi
push esi
call fcn.0040478c
push esi
call fcn.00404a4f
add esp, 0x14
push esi
push esi
call fcn.004042c0
push esi
call fcn.00404900
add esp, 0xc
xor edi, edi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp edi, 0x4f4d0c6
jg 0x403d7e
inc edi
cmp edi, 0x34476d9
jl 0x403d63
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x12e82fe
jg 0x403d9d
inc edi
cmp edi, 0x3011b
jl 0x403d80
mov eax, dword [0x444c44]
mov dword [0x283d620], eax
call fcn.00403a15
mov edi, 0x2ec37
cmp dword [0x283d620], 0x51f
jne 0x403dc9
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec edi
jne 0x403db1
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x406c0d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4417c4]
jne 0x406c17
repz ret
jmp fcn.0040b4fc
Function at 0x40d16e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4417c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040561b
and dword [ebp - 0x14], 0
cmp dword [0x4597d0], 0
mov dword [ebp - 0x18], eax
jne 0x40d221
push 0x403454
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40d2c9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403448
push ebx
call edi
test eax, eax
je 0x40d2c9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403438
push ebx
mov dword [0x4597d0], eax
call edi
push eax
call esi
push 0x403424
push ebx
mov dword [0x4597d4], eax
call edi
push eax
call esi
push 0x403408
push ebx
mov dword [0x4597d8], eax
call edi
push eax
call esi
mov dword [0x4597e0], eax
test eax, eax
je 0x40d221
push 0x4033f0
push ebx
call edi
push eax
call esi
mov dword [0x4597dc], eax
mov eax, dword [0x4597dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40d27a
cmp dword [0x4597e0], ecx
je 0x40d27a
push eax
call esi
push dword [0x4597e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40d27a
test ebx, ebx
je 0x40d27a
call edi
test eax, eax
je 0x40d271
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40d271
test byte [ebp - 8], 1
jne 0x40d27a
or dword [ebp + 0x10], 0x200000
jmp 0x40d2ad
mov eax, dword [0x4597d4]
cmp eax, dword [ebp - 0x18]
je 0x40d2ad
push eax
call esi
test eax, eax
je 0x40d2ad
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d2ad
mov eax, dword [0x4597d8]
cmp eax, dword [ebp - 0x18]
je 0x40d2ad
push eax
call esi
test eax, eax
je 0x40d2ad
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4597d0]
call esi
test eax, eax
je 0x40d2c9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40d2cb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406c0d
leave
ret