joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491ce0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x491d2c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x491d2c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x491d16
push eax
call ebp
test ax, ax
jl 0x491d24
inc esi
add edi, 4
cmp esi, 6
jb 0x491d08
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.004919e0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x495920
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x495980
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x495980
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x495980
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x495980
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x495990
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x498de0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x498e53
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x498e48
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call fcn.004ba2ec
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x8c
ret
Function at 0x4a9e80
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4dcf56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x52966c]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.004cb97a
cmp dword [0x552748], ebx
je 0x4a9ef0
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004c9543
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x52966c]
push ebp
push edi
mov edi, 1
mov dword [0x552748], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x4a9f19
mov dword [esp + 0x20], ebx
jmp 0x4a9f20
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.004cdadc
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.004c9630
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x4a9f7e
mov dword [esp + 0x14], ebx
jmp 0x4a9f85
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x4a9f9f
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x4a9f99
cmp eax, 2
jne 0x4a9f9f
mov dword [esp + 0x18], edi
jmp 0x4a9fa3
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4a9fb1
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004cafaf
mov edi, eax
cmp edi, ebx
jne 0x4a9fc1
xor eax, eax
jmp 0x4a9fc4
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4a9fec
mov ecx, esi
call fcn.004cdadc
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x4aa004
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x552748], 0
test eax, eax
je 0x4aa02d
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x4aa02d
push 1
push 0xd
push pe_nt_image_headers32
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.004c9543
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.004c9543
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4abf20
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4dd148
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004d01cc
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.004abe60
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004d00fa
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4abfe7
cmp dword [esp + 0x40], 1
jne 0x4abfe5
cmp ecx, eax
jge 0x4abfe7
mov eax, ecx
cmp eax, 0x12c
jge 0x4abff3
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.004ac040
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004d023e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4b02e0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4dd636
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x52966c]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.004cb97a
mov edx, dword [0x52966c]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x4b033a
mov dword [esp + 0x1c], ebx
jmp 0x4b0341
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.004cdadc
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.004c9630
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x4b0392
mov dword [esp + 0x14], ebx
jmp 0x4b0399
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x4b03b4
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x4b03ae
cmp eax, 2
jne 0x4b03b4
mov dword [esp + 0x18], edi
jmp 0x4b03b8
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4b03c6
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004cafaf
mov edi, eax
cmp edi, ebx
jne 0x4b03d6
xor eax, eax
jmp 0x4b03d9
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4b0401
mov ecx, esi
call fcn.004cdadc
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x4b041d
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b043c
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x4b043c
push 1
push 0xd
push pe_nt_image_headers32
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.004c9543
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.004c9543
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4b2f70
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4b3013
test eax, eax
jbe 0x4b3013
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4b3013
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4b2fbe
xor esi, esi
jmp 0x4b2fc4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4b2fef
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0043d470
add esi, eax
push esi
mov ebx, esi
call fcn.0043d470
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4b2fd0
pop ebp
test edi, edi
pop edi
jne 0x4b3013
test ebx, ebx
je 0x4b3013
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004b9230
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4b3135
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4b324d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b324d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004cafd6
mov esi, eax
test esi, esi
je 0x4b324d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4b324d
mov ecx, esi
call fcn.004b30c0
cmp edi, eax
jge 0x4b324d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4b31d3
mov dword [esp + 0x34], 1
jmp 0x4b322e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4b324d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004b2640
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4cb97a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4cb9b2
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.004c999e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c9976
jmp 0x4cb9be
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4cd1eb
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 0x4cd22d
call fcn.004d393f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4cd22d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4cd224
xor eax, eax
jmp 0x4cd235
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004cd23b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d3e6f
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 0x4d3e9d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d3ebb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d3dd5
jmp 0x4d3ebb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d3ebb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d3dd5
test edi, edi
mov eax, edi
jne 0x4d3ea5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4d6711
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4d6739
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4d674a
push 2
call edi
test ax, ax
jge 0x4d674a
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004cafaf
cmp dword [esi + 0x30], ebx
jne 0x4d6824
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, pe_nt_image_headers32
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004cafaf
cmp eax, dword [esp + 0x34]
jne 0x4d6824
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4d67c0
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4d6805
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4d6824
cmp eax, 0x205
je 0x4d6824
cmp eax, 0x201
je 0x4d6824
cmp eax, 0x204
je 0x4d6824
cmp eax, ebx
jne 0x4d67eb
cmp dword [esp + 0x1c], 0x1b
je 0x4d6824
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x565620]
jbe 0x4d681a
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4d677d
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4

