joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d9576
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004d9621
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4d95be
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004581c1
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004560b1
jmp 0x4d95c9
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004655bb
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x53bd1d
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0056c909
call fcn.00462ab4
cmp dword [eax + 0x14], 0
jne 0x53bd38
mov ecx, esi
pop esi
jmp fcn.0053b123
pop esi
ret

Function at 0x5484ca
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004057d0
call fcn.00462ab4
cmp dword [eax + 0x14], 0
jne 0x5484e5
mov ecx, esi
pop esi
jmp fcn.00547db3
pop esi
ret
Function at 0x5889e5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x628490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0057b26e
mov dword [ebp - 0x14], eax
cmp dword [0x635b88], esi
jne 0x588ad8
push 0x800
push esi
push 0x5f2f10
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x588a65
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x588bb8
push esi
push esi
push 0x5f2f10
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x588bb8
push 0x5f2f28
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x588bb8
push eax
call ebx
push 0x5f2f34
push edi
mov dword [0x635b88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5f2f44
push edi
mov dword [0x635b8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x635b90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x635b98], eax
test eax, eax
je 0x588ad5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x635b94], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x588afd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x588af0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x588b12
push 4
pop eax
jmp 0x588bba
cmp dword [ebp - 0x14], esi
je 0x588b12
push dword [0x635b88]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x588af7
mov eax, dword [0x635b94]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x588b70
cmp dword [0x635b98], edi
je 0x588b70
push eax
call ebx
push dword [0x635b98]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x588b70
test eax, eax
je 0x588b70
call ecx
test eax, eax
je 0x588b65
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x588b65
test byte [ebp - 8], 1
jne 0x588b70
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x588ba0
mov eax, dword [0x635b8c]
cmp eax, edi
je 0x588b9d
push eax
call ebx
test eax, eax
je 0x588b9d
call eax
mov esi, eax
test esi, esi
je 0x588b9d
mov eax, dword [0x635b90]
cmp eax, edi
je 0x588b9d
push eax
call ebx
test eax, eax
je 0x588b9d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x635b88]
call ebx
test eax, eax
je 0x588bb8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x588bba
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00570b94
mov esp, ebp
pop ebp
ret
Function at 0x59885d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0xa586a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x461000]
push edi
or ebp, 0xffffffff
jmp 0xa586c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa586c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa586b8
mov eax, 1
add ebx, ebx
jne 0xa586db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa586ec
jne 0xa5870b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa5870b
dec eax
add ebx, ebx
jne 0xa586f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa586d0
add ebx, ebx
jne 0xa58707
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa5875d
xor ecx, ecx
sub eax, 3
jb 0xa58723
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa58792
sar eax, 1
mov ebp, eax
jmp 0xa5872e
add ebx, ebx
jne 0xa5872e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa586fc
inc ecx
add ebx, ebx
jne 0xa5873c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa586fc
add ebx, ebx
jne 0xa58749
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa5873e
jne 0xa5875a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa5873e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa5877c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa5876e
jmp 0xa586be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa5877c
add edi, ecx
jmp 0xa586be
pop esi
mov edi, esi
mov ecx, 0x1be71
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa5879a
cmp byte [edi], 0x97
jne 0xa5879a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xa5879f
lea edi, [esi + 0x654000]
mov eax, dword [edi]
or eax, eax
je 0xa5880e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7db4b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7db5d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa587cc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7db5d4]
or eax, eax
je 0xa58808
mov dword [ebx], eax
add ebx, 4
jmp 0xa587e9
call dword [esi + 0x7db5e4]
mov ebp, dword [esi + 0x7db5d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xa58842
sub esp, 0xffffff80
jmp 0x7341c0
Function at 0x401c91
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f070]
jne 0x401c9b
repz ret
jmp fcn.00405607

