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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x40779c
cmp dword [edi + 0x54], 0
jne 0x40779c
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00412480
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00407739
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40cd7d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40cdc4
call fcn.00412480
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40cdc4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40cde0
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040c8f5
mov esi, eax
test edi, edi
je 0x40cdde
test ebx, ebx
je 0x40cdde
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x416ba1
Capabilities:
Encode data using xor

Disassembly:
shl bh, cl
mov bl, cl
bswap eax
movzx eax, cx
test dl, al
dec cl
lea edx, [0xfffff1cc]
lea ebx, [0x17ceb32]
add edx, 0xe35
xor ch, 0xc9
mov bl, 0xf2
xadd ebp, edx
shrd edi, ebp, cl
sar ecx, 0xf8
test cl, cl
mov esi, ecx
shrd esi, ecx, cl
imul ebx, ecx, 0xbcddd5cb
mov dh, 0x47
sar ecx, cl
shrd eax, eax, cl
cmp ebp, 0x35
jl 0x416b96
neg ebx
xadd cl, cl
jmp 0x416bf5
xor ebx, ebx
sal esi, 1
push 0xe261f
test al, 0x9a
pop ecx
xadd dl, bh
mov ebx, 0xebe919f1
bts edx, 0xf6
imul edx, edi
bswap edx
sub eax, ecx
dec dh

Function at 0x41774b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43cf70]
jne 0x417755
repz ret
jmp fcn.004211fc
Function at 0x401040
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, edx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x48], edi
test dword [ebp + 0xc], esi
jne 0x4010b4
cmp esi, 1
jne 0x401089
mov eax, 0xfffffff5
push eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401910
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp esi, 2
setne al
lea eax, [eax*2 - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401910
mov esp, ebp
pop ebp
ret
push esi
push ecx
lea eax, [ebp - 0x44]
push str..pipe_jetbrains_ld__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x44]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0
push 0x80
push 3
push 0
mov ecx, 0x80000000
cmp esi, 4
push 0
mov eax, 0x40000000
cmove eax, ecx
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401167
test edi, edi
je 0x401167
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x40111f
push eax
push eax
push eax
push eax
push eax
push 0xfffffffffffffffe
jmp 0x401173
cmp esi, 1
jne 0x40112b
mov eax, 0xfffffff5
jmp 0x40113a
xor eax, eax
cmp esi, 2
setne al
lea eax, [eax*2 - 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
jne 0x40114f
push eax
push eax
push eax
push eax
push eax
push 0xfffffffffffffffd
jmp 0x401173
mov eax, dword [ebp - 0x48]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401910
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401910
mov esp, ebp
pop ebp
ret
Function at 0x4011a0
Capabilities:
Access the windows event log
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 8
push ecx
lea eax, [ebp - 0x48]
mov edi, edx
push str..pipe_jetbrains_ld__d
push eax
mov dword [ebp - 0x54], edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x48]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x50], ebx
cmp ebx, 0xffffffff
je 0x40128c
push 0x7fff
call fcn.0040523a
add esp, 4
mov dword [ebp - 0x4c], 0
mov esi, eax
lea eax, [ebp - 0x4c]
push 0
push eax
push 0x7fff
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x6d
je 0x401272
nop dword [eax]
cmp dword [ebp - 0x4c], 0
je 0x401272
test ebx, ebx
je 0x4012ca
push esi
call fcn.00403559
add esp, 4
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push 0
push eax
push 0x7fff
push esi
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x6d
jne 0x401230
push esi
call fcn.00405235
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00401910
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 1
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
push str.Error_opening_env_vars_pipe._Exit_code__ld
push 2
call fcn.00403634
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push esi
call fcn.00403280
push 0
push 0
push 0
push 0
push 0
push 0xfffffffffffffff1
push 0
push 1
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
push str.Failed_to_read_from_env_pipe:__ld
push 2
call fcn.00403634
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push 0xfffffffffffffff1
call fcn.00403280
int3
Function at 0x4019df
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x418e38
call fcn.004021f0
push 1
call fcn.00401d11
pop ecx
test al, al
jne 0x4019fe
push 7
call fcn.00402015
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00401cdc
mov byte [ebp - 0x24], al
mov eax, dword [0x41aacc]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4019f7
test eax, eax
jne 0x401a68
mov dword [0x41aacc], ecx
push 0x413174
push 0x41315c
call fcn.00405ca5
pop ecx
pop ecx
test eax, eax
je 0x401a4b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401b48
push 0x413158
push 0x413150
call fcn.00405c49
pop ecx
pop ecx
mov dword [0x41aacc], 2
jmp 0x401a6d
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00401e6b
pop ecx
call fcn.00402009
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x401a9d
push esi
call fcn.00401de1
pop ecx
test al, al
je 0x401a9d
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004021db
call esi
call fcn.0040200f
mov esi, eax
cmp dword [esi], edi
je 0x401abb
push esi
call fcn.00401de1
pop ecx
test al, al
je 0x401abb
push dword [esi]
call fcn.00403248
pop ecx
call fcn.00405d46
mov edi, eax
call fcn.00405d40
mov esi, eax
call fcn.00405c30
push eax
push dword [edi]
push dword [esi]
call main
add esp, 0xc
mov esi, eax
call fcn.00403157
test al, al
jne 0x401aec
push esi
call fcn.00403280
test bl, bl
jne 0x401af5
call fcn.00403223
push 0
push 1
call fcn.00401e88
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x401b48
call fcn.00402236
ret
call fcn.004b4000
jmp 0x4019df

