joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42598f
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 0x4259c4
cmp edi, dword [esi + 0xc]
jge 0x4259c4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4259c4
cmp edi, dword [eax + 8]
jge 0x4259c4
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x4259c6
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 0x425aca
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 0x425afe
jmp fcn.0041a4dd
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x425b6f
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 0x425c68
cmp eax, dword [edi + 0xc]
jge 0x425c68
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x425bc0
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x425c51
cmp dword [ebp + 0xc], ebx
je 0x425c51
jmp 0x425bea
push 0x10
call fcn.0042585b
cmp eax, ebx
je 0x425bd6
mov ecx, eax
call fcn.00425ac1
mov esi, eax
jmp 0x425bd8
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 0x425c01
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x425c11
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 0x425c23
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041a4dd
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.0040fec0
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 0x425c63
cmp ecx, dword [esi + 8]
jge 0x425c63
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x425c69
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x425d27
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x425d55
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x425d73
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00425c91
jmp 0x425d73
mov eax, dword [esi + 0x14]
test eax, eax
je 0x425d73
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00425c91
test edi, edi
mov eax, edi
jne 0x425d5d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x438ee4]
test ecx, ecx
je 0x425e26
jmp 0x425d26
ret 8
Function at 0x401181
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
push ebx
push esi
lea eax, [ebp - 0x11c]
push edi
push eax
mov dword [ebp - 0x11c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401285
xor eax, eax
cmp dword [ebp - 0x10c], 1
sete al
test eax, eax
je 0x401285
lea eax, [ebp - 0x88]
push str.SystemCurrentControlSetcontrolPrintPrinters_
push eax
call fcn.0044bec0
push dword [ebp + 8]
lea eax, [ebp - 0x88]
push eax
call fcn.0044bed0
add esp, 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, 0x20019
lea eax, [ebp - 0x88]
push dword [ebp + 0xc]
mov edi, reloc.CoolType.dll_Ordinal_2
push ebx
push 0
push eax
push edi
call esi
test eax, eax
jne 0x401281
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push 0
push str.Printer_Driver
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [ebp + 0xc]
push dword [eax]
je 0x401240
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401281
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x88]
push str.SystemCurrentControlSetcontrolPrintEnvironmentsWindows_4.0Drivers_
push eax
call fcn.0044bec0
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0044bed0
add esp, 0x10
lea eax, [ebp - 0x88]
push dword [ebp + 0xc]
push ebx
push 0
push eax
push edi
call esi
test eax, eax
je 0x401285
xor eax, eax
jmp 0x401288
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4015d7
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x61667c
call fcn.0044c384
sub esp, 0x154
mov eax, dword [0x679548]
push esi
mov esi, ecx
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x1c], 0
push 1
pop eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], eax
je 0x401610
mov esi, eax
jmp 0x4016e4
push ebx
push edi
mov dword [esi + 0x1c], eax
lea edi, [esi + 0x10]
push str.Rdlang32.
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.005f5ce0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.005f5b84
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.005f5a4b
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4016cc
cmp dword [ebp - 0x1c], 0
je 0x4016cc
push 0x67434c
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.005f5ce0
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.005f5ce0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.005f5b84
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.005f5a4b
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.005f5a4b
lea ecx, [ebp - 0x10]
call fcn.005f5f7f
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00401572
lea eax, [ebp - 0x160]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x1c], eax
jmp 0x401657
mov eax, dword [esi + 0x18]
xor ecx, ecx
push ebx
mov eax, dword [eax + 0xc]
test eax, eax
setne cl
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.005f5a4b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.005f5a4b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x401a32
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x616730
call fcn.0044c384
push ecx
push ecx
push ebx
push esi
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [ebp + 8]
xor ecx, ecx
mov eax, dword [ebx]
push edx
push 0xf003f
push ecx
push eax
push Ordinal_3
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0x104
call esi
test eax, eax
je 0x401a8d
mov ebx, dword [ebx]
lea eax, [ebp + 8]
push eax
push 0x20019
push 0
push ebx
push reloc.CoolType.dll_Ordinal_2
call esi
test eax, eax
je 0x401a8d
xor esi, esi
jmp 0x401ad1
mov ecx, dword [ebp + 0xc]
push 0x104
call fcn.005f5e7b
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
mov esi, eax
call fcn.005f5eca
test esi, esi
je 0x401ac5
xor esi, esi
jmp 0x401ac8
push 1
pop esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.005f5a4b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x401aed
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
and dword [ebp - 8], 0
mov eax, dword [ebx]
push edi
lea ecx, [ebp + 8]
mov edi, 0xf003f
push ecx
push edi
push 0
mov esi, Ordinal_3
push eax
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ecx, ecx
cmp eax, ecx
je 0x401b45
lea eax, [ebp - 8]
mov ebx, dword [ebx]
push eax
lea eax, [ebp + 8]
push eax
push ecx
push edi
push ecx
push dword [ebp + 0x10]
push ecx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x401b45
xor eax, eax
jmp 0x401b76
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x401b73
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401b88
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push esi
push eax
xor esi, esi
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c5e
push edi
push 0x7d
pop edi
push edi
mov dword [ebp - 8], edi
call fcn.005988ea
cmp eax, esi
pop ecx
mov dword [ebp - 0xc], eax
je 0x401c54
lea ecx, [ebp - 0x1c]
push ebx
push ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push esi
lea ecx, [ebp - 8]
push esi
push ecx
push eax
push esi
mov dword [ebp - 8], edi
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x401c4a
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x401c4a
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00401b88
pop ecx
lea eax, [ebp - 0x10]
pop ecx
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x401c4a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
je 0x401c4a
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], edi
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
push dword [ebp - 0xc]
push esi
push dword [ebp - 4]
jmp 0x401be2
push dword [ebp - 0xc]
call fcn.005989b0
pop ecx
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop esi
leave
ret
Function at 0x4028ed
Capabilities:
Link many functions at runtime