Function at 0x4014d8
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
and dword [ebp - 0x10], 0
push 0
push eax
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], ax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov word [ebp - 0x16], ax
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
push 0x1c
and eax, 2
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 1
call dword [sym.imp.USER32.dll_SendInput]
leave
ret 8
Function at 0x40601c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004064a8
mov byte [esp], al
cmp byte [esp], 0
jne 0x4061a5
test edi, edi
je 0x4061a5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4060e5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4060c0
cmp edi, 0xffffffff
je 0x406081
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406081
mov byte [esp], 0
jmp 0x4061a5
cmp dword [esi], 1
jg 0x4060c0
cmp dword [esi], 0
jne 0x4060b2
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4060b2
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4061a5
lea eax, [esp + 0xc]
call fcn.00405cd8
dec ebp
test ebp, ebp
jg 0x406066
cmp edi, 0xffffffff
je 0x4060e5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4060e3
mov byte [esp], 0
jmp 0x4061a5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40602a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4060e5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406214
mov edx, eax
mov ebx, dword [0x4208f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x406149
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406147
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x406149
xor edi, edi
cmp byte [esp], 0
je 0x40616f
mov ebx, dword [esi]
test bl, 1
jne 0x406185
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40614f
mov byte [esp + 1], 1
jmp 0x406185
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40616f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4060fc
cmp byte [esp], 0
je 0x4061a5
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40701c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x420054], 0
je 0x407083
cmp word [0x420340], 0xd7b2
jne 0x407045
cmp dword [0x420348], 0
jbe 0x407045
mov eax, 0x42033c
call dword [0x420358]
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
mov eax, 0x4070b0
call fcn.0040785c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41e022], 0
jne 0x40709f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409124
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 0x409289
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004072a0
cmp si, word [0x41e9f0]
jb 0x4091bc
cmp si, word [0x41ebf0]
ja 0x4091bc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4091bc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x41e9f0]
jae 0x409196
mov edi, ebx
dec edi
jmp 0x4091b7
cmp si, word [ebx*8 + 0x41e9f0]
jbe 0x4091a6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4091b7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x41e9f4]
call fcn.00409044
jmp 0x4091bc
cmp edi, dword [ebp - 8]
jae 0x409180
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40926b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40926b
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.004079f4
push dword [ebp - 0x160]
push 0x4092a4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004079f4
push dword [ebp - 0x164]
push 0x4092b4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004079f4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407bac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409290
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407300
ret
Function at 0x40943c
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 0x409540
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x422c0c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x422c24]
jne 0x409488
mov eax, esi
mov edx, 0x422c26
mov ecx, 0x55
call fcn.004079f4
push 0x422c0c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40952a
push 0x422c0c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004072a0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4094f7
cmp byte [0x422c08], 0
je 0x4094bc
mov edx, esi
mov eax, ebx
call fcn.00409320
jmp 0x4094f7
mov edx, esi
mov eax, ebx
call fcn.00409124
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4094f7
cmp dword [esi], 0
je 0x4094e0
mov eax, esi
mov edx, 0x409558
call fcn.00407acc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409124
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407acc
push 0x422c0c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x422c24], bx
mov eax, dword [esi]
call fcn.00407960
mov ecx, eax
mov eax, 0x422c26
mov edx, 0xaa
call fcn.00408fa4
push 0x422c0c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409547
lea eax, [ebp - 4]
call fcn.004072a0
ret