Function at 0x40766e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00406fdc

Function at 0x407679
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00407217
Function at 0x1001d3b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1006e288]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x108]
push ecx
push 0x40
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1001d445
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x100
mov esi, eax
lea eax, [ebp - 0x104]
push eax
push 0x400
push esi
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x1001d425
push esi
push str.error_code__08x
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.1001cd70
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
push str.VirtualProtect:__s_n
push 2
call fcn.1002d93f
add esp, 4
push eax
call fcn.10005bc0
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10022ad9
mov esp, ebp
pop ebp
ret

Function at 0x10034f3c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10034db2

Function at 0x100389c7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10038644

Function at 0x1001408
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x100144b
push esi
lea ecx, [eax + 8]
call dword [sym.imp.ulib.dll_public:_class_WSTRING____thiscall_PATH::QueryFullPathString_void_const]
mov esi, eax
cmp esi, ebx
je 0x100144a
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1001442
cmp word [eax], bx
je 0x1001442
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001442
test ah, 0x10
je 0x1001442
mov bl, 1
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
pop esi
mov al, bl
pop ebx
ret 4
Function at 0x4073d8
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.0040a698
test esi, esi
jne 0x40740e
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.0040a830
jmp 0x40742c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004072b8
mov edi, eax
test esi, esi
je 0x40742c
cmp dword [ebx], 0
je 0x40742c
dec esi
jmp 0x407415
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408028
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x40803e
sub ecx, 2
jne 0x408060
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x408067
cmp edx, dword [ebx + 8]
je 0x408071
mov eax, 0x64
jmp 0x40806c
mov eax, 0x67
jmp 0x40806c
call sub.kernel32.dll_GetLastError
call fcn.00407178
pop ebx
ret
Function at 0x4092e0
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.004097a0
mov byte [esp], al
cmp byte [esp], 0
jne 0x409469
test edi, edi
je 0x409469
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4093a9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x409384
cmp edi, 0xffffffff
je 0x409345
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409345
mov byte [esp], 0
jmp 0x409469
cmp dword [esi], 1
jg 0x409384
cmp dword [esi], 0
jne 0x409376
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x409376
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x409469
lea eax, [esp + 0xc]
call fcn.00408f90
dec ebp
test ebp, ebp
jg 0x40932a
cmp edi, 0xffffffff
je 0x4093a9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4093a7
mov byte [esp], 0
jmp 0x409469
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4092ee
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4093a9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004094e4
mov edx, eax
mov ebx, dword [0x6058fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40940d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40940b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40940d
xor edi, edi
cmp byte [esp], 0
je 0x409433
mov ebx, dword [esi]
test bl, 1
jne 0x409449
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409413
mov byte [esp + 1], 1
jmp 0x409449
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409433
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4093c0
cmp byte [esp], 0
je 0x409469
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 0x40a330
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x60505c], 0
je 0x40a397
cmp word [0x605348], 0xd7b2
jne 0x40a359
cmp dword [0x605350], 0
jbe 0x40a359
mov eax, 0x605344
call dword [0x605360]
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, 0x40a3c4
call fcn.0040b088
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5fc032], 0
jne 0x40a3b3
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a558
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 [0x5fc034], 0
je 0x40a583
mov edx, edi
mov eax, esi
call dword [0x5fc034]
mov ebx, eax
jmp 0x40a594
mov eax, 8
call fcn.00406fe4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x60505d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a520
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 0x40a5c4
mov eax, ebx
call fcn.00407000
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40e2f4
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 0x40e45b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a698
cmp si, word [0x5fca30]
jb 0x40e38c
cmp si, word [0x5fcc30]
ja 0x40e38c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40e38c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5fca30]
jae 0x40e366
mov edi, ebx
dec edi
jmp 0x40e387
cmp si, word [ebx*8 + 0x5fca30]
jbe 0x40e376
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40e387
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5fca34]
call fcn.0040e210
jmp 0x40e38c
cmp edi, dword [ebp - 8]
jae 0x40e350
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40e43b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e43b
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.0040b578
push dword [ebp - 0x160]
push 0x40e478
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b578
push dword [ebp - 0x164]
push 0x40e488
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b578
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b7b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e462
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a6f8
pop eax
jmp eax
Function at 0x40e610
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 0x40e716
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x607c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x607c2c]
jne 0x40e65c
mov eax, esi
mov edx, 0x607c2e
mov ecx, 0x55
call fcn.0040b578
push 0x607c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e6fe
push 0x607c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a698
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e6cb
cmp byte [0x607c10], 0
je 0x40e690
mov edx, esi
mov eax, ebx
call fcn.0040e4f4
jmp 0x40e6cb
mov edx, esi
mov eax, ebx
call fcn.0040e2f4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e6cb
cmp dword [esi], 0
je 0x40e6b4
mov eax, esi
mov edx, 0x40e730
call fcn.0040b6d0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040e2f4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b6d0
push 0x607c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x607c2c], bx
mov eax, dword [esi]
call fcn.0040b4d8
mov ecx, eax
mov eax, 0x607c2e
mov edx, 0xaa
call fcn.0040e170
push 0x607c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e71d
lea eax, [ebp - 4]
call fcn.0040a698
pop eax
jmp eax
Function at 0x40e958
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a78c
xor eax, eax
push ebp
push 0x40eb80
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e99e
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e9b8
mov eax, dword [ebp - 4]
call fcn.0040b4d8
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040e170
cmp word [ebp - 0x21e], 0
je 0x40eb63
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40eb90
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ea87
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40eb90
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ea87
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ebcc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ea87
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ebcc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ea87
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ec00
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ea87
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ec34
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40eb63
xor eax, eax
push ebp
push 0x40eb5c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040e758
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40eaea
mov eax, dword [ebp - 0x14]
call fcn.00406fe4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040b53c
jmp 0x40eb35
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40ec74
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40eb35
mov eax, dword [ebp - 0x14]
call fcn.00406fe4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40ec74
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040b53c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb63
cmp dword [ebp - 0xc], 0
je 0x40eb50
mov eax, dword [ebp - 0xc]
call fcn.00407000
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb87
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a6f8
pop eax
jmp eax
Function at 0x40ee94
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.0040a78c
xor eax, eax
push ebp
push 0x40ef56
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.0040b578
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b728
mov eax, dword [ebx]
call fcn.0040ed3c
test al, al
jne 0x40ef31
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b578
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b728
mov eax, dword [ebx]
call fcn.0040ed3c
test al, al
jne 0x40ef31
mov eax, ebx
call fcn.0040a698
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ef5d
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a6f8
lea eax, [ebp - 4]
call fcn.0040a698
pop eax
jmp eax

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