joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001412b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10112029
call fcn.1011094d
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
xor eax, eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x41c], eax
push 0x60
push eax
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.kernel32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
push 2
pop eax
test edi, edi
jne 0x1001419c
push eax
push edi
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x1001419c
call fcn.10012a54
mov esi, eax
jmp 0x1001427e
push dword [ebp - 0x420]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100141bf
call fcn.10012a54
jmp 0x10014271
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x100141b5
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x100141e8
mov esi, 0x8007000e
jmp 0x10014273
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
test edx, edx
ja 0x100142ac
jb 0x10014203
cmp eax, 0xffffffff
ja 0x100142ac
cmp eax, 0x400
jbe 0x10014218
push eax
lea ecx, [ebp - 0x41c]
call fcn.10045db3
jmp 0x10014224
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x41c], 0
je 0x100141de
push esi
push dword [ebp - 0x41c]
push esi
push ebx
push 0
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100141b5
mov eax, dword [ebp - 0x41c]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x41c]
call fcn.10045db3
mov esi, eax
test edi, edi
je 0x1001427e
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x418]
cmp dword [ebp - 0x41c], eax
je 0x10014297
lea ecx, [ebp - 0x41c]
call fcn.10012a1c
lea ecx, [ebp - 0x428]
call fcn.10006b97
mov eax, esi
call fcn.101108ff
ret 0x10
push 0x80070216
call fcn.10045db3
int3