Disassembly:
push edi
xor edi, edi
cmp dword [0x6b4fa0], edi
jne 0x402905
push 0x30
call fcn.005988ea
pop ecx
mov dword [0x6b4fa0], eax
push str.imm32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x6b4fa0]
mov dword [ecx], eax
mov eax, dword [0x6b4fa0]
mov ecx, dword [eax]
cmp ecx, edi
je 0x402a2e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImmSetCompositionFontA
push ecx
call esi
mov ecx, dword [0x6b4fa0]
push str.ImmGetContext
mov dword [ecx + 0xc], eax
mov eax, dword [0x6b4fa0]
push dword [eax]
call esi
mov ecx, dword [0x6b4fa0]
push str.ImmReleaseContext
mov dword [ecx + 0x10], eax
mov eax, dword [0x6b4fa0]
push dword [eax]
call esi
mov ecx, dword [0x6b4fa0]
push str.ImmSetCompositionWindow
mov dword [ecx + 0x14], eax
mov eax, dword [0x6b4fa0]
push dword [eax]
call esi
mov ecx, dword [0x6b4fa0]
push str.ImmSetOpenStatus
mov dword [ecx + 0x18], eax
mov eax, dword [0x6b4fa0]
push dword [eax]
call esi
mov ecx, dword [0x6b4fa0]
push str.ImmCreateContext
mov dword [ecx + 0x1c], eax
mov eax, dword [0x6b4fa0]
push dword [eax]
call esi
mov ecx, dword [0x6b4fa0]
push str.ImmDestroyContext
mov dword [ecx + 0x20], eax
mov eax, dword [0x6b4fa0]
push dword [eax]
call esi
mov ecx, dword [0x6b4fa0]
push str.ImmAssociateContext
mov dword [ecx + 0x24], eax
mov eax, dword [0x6b4fa0]
push dword [eax]
call esi
mov ecx, dword [0x6b4fa0]
push str.ImmNotifyIME
mov dword [ecx + 0x28], eax
mov eax, dword [0x6b4fa0]
push dword [eax]
call esi
mov ecx, dword [0x6b4fa0]
mov dword [ecx + 0x2c], eax
call fcn.00402c45
mov ecx, dword [0x6b4fa0]
mov eax, dword [eax + 0x1c]
pop esi
mov dword [ecx + 8], eax
mov ecx, dword [0x6b4fa0]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 8]
cmp eax, edi
je 0x402a24
push edx
call eax
mov ecx, dword [0x6b4fa0]
jmp 0x402a26
xor eax, eax
push 1
mov dword [ecx + 4], eax
pop eax
pop edi
ret
mov dword [eax + 0xc], edi
mov eax, dword [0x6b4fa0]
mov dword [eax + 0x10], edi
mov eax, dword [0x6b4fa0]
mov dword [eax + 0x14], edi
mov eax, dword [0x6b4fa0]
mov dword [eax + 0x18], edi
mov eax, dword [0x6b4fa0]
mov dword [eax + 0x1c], edi
mov eax, dword [0x6b4fa0]
mov dword [eax + 0x20], edi
mov eax, dword [0x6b4fa0]
mov dword [eax + 0x24], edi
mov eax, dword [0x6b4fa0]
mov dword [eax + 0x28], edi
mov eax, dword [0x6b4fa0]
mov dword [eax + 0x2c], edi
mov eax, dword [0x6b4fa0]
mov dword [eax + 4], edi
mov eax, dword [0x6b4fa0]
mov dword [eax + 8], edi
xor eax, eax
pop edi
ret
Function at 0x4067fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 4]
cmp eax, 0x100
je 0x406821
cmp eax, 0x104
jne 0x4069f5
call fcn.00467fba
test eax, eax
mov dword [ebp - 0x10], eax
je 0x4069f5
mov al, byte [esi + 8]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov byte [ebp - 1], al
call esi
mov bx, ax
push 0x12
shr ebx, 0xc
and ebx, 8
call esi
shr eax, 0xd
and eax, 4
push 0x10
or ebx, eax
call esi
shr eax, 0xf
and eax, 1
or ebx, eax
cmp byte [ebp - 1], 0x60
jl 0x406874
cmp byte [ebp - 1], 0x69
jg 0x406874
add byte [ebp - 1], 0xd0
jmp 0x4068ed
mov edi, 0x90
push edi
call esi
test al, 1
je 0x4068b2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
shr eax, 0x10
test ah, 1
jne 0x4068b2
test bl, 8
je 0x4068b2
xor eax, eax
mov cl, byte [ebp - 1]
cmp cl, byte [eax + 0x67487c]
je 0x4068a8
inc eax
cmp eax, 0xa
jb 0x406895
jmp 0x4068ed
add al, 0x30
or ebx, 1
mov byte [ebp - 1], al
jmp 0x4068ed
push edi
call esi
test al, 1
jne 0x4068ed
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
shr eax, 0x10
and ax, 0x100
cmp ax, 0x100
je 0x4068ed
test bl, 8
jne 0x4068ed
test bl, 4
je 0x4068ed
xor eax, eax
mov cl, byte [ebp - 1]
cmp cl, byte [eax + str._____f__]
je 0x4069f5
inc eax
cmp eax, 0xa
jb 0x4068d8
cmp byte [ebp - 1], 0x70
jne 0x406905
test bx, bx
jne 0x406905
push 4
call fcn.004696cb
pop ecx
jmp 0x4069f0
movsx esi, byte [ebp - 1]
push esi
call fcn.0040fb00
test ax, ax
pop ecx
je 0x40694a
lea eax, [ebp - 8]
push eax
mov eax, dword [0x6b5470]
mov ecx, dword [eax + 0x1d4]
call fcn.004095d7
push dword [ebp - 8]
push 2
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
test eax, eax
je 0x40694a
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanExA]
cmp al, 0xff
je 0x40694a
mov byte [ebp - 1], al
call fcn.00467865
mov esi, dword [ebp + 8]
mov dword [ebp - 8], eax
push dword [esi]
call fcn.0042d527
test eax, eax
pop ecx
je 0x406969
push eax
call fcn.0046100d
jmp 0x406970
push dword [esi]
call fcn.0042c3f8
mov edi, eax
pop ecx
test edi, edi
je 0x4069a4
mov esi, 0x3e8
push esi
push edi
call fcn.0046246e
pop ecx
test eax, eax
pop ecx
jne 0x406998
push edi
call fcn.00463772
mov edi, eax
pop ecx
test edi, edi
jne 0x40697c
jmp 0x4069a4
push esi
push edi
call fcn.0046246e
pop ecx
mov dword [ebp - 8], eax
pop ecx
call fcn.00467865
cmp dword [ebp - 8], eax
je 0x4069b5
mov dword [ebp - 0xc], 1
movzx ax, byte [ebp - 1]
push ebx
push eax
push dword [ebp - 0x10]
call fcn.0047add7
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4069f5
cmp word [ebp - 0xc], 0
je 0x4069dd
push dword [ebp - 8]
call fcn.004677cf
pop ecx
push esi
call fcn.0047aa5a
cmp word [ebp - 0xc], 0
pop ecx
je 0x4069f0
call fcn.004677ef
push 1
pop eax
jmp 0x4069f7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406e21
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
movzx edi, word [ebp + 8]
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x14]
push 6
push eax
push 0x1004
push edi
call esi
test eax, eax
je 0x406f67
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push 0x6748f0
push eax
call fcn.0044c87c
push dword [ebp - 4]
call fcn.005d9db8
add esp, 0x10
test ax, ax
je 0x406f67
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x406f39
push ebx
push ebx
push 4
push edi
call esi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x406f67
inc eax
push eax
call fcn.005988ea
pop ecx
mov dword [ebp - 8], eax
push dword [ebp + 8]
push eax
push 4
push edi
call esi
mov dword [ebp + 8], eax
push 6
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0044cbc0
add esp, 0xc
lea eax, [ebp - 0x14]
push 6
push eax
push 0x1004
push edi
call esi
test eax, eax
je 0x406eec
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push 0x6748f0
push eax
call fcn.0044c87c
add esp, 0xc
jmp 0x406ef5
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp - 4], eax
push ebx
push ebx
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
call edi
mov dword [ebp - 0xc], eax
lea eax, [eax + eax + 2]
push eax
call fcn.005988ea
pop ecx
mov esi, dword [ebp + 0xc]
push dword [ebp - 0xc]
mov dword [esi], eax
push eax
push dword [ebp + 8]
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
call edi
push dword [ebp - 8]
mov edi, eax
call fcn.005989b0
pop ecx
jmp 0x406f58
lea eax, [eax + eax + 2]
push eax
call fcn.005988ea
mov esi, dword [ebp + 0xc]
pop ecx
push dword [ebp + 8]
mov dword [esi], eax
push eax
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
mov eax, dword [esi]
mov byte [eax + edi*2], bl
mov eax, dword [esi]
mov byte [eax + edi*2 + 1], bl
mov eax, edi
jmp 0x406f69
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407616
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor eax, eax
push edi
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
call esi
mov edi, eax
shl eax, 2
push eax
call fcn.005988ea
pop ecx
mov ebx, eax
push ebx
push edi
call esi
mov esi, eax
xor edi, edi
test esi, esi
jle 0x40768b
mov dword [ebp - 8], ebx
cmp word [ebp - 0xc], 0
jne 0x40768b
mov eax, dword [ebp - 8]
push dword [eax]
call fcn.004076f4
mov byte [ebp - 0x10], al
push dword [ebp - 0x10]
call fcn.005d9d05
push eax
call fcn.005d9db8
add esp, 0xc
test ax, ax
je 0x407682
mov dword [ebp - 0xc], 1
add dword [ebp - 8], 4
inc edi
cmp edi, esi
jl 0x407651
xor eax, eax
test esi, esi
jle 0x4076e5
mov ecx, ebx
cmp word [ebp - 0xc], 0
je 0x4076e5
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
je 0x4076ab
inc eax
add ecx, 4
cmp eax, esi
jl 0x407693
jmp 0x4076e5
inc eax
cmp eax, esi
jge 0x4076b5
mov eax, dword [ebx + eax*4]
jmp 0x4076b7
mov eax, dword [ebx]
push eax
mov dword [ebp - 4], eax
call fcn.004076f4
mov byte [ebp + 8], al
push dword [ebp + 8]
call fcn.005d9d05
push eax
call fcn.005d9db8
add esp, 0xc
test ax, ax
jne 0x4076e5
push dword [ebp - 4]
call fcn.00407616
pop ecx
mov dword [ebp - 4], eax
push ebx
call fcn.005989b0
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4076f4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push 0xa
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.005a0083
add esp, 0xc
lea eax, [ebp - 0x10]
push 0xa
push eax
movzx eax, word [ebp + 8]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push 0x6748f0
push eax
call fcn.0059be2c
push dword [ebp - 4]
call fcn.005d9c93
add esp, 0x10
leave
ret

