joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c1220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f1f9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.005c1b40
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x835044
call fcn.005e1690
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x5c12b3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005e1690
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x5c12ac
push 0
mov ecx, eax
call fcn.005b8390
mov dword [esi + 0xc], eax
jmp 0x5c12b5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x5c12b5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x5e3d20
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5e3d58
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005e1daa
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005e1d82
jmp 0x5e3d64
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5e540e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5e5450
call fcn.005eaf87
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5e5450
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5e5447
xor eax, eax
jmp 0x5e5458
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005e545e
pop edi
pop esi
pop ebx
ret 4

Function at 0x5eb4b7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5eb4e5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5eb503
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005eb41d
jmp 0x5eb503
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5eb503
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005eb41d
test edi, edi
mov eax, edi
jne 0x5eb4ed
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401ff0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x4c
push ebx
push esi
mov esi, dword [esp + 0x58]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
xor ebx, ebx
push 0x7f05
push ebx
mov dword [esp + 0x30], 0x30
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0x401000
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], esi
call edi
push 0x7f00
push ebx
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f05
push ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 5
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], str.REAL_CHIP_8
call edi
mov dword [esp + 0x54], eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x4020d4
mov ecx, dword [0x408054]
mov edx, dword [0x408050]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
push ebx
push ecx
push edx
push 1
call esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [0x408054]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
push ecx
push ebx
call esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [0x408050]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
push ecx
push 0xcf0000
push str.Real_Chip_8
push str.REAL_CHIP_8
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
mov dword [0x4082f4], eax
jne 0x4020df
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x4c
ret 0x10
mov edx, dword [esp + 0x68]
push ebp
push edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4082f4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.00401fd0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov dword [0x4082f8], eax
push 1
push ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
call edi
test eax, eax
je 0x402141
cmp dword [esp + 0x14], 0x12
je 0x40216b
lea edx, [esp + 0x10]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x402116
call esi
sub eax, dword [0x4082f8]
cmp eax, 1
jbe 0x402116
mov edi, edi
call fcn.00401390
call esi
mov dword [0x4082f8], eax
call esi
sub eax, dword [0x4082f8]
cmp eax, 1
ja 0x402150
jmp 0x402116
mov eax, dword [esp + 0x18]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c
ret 0x10
Function at 0x40224a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x406168
call fcn.004025c4
mov edi, 0x94
mov eax, edi
call fcn.00403230
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40b3dc], ecx
mov eax, dword [esi + 4]
mov dword [0x40b3e8], eax
mov edx, dword [esi + 8]
mov dword [0x40b3ec], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40b3e0], esi
cmp ecx, 2
je 0x4022aa
or esi, 0x8000
mov dword [0x40b3e0], esi
shl eax, 8
add eax, edx
mov dword [0x40b3e4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4022e5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4022e5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4022fd
cmp eax, 0x20b
je 0x4022ea
mov dword [ebp - 0x1c], esi
jmp 0x402311
cmp dword [ecx + 0x84], 0xe
jbe 0x4022e5
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40230b
cmp dword [ecx + 0x74], 0xe
jbe 0x4022e5
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004031dd
pop ecx
test eax, eax
jne 0x40233d
cmp dword [0x40b3c8], 1
jne 0x40232a
call fcn.00402986
push 0x1c
call fcn.0040280f
push 0xff
call fcn.00402678
pop ecx
pop ecx
call fcn.0040313b
mov dword [ebp - 4], esi
call fcn.00402f90
test eax, eax
jge 0x402356
push 0x1b
call fcn.00402225
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40b8f4], eax
call fcn.00402e6e
mov dword [0x40b3c0], eax
call fcn.00402dcc
test eax, eax
jge 0x40237c
push 8
call fcn.00402225
pop ecx
call fcn.00402b99
test eax, eax
jge 0x40238d
push 9
call fcn.00402225
pop ecx
call fcn.004026a8
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4023a0
push eax
call fcn.00402225
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402b30
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4023c1
movzx eax, word [ebp - 0x34]
jmp 0x4023c4
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00401ff0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4023e2
push edi
call fcn.004027cf
call fcn.004027f1
jmp 0x402414
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004025ff
ret
Function at 0x40270d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40b41c], esi
push edi
jne 0x40272d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40b418], esi
mov byte [0x40b414], al
jne 0x402793
mov ecx, dword [0x40b8e8]
test ecx, ecx
je 0x402774
mov eax, dword [0x40b8e4]
sub eax, 4
cmp eax, ecx
jmp 0x40276d
mov eax, dword [eax]
test eax, eax
je 0x40275f
call eax
mov eax, dword [0x40b8e4]
sub eax, 4
cmp eax, dword [0x40b8e8]
mov dword [0x40b8e4], eax
jae 0x402757
mov eax, 0x40801c
mov esi, 0x408020
cmp eax, esi
mov edi, eax
jae 0x402793
mov eax, dword [edi]
test eax, eax
je 0x40278c
call eax
add edi, 4
cmp edi, esi
jb 0x402784
mov eax, 0x408024
mov esi, 0x408028
cmp eax, esi
mov edi, eax
jae 0x4027b2
mov eax, dword [edi]
test eax, eax
je 0x4027ab
call eax
add edi, 4
cmp edi, esi
jb 0x4027a3
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4027cd
push dword [ebp + 8]
mov dword [0x40b41c], 1
call fcn.00402678
pop ecx
pop ebp
ret

