joyce8/EMBER2024-capa huggingface dataset:
Function at 0x516020
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push eax
push ecx
push 1
call fcn.00517a10
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x516053
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, 0xf4240
mov dword [edx + 0x258], eax
mov ecx, dword [ebp - 4]
push 0x40
mov dword [ecx + 0x25c], eax
push fcn.004fcf74
mov edx, dword [ebp - 4]
push edx
call fcn.005143d0
push esi
push eax
call fcn.004fcff0
add esp, 0x14
test eax, eax
je 0x51608f
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00517c30
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00514490
mov edi, dword [ebp + 8]
add esp, 0x20
cmp edi, esi
mov ebx, 0x20000
je 0x5160f9
push 0
call fcn.00514bc0
mov dl, byte [esi + edi]
mov cl, byte [eax + esi]
add esp, 4
cmp dl, cl
je 0x5160e7
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x70]
or ecx, ebx
mov dword [eax + 0x70], ecx
push 0
call fcn.00514bc0
mov al, byte [eax + esi]
add esp, 4
inc esi
test al, al
jne 0x5160c8
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x70]
test ebx, eax
je 0x516171
test edi, edi
je 0x51616a
mov bl, byte [edi]
push 0
call fcn.00514bc0
mov cl, byte [eax]
add esp, 4
cmp bl, cl
jne 0x51613d
cmp bl, 0x31
jne 0x516132
push 0
call fcn.00514bc0
mov dl, byte [edi + 2]
mov cl, byte [eax + 2]
add esp, 4
cmp dl, cl
jne 0x51613d
cmp byte [edi], 0x30
jne 0x516171
cmp byte [edi + 2], 0x39
jge 0x516171
test edi, edi
je 0x51616a
push 0
call fcn.00514bc0
push eax
push edi
push str.Application_built_with_libpng__.20s_but_running_with__.20s
lea eax, [ebp - 0x58]
push 0x50
push eax
call fcn.004fd2d8
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.005141f0
add esp, 0x20
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
mov eax, dword [ebp - 8]
test eax, eax
jne 0x5161bf
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xb4]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00517c00
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xb0]
test eax, eax
jne 0x5161b8
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
test eax, eax
je 0x5161fc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb0]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00517bb0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
push ecx
mov dword [eax + 0xb0], 0
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00517ab0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00517990
mov edx, dword [ebp - 4]
push edx
call fcn.00516720
add esp, 0x14
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5232e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x523310
push esi
call fcn.005237e0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x523309
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x523393
mov eax, dword [esi + 0x1a0]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x52337f
mov eax, dword [esi + 8]
test eax, eax
je 0x523334
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1a0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x52337b
cmp eax, 2
je 0x52337f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x523327
cmp eax, 3
je 0x52335a
cmp eax, 1
jne 0x523327
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x523327
mov edx, dword [esi + 0x120]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x523327
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.005233c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x5233b3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.005233c0
add esp, 4
pop esi
ret
Function at 0x5521bb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5521f3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00554f45
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00554f1c
jmp 0x5521ff
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x552203
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x657c20
mov ecx, edi
call fcn.00554c1e
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x552256
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x552269
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.00554f45
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00554f1c
jmp 0x552269
mov ecx, esi
call fcn.005543ce
test eax, eax
je 0x552269
push edi
mov ecx, eax
call fcn.005521bb
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x553b46
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x553b88
call fcn.00565de0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x553b88
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x553b7f
xor eax, eax
jmp 0x553b90
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00553b96
pop edi
pop esi
pop ebx
ret 4
Function at 0x566397
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.00565de0
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5663d4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5663d4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x5663d8
xor eax, eax
jmp 0x566456
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.005512d6
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x566410
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x5663fa
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00566547
push ebx
mov edi, eax
call fcn.005512ff
test edi, edi
pop ecx
je 0x566452
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00566310
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0056645b
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a7004]
jne 0x401010
repz ret
jmp fcn.00401562