Function at 0x407743
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push 0xa
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.005a0083
add esp, 0xc
lea eax, [ebp - 0x10]
push 0xa
push eax
movzx eax, word [ebp + 8]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x40777c
xor ax, ax
leave
ret
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push 0x6748f0
push eax
call fcn.0059be2c
mov ecx, dword [ebp + 0xc]
add esp, 0xc
xor eax, eax
cmp ecx, dword [ebp - 4]
sete al
leave
ret
Function at 0x4077f6
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push edi
push 0
push 0
call esi
mov edi, eax
shl eax, 2
push eax
call fcn.005988ea
pop ecx
mov ebx, eax
push ebx
push edi
call esi
xor edi, edi
mov dword [ebp - 4], eax
test eax, eax
jle 0x407856
mov esi, ebx
mov ax, word [ebp + 0xc]
cmp ax, word [esi]
je 0x407850
push dword [ebp + 8]
push dword [esi]
call fcn.00407743
pop ecx
test ax, ax
pop ecx
je 0x407845
mov eax, dword [esi]
mov dword [ebp + 0x10], eax
inc edi
add esi, 4
cmp edi, dword [ebp - 4]
jl 0x407826
jmp 0x407856
mov eax, dword [ebx + edi*4]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40785e
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call fcn.0040779e
test ax, ax
pop ecx
je 0x407881
mov ax, 1
jmp 0x407915
push ebx
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.00407a4d
pop ecx
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
call esi
mov edi, eax
shl eax, 2
push eax
call fcn.005988ea
pop ecx
mov ebx, eax
push ebx
push edi
call esi
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x407908
mov esi, ebx
cmp word [ebp - 8], 0
jne 0x407908
push dword [ebp + 8]
push dword [esi]
call fcn.00407743
pop ecx
test ax, ax
pop ecx
je 0x4078fa
push 8
push dword [esi]
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov edi, eax
test edi, edi
je 0x4078fa
push dword [ebp - 0xc]
call fcn.005d9c93
movzx eax, al
push edi
push eax
call fcn.0047b8b6
add esp, 0xc
mov dword [ebp - 8], 1
inc dword [ebp - 4]
add esi, 4
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jl 0x4078b6
push ebx
call fcn.005989b0
mov ax, word [ebp - 8]
pop ecx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x407a4d
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, eax
push 0xa
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.005a0083
add esp, 0xc
lea eax, [ebp - 0xc]
push 0xa
push eax
movzx eax, si
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
pop esi
jne 0x407a8d
xor ax, ax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x6748f0
push eax
call fcn.0059be2c
add esp, 0xc
mov ax, 1
leave
ret