joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push str.mbarun.exe
call fcn.00401660
add esp, 4
movzx eax, al
test eax, eax
je 0x401974
push 0xffffffffffffffff
call fcn.004074cd
push str.read
push 4
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 9
jne 0x40198d
push 0xffffffffffffffff
call fcn.004074cd
call fcn.004017d0
call fcn.00401140
push 0x19600
push section..data
call fcn.00401220
add esp, 8
push section..data
call fcn.00401380
add esp, 4
xor eax, eax
pop ebp
ret

Function at 0x404631
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404670
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404670
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404670
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404670
cmp dword [ecx + 0x74], 0xe
jbe 0x404670
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40ae80
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418da8
push 0x418da0
push str.FlsAlloc
push 0x1f
call fcn.0040ad3f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40aeb4
push dword [ebp + 8]
mov ecx, esi
call dword [0x417150]
call esi
jmp 0x40aeba
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40aefe
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418db8
push 0x418db0
push str.FlsGetValue
push 0x21
call fcn.0040ad3f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40af35
push dword [ebp + 8]
mov ecx, esi
call dword [0x417150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40af3d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418dc0
push 0x418db8
push str.FlsSetValue
push 0x22
call fcn.0040ad3f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40af77
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x417150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40de4b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40dee8
push ebx
push esi
call fcn.0040de14
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040dda8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40de95
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40dee7
push edi
push eax
call fcn.0040a9c5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40deb5
call fcn.0040a98b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40dee6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040dda8
add esp, 0x20
test eax, eax
jne 0x40ded4
push edi
call fcn.0040a98b
jmp 0x40dedc
push ebx
call fcn.0040a98b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x415e20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x415e4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415e4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40eb1b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407df2
and dword [ebp - 4], 0
cmp dword [0x435b34], 0
mov ebx, eax
jne 0x40ebcc
push 0x402c6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ec7d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c60
push edi
call esi
test eax, eax
je 0x40ec7d
push eax
call fcn.00407d80
mov dword [esp], 0x402c50
push edi
mov dword [0x435b34], eax
call esi
push eax
call fcn.00407d80
mov dword [esp], 0x402c3c
push edi
mov dword [0x435b38], eax
call esi
push eax
call fcn.00407d80
mov dword [esp], 0x402c20
push edi
mov dword [0x435b3c], eax
call esi
push eax
call fcn.00407d80
pop ecx
mov dword [0x435b44], eax
test eax, eax
je 0x40ebcc
push 0x402c08
push edi
call esi
push eax
call fcn.00407d80
pop ecx
mov dword [0x435b40], eax
mov eax, dword [0x435b40]
cmp eax, ebx
je 0x40ec24
cmp dword [0x435b44], ebx
je 0x40ec24
push eax
call fcn.00407dfb
push dword [0x435b44]
mov esi, eax
call fcn.00407dfb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ec24
test edi, edi
je 0x40ec24
call esi
test eax, eax
je 0x40ec1b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ec1b
test byte [ebp - 0xc], 1
jne 0x40ec24
or dword [ebp + 0x10], 0x200000
jmp 0x40ec5d
mov eax, dword [0x435b38]
cmp eax, ebx
je 0x40ec5d
push eax
call fcn.00407dfb
pop ecx
test eax, eax
je 0x40ec5d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ec5d
mov eax, dword [0x435b3c]
cmp eax, ebx
je 0x40ec5d
push eax
call fcn.00407dfb
pop ecx
test eax, eax
je 0x40ec5d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x435b34]
call fcn.00407dfb
pop ecx
test eax, eax
je 0x40ec7d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ec7f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
invalid
invalid
Function at 0x4063d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42d7db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4042dc
call fcn.004075bb
push 4
mov dword [esp + 0x18], 0
call fcn.004085a8
mov edi, eax
add esp, 4
test edi, edi
je 0x406444
push ebx
call fcn.004073b6
mov dword [edi], eax
call fcn.00407175
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.0040757c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406438
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004075a4
pop ebx
jmp 0x406446
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40917b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430354]
jne 0x409185
repz ret
jmp fcn.0040d41c
Function at 0x428490
Capabilities:
Accept command line arguments
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7b9804]
sub esp, 0x97c
push ebx
push ebp
push esi
shr eax, 3
xor ebx, ebx
push edi
mov edi, dword [0x7b976c]
cmp eax, ebx
jbe 0x42868e
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
jmp 0x4284c6
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [0x7b9804], 0x1c
jne 0x4284dd
lea eax, [esp + 0x40]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov ecx, dword [edi + 4]
mov edx, dword [0x4312d0]
mov eax, dword [0x4312d4]
mov esi, dword [edi]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x4312d8]
mov dword [esp + 0x28], edx
mov edx, dword [0x4312dc]
mov edi, 0xc6ef3720
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov ebp, 0x20
jmp 0x428522
xor ebx, ebx
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x30]
mov eax, esi
shr eax, 5
add eax, dword [esp + 0x2c]
lea edx, [edi + esi]
xor ecx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov dword [0x7b9770], ebx
mov eax, dword [esp + 0x18]
add dword [0x7b9770], eax
mov eax, dword [0x7b9770]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x24]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, eax
shl ecx, 4
add ecx, dword [esp + 0x28]
cmp dword [0x7b9804], 0x1be
mov dword [esp + 0x10], ecx
lea ebx, [edi + eax]
jne 0x4285f7
push 0
lea edx, [esp + 0x18c]
push edx
push 0
push 0x403f10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
xor eax, eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
shr eax, 5
add eax, dword [esp + 0x34]
xor ecx, ebx
mov dword [0x7b9778], 0xff6b3619
mov dword [0x7b977c], 0xffffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
sub esi, dword [esp + 0x10]
add edi, 0x61c88647
dec ebp
jne 0x428520
cmp dword [0x7b9804], 0x8d4
jne 0x428647
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], edx
cmp dword [0x7b9804], 0x17
jne 0x42867d
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea eax, [esp + 0x48]
push eax
push 0x403ef4
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add edi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x1c], edi
jne 0x4284c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x97c
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.00409c0c
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.00409d94
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 0x4071f4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x7af008], 0x8088405
inc edx
mov dword [ebx + 0x7af008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x408868
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.00408cf4
mov byte [esp], al
cmp byte [esp], 0
jne 0x4089f1
test edi, edi
je 0x4089f1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408931
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40890c
cmp edi, 0xffffffff
je 0x4088cd
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4088cd
mov byte [esp], 0
jmp 0x4089f1
cmp dword [esi], 1
jg 0x40890c
cmp dword [esi], 0
jne 0x4088fe
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4088fe
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4089f1
lea eax, [esp + 0xc]
call fcn.00408524
dec ebp
test ebp, ebp
jg 0x4088b2
cmp edi, 0xffffffff
je 0x408931
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40892f
mov byte [esp], 0
jmp 0x4089f1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408876
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408931
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408a60
mov edx, eax
mov ebx, dword [0x7b78f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408995
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408993
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408995
xor edi, edi
cmp byte [esp], 0
je 0x4089bb
mov ebx, dword [esi]
test bl, 1
jne 0x4089d1
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40899b
mov byte [esp + 1], 1
jmp 0x4089d1
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089bb
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408948
cmp byte [esp], 0
je 0x4089f1
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 0x409868
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x7b7058], 0
je 0x4098cf
cmp word [0x7b7344], 0xd7b2
jne 0x409891
cmp dword [0x7b734c], 0
jbe 0x409891
mov eax, 0x7b7340
call dword [0x7b735c]
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, 0x4098fc
call fcn.0040a594
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x7af032], 0
jne 0x4098eb
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409acc
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 [0x7af034], 0
je 0x409af7
mov edx, edi
mov eax, esi
call dword [0x7af034]
mov ebx, eax
jmp 0x409b08
mov eax, 8
call fcn.00406e0c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x7b7059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409a94
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 0x409b38
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 0x40c90c
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 0x40ca71
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409c0c
cmp si, word [0x7afa00]
jb 0x40c9a4
cmp si, word [0x7afc00]
ja 0x40c9a4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c9a4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x7afa00]
jae 0x40c97e
mov edi, ebx
dec edi
jmp 0x40c99f
cmp si, word [ebx*8 + 0x7afa00]
jbe 0x40c98e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c99f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x7afa04]
call fcn.0040c82c
jmp 0x40c9a4
cmp edi, dword [ebp - 8]
jae 0x40c968
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40ca53
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ca53
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.0040a998
push dword [ebp - 0x160]
push 0x40ca8c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a998
push dword [ebp - 0x164]
push 0x40ca9c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a998
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040abd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca78
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409c6c
ret
Function at 0x40cc24
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 0x40cd28
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7b9c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x7b9c28]
jne 0x40cc70
mov eax, esi
mov edx, 0x7b9c2a
mov ecx, 0x55
call fcn.0040a998
push 0x7b9c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cd12
push 0x7b9c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409c0c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ccdf
cmp byte [0x7b9c0c], 0
je 0x40cca4
mov edx, esi
mov eax, ebx
call fcn.0040cb08
jmp 0x40ccdf
mov edx, esi
mov eax, ebx
call fcn.0040c90c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40ccdf
cmp dword [esi], 0
je 0x40ccc8
mov eax, esi
mov edx, 0x40cd40
call fcn.0040aaf0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c90c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040aaf0
push 0x7b9c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x7b9c28], bx
mov eax, dword [esi]
call fcn.0040a8f4
mov ecx, eax
mov eax, 0x7b9c2a
mov edx, 0xaa
call fcn.0040c78c
push 0x7b9c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd2f
lea eax, [ebp - 4]
call fcn.00409c0c
ret
Function at 0x40cf58
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.00409cf0
xor eax, eax
push ebp
push 0x40d17d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cf98
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40cfb2
mov eax, dword [ebp - 4]
call fcn.0040a8f4
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c78c
cmp word [ebp - 0x21a], 0
je 0x40d167
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d18c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d081
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d18c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d081
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d1c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d081
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d1c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d081
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d1fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d081
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d230
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40d167
xor eax, eax
push ebp
push 0x40d160
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040cd68
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 0x40d0f0
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.0040a95c
jmp 0x40d13b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d270
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40d13b
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 0x40d270
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a95c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d167
cmp dword [ebp - 8], 0
je 0x40d156
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 0x40d184
lea eax, [ebp - 4]
call fcn.00409c0c
ret
Function at 0x40d46c
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.00409cf0
xor eax, eax
push ebp
push 0x40d52c
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.0040a998
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ab48
mov eax, dword [ebx]
call fcn.0040d334
test al, al
jne 0x40d509
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a998
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ab48
mov eax, dword [ebx]
call fcn.0040d334
test al, al
jne 0x40d509
mov eax, ebx
call fcn.00409c0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d533
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409c6c
lea eax, [ebp - 4]
call fcn.00409c0c
ret

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