joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8b48
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0x200
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.kernel32.dll_GetLocaleInfoA_1
push 0x510a4b
lea ecx, [ebp - 0x200]
push ecx
call fcn.004b6744
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.004b6704
pop ecx
mov edx, 0x200
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.004b6704
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
push 0x510a4d
lea ecx, [ebp - 0x200]
push ecx
call fcn.004b6744
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.004b6704
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.004ba570
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x4b8c59
push esi
call fcn.004b6704
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.004b6704
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.004b663c
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x4b8c30
xor eax, eax
jmp 0x4b8ce0
push esi
call fcn.004b6704
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.004b6704
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.004b66d0
add esp, 0xc
jmp 0x4b8c99
mov edi, dword [ebx + 0x24]
push edi
call fcn.004b6704
pop ecx
push eax
push esi
call fcn.004b6704
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004b6704
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.004b6678
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x4b8c99
xor eax, eax
jmp 0x4b8ce0
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004b6744
add esp, 8
push 0x510a4f
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004b6744
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.004b6744
add esp, 8
push 0x510a51
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004b6744
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bb6d1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 4]
push ecx
push 0
push 0x4001f
push 0
push 0
push 0
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x4bb725
push esi
call fcn.004b6704
pop ecx
inc eax
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 4]
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4e7a64
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, ecx
mov dword [ebp - 8], eax
dec edx
mov eax, edx
shl eax, 2
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4e7ad1
xor eax, eax
push ebp
push 0x4e7aca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7ad1
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_VirtualProtect
ret
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e9eac
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ea01d
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e9ff8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00404b54
lea eax, [ebp - 0x118]
mov edx, 0x4ea034
call fcn.00404c34
mov eax, dword [ebp - 0x118]
call fcn.00404e24
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4e9f6a
lea eax, [ebp - 0x111]
call fcn.00409c68
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00404a64
jmp 0x4e9f71
mov eax, esi
call fcn.00404974
cmp bl, 0x61
jae 0x4e9f92
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040e0ac
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.004049c8
jmp 0x4e9fac
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040e020
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.004049c8
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x4ea040
call fcn.0040a440
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.004049c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e9fff
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4eda70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
xor edx, edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4edc3b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x40], 0
je 0x4edaab
cmp byte [ebx + 0x41], 0
jne 0x4edaab
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x4edad7
cmp byte [ebx + 0x41], 1
jne 0x4edac5
lea eax, [ebp - 0x24]
push eax
push 0x12
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.0047d49c
jmp 0x4edad7
lea eax, [ebp - 0x24]
push eax
push 0x11
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.0047d49c
xor edx, edx
push ebp
push 0x4edc16
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x48]
mov edx, 0x104
call fcn.00404fb0
mov eax, dword [ebx + 0x48]
call fcn.00404e24
mov dword [ebp - 0x20], eax
cmp dword [ebx + 0x44], 0
je 0x4edb10
mov eax, dword [ebx + 0x44]
call fcn.00404e24
mov dword [ebp - 0x1c], eax
jmp 0x4edb15
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp byte [ebx + 0x41], 1
jne 0x4edb24
mov dword [ebp - 0x18], 0x1000
jmp 0x4edb2b
mov dword [ebp - 0x18], 9
mov dword [ebp - 0x14], 0x4ed698
mov dword [ebp - 0x10], ebx
mov eax, dword [0x514258]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.004edc4c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x4edbfb
xor eax, eax
push ebp
push 0x4edbf4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x41], 0
jne 0x4edbc1
lea eax, [ebp - 0x12d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
call fcn.0040e9f0
lea edx, [ebp - 0x138]
lea eax, [ebp - 0x12d]
call fcn.00409ec4
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.004edda4
mov edx, dword [ebp - 0x134]
lea eax, [ebx + 0x50]
call fcn.004049c8
jmp 0x4edbcc
lea eax, [ebx + 0x50]
mov edx, dword [ebx + 0x48]
call fcn.004049c8
lea eax, [ebx + 0x4c]
mov edx, dword [ebx + 0x50]
call fcn.004049c8
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x54], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4edbfb
mov eax, dword [ebp - 8]
push eax
call sub.ole32.dll_CoTaskMemFree_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4edc1d
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4edc15
push eax
call sub.ole32.dll_CoTaskMemFree_1
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e14
xor eax, eax
push ebp
push 0x4ede55
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404e24
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4ede39
test al, 0x10
jne 0x4ede3d
xor ebx, ebx
jmp 0x4ede3f
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ede5c
lea eax, [ebp - 4]
call fcn.00404974
ret
Function at 0x508e88
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
push esp
push 0
push 0
push 0x25
mov eax, ebx
call fcn.0044a0d4
push eax
call sub.SHFolder.dll_SHGetFolderPathA
test eax, eax
jne 0x508eba
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00404bdc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x508ec4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
push esp
push 0
push 0
push 5
mov eax, ebx
call fcn.0044a0d4
push eax
call sub.SHFolder.dll_SHGetFolderPathA
test eax, eax
jne 0x508ef6
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00404bdc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x508f00
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
push esp
push 0
push 0
push 0x22
mov eax, ebx
call fcn.0044a0d4
push eax
call sub.SHFolder.dll_SHGetFolderPathA
test eax, eax
jne 0x508f32
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00404bdc
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x50b850
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x50b9ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x517490]
mov al, byte [eax + 0x390]
dec al
je 0x50b8a6
dec al
je 0x50b905
dec al
je 0x50b961
dec al
je 0x50b9b9
jmp 0x50b9cf
lea eax, [ebp - 4]
push eax
push 0x25
mov eax, dword [0x514258]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00407ccc
test eax, eax
jne 0x50b9cf
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404bdc
mov edx, dword [ebp - 0x108]
mov eax, dword [ebx + 0x378]
call fcn.004e64e8
jmp 0x50b9cf
lea eax, [ebp - 4]
push eax
push 5
mov eax, dword [0x514258]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00407ccc
test eax, eax
jne 0x50b9cf
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404bdc
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebx + 0x378]
call fcn.004e64e8
jmp 0x50b9cf
lea eax, [ebp - 4]
push eax
push 0x24
mov eax, dword [0x514258]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00407ccc
test eax, eax
jne 0x50b9cf
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404bdc
mov edx, dword [ebp - 0x110]
mov eax, dword [ebx + 0x378]
call fcn.004e64e8
jmp 0x50b9cf
mov eax, dword [0x517490]
mov edx, dword [eax + 0x38c]
mov eax, dword [ebx + 0x378]
call fcn.004e64e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50b9f4
lea eax, [ebp - 0x110]
mov edx, 3
call fcn.00404998
ret
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408e84
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x12883c2a
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x602029f0
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x404628
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.00406ac4
test esi, esi
jne 0x404660
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.00406c00
jmp 0x40467e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040450c
mov edi, eax
test esi, esi
je 0x40467e
cmp dword [ebx], 0
je 0x40467e
dec esi
jmp 0x404667
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405f14
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x510054], 0
je 0x405f75
cmp word [0x510330], 0xd7b2
jne 0x405f3d
cmp dword [0x510338], 0
jbe 0x405f3d
mov eax, 0x51032c
call dword [0x510348]
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 0x405fa0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x509034], 0
jne 0x405f91
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406120
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 [0x509038], 0
je 0x406146
mov edx, esi
mov eax, ebx
call dword [0x509038]
jmp 0x406155
mov eax, 8
call fcn.00404254
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x510055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4060e8
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 0x407568
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4075aa
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x4075ca
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406cc4
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x408db4
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 0x408f1b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406ac4
cmp si, word [0x5097e0]
jb 0x408e4e
cmp si, word [0x5099e0]
ja 0x408e4e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408e4e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5097e0]
jae 0x408e28
mov edi, ebx
dec edi
jmp 0x408e49
cmp si, word [ebx*8 + 0x5097e0]
jbe 0x408e38
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408e49
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5097e4]
call fcn.00408cc4
jmp 0x408e4e
cmp edi, dword [ebp - 0xc]
jae 0x408e12
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408efd
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408efd
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.00406cc4
push dword [ebp - 0x164]
push 0x408f38
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406cc4
push dword [ebp - 0x168]
push 0x408f48
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406cc4
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.0040707c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f22
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406abc
ret
Function at 0x4090d4
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 0x4091d9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x512b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x512b74]
jne 0x409120
mov eax, esi
mov edx, 0x512b78
mov ecx, 0x55
call fcn.00406cc4
push 0x512b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4091c3
push 0x512b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406ac4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409191
cmp byte [0x512b58], 0
je 0x409156
mov edx, esi
mov eax, ebx
call fcn.00408fb4
jmp 0x409191
mov edx, esi
mov eax, ebx
call fcn.00408db4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409191
cmp dword [esi], 0
je 0x40917a
mov eax, esi
mov edx, 0x4091f4
call fcn.00406ed8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408db4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406ed8
push 0x512b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x512b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406b50
push eax
push 0x512b78
call sub.kernel32.dll_lstrcpynW
push 0x512b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091e0
lea eax, [ebp - 4]
call fcn.00406ab4
ret
Function at 0x409418
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.00406aac
xor eax, eax
push ebp
push 0x4095fd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409458
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409472
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406b50
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4095e7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40960c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409501
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40960c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409501
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409640
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409501
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409674
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4095e7
xor eax, eax
push ebp
push 0x4095e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040921c
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 0x409570
mov eax, dword [ebp - 0x10]
call fcn.00404254
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.00406c70
jmp 0x4095bb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4096b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4095bb
mov eax, dword [ebp - 0x10]
call fcn.00404254
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4096b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406c70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095e7
cmp dword [ebp - 8], 0
je 0x4095d6
mov eax, dword [ebp - 8]
call fcn.00404270
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 0x409604
lea eax, [ebp - 4]
call fcn.00406ab4
ret
Function at 0x4098c8
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.00406aac
mov eax, dword [ebp - 0x21c]
call fcn.00406aac
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409a67
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406ac4
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406b50
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 0x409968
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40997a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409965
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409a33
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 0x4099a3
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.00409418
cmp dword [ebp - 0x220], 0
je 0x4099db
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004097bc
pop ecx
mov ebx, eax
jmp 0x409a33
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004090d4
mov eax, dword [ebp - 0x224]
call fcn.004097bc
pop ecx
mov ebx, eax
test bl, bl
jne 0x409a26
cmp byte [0x512b58], 0
jne 0x409a26
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004090d4
mov eax, dword [ebp - 0x228]
call fcn.004097bc
pop ecx
mov ebx, eax
test bl, bl
jne 0x409a33
push ebp
call fcn.0040986c
pop ecx
mov ebx, eax
test bl, bl
je 0x409a49
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406cc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a6e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406abc
ret

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