Function at 0x4084f0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40f070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004041ae
and dword [ebp - 0x14], 0
cmp dword [0x4196dc], 0
mov dword [ebp - 0x18], eax
jne 0x4085a3
push 0x40d9dc
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40864b
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40864b
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4196dc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4196e0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4196e4], eax
call edi
push eax
call esi
mov dword [0x4196ec], eax
test eax, eax
je 0x4085a3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4196e8], eax
mov eax, dword [0x4196e8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x4085fc
cmp dword [0x4196ec], ecx
je 0x4085fc
push eax
call esi
push dword [0x4196ec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4085fc
test ebx, ebx
je 0x4085fc
call edi
test eax, eax
je 0x4085f3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4085f3
test byte [ebp - 8], 1
jne 0x4085fc
or dword [ebp + 0x10], 0x200000
jmp 0x40862f
mov eax, dword [0x4196e0]
cmp eax, dword [ebp - 0x18]
je 0x40862f
push eax
call esi
test eax, eax
je 0x40862f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40862f
mov eax, dword [0x4196e4]
cmp eax, dword [ebp - 0x18]
je 0x40862f
push eax
call esi
test eax, eax
je 0x40862f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4196dc]
call esi
test eax, eax
je 0x40864b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40864d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401c91
leave
ret
Function at 0x40716c
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.00409b88
test esi, esi
jne 0x4071a2
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.00409d10
jmp 0x4071c0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004070b0
mov edi, eax
test esi, esi
je 0x4071c0
cmp dword [ebx], 0
je 0x4071c0
dec esi
jmp 0x4071a9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4087a0
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.00408c2c
mov byte [esp], al
cmp byte [esp], 0
jne 0x408929
test edi, edi
je 0x408929
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408869
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408844
cmp edi, 0xffffffff
je 0x408805
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408805
mov byte [esp], 0
jmp 0x408929
cmp dword [esi], 1
jg 0x408844
cmp dword [esi], 0
jne 0x408836
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408836
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408929
lea eax, [esp + 0xc]
call fcn.0040845c
dec ebp
test ebp, ebp
jg 0x4087ea
cmp edi, 0xffffffff
je 0x408869
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408867
mov byte [esp], 0
jmp 0x408929
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4087ae
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408869
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408998
mov edx, eax
mov ebx, dword [0x4e18f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4088cd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4088cb
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4088cd
xor edi, edi
cmp byte [esp], 0
je 0x4088f3
mov ebx, dword [esi]
test bl, 1
jne 0x408909
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4088d3
mov byte [esp + 1], 1
jmp 0x408909
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4088f3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408880
cmp byte [esp], 0
je 0x408929
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 0x40956c
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4e3b98
cmp dword [ebp + 0xc], 2
jl 0x409580
mov ebx, 0x4e3bc8
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x4095b8
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4050cc
mov dword [0x4e101c], eax
mov eax, 0x4050d4
mov dword [0x4e1020], eax
mov eax, ebx
call fcn.00409450
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x4095ed
cmp al, 3
jge 0x4095ed
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4095fe
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x409609
call dword [ecx + eax*4]
cmp dword [0x4e1040], 0
jne 0x40961f
mov byte [0x4e1048], 1
fnstcw word [0x4dc028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.004098b8
call fcn.00409500
ret 4

Function at 0x409820
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e1058], 0
je 0x409887
cmp word [0x4e1344], 0xd7b2
jne 0x409849
cmp dword [0x4e134c], 0
jbe 0x409849
mov eax, 0x4e1340
call dword [0x4e135c]
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, 0x4098b4
call fcn.0040a360
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4dc032], 0
jne 0x4098a3
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409a48
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 [0x4dc034], 0
je 0x409a73
mov edx, edi
mov eax, esi
call dword [0x4dc034]
mov ebx, eax
jmp 0x409a84
mov eax, 8
call fcn.00406e0c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4e1059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409a10
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 0x409ab4
mov eax, ebx
call fcn.00406e28
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c564
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 0x40c6c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409b88
cmp si, word [0x4dca00]
jb 0x40c5fc
cmp si, word [0x4dcc00]
ja 0x40c5fc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c5fc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4dca00]
jae 0x40c5d6
mov edi, ebx
dec edi
jmp 0x40c5f7
cmp si, word [ebx*8 + 0x4dca00]
jbe 0x40c5e6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c5f7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4dca04]
call fcn.0040c484
jmp 0x40c5fc
cmp edi, dword [ebp - 8]
jae 0x40c5c0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c6ab
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c6ab
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.0040a700
push dword [ebp - 0x160]
push 0x40c6e4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a700
push dword [ebp - 0x164]
push 0x40c6f4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a700
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a938
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6d0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409be8
ret
Function at 0x40c87c
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 0x40c980
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e3c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4e3c28]
jne 0x40c8c8
mov eax, esi
mov edx, 0x4e3c2a
mov ecx, 0x55
call fcn.0040a700
push 0x4e3c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c96a
push 0x4e3c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409b88
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c937
cmp byte [0x4e3c0c], 0
je 0x40c8fc
mov edx, esi
mov eax, ebx
call fcn.0040c760
jmp 0x40c937
mov edx, esi
mov eax, ebx
call fcn.0040c564
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c937
cmp dword [esi], 0
je 0x40c920
mov eax, esi
mov edx, 0x40c998
call fcn.0040a858
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c564
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a858
push 0x4e3c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4e3c28], bx
mov eax, dword [esi]
call fcn.0040a65c
mov ecx, eax
mov eax, 0x4e3c2a
mov edx, 0xaa
call fcn.0040c3e4
push 0x4e3c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c987
lea eax, [ebp - 4]
call fcn.00409b88
ret
Function at 0x40cbb0
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.00409c6c
xor eax, eax
push ebp
push 0x40cdd5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cbf0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40cc0a
mov eax, dword [ebp - 4]
call fcn.0040a65c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c3e4
cmp word [ebp - 0x21a], 0
je 0x40cdbf
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cde4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ccd9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cde4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ccd9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ce20
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ccd9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ce20
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ccd9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ce54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ccd9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ce88
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40cdbf
xor eax, eax
push ebp
push 0x40cdb8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c9c0
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 0x40cd48
mov eax, dword [ebp - 0x10]
call fcn.00406e0c
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.0040a6c4
jmp 0x40cd93
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40cec8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cd93
mov eax, dword [ebp - 0x10]
call fcn.00406e0c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40cec8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a6c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cdbf
cmp dword [ebp - 8], 0
je 0x40cdae
mov eax, dword [ebp - 8]
call fcn.00406e28
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 0x40cddc
lea eax, [ebp - 4]
call fcn.00409b88
ret
Function at 0x40d0c4
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.00409c6c
xor eax, eax
push ebp
push 0x40d184
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.0040a700
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a8b0
mov eax, dword [ebx]
call fcn.0040cf8c
test al, al
jne 0x40d161
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a700
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a8b0
mov eax, dword [ebx]
call fcn.0040cf8c
test al, al
jne 0x40d161
mov eax, ebx
call fcn.00409b88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d18b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409be8
lea eax, [ebp - 4]
call fcn.00409b88
ret

Function at 0x40ec4c
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