Function at 0x409246
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.00405eb4
and dword [ebp - 4], 0
cmp dword [0x4a97a0], 0
mov ebx, eax
jne 0x4092f7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4093a8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4093a8
push eax
call fcn.00405e42
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4a97a0], eax
call esi
push eax
call fcn.00405e42
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a97a4], eax
call esi
push eax
call fcn.00405e42
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a97a8], eax
call esi
push eax
call fcn.00405e42
pop ecx
mov dword [0x4a97b0], eax
test eax, eax
je 0x4092f7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405e42
pop ecx
mov dword [0x4a97ac], eax
mov eax, dword [0x4a97ac]
cmp eax, ebx
je 0x40934f
cmp dword [0x4a97b0], ebx
je 0x40934f
push eax
call fcn.00405ebd
push dword [0x4a97b0]
mov esi, eax
call fcn.00405ebd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40934f
test edi, edi
je 0x40934f
call esi
test eax, eax
je 0x409346
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409346
test byte [ebp - 0xc], 1
jne 0x40934f
or dword [ebp + 0x10], 0x200000
jmp 0x409388
mov eax, dword [0x4a97a4]
cmp eax, ebx
je 0x409388
push eax
call fcn.00405ebd
pop ecx
test eax, eax
je 0x409388
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409388
mov eax, dword [0x4a97a8]
cmp eax, ebx
je 0x409388
push eax
call fcn.00405ebd
pop ecx
test eax, eax
je 0x409388
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a97a0]
call fcn.00405ebd
pop ecx
test eax, eax
je 0x4093a8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4093aa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407328
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.00409f5c
test esi, esi
jne 0x40735e
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.0040a0f4
jmp 0x40737c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407208
mov edi, eax
test esi, esi
je 0x40737c
cmp dword [ebx], 0
je 0x40737c
dec esi
jmp 0x407365
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408ba4
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.00409064
mov byte [esp], al
cmp byte [esp], 0
jne 0x408d2d
test edi, edi
je 0x408d2d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408c6d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408c48
cmp edi, 0xffffffff
je 0x408c09
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408c09
mov byte [esp], 0
jmp 0x408d2d
cmp dword [esi], 1
jg 0x408c48
cmp dword [esi], 0
jne 0x408c3a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408c3a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408d2d
lea eax, [esp + 0xc]
call fcn.00408854
dec ebp
test ebp, ebp
jg 0x408bee
cmp edi, 0xffffffff
je 0x408c6d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408c6b
mov byte [esp], 0
jmp 0x408d2d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408bb2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408c6d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408da8
mov edx, eax
mov ebx, dword [0x4df8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408cd1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408ccf
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408cd1
xor edi, edi
cmp byte [esp], 0
je 0x408cf7
mov ebx, dword [esi]
test bl, 1
jne 0x408d0d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408cd7
mov byte [esp + 1], 1
jmp 0x408d0d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408cf7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408c84
cmp byte [esp], 0
je 0x408d2d
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 0x409bf4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4df058], 0
je 0x409c5b
cmp word [0x4df344], 0xd7b2
jne 0x409c1d
cmp dword [0x4df34c], 0
jbe 0x409c1d
mov eax, 0x4df340
call dword [0x4df35c]
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, 0x409c88
call fcn.0040a774
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4db036], 0
jne 0x409c77
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409e1c
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 [0x4db038], 0
je 0x409e47
mov edx, edi
mov eax, esi
call dword [0x4db038]
mov ebx, eax
jmp 0x409e58
mov eax, 8
call fcn.00406f40
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4df059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409de4
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 0x409e88
mov eax, ebx
call fcn.00406f5c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40d540
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 0x40d6a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409f5c
cmp si, word [0x4dba10]
jb 0x40d5d8
cmp si, word [0x4dbc10]
ja 0x40d5d8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d5d8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4dba10]
jae 0x40d5b2
mov edi, ebx
dec edi
jmp 0x40d5d3
cmp si, word [ebx*8 + 0x4dba10]
jbe 0x40d5c2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d5d3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4dba14]
call fcn.0040d45c
jmp 0x40d5d8
cmp edi, dword [ebp - 8]
jae 0x40d59c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d687
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d687
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.0040aa5c
push dword [ebp - 0x160]
push 0x40d6c4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040aa5c
push dword [ebp - 0x164]
push 0x40d6d4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040aa5c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ac94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d6ae
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409fbc
pop eax
jmp eax
Function at 0x40d85c
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 0x40d962
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e1c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4e1c28]
jne 0x40d8a8
mov eax, esi
mov edx, 0x4e1c2a
mov ecx, 0x55
call fcn.0040aa5c
push 0x4e1c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d94a
push 0x4e1c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409f5c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d917
cmp byte [0x4e1c0c], 0
je 0x40d8dc
mov edx, esi
mov eax, ebx
call fcn.0040d740
jmp 0x40d917
mov edx, esi
mov eax, ebx
call fcn.0040d540
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d917
cmp dword [esi], 0
je 0x40d900
mov eax, esi
mov edx, 0x40d97c
call fcn.0040abb4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d540
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040abb4
push 0x4e1c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4e1c28], bx
mov eax, dword [esi]
call fcn.0040a9c0
mov ecx, eax
mov eax, 0x4e1c2a
mov edx, 0xaa
call fcn.0040d3bc
push 0x4e1c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d969
lea eax, [ebp - 4]
call fcn.00409f5c
pop eax
jmp eax
Function at 0x40dba4
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.0040a050
xor eax, eax
push ebp
push 0x40ddcc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40dbea
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40dc04
mov eax, dword [ebp - 4]
call fcn.0040a9c0
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d3bc
cmp word [ebp - 0x21e], 0
je 0x40ddaf
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40dddc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40dcd3
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40dddc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40dcd3
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40de18
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40dcd3
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40de18
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40dcd3
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40de4c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40dcd3
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40de80
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40ddaf
xor eax, eax
push ebp
push 0x40dda8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040d9a4
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 0x40dd36
mov eax, dword [ebp - 0x14]
call fcn.00406f40
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.0040aa20
jmp 0x40dd81
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40dec0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40dd81
mov eax, dword [ebp - 0x14]
call fcn.00406f40
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40dec0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040aa20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ddaf
cmp dword [ebp - 0xc], 0
je 0x40dd9c
mov eax, dword [ebp - 0xc]
call fcn.00406f5c
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 0x40ddd3
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409fbc
pop eax
jmp eax
Function at 0x40e0e0
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.0040a050
xor eax, eax
push ebp
push 0x40e1a2
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.0040aa5c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ac0c
mov eax, dword [ebx]
call fcn.0040df88
test al, al
jne 0x40e17d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040aa5c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ac0c
mov eax, dword [ebx]
call fcn.0040df88
test al, al
jne 0x40e17d
mov eax, ebx
call fcn.00409f5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e1a9
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409fbc
lea eax, [ebp - 4]
call fcn.00409f5c
pop eax
jmp eax

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