Function at 0x10016d8e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, 8
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
jne 0x10016dc0
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, ecx
jmp 0x10016dc2
xor eax, eax
pop ebp
ret 0xc
Function at 0x10017c58
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push pe_nt_image_headers32
mov eax, 0x1011241e
call fcn.1011094d
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov esi, edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x124], eax
test eax, eax
jle 0x10017c97
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.10045db3
mov esi, eax
mov dword [ebp - 0x11c], esi
test esi, esi
js 0x10017e37
cmp dword [ebx + 0xac], edi
je 0x10017caa
lea ecx, [ebx + 0xa8]
call fcn.10045db3
mov ecx, dword [ebp - 0x124]
cmp ecx, 0x64
jle 0x10017d58
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], edi
push 0xa5a9
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 2
call fcn.10045db3
push 0xa5aa
lea ecx, [ebp - 0x120]
call fcn.10045db3
push ecx
push dword [ebp - 0x11c]
lea ecx, [ebx + 0x30]
push dword [ebp - 0x120]
call fcn.10045db3
push dword [ebp - 0x120]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call ebx
push dword [ebp - 0x11c]
call ebx
mov esi, 0x80004005
mov dword [ebp - 0x11c], esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x10017d4e
cmp dword [ebp + 0xc], 0
jle 0x10017d46
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [eax + edi*4]
call esi
mov eax, dword [ebp + 8]
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x10017d32
mov esi, dword [ebp - 0x11c]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov eax, esi
call fcn.101108ff
ret 0xc
mov eax, edi
mov dword [ebp - 0x120], eax
test ecx, ecx
jle 0x10017d19
push eax
lea ecx, [ebp + 8]
call fcn.10045db3
lea ecx, [ebp - 0x118]
push dword [eax]
call fcn.10045db3
push dword [eax]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x10017d9f
push dword [ebp - 0x118]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
cmp esi, 0xffffffff
jne 0x10017dca
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
je 0x10017de4
cmp eax, 3
je 0x10017de4
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov dword [ebp - 0x11c], esi
jmp 0x10017de0
mov eax, esi
shr eax, 4
and eax, 1
mov dword [ebp - 0x128], eax
mov esi, edi
mov dword [ebp - 0x11c], edi
test esi, esi
js 0x10017e37
push dword [ebp - 0x120]
lea ecx, [ebp + 8]
call fcn.10045db3
mov ecx, ebx
cmp dword [ebp - 0x128], edi
jne 0x10017e06
push edi
push dword [eax]
call fcn.100180b3
jmp 0x10017e0d
push dword [eax]
call fcn.10018284
mov esi, eax
mov dword [ebp - 0x11c], esi
test esi, esi
js 0x10017e37
mov eax, dword [ebp - 0x120]
inc eax
mov dword [ebp - 0x120], eax
cmp eax, dword [ebp - 0x124]
jl 0x10017d64
jmp 0x10017d19
lea ecx, [ebx + 0xa8]
call fcn.10045db3
push dword [ebx + 0xbc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx + 0xbc], edi
jmp 0x10017d1f
Function at 0x10018284
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x370
mov eax, 0x10112487
call fcn.1011094d
mov dword [ebp - 0x37c], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
or dword [ebp - 0x374], 0xffffffff
mov esi, ebx
mov dword [ebp - 0x378], eax
mov dword [ebp - 0x370], esi
mov dword [ebp - 4], ebx
test eax, eax
je 0x1001849d
push 1
push eax
call fcn.100180b3
mov edi, eax
test edi, edi
js 0x1001848f
mov edi, dword [ebp - 0x378]
push edi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, 0x101
ja 0x1001849d
mov ecx, edi
call fcn.10006afa
push eax
push edi
lea ecx, [ebp - 0x370]
call fcn.10045db3
mov edi, eax
test edi, edi
js 0x10018489
push 2
push 0x1011c2b0
lea ecx, [ebp - 0x370]
call fcn.10045db3
mov edi, eax
test edi, edi
js 0x10018489
mov esi, dword [ebp - 0x370]
lea ecx, [ebp - 0x118]
push esi
call fcn.10045db3
lea ecx, [ebp - 0x368]
push ecx
push dword [eax]
call dword [sym.imp.kernel32.dll_FindFirstFileW]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x374], eax
cmp dword [ebp - 0x118], ecx
je 0x1001836a
push dword [ebp - 0x118]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x374]
pop ecx
cmp eax, 0xffffffff
je 0x100184a2
mov edx, 0x1011c2b8
lea ecx, [ebp - 0x33c]
movzx eax, byte [ecx]
cmp al, byte [edx]
jne 0x10018392
movzx eax, byte [ecx + 1]
cmp al, byte [edx + 1]
je 0x10018452
mov edx, 0x1011c2bc
lea ecx, [ebp - 0x33c]
movzx eax, byte [ecx]
cmp al, byte [edx]
jne 0x100183b1
movzx eax, byte [ecx + 1]
cmp al, byte [edx + 1]
je 0x10018452
push dword [ebp - 0x378]
lea ecx, [ebp - 0x36c]
call fcn.10045db3
push 1
push 0x101191cc
lea ecx, [ebp - 0x36c]
mov byte [ebp - 4], 1
call fcn.10045db3
mov edi, eax
test edi, edi
js 0x1001847b
lea ecx, [ebp - 0x33c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100183eb
sub ecx, edx
lea eax, [ebp - 0x33c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x36c]
call fcn.10045db3
mov edi, eax
test edi, edi
js 0x1001847b
test byte [ebp - 0x368], 0x10
mov eax, dword [ebp - 0x36c]
mov ecx, dword [ebp - 0x37c]
mov dword [ebp - 0x36c], ebx
je 0x10018436
push eax
call fcn.10018284
jmp 0x1001843d
push ebx
push eax
call fcn.100180b3
mov edi, eax
test edi, edi
js 0x1001847b
mov byte [ebp - 4], bl
push dword [ebp - 0x36c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x368]
push eax
push dword [ebp - 0x374]
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x10018373
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x12
cmovne edi, eax
jmp 0x1001848f
push dword [ebp - 0x36c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1001848f
mov esi, dword [ebp - 0x370]
push dword [ebp - 0x374]
call dword [sym.imp.kernel32.dll_FindClose]
jmp 0x100184a4
mov ebx, 0x80070057
mov edi, ebx
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
call fcn.101108ff
ret 4
Function at 0x1001f752
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x10
mov esi, ecx
push 1
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1001f794
push edi
push esi
call dword [sym.imp.kernel32.dll_SizeofResource]
test eax, eax
je 0x1001f794
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x1001f794
cmp word [eax + 2], 0
je 0x1001f794
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x1001f794
add eax, 0x30
jmp 0x1001f799
mov eax, 0x1011ec80
pop edi
pop esi
ret

Function at 0x10042ae4
Capabilities:
Hash data using djb2

Disassembly:
movzx eax, word [ecx]
mov edx, 0x1505
push esi
xor esi, esi
jmp 0x10042afe
imul edx, edx, 0x21
movzx eax, ax
xor edx, eax
inc esi
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x10042af1
imul eax, edx, 0x41c64e6d
imul ecx, edx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x10045201
Capabilities:
Hash data using djb2

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x1004520d
or eax, 0xffffffff
pop esi
ret
movzx eax, word [esi]
push ebx
push edi
mov edi, 0x1505
xor ebx, ebx
jmp 0x10045235
movzx ecx, ax
add eax, 0xffffffbf
cmp ax, 0x19
lea edx, [ecx + 0x20]
cmova edx, ecx
imul edi, edi, 0x21
xor edi, edx
inc ebx
movzx eax, word [esi + ebx*2]
test ax, ax
jne 0x1004521b
imul eax, edi, 0x41c64e6d
imul ecx, edi, 0x10dcd
pop edi
pop ebx
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x10053b70
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, edx
push edi
test ecx, ecx
je 0x10053bc6
test esi, esi
je 0x10053bc6
push 2
pop edx
call fcn.10045db3
mov edi, eax
test edi, edi
jne 0x10053b91
mov eax, 0x80004005
jmp 0x10053bcb
mov ecx, esi
call fcn.10006995
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push 0
push edi
call dword [sym.imp.advapi32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovle eax, esi
jmp 0x10053bcb
mov eax, 0x80070057
pop edi
pop esi
ret 4

Function at 0x10053bd0
Capabilities:
Delete registry key

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x10053be0
mov eax, 0x80070057
jmp 0x10053c24
call fcn.10045db3
mov edi, eax
test edi, edi
je 0x10053c21
push 0
call fcn.10053fa0
neg eax
sbb eax, eax
and eax, 0x100
push eax
push esi
push edi
call dword [sym.imp.advapi32.dll_RegDeleteKeyExW]
push edi
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp esi, 2
je 0x10053c21
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovle eax, esi
jmp 0x10053c24
xor eax, eax
inc eax
pop edi
pop esi
pop ecx
ret
Function at 0x10062739
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc0
mov eax, 0x10114a80
call fcn.1011094d
mov eax, dword [ebp - 0xc8]
xor ebx, ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc8], 0x101bb940
mov dword [0x101bb940], ebx
mov dword [0x101bb944], ebx
mov dword [0x101bb948], ebx
xor ecx, ecx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], ebx
push eax
inc ecx
push ecx
push ebx
push str.Control_PanelInternational
push SysReAllocString
mov dword [ebp - 0xcc], ecx
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100628b0
mov edi, dword [sym.imp.advapi32.dll_RegGetValueW]
lea eax, [ebp - 0xc0]
push eax
push ebx
push ebx
push 0x20000020
push str.Languages
push str.User_Profile
push dword [ebp - 0xc4]
mov dword [ebp - 0xc0], ebx
call edi
test eax, eax
jne 0x100628a4
cmp dword [ebp - 0xc0], 3
jbe 0x100628a4
push dword [ebp - 0xc0]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x100628a4
lea eax, [ebp - 0xc0]
push eax
push esi
push ebx
push 0x20
push str.Languages
push str.User_Profile
push dword [ebp - 0xc4]
call edi
test eax, eax
jne 0x1006289c
mov ebx, dword [ebp - 0xc0]
cmp ebx, 3
jbe 0x1006289c
xor edx, edx
shr ebx, 1
push edx
pop ecx
mov eax, edx
mov edi, edx
mov word [esi + ebx*2 - 2], cx
je 0x1006289c
jmp 0x10062847
cmp eax, ebx
jae 0x1006284d
inc eax
cmp word [esi + eax*2], dx
je 0x10062842
cmp word [esi + edi*2], dx
jne 0x10062897
cmp edi, eax
jbe 0x10062897
xor ecx, ecx
lea eax, [esi + eax*2]
mov word [ebp - 0xbc], cx
lea ecx, [ebp - 0xbc]
push 0x55
push ecx
push eax
call dword [sym.imp.kernel32.dll_ResolveLocaleName]
test eax, eax
je 0x10062892
cmp word [ebp - 0xbc], 0
je 0x10062892
lea eax, [ebp - 0xbc]
mov ecx, 0x101bb940
push eax
call fcn.10045db3
lea eax, [edi + 1]
xor edx, edx
inc edi
cmp edi, ebx
jb 0x10062847
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push dword [ebp - 0xc4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, 0x101bb940
call fcn.101108ff
ret 4
Function at 0x407024
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 0x407066
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 0x407086
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040a850
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x40727c
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.00409d08
test esi, esi
jne 0x4072b2
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.00409e90
jmp 0x4072d0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004071c0
mov edi, eax
test esi, esi
je 0x4072d0
cmp dword [ebx], 0
je 0x4072d0
dec esi
jmp 0x4072b9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x4089a0
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.00408e2c
mov byte [esp], al
cmp byte [esp], 0
jne 0x408b29
test edi, edi
je 0x408b29
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408a69
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408a44
cmp edi, 0xffffffff
je 0x408a05
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408a05
mov byte [esp], 0
jmp 0x408b29
cmp dword [esi], 1
jg 0x408a44
cmp dword [esi], 0
jne 0x408a36
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408a36
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408b29
lea eax, [esp + 0xc]
call fcn.0040865c
dec ebp
test ebp, ebp
jg 0x4089ea
cmp edi, 0xffffffff
je 0x408a69
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408a67
mov byte [esp], 0
jmp 0x408b29
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4089ae
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a69
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408b98
mov edx, eax
mov ebx, dword [0x5f48fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408acd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408acb
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408acd
xor edi, edi
cmp byte [esp], 0
je 0x408af3
mov ebx, dword [esi]
test bl, 1
jne 0x408b09
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408ad3
mov byte [esp + 1], 1
jmp 0x408b09
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408af3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408a80
cmp byte [esp], 0
je 0x408b29
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 0x4099a0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5f405c], 0
je 0x409a07
cmp word [0x5f4348], 0xd7b2
jne 0x4099c9
cmp dword [0x5f4350], 0
jbe 0x4099c9
mov eax, 0x5f4344
call dword [0x5f4360]
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, 0x409a34
call fcn.0040a4b0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5ee032], 0
jne 0x409a23
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409bc8
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 [0x5ee034], 0
je 0x409bf3
mov edx, edi
mov eax, esi
call dword [0x5ee034]
mov ebx, eax
jmp 0x409c04
mov eax, 8
call fcn.00406e80
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5f405d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409b90
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 0x409c34
mov eax, ebx
call fcn.00406e9c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40c8ac
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 0x40ca11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409d08
cmp si, word [0x5eea00]
jb 0x40c944
cmp si, word [0x5eec00]
ja 0x40c944
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c944
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5eea00]
jae 0x40c91e
mov edi, ebx
dec edi
jmp 0x40c93f
cmp si, word [ebx*8 + 0x5eea00]
jbe 0x40c92e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c93f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5eea04]
call fcn.0040c7cc
jmp 0x40c944
cmp edi, dword [ebp - 8]
jae 0x40c908
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c9f3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c9f3
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.0040a850
push dword [ebp - 0x160]
push 0x40ca2c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a850
push dword [ebp - 0x164]
push 0x40ca3c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a850
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040aa88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca18
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409d68
ret
Function at 0x40cbc4
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 0x40ccc8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5f6c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5f6c2c]
jne 0x40cc10
mov eax, esi
mov edx, 0x5f6c2e
mov ecx, 0x55
call fcn.0040a850
push 0x5f6c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40ccb2
push 0x5f6c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409d08
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cc7f
cmp byte [0x5f6c10], 0
je 0x40cc44
mov edx, esi
mov eax, ebx
call fcn.0040caa8
jmp 0x40cc7f
mov edx, esi
mov eax, ebx
call fcn.0040c8ac
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cc7f
cmp dword [esi], 0
je 0x40cc68
mov eax, esi
mov edx, 0x40cce0
call fcn.0040a9a8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c8ac
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a9a8
push 0x5f6c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5f6c2c], bx
mov eax, dword [esi]
call fcn.0040a7ac
mov ecx, eax
mov eax, 0x5f6c2e
mov edx, 0xaa
call fcn.0040c72c
push 0x5f6c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cccf
lea eax, [ebp - 4]
call fcn.00409d08
ret