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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x452f40]
cmp byte [eax + 0xc], 0
je 0x43b1b9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43b1b2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x453bb8], 0
jne 0x43b0a0
push 0x43b1c0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43b1c8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bb8], eax
cmp dword [0x4529a4], 0
jne 0x43b19b
push 0x43b1d8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4529a4], eax
cmp dword [0x4529a4], 0
je 0x43b19b
push 0x43b1e4
mov eax, dword [0x4529a4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bbc], eax
push 0x43b1f4
mov eax, dword [0x4529a4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bc0], eax
push 0x43b208
mov eax, dword [0x4529a4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bc4], eax
push 0x43b220
mov eax, dword [0x4529a4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bc8], eax
push 0x43b238
mov eax, dword [0x4529a4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bcc], eax
push 0x43b24c
mov eax, dword [0x4529a4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bd0], eax
push 0x43b264
mov eax, dword [0x4529a4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bd4], eax
push 0x43b27c
mov eax, dword [0x4529a4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bd8], eax
push 0x43b298
mov eax, dword [0x4529a4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bdc], eax
push 0x43b2a4
mov eax, dword [0x4529a4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453be0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b1b9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43edcc
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.00404344
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43ee1b
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.004045ac
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x446c5c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x446cac]
test si, 4
je 0x446c70
or bl, 1
test si, 8
je 0x446c7a
or bl, 4
test si, 1
je 0x446c84
or bl, 8
test si, 2
je 0x446c8e
or bl, 0x10
test si, 0x10
je 0x446c98
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446ca7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x446cb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x446ce8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446cc9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446cd8
or bl, 4
test esi, 0x20000000
je 0x446ce3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44d2ec
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44d2fe
add esp, 0xfffffff0
call fcn.0040393c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b34c
mov eax, dword [0x452c80]
mov dword [eax + 4], ebx
mov dword [eax], 0x44d690
mov eax, dword [0x452c8c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44d69c
mov eax, ebx
call fcn.0044d6a8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4113ac]
call fcn.004035c0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4113ac]
call fcn.004035c0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4113ac]
call fcn.004035c0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4113ac]
call fcn.004035c0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4113ac]
call fcn.004035c0
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, 0x449b70
push eax
push 0
push 0
mov eax, dword [0x452da0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ccdc]
call fcn.0041e0e0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ccdc]
call fcn.0041e0e0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ccdc]
call fcn.0041e0e0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044dac8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d9a4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d9a4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d9a4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44d43b
call fcn.00403994
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44d788
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 0x44d933
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44d914
mov dl, 1
mov eax, dword [0x41189c]
call fcn.004035c0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404344
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44d903
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.0043b3ac
test al, al
je 0x44d8f6
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, 0x44d944
lea eax, [ebp - 0x254]
call fcn.00408e70
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44d8f6
xor eax, eax
push ebp
push 0x44d8ef
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 0x44d97c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44d8d8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045ac
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 0x44d8d8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d8f6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44d7f9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004159e4
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 0x44d93a
lea eax, [ebp - 0x260]
call fcn.00404344
ret

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

Disassembly:
push ecx
mov eax, dword [0x453bfc]
cmp byte [eax + 0xa5], 0
jne 0x44e2d9
cmp dword [0x453c14], 0
jne 0x44e29a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44e224
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x453c14], eax
cmp dword [0x453c10], 0
jne 0x44e2b5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x453c10], eax
cmp dword [0x453c18], 0
jne 0x44e2d9
push esp
push 0
push 0
push 0x44e1c8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x453c18], eax
pop edx
ret
Function at 0x44e3d0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44e3e7
add esp, 0xfffffff0
call fcn.0040393c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b34c
mov eax, dword [0x452d90]
cmp word [eax + 2], 0
jne 0x44e40f
mov eax, dword [0x452d90]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044fa94
mov eax, dword [0x452e14]
cmp word [eax + 2], 0
jne 0x44e429
mov eax, dword [0x452e14]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044fc8c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4113ac]
call fcn.004035c0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4113ac]
call fcn.004035c0
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], 0x80000018
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 [0x41d48c]
call fcn.004230d4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44e5b0
mov eax, dword [0x452cd4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004234a4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45020c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x452cd4]
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.0040a6ec
test eax, eax
je 0x44e51e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004087cc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040a714
test eax, eax
je 0x44e532
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.004045ac
mov eax, dword [0x452c00]
cmp byte [eax], 0
jne 0x44e566
mov eax, ebx
call fcn.0044e6d8
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.004503e8
mov eax, ebx
call fcn.00450d28
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44e5a6
call fcn.00403994
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e94c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x453bfc]
cmp dword [eax + 0x30], 0
je 0x44e9f6
cmp dword [ebx + 0x94], 0
jne 0x44e9f0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44e8dc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44e9f0
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 0x44e9b6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44e9f0
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.00413a4c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44e9c5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44f4d4
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 0x44f509
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.00404434
jmp 0x44f516
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404398
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4505c4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x450605
mov eax, esi
call fcn.00436ae4
test al, al
je 0x450605
mov eax, dword [ebx + 0x84]
call fcn.004367e0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x450605
push 0
mov eax, dword [ebx + 0x84]
call fcn.004367e0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4156b1
Capabilities:
Terminate process

