joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405370
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41180d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x41a040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea eax, [ecx + 4]
mov dword [ecx], 0x414e88
lea ebx, [ecx + 0x24]
mov dword [ebp - 0x14], eax
lea edi, [ecx + 0x28]
mov dword [eax], 0
push 8
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.0040e221
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040db34
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
mov dword [eax + 0x34], esi
lea esi, [eax + 4]
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 0x10], edx
mov dword [eax + 0x1c], ecx
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov dword [eax], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [ebp - 4], 1
mov eax, 0x41a534
mov ebx, dword [ebp - 0x10]
mov dword [ebx], 0x414e4c
cmp dword [0x41a548], 7
mov edi, dword [0x41a544]
cmova eax, dword [0x41a534]
mov dword [ebp - 0x18], eax
xor eax, eax
cmp edi, 0x7fffffff
ja 0x40550d
test edi, edi
je 0x4054f1
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.00405a50
lea ecx, [edi + edi]
mov esi, eax
push ecx
push dword [ebp - 0x18]
push esi
call fcn.0040f500
mov eax, dword [ebx + 0xc]
lea ecx, [esi + edi*2]
mov dword [ebx + 0x38], ecx
add esp, 0xc
mov dword [eax], esi
mov eax, dword [ebx + 0x1c]
mov dword [eax], esi
mov eax, dword [ebx + 0x2c]
mov dword [eax], edi
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x38]
sub ecx, esi
sar ecx, 1
mov dword [eax], esi
mov eax, dword [ebx + 0x20]
mov dword [eax], esi
mov eax, dword [ebx + 0x30]
mov dword [eax], ecx
mov eax, 1
jmp 0x4054f4
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.0040d91d
int3
Function at 0x405560
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411848
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x41a040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
push 0
push 0
mov eax, dword [eax + 4]
mov dword [ecx + eax], 0x414e3c
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ecx - 4], eax
mov eax, dword [ecx]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov ebx, dword [eax + 4]
add ebx, ecx
mov ecx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
call fcn.004021e0
push 8
call fcn.0040e221
add esp, 4
mov esi, eax
push 1
mov dword [ebp - 4], 2
call fcn.0040db34
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov ebx, dword [esi + 4]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4131fc]
mov ecx, ebx
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 3
push eax
call fcn.00405d40
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x4131fc]
mov ecx, edi
call esi
movzx eax, ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4131fc]
mov ecx, ebx
call esi
mov edi, eax
test edi, edi
je 0x4056ae
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x4131fc]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp dword [ecx + 0x38], 0
mov word [ecx + 0x40], ax
jne 0x4056cc
mov eax, dword [ecx + 0xc]
push 0
or eax, 4
push eax
call fcn.004021e0
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x10]
lea edx, [esi + 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 4]
mov dword [edx + eax], 0x414e48
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], 0x414e44
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + esi - 4], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x406bb0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411a55
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x41a040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00406690
lea ecx, [ebp - 0x1c]
lea esi, [eax + 1]
push esi
call fcn.00406e50
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x1c]
mov edx, esi
push eax
push ecx
push dword [ebp + 8]
push ecx
mov ecx, edi
call fcn.00406650
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x10], 0x41b04c
xor esi, esi
mov eax, 1
mov ebx, 0x41b04c
xchg dword [ebx], eax
test eax, eax
setne al
test al, al
je 0x406c53
mov eax, esi
inc esi
test eax, 0x3ff
jne 0x406c43
call sub.KERNEL32.dll_SwitchToThread
mov eax, 1
xchg dword [ebx], eax
test eax, eax
setne al
test al, al
jne 0x406c34
mov byte [ebp - 4], 1
mov eax, dword fs:[0x2c]
mov ebx, dword [eax]
mov esi, dword [ebx + 4]
test esi, esi
jne 0x406c95
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 0xc
push eax
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
jmp 0x406ca3
push edi
mov ecx, esi
call dword [0x4131fc]
call esi
add esp, 4
cmp dword [0x41b044], 0
je 0x406ce5
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov esi, dword [0x41b048]
add esp, 4
cmp esi, eax
jne 0x406cca
cmp dword [ebx + 4], 0
je 0x406ce5
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00406620
push esi
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 0x10
nop
mov dword [0x41b04c], 0
test edi, edi
je 0x406d26
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x406d1c
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406d1c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.0040e213
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10011c5
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
push esi
xor esi, esi
push 0x38
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x3c], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x54], esi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 6
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test byte [ebp - 0x54], 1
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x600
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0x10010e8
je 0x100122d
movzx eax, word [ebp - 0x50]
mov dword [ebp - 0x20], eax
jmp 0x1001234
mov dword [ebp - 0x20], 0xa
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x28], 0x10010dc
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x1001563
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10019f0
call fcn.01001704
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, 0x1002370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100131e
cmp eax, esi
jne 0x1001311
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001321
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10012f8
xor esi, esi
inc esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x1001334
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001363
mov eax, dword [0x100236c]
test eax, eax
jne 0x100135d
mov dword [0x100236c], esi
push 0x10010b0
push 0x10010a4
call fcn.0100125a
pop ecx
pop ecx
test eax, eax
je 0x1001363
jmp 0x1001487
mov dword [0x1002034], esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x1001387
push 0x10010a0
push 0x1001098
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100236c], 2
cmp dword [ebp - 0x20], ebx
jne 0x1001394
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1002374], ebx
je 0x10013b5
push 0x1002374
call fcn.01001679
pop ecx
test eax, eax
je 0x10013b5
push ebx
push 2
push ebx
call dword [0x1002374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1001487
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100141f
cmp cx, bx
je 0x10013da
cmp dword [ebp - 0x1c], ebx
jne 0x100141f
movzx ecx, word [eax]
cmp cx, bx
je 0x10013ef
cmp cx, 0x20
ja 0x10013ef
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10013da
test byte [ebp - 0x40], 1
je 0x10013fb
movzx ecx, word [ebp - 0x3c]
jmp 0x10013fe
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1002030], eax
cmp dword [0x1002024], ebx
jne 0x1001464
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1001430
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10013c4
cmp dword [0x1002034], ebx
jne 0x1001472
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1002030]
jmp 0x1001493
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001749
ret
call fcn.01001851
jmp 0x10012bb
Function at 0x406fa8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x406fea
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x40700a
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040a79c
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x407260
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409c14
test esi, esi
jne 0x407296
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.00409d9c
jmp 0x4072b4
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407144
mov edi, eax
test esi, esi
je 0x4072b4
cmp dword [ebx], 0
je 0x4072b4
dec esi
jmp 0x40729d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x408888
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.00408d04
mov byte [esp], al
cmp byte [esp], 0
jne 0x408a11
test edi, edi
je 0x408a11
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408951
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40892c
cmp edi, 0xffffffff
je 0x4088ed
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4088ed
mov byte [esp], 0
jmp 0x408a11
cmp dword [esi], 1
jg 0x40892c
cmp dword [esi], 0
jne 0x40891e
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40891e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408a11
lea eax, [esp + 0xc]
call fcn.00408548
dec ebp
test ebp, ebp
jg 0x4088d2
cmp edi, 0xffffffff
je 0x408951
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40894f
mov byte [esp], 0
jmp 0x408a11
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408896
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408951
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408a80
mov edx, eax
mov ebx, dword [0x50f8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4089b5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4089b3
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4089b5
xor edi, edi
cmp byte [esp], 0
je 0x4089db
mov ebx, dword [esi]
test bl, 1
jne 0x4089f1
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089bb
mov byte [esp + 1], 1
jmp 0x4089f1
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089db
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408968
cmp byte [esp], 0
je 0x408a11
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 0x409870
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50f058], 0
je 0x4098d7
cmp word [0x50f344], 0xd7b2
jne 0x409899
cmp dword [0x50f34c], 0
jbe 0x409899
mov eax, 0x50f340
call dword [0x50f35c]
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, 0x409904
call fcn.0040a3fc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x50b032], 0
jne 0x4098f3
push 0
push 0x50b9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409ad4
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 [0x50b034], 0
je 0x409aff
mov edx, edi
mov eax, esi
call dword [0x50b034]
mov ebx, eax
jmp 0x409b10
mov eax, 8
call fcn.00406df0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x50f059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409a9c
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 0x409b40
mov eax, ebx
call fcn.00406e0c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40c6e0
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 0x40c845
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409c14
cmp si, word [0x50ba00]
jb 0x40c778
cmp si, word [0x50bc00]
ja 0x40c778
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c778
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x50ba00]
jae 0x40c752
mov edi, ebx
dec edi
jmp 0x40c773
cmp si, word [ebx*8 + 0x50ba00]
jbe 0x40c762
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c773
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x50ba04]
call fcn.0040c600
jmp 0x40c778
cmp edi, dword [ebp - 8]
jae 0x40c73c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c827
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c827
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.0040a79c
push dword [ebp - 0x160]
push 0x40c860
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a79c
push dword [ebp - 0x164]
push 0x40c870
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a79c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a9d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c84c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409c74
ret
Function at 0x40c9f8
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 0x40cafc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x511b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x511ba0]
jne 0x40ca44
mov eax, esi
mov edx, 0x511ba2
mov ecx, 0x55
call fcn.0040a79c
push 0x511b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cae6
push 0x511b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409c14
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cab3
cmp byte [0x511b84], 0
je 0x40ca78
mov edx, esi
mov eax, ebx
call fcn.0040c8dc
jmp 0x40cab3
mov edx, esi
mov eax, ebx
call fcn.0040c6e0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cab3
cmp dword [esi], 0
je 0x40ca9c
mov eax, esi
mov edx, 0x40cb14
call fcn.0040a8f4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c6e0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a8f4
push 0x511b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x511ba0], bx
mov eax, dword [esi]
call fcn.0040a6f8
mov ecx, eax
mov eax, 0x511ba2
mov edx, 0xaa
call fcn.0040c560
push 0x511b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb03
lea eax, [ebp - 4]
call fcn.00409c14
ret
Function at 0x40cd2c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409cf8
xor eax, eax
push ebp
push 0x40cf51
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cd6c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40cd86
mov eax, dword [ebp - 4]
call fcn.0040a6f8
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c560
cmp word [ebp - 0x21a], 0
je 0x40cf3b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cf60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ce55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cf60
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ce55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cf9c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ce55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cf9c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ce55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cfd0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ce55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d004
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40cf3b
xor eax, eax
push ebp
push 0x40cf34
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040cb3c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cec4
mov eax, dword [ebp - 0x10]
call fcn.00406df0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a760
jmp 0x40cf0f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d044
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cf0f
mov eax, dword [ebp - 0x10]
call fcn.00406df0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40d044
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a760
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf3b
cmp dword [ebp - 8], 0
je 0x40cf2a
mov eax, dword [ebp - 8]
call fcn.00406e0c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf58
lea eax, [ebp - 4]
call fcn.00409c14
ret
Function at 0x40d240
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409cf8
xor eax, eax
push ebp
push 0x40d300
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a79c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a94c
mov eax, dword [ebx]
call fcn.0040d108
test al, al
jne 0x40d2dd
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a79c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a94c
mov eax, dword [ebx]
call fcn.0040d108
test al, al
jne 0x40d2dd
mov eax, ebx
call fcn.00409c14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d307
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409c74
lea eax, [ebp - 4]
call fcn.00409c14
ret

Function at 0x40ece0
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret