joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004d5a
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [0x1015bb4], 0
mov eax, dword [0x100eb54]
mov dword [ebp - 4], eax
jne 0x1004dea
push ebx
xor ebx, ebx
lea eax, [ebp - 0x118]
inc ebx
push eax
mov dword [0x1015bb4], ebx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x1004de9
push edi
push 0x1001acc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1004de8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001ab0
push edi
call esi
test eax, eax
je 0x1004de7
call eax
cmp ax, 0x409
jne 0x1004de7
push 0x1001a94
push edi
call esi
test eax, eax
je 0x1004de7
call eax
cmp ax, 0x409
je 0x1004de7
mov dword [0x1015bb0], ebx
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [0x1015bb0]
call fcn.0100bd20
leave
ret

Function at 0x1004dfe
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x1015bb8], 0
jne 0x1004fcb
push esi
push edi
mov dword [0x1015bb8], 1
call fcn.01004d5a
test eax, eax
jne 0x1004ecf
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
pop edi
push edi
push 0x10134e8
push 0x138a
push dword [0x100eb74]
call esi
push edi
push 0x10135b0
push 0x138b
push dword [0x100eb74]
call esi
push edi
push 0x1013678
push 0x138c
push dword [0x100eb74]
call esi
push edi
push 0x1013740
push 0x138d
push dword [0x100eb74]
call esi
push edi
push 0x1013808
push 0x138e
push dword [0x100eb74]
call esi
push edi
push 0x10138d0
push 0x138f
push dword [0x100eb74]
call esi
push edi
push 0x1013998
push 0x1390
push dword [0x100eb74]
call esi
push edi
push 0x1013a60
push 0x1391
push dword [0x100eb74]
call esi
jmp 0x1004f35
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x1001c44
push 0x10134e8
call esi
push 0x1001c04
push 0x10135b0
call esi
push 0x1001be4
push 0x1013678
call esi
push 0x1001bb8
push 0x1013740
call esi
push 0x1001b80
push 0x1013808
call esi
push 0x1001b5c
push 0x10138d0
call esi
push 0x1001b28
push 0x1013998
call esi
push 0x1001ae8
push 0x1013a60
call esi
lea eax, [ebp - 8]
push eax
push 0x1001898
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1004fc9
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
mov dword [ebp - 4], 0x100e080
mov ebx, 0x1013b28
mov dword [ebp - 0xc], 0x10
mov esi, 0x208
and word [ebx], 0
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push 0
push dword [eax]
mov dword [ebp - 0x10], esi
push dword [ebp - 8]
call edi
add dword [ebp - 4], 4
add ebx, esi
dec dword [ebp - 0xc]
jne 0x1004f6c
lea eax, [ebp - 0x14]
push eax
push 0x1015bac
push 0
push 0
push 0x10018c4
push dword [ebp - 8]
mov dword [ebp - 0x14], 4
call edi
test eax, eax
pop ebx
je 0x1004fc0
mov dword [0x1015bac], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret
Function at 0x1007fac
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x19c
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x100eb54]
and dword [ebp - 0x18c], 0
and dword [ebp - 0x190], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push edi
mov dword [ebp - 0x188], ecx
lea ecx, [ebp - 0x18c]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x100814c
lea eax, [ebp - 0x190]
push eax
push ebx
push dword [ebp - 0x188]
call esi
test eax, eax
je 0x100802c
lea eax, [ebp - 0x190]
push eax
push ebx
push dword [ebp - 0x188]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edi, eax
test edi, edi
jne 0x100814c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [ebp - 0x194]
push ecx
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x19c]
push ecx
xor eax, eax
push eax
lea ecx, [ebp - 0x198]
push ecx
lea ecx, [ebp - 0x184]
push ecx
mov dword [ebp - 0x188], eax
mov esi, 0x80
push eax
jmp 0x10080bf
push dword [ebp - 0x194]
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x19c]
lea eax, [ebp - 0x184]
push 0
push eax
push dword [ebp - 0x190]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc dword [ebp - 0x188]
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x19c]
push eax
push 0
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp - 0x188]
push dword [ebp - 0x18c]
mov dword [ebp - 0x194], esi
mov dword [ebp - 0x198], esi
call ebx
mov edi, eax
test edi, edi
je 0x1008066
cmp edi, 0x103
jne 0x100814c
and dword [ebp - 0x188], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push esi
lea eax, [ebp - 0x104]
push eax
push 0
jmp 0x1008134
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x190]
push dword [ebp - 0x18c]
call fcn.01007fac
mov edi, eax
cmp edi, 0x103
je 0x1008120
test edi, edi
jne 0x100814c
inc dword [ebp - 0x188]
push esi
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x188]
push dword [ebp - 0x18c]
call ebx
mov edi, eax
test edi, edi
je 0x10080fa
cmp edi, 0x103
jne 0x100814c
xor edi, edi
cmp dword [ebp - 0x18c], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1008163
push dword [ebp - 0x18c]
call esi
cmp dword [ebp - 0x190], 0
je 0x1008174
push dword [ebp - 0x190]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0100bd20
leave
ret 0xc
Function at 0x100a05d
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x480
mov eax, dword [0x100eb54]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x474]
push eax
push 0x1002840
push 0x80000001
mov dword [ebp - 0x478], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100a1a3
push edi
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x480]
push eax
push 0
mov edi, 0x1002820
push edi
push dword [ebp - 0x474]
mov dword [ebp - 0x47c], 0x200
mov dword [ebp - 0x480], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a196
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
cmp esi, 0x10
pop ecx
mov dword [ebp - 0x478], eax
jb 0x100a196
cmp esi, 0x48
ja 0x100a196
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
lea eax, [ebp - 0x470]
push eax
push 0x6c
push 0x2d
mov dword [ebp - 0x470], 0x6c
call esi
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0x2b]
push ecx
mov dword [ebp - 0x46c], eax
mov dword [ebp - 0x468], eax
lea eax, [ebp - 0x404]
push 0x100242c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x404]
push eax
push 1
push 0
push edi
push dword [ebp - 0x474]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 2
lea eax, [ebp - 0x470]
push eax
push 0x6c
push 0x2e
call esi
push 0
push 0x2e
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x474]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x478]
pop esi
call fcn.0100bd20
leave
ret 4

Function at 0x100a1bb
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x100eb54]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x58]
push eax
push 0xf003f
xor edi, edi
push edi
push 0x1002898
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a272
push esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
mov esi, 0x1002888
push esi
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a268
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
cmp dword [ebp + 8], edi
pop ecx
je 0x100a22e
test al, 1
jne 0x100a268
or eax, 1
jmp 0x100a235
test al, 1
je 0x100a268
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x2c]
push 0x100242c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x2c]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x2c]
push eax
push 1
push edi
push esi
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.0100bd20
leave
ret 4
Function at 0x100a45c
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
sub eax, 0
je 0x100a479
dec eax
je 0x100a479
dec eax
jne 0x100a4ee
mov dword [ebp + 8], 0x1002958
jmp 0x100a480
mov dword [ebp + 8], 0x1002954
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0xf003f
push edi
push 0
push 0x1002908
push 0x80000001
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x100a4e6
lea eax, [ebp + 0xc]
push eax
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x100a4e6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push 0
push 0x10028ec
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0xc]
call ebx
push dword [ebp - 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x100a858
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp + 0xc]
push eax
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a8a3
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x18]
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
ret 0x18

Function at 0x100a8ac
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0xc]
push eax
xor esi, esi
lea eax, [ebp + 8]
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100a910
cmp dword [ebp + 0x14], esi
je 0x100a8ea
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
jmp 0x100a8f1
push 2
push 0x1001c78
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
jne 0x100a907
xor esi, esi
inc esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret 0x10
Function at 0x100be38
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1002ae0
call fcn.0100c130
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x100be75
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100be75
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100be8d
cmp eax, 0x20b
je 0x100be7a
mov dword [ebp - 0x1c], ebx
jmp 0x100bea1
cmp dword [ecx + 0x84], 0xe
jbe 0x100be75
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x100be9b
cmp dword [ecx + 0x74], 0xe
jbe 0x100be75
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1017860], 0xffffffff
or dword [0x1017864], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1017858]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1017854]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x101785c], eax
call fcn.0100c128
cmp dword [0x100eb60], ebx
jne 0x100befc
push fcn.0100c128
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100c111
push 0x100e018
push 0x100e014
call sub.msvcrt.dll__initterm
mov eax, dword [0x1017850]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x101784c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x100e010
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x100bf92
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100bf66
cmp al, 0x22
jne 0x100bf58
cmp byte [esi], 0x22
jne 0x100bf6f
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100bf79
cmp al, 0x20
jbe 0x100bf6b
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x100bf9d
movzx eax, word [ebp - 0x50]
jmp 0x100bfa0
cmp byte [esi], 0x20
jbe 0x100bf6f
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100bf92
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100bfbd
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100bff2
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100c16b
ret
Function at 0x404548
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.00406874
test esi, esi
jne 0x404580
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.004069b0
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405dd0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4fb054], 0
je 0x405e31
cmp word [0x4fb330], 0xd7b2
jne 0x405df9
cmp dword [0x4fb338], 0
jbe 0x405df9
mov eax, 0x4fb32c
call dword [0x4fb348]
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 0x405e5c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f5030], 0
jne 0x405e4d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fbc
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 [0x4f5034], 0
je 0x405fe2
mov edx, esi
mov eax, ebx
call dword [0x4f5034]
jmp 0x405ff1
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4fb055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405f84
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 0x40894c
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 0x408ab3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406874
cmp si, word [0x4f57dc]
jb 0x4089e6
cmp si, word [0x4f59dc]
ja 0x4089e6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4089e6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4f57dc]
jae 0x4089c0
mov edi, ebx
dec edi
jmp 0x4089e1
cmp si, word [ebx*8 + 0x4f57dc]
jbe 0x4089d0
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4089e1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4f57e0]
call fcn.0040885c
jmp 0x4089e6
cmp edi, dword [ebp - 0xc]
jae 0x4089aa
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408a95
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408a95
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.00406a84
push dword [ebp - 0x164]
push 0x408ad0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a84
push dword [ebp - 0x168]
push 0x408ae0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a84
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406e3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408aba
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0040686c
ret
Function at 0x408c6c
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 0x408d71
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4fdb5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4fdb74]
jne 0x408cb8
mov eax, esi
mov edx, 0x4fdb78
mov ecx, 0x55
call fcn.00406a84
push 0x4fdb5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408d5b
push 0x4fdb5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406874
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408d29
cmp byte [0x4fdb58], 0
je 0x408cee
mov edx, esi
mov eax, ebx
call fcn.00408b4c
jmp 0x408d29
mov edx, esi
mov eax, ebx
call fcn.0040894c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408d29
cmp dword [esi], 0
je 0x408d12
mov eax, esi
mov edx, 0x408d8c
call fcn.00406c98
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040894c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406c98
push 0x4fdb5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4fdb74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406900
push eax
push 0x4fdb78
call sub.kernel32.dll_lstrcpynW
push 0x4fdb5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d78
lea eax, [ebp - 4]
call fcn.00406864
ret
Function at 0x408fb0
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.0040685c
xor eax, eax
push ebp
push 0x409195
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408ff0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40900a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406900
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40917f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409099
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091a4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409099
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409099
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40920c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40917f
xor eax, eax
push ebp
push 0x409178
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408db4
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 0x409108
mov eax, dword [ebp - 0x10]
call fcn.004041d4
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.00406a30
jmp 0x409153
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40924c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409153
mov eax, dword [ebp - 0x10]
call fcn.004041d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40924c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406a30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40917f
cmp dword [ebp - 8], 0
je 0x40916e
mov eax, dword [ebp - 8]
call fcn.004041f0
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 0x40919c
lea eax, [ebp - 4]
call fcn.00406864
ret
Function at 0x409460
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.0040685c
mov eax, dword [ebp - 0x21c]
call fcn.0040685c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4095ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406874
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406900
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 0x409500
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409512
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4094fd
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4095cb
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 0x40953b
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.00408fb0
cmp dword [ebp - 0x220], 0
je 0x409573
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409354
pop ecx
mov ebx, eax
jmp 0x4095cb
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408c6c
mov eax, dword [ebp - 0x224]
call fcn.00409354
pop ecx
mov ebx, eax
test bl, bl
jne 0x4095be
cmp byte [0x4fdb58], 0
jne 0x4095be
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408c6c
mov eax, dword [ebp - 0x228]
call fcn.00409354
pop ecx
mov ebx, eax
test bl, bl
jne 0x4095cb
push ebp
call fcn.00409404
pop ecx
mov ebx, eax
test bl, bl
je 0x4095e1
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406a84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409606
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.0040686c
ret

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