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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x100ba4f0]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov eax, 0x100
cmp ebx, eax
ja 0x1008384d
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x1008384d
push edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10083855
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10043e9e
leave
ret 8

Function at 0x10083e0e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100ba4f0]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
mov esi, ecx
cmp dword [esi + 0x50], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
je 0x10083e5f
push edi
call fcn.10089456
mov esi, eax
test esi, esi
je 0x10083e83
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x10083e83
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x100913f8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10043e9e
leave
ret 0xc

Function at 0x100870e3
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x100ba4f0]
xor eax, ebp
cmp dword [ebp + 8], 0x800
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x11c]
jne 0x10087116
push 0x10095a8c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10087128
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1008715d
lea eax, [ebp - 0x11c]
push eax
push esi
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.10045dbe
add esp, 0x10
cmp eax, 0xffffffff
je 0x1008715d
cmp eax, esi
jae 0x1008715d
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x1008715f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10043e9e
leave
ret
Function at 0x10087367
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x100b9534
je 0x10087423
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1008740b
mov esi, dword [ebx + 4]
jmp 0x10087405
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100873f5
cmp dword [ebp - 0xc], 4
jne 0x100873f5
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x100873ed
or dword [eax + 0x9c], ecx
jmp 0x100873f5
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x100873b9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x1008739c
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x10087b52
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x1008eb52
call fcn.100474fc
sub esp, 0x124
mov eax, dword [0x100ba4f0]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x124]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push edx
push eax
push ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x10087c60
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x10087c34
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.1000b0b0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.10087b52
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.10001260
test bl, bl
jne 0x10087c34
or dword [ebp - 4], 0xffffffff
jmp 0x10087b9f
cmp esi, 0x103
je 0x10087c44
cmp esi, 0x3f2
jne 0x10087c54
push dword [edi]
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10043e9e
leave
ret 8
Function at 0x10088a5b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x10088a90
cmp edi, dword [esi + 0xc]
jge 0x10088a90
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10088a90
cmp edi, dword [eax + 8]
jge 0x10088a90
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x10088a92
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x10088bef
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x10088c23
jmp fcn.10077e13
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x10088c94
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x10088d8d
cmp eax, dword [edi + 0xc]
jge 0x10088d8d
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x10088ce5
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x10088d76
cmp dword [ebp + 0xc], ebx
je 0x10088d76
jmp 0x10088d0f
push 0x10
call fcn.10088927
cmp eax, ebx
je 0x10088cfb
mov ecx, eax
call fcn.10088be6
mov esi, eax
jmp 0x10088cfd
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x10088d26
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x10088d36
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x10088d48
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.10077e13
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.10047710
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x10088d88
cmp ecx, dword [esi + 8]
jge 0x10088d88
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x10088d8e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1008bb9b
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x1008ebd9
call fcn.100474fc
sub esp, 0x198
mov eax, dword [0x100ba4f0]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, ebp
push 0x10087f85
mov ecx, 0x100c53e8
mov dword [ebp - 0x10], eax
call fcn.10088afb
mov edi, eax
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jne 0x1008bbff
cmp esi, ebx
jne 0x1008bbdd
lea esi, [ebp - 0x1a0]
push esi
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
jne 0x1008bc31
cmp byte [esi], 1
jne 0x1008bc2b
cmp byte [esi + 1], 1
jne 0x1008bc2b
mov dword [edi + 0xc], 0x1008bb68
call fcn.10087b0a
mov esi, eax
cmp dword [esi + 0x30], ebx
jne 0x1008bc3e
push 0x1c
call fcn.1007888b
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x1008bc35
push 0xa
call fcn.100786e9
jmp 0x1008bc37
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x1008bca1
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x30], eax
cmp dword [esi + 0x34], ebx
jne 0x1008bc70
push 0x1c
call fcn.1007888b
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], 1
je 0x1008bc67
push 0xa
call fcn.100786e9
jmp 0x1008bc69
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x34], eax
cmp dword [esi + 0x38], ebx
jne 0x1008bc9e
push 0x1c
call fcn.1007888b
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], 2
je 0x1008bc99
push 0xa
call fcn.100781f1
jmp 0x1008bc9b
xor eax, eax
mov dword [esi + 0x38], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.10043e9e
leave
ret 4
Function at 0x101ce3a0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x101ce57e
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd8000]
push edi
or ebp, 0xffffffff
jmp 0x101ce3ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x101ce3d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101ce3c0
mov eax, 1
add ebx, ebx
jne 0x101ce3e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x101ce3f4
jne 0x101ce413
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101ce413
dec eax
add ebx, ebx
jne 0x101ce400
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x101ce3d8
add ebx, ebx
jne 0x101ce40f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x101ce465
xor ecx, ecx
sub eax, 3
jb 0x101ce42b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x101ce49a
sar eax, 1
mov ebp, eax
jmp 0x101ce436
add ebx, ebx
jne 0x101ce436
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101ce404
inc ecx
add ebx, ebx
jne 0x101ce444
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101ce404
add ebx, ebx
jne 0x101ce451
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x101ce446
jne 0x101ce462
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x101ce446
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x101ce484
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x101ce476
jmp 0x101ce3c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x101ce484
add edi, ecx
jmp 0x101ce3c6
pop esi
mov edi, esi
mov ecx, 0xe0b99
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x101ce4bf
cmp byte [edi], 0x86
jne 0x101ce4a4
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x101ce4a2
lea edi, [esi + 0x1c5000]
mov eax, dword [edi]
or eax, eax
je 0x101ce510
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d8334]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d8460]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x101ce4c5
mov ecx, edi
jns 0x101ce4f4
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d8464]
or eax, eax
je 0x101ce50a
mov dword [ebx], eax
add ebx, 4
jmp 0x101ce4e2
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x101ce541
cmp al, 0xef
ja 0x101ce534
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x101ce516
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x101ce523
mov ebp, dword [esi + 0x1d8468]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x257]
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 0x101ce575
sub esp, 0xffffff80
jmp 0x100ab035
Function at 0x40455c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406a28
test esi, esi
jne 0x404594
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.00406b64
jmp 0x4045b2
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044a0
mov edi, eax
test esi, esi
je 0x4045b2
cmp dword [ebx], 0
je 0x4045b2
dec esi
jmp 0x40459b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405ddc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4df050], 0
je 0x405e3d
cmp word [0x4df32c], 0xd7b2
jne 0x405e05
cmp dword [0x4df334], 0
jbe 0x405e05
mov eax, 0x4df328
call dword [0x4df344]
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
push 0x405e68
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4db030], 0
jne 0x405e59
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fe8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4db034], 0
je 0x40600e
mov edx, esi
mov eax, ebx
call dword [0x4db034]
jmp 0x40601d
mov eax, 8
call fcn.004041e8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4df051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405fb0
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4087f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40895f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406a28
cmp si, word [0x4db7dc]
jb 0x408892
cmp si, word [0x4db9dc]
ja 0x408892
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408892
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4db7dc]
jae 0x40886c
mov edi, ebx
dec edi
jmp 0x40888d
cmp si, word [ebx*8 + 0x4db7dc]
jbe 0x40887c
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x40888d
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4db7e0]
call fcn.00408708
jmp 0x408892
cmp edi, dword [ebp - 0xc]
jae 0x408856
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408941
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408941
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406c10
push dword [ebp - 0x164]
push 0x40897c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406c10
push dword [ebp - 0x168]
push 0x40898c
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406c10
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406fc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408966
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406a20
ret
Function at 0x408b18
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 0x408c1d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e1b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4e1b70]
jne 0x408b64
mov eax, esi
mov edx, 0x4e1b74
mov ecx, 0x55
call fcn.00406c10
push 0x4e1b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408c07
push 0x4e1b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406a28
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408bd5
cmp byte [0x4e1b54], 0
je 0x408b9a
mov edx, esi
mov eax, ebx
call fcn.004089f8
jmp 0x408bd5
mov edx, esi
mov eax, ebx
call fcn.004087f8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408bd5
cmp dword [esi], 0
je 0x408bbe
mov eax, esi
mov edx, 0x408c38
call fcn.00406e24
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004087f8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406e24
push 0x4e1b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4e1b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406ab4
push eax
push 0x4e1b74
call sub.kernel32.dll_lstrcpynW
push 0x4e1b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c24
lea eax, [ebp - 4]
call fcn.00406a18
ret
Function at 0x408e5c
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.00406a10
xor eax, eax
push ebp
push 0x409041
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408e9c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408eb6
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406ab4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40902b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409050
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408f45
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409050
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408f45
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409084
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408f45
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4090b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40902b
xor eax, eax
push ebp
push 0x409024
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408c60
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 0x408fb4
mov eax, dword [ebp - 0x10]
call fcn.004041e8
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.00406bd4
jmp 0x408fff
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4090f8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408fff
mov eax, dword [ebp - 0x10]
call fcn.004041e8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4090f8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406bd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40902b
cmp dword [ebp - 8], 0
je 0x40901a
mov eax, dword [ebp - 8]
call fcn.00404204
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 0x409048
lea eax, [ebp - 4]
call fcn.00406a18
ret
Function at 0x40930c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406a10
mov eax, dword [ebp - 0x21c]
call fcn.00406a10
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4094ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406a28
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406ab4
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x4093ac
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4093be
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4093a9
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409477
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x4093e7
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00408e5c
cmp dword [ebp - 0x220], 0
je 0x40941f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409200
pop ecx
mov ebx, eax
jmp 0x409477
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408b18
mov eax, dword [ebp - 0x224]
call fcn.00409200
pop ecx
mov ebx, eax
test bl, bl
jne 0x40946a
cmp byte [0x4e1b54], 0
jne 0x40946a
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408b18
mov eax, dword [ebp - 0x228]
call fcn.00409200
pop ecx
mov ebx, eax
test bl, bl
jne 0x409477
push ebp
call fcn.004092b0
pop ecx
mov ebx, eax
test bl, bl
je 0x40948d
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406c10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094b2
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406a20
ret

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