Function at 0x40280f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x408058]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x408070]
je 0x40283c
inc eax
cmp eax, 0x12
jb 0x40282d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x408070]
jne 0x402970
mov eax, dword [0x40b3c8]
cmp eax, 1
je 0x40294b
cmp eax, edx
jne 0x40286c
cmp dword [0x408064], 1
je 0x40294b
cmp ecx, 0xfc
je 0x402970
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4028a5
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00403370
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004035a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4028e7
lea eax, [ebp - 0x10c]
push eax
call fcn.004035a0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4061ac
push edi
call fcn.00403470
add esp, 0x10
push edi
call fcn.004035a0
push dword [esi + 0x408074]
mov ebx, eax
call fcn.004035a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403230
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00403370
push edi
push ebx
call fcn.00403380
push 0x4061a8
push ebx
call fcn.00403380
push dword [esi + 0x408074]
push ebx
call fcn.00403380
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040326d
add esp, 0x2c
jmp 0x402970
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x408074]
push dword [esi]
call fcn.004035a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004021b1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40326d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40b534], ebx
push esi
push edi
jne 0x4032ed
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403328
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40b534], eax
je 0x403328
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40b538], eax
call esi
cmp dword [0x40b3dc], 2
mov dword [0x40b53c], eax
jne 0x4032ed
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40b544], eax
je 0x4032ed
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40b540], eax
mov eax, dword [0x40b540]
test eax, eax
je 0x403332
call eax
test eax, eax
je 0x403319
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40b544]
test eax, eax
je 0x403319
test byte [ebp - 8], 1
jne 0x403332
cmp dword [0x40b3e8], 4
jb 0x40332c
or byte [ebp + 0x12], 0x20
jmp 0x403351
xor eax, eax
jmp 0x403361
or byte [ebp + 0x12], 4
jmp 0x403351
mov eax, dword [0x40b538]
test eax, eax
je 0x403351
call eax
mov ebx, eax
test ebx, ebx
je 0x403351
mov eax, dword [0x40b53c]
test eax, eax
je 0x403351
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40b534]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4058f8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00403230
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40598d
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x40b3dc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40598d
cmp eax, 1
je 0x4059a5
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40598d
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x405962
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x405989
xor eax, eax
inc eax
jmp 0x4059c1
cmp esi, ebx
jae 0x405991
xor eax, eax
jmp 0x4059c1
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40b3dc]
jmp 0x4059a7
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409978
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a4b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a64
push ebx
push 0x409a70
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403388
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4099f8
mov al, 0x69
call fcn.0040961c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040994c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a01
call fcn.0040994c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a52
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x409b04
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
jmp 0x409bad
cmp dword [esi + 0x10], 0x1000
jne 0x409b99
test byte [esi + 0x15], 1
jne 0x409b99
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b58
cmp eax, 2
je 0x409b58
cmp eax, 0x10
je 0x409b58
cmp eax, 0x20
jne 0x409b6d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b6d
mov bl, 1
xor ebp, ebp
jmp 0x409b7e
mov eax, dword [esi]
add eax, ebp
call fcn.00409afc
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b71
test bl, bl
je 0x409b99
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b30
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43b650
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
mov ecx, 0x4c04d763
or ebx, ebx
sub ecx, 0x3e3671b1
call fcn.0043b691
or ecx, ecx
push 0xa18d3d44
mov ecx, dword [esp]
add esp, 4
add ecx, ebx
xor dword [edx], edi
and ebx, ebx
inc edx
sub ebx, 0xbcd65648
inc ebx
sub ecx, ebx
cmp edx, eax
jne fcn.0043b650
add ebx, 0xc7a13f84
ret
Function at 0x405640
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405a2c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4057c9
test edi, edi
je 0x4057c9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405700
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4056db
cmp edi, 0xffffffff
je 0x40569f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40569f
mov byte [esp], 0
jmp 0x4057c9
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4056db
test ebx, ebx
jne 0x4056d4
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402568
test eax, eax
jne 0x4056d4
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4057c9
pause
dec ebp
test ebp, ebp
jg 0x405684
cmp edi, 0xffffffff
je 0x405700
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4056fe
mov byte [esp], 0
jmp 0x4057c9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40564e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x405700
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040583c
mov edx, eax
mov ebx, dword [0x4d28c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405767
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405765
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405767
xor edi, edi
cmp byte [esp], 0
je 0x405790
mov ebx, dword [esi]
test bl, 1
jne 0x4057a9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x40576d
mov byte [esp + 1], 1
jmp 0x4057a9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x405790
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40571a
cmp byte [esp], 0
je 0x4057c9
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x406544
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d2050], 0
je 0x4065a5
cmp word [0x4d232c], 0xd7b2
jne 0x40656d
cmp dword [0x4d2334], 0
jbe 0x40656d
mov eax, 0x4d2328
call dword [0x4d2344]
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 0x4065d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4cf028], 0
jne 0x4065c1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406750
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4cf02c], 0
je 0x40677b
mov edx, edi
mov eax, esi
call dword [0x4cf02c]
mov ebx, eax
jmp 0x40678c
mov eax, 8
call fcn.00404350
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d2051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406718
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x4067c1
mov edx, 8
mov eax, ebx
call fcn.0040436c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x4088b4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408a19
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406894
cmp si, word [0x4cf7dc]
jb 0x40894c
cmp si, word [0x4cf9dc]
ja 0x40894c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40894c
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4cf7dc]
jae 0x408926
mov edi, ebx
dec edi
jmp 0x408947
cmp si, word [ebx*8 + 0x4cf7dc]
jbe 0x408936
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408947
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4cf7e0]
call fcn.004087c4
jmp 0x40894c
cmp edi, dword [ebp - 8]
jae 0x408910
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4089fb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4089fb
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407264
push dword [ebp - 0x160]
push 0x408a34
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407264
push dword [ebp - 0x164]
push 0x408a44
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407264
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040749c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a20
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004068f4
ret
Function at 0x408bcc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408ccf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d4b51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4d4b6a]
jne 0x408c18
mov eax, esi
mov edx, 0x4d4b6c
mov ecx, 0x55
call fcn.00407264
push 0x4d4b51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408cb9
push 0x4d4b51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406894
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408c87
cmp byte [0x4d4b50], 0
je 0x408c4c
mov edx, esi
mov eax, ebx
call fcn.00408ab0
jmp 0x408c87
mov edx, esi
mov eax, ebx
call fcn.004088b4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408c87
cmp dword [esi], 0
je 0x408c70
mov eax, esi
mov edx, 0x408ce8
call fcn.004073bc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004088b4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004073bc
push 0x4d4b51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4d4b6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.004071d8
push eax
push 0x4d4b6c
call sub.kernel32.dll_lstrcpynW
push 0x4d4b51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408cd6
lea eax, [ebp - 4]
call fcn.00406894
ret