Disassembly:
call fcn.0041440d
push 0x5c
push 0x4157e0
call fcn.00405441
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x484b18
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x43a7bf
xor esi, esi
inc esi
mov eax, dword [0x484b14]
cmp eax, esi
je 0x43a7de
mov eax, dword [0x484b14]
test eax, eax
jne 0x415838
mov dword [0x484b14], esi
push 0x4157dc
push 0x4157d0
call fcn.00415852
pop ecx
pop ecx
test eax, eax
jne 0x43a8a1
mov eax, dword [0x484b14]
cmp eax, esi
jne 0x415764
push 0x4157cc
push 0x4157a8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x484b14], 2
cmp dword [ebp - 0x20], ebx
jne 0x415771
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x484b24], ebx
jne 0x43a7eb
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x43a8a1
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
jbe 0x415808
cmp cx, 0x22
je 0x43a83e
inc eax
inc eax
jmp 0x41578c
cmp cx, bx
jne 0x415843
movzx ecx, word [eax]
cmp cx, bx
jne 0x43a80d
test byte [ebp - 0x40], 1
jne 0x43a821
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.0041641f
jmp 0x43a82a
mov dword [0x484c48], esi
jmp 0x415740
cmp dword [ebp - 0x1c], ebx
je 0x41580d
jmp 0x415798
cmp eax, esi
jne 0x43a7ce
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x415707
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4156f3
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x415740
push 0x484b24
call fcn.0047c0b2
pop ecx
test eax, eax
je 0x41577d
push ebx
push 2
push ebx
call dword [0x484b24]
jmp 0x41577d
cmp cx, 0x20
ja 0x415819
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x41580d
movzx ecx, word [ebp - 0x3c]
jmp 0x415826
mov dword [0x484c44], eax
cmp dword [0x484af8], ebx
jne 0x43a87e
push eax
call dword [sym.imp.msvcrt.dll_exit]
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x4157a2
cmp dword [0x484c48], ebx
jne 0x43a88c
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x484c44]
jmp 0x43a8ad
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00405512
ret
Function at 0x4742eb
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x480174
call fcn.00402847
mov esi, ecx
push 0x47494c
push 8
call fcn.004015a0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor edi, edi
pop ecx
pop ecx
cmp dword [esi + 0x14], edi
jne 0x47433a
push edi
push edi
push 1
push edi
call ebx
mov dword [esi + 0x14], eax
cmp eax, edi
jne 0x47433a
push 0x4748d0
push 1
call fcn.004015a0
pop ecx
pop ecx
mov eax, 0x80004005
jmp 0x474499
cmp dword [esi + 0x18], edi
jne 0x474365
push edi
push edi
push 1
push edi
call ebx
mov dword [esi + 0x18], eax
cmp eax, edi
jne 0x474365
push 0x474868
push 1
call fcn.004015a0
pop ecx
pop ecx
mov eax, 0x8007000e
jmp 0x474499
cmp dword [esi + 0x2c], edi
jne 0x4743f2
push pe_nt_image_headers32
call fcn.0040298d
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
cmp ecx, edi
je 0x47438d
push edi
call fcn.0047350a
jmp 0x47438f
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x2c], eax
cmp eax, edi
jne 0x4743a1
push 0x4747f0
jmp 0x474352
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ebx, eax
cmp ebx, edi
jge 0x4743d9
push ebx
push 0x474760
push 1
call fcn.004015a0
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax]
add esp, 0xc
push eax
call dword [ecx + 8]
mov dword [esi + 0x2c], edi
mov eax, ebx
jmp 0x474499
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x18]
push eax
push 0x4746f8
push 1
mov dword [esi + 0x10], eax
call fcn.004015a0
add esp, 0xc
cmp dword [esi + 0xc], edi
jne 0x47441f
lea eax, [esi + 8]
push eax
push edi
push esi
push 0x4739a7
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
cmp eax, edi
jne 0x47441f
push 0x474680
jmp 0x474327
push 0x474610
push 8
call fcn.004015a0
pop ecx
pop ecx
push edi
push 0xffffffffffffffff
push 1
lea ebx, [esi + 0x14]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
test eax, eax
jne 0x47444e
push 0x474598
mov dword [ebp - 0x10], edi
push 8
jmp 0x47445c
push 0x474500
mov dword [ebp - 0x10], 0x8000ffff
push 1
call fcn.004015a0
pop ecx
pop ecx
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x4744a0
push 8
call fcn.004015a0
pop ecx
pop ecx
mov ecx, dword [esi + 0x2c]
cmp ecx, edi
je 0x474496
push 2
pop eax
push eax
push dword [esi + 0x24]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], 1
call fcn.0045044b
mov eax, dword [ebp - 0x10]
call fcn.00402881
ret
Function at 0x404548
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406c58
test esi, esi
jne 0x404580
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406d94
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405e88
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4bc050], 0
je 0x405ee9
cmp word [0x4bc32c], 0xd7b2
jne 0x405eb1
cmp dword [0x4bc334], 0
jbe 0x405eb1
mov eax, 0x4bc328
call dword [0x4bc344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405f14
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b9030], 0
jne 0x405f05
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406074
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4b9034], 0
je 0x40609a
mov edx, esi
mov eax, ebx
call dword [0x4b9034]
jmp 0x4060a9
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4bc051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40603c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4089fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408b63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406c58
cmp si, word [0x4b97d0]
jb 0x408a96
cmp si, word [0x4b99d0]
ja 0x408a96
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408a96
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4b97d0]
jae 0x408a70
mov edi, ebx
dec edi
jmp 0x408a91
cmp si, word [ebx*8 + 0x4b97d0]
jbe 0x408a80
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408a91
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4b97d4]
call fcn.0040890c
jmp 0x408a96
cmp edi, dword [ebp - 0xc]
jae 0x408a5a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408b45
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b45
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406e40
push dword [ebp - 0x164]
push 0x408b80
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406e40
push dword [ebp - 0x168]
push 0x408b90
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406e40
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004071f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b6a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406c50
ret
Function at 0x408b94
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x408d7a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4beb58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x4beb70]
cmp ax, word [ebp - 2]
jne 0x408bec
mov eax, dword [ebp - 6]
mov edx, 0x4beb74
mov ecx, 0x55
call fcn.00406e40
push 0x4beb58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408d64
push 0x4beb58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00406c58
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408d2c
cmp byte [0x4beb54], 0
je 0x408ce2
call dword [0x4beb4c]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x4beb50]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x408cdb
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4beb48]
test al, al
je 0x408cb4
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004041d4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4beb48]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408ca9
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x408ca5
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x408c92
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406e04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d2c
movzx eax, word [ebp - 0x16]
push eax
call dword [0x4beb50]
cmp dword [ebp - 0x10], 0
je 0x408cda
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.004089fc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408d2c
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408d11
mov eax, dword [ebp - 6]
mov edx, 0x408d94
call fcn.00407054
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.004089fc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00407054
mov eax, dword [ebp - 6]
push 0x4beb58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x4beb70], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406ce4
push eax
push 0x4beb74
call sub.kernel32.dll_lstrcpynW
push 0x4beb58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d81
lea eax, [ebp - 0x1c]
call fcn.00406c48
ret