joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
xor edi, edi
push edi
push 0x8000000
push 3
push edi
push 3
push 0x80000000
push eax
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
jbe 0x40611c
cmp esi, 0xffffffff
je 0x40611c
push ebx
push edi
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.0040b4ff
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
push edi
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406108
mov edx, edi
mov eax, ebx
call fcn.00406060
mov edi, eax
jmp 0x40610b
mov edi, dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0040b5f6
add esp, 4
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406130
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414f68
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x41e090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x15c], eax
mov ecx, 0xf
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x158], ebx
mov esi, edx
mov byte [ebx], al
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], ecx
mov ecx, esi
mov dword [ebp - 0x15c], 1
mov dword [ebp - 0x124], eax
mov byte [ebp - 0x134], al
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4061a1
sub ecx, edi
mov eax, esi
mov edi, ecx
lea esi, [ebp - 0x134]
call fcn.00404cc0
lea eax, [ebp - 0x154]
mov dword [ebp - 4], 1
push eax
mov edi, esi
mov byte [ebp - 0x154], 0x5c
call fcn.00408a30
cmp eax, 0xffffffff
je 0x406250
mov ecx, esi
push eax
push ecx
xor ebx, ebx
lea esi, [ebp - 0x150]
call fcn.00408960
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x158]
mov edi, eax
call fcn.00404820
cmp dword [ebp - 0x13c], 0x10
jb 0x406214
mov edx, dword [ebp - 0x150]
push edx
call fcn.0040b752
add esp, 4
mov ebx, dword [ebp - 0x158]
cmp dword [ebp - 0x120], 0x10
jb 0x406232
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.0040b752
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b5e7
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
jmp 0x406270
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406270
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x118]
mov esi, ebx
call fcn.00404cc0
jmp 0x40621a
Function at 0x406370
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x8000000
push 3
push 0
push 3
push 0x80000000
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4063df
cmp esi, 0xffffffff
je 0x4063df
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test edi, edi
jne 0x4063bf
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 4]
push ecx
push 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4063f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x8000000
push 2
push 0
push 3
push 0x40000000
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x406442
cmp esi, 0xffffffff
je 0x406442
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406460
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
test eax, eax
je 0x406477
shr eax, 1
jne 0x406473
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, eax
lea ebx, [edi + 1]
push ebx
call fcn.0040b4ff
push ebx
xor ebx, ebx
mov esi, eax
push ebx
push esi
call fcn.004128c0
add esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov eax, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
xor ecx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], eax
cmp eax, ebx
jle 0x406581
mov edi, esi
mov ebx, esi
mov esi, dword [ebp + 8]
add esi, 8
mov dword [ebp - 0xc], eax
lea ebx, [ebx]
mov al, byte [edi]
push 4
lea ecx, [ebp - 8]
push ecx
lea edx, [esi - 8]
push 4
push edx
mov byte [ebp - 8], al
mov word [ebp - 7], 0x5c3a
mov byte [ebp - 5], 0
call fcn.0040c346
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esi - 4], eax
cmp eax, 3
je 0x40651c
cmp eax, 4
je 0x40651c
cmp eax, 6
jne 0x406555
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
xor ecx, ecx
cmp eax, ecx
je 0x406557
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esi], 1
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
jmp 0x406562
xor ecx, ecx
mov dword [esi], ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
add edi, 4
add ebx, 4
add esi, 0x20
dec dword [ebp - 0xc]
jne 0x4064e0
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407850
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x41e090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.004128c0
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40791c
lea edx, [ebp - 0x110]
push edx
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0
push str.Desktop
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
jmp 0x4078f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4078f0
sub eax, edx
push edi
mov edi, eax
lea eax, [ebp - 0x108]
call fcn.00404cc0
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b5e7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040b5e7
mov esp, ebp
pop ebp
ret
Function at 0x408760
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414d02
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x41e090]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 0x140], ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
lea edi, [ebx + 1]
mov eax, 0x41b44c
mov dword [ebp - 0x144], esi
mov byte [esi], bl
call fcn.00404cc0
push 0x124
lea eax, [ebp - 0x138]
push ebx
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x140], edi
call fcn.004128c0
add esp, 0xc
push ebx
push 2
mov dword [ebp - 0x13c], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
test ebx, ebx
je 0x408855
lea ecx, [ebp - 0x13c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40884e
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea esp, [esp]
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x40881f
cmp eax, dword [ebp + 8]
je 0x40882f
lea edx, [ebp - 0x13c]
push edx
push ebx
call edi
test eax, eax
jne 0x408810
jmp 0x40884e
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408838
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x118]
call fcn.00404cc0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040b5e7
mov esp, ebp
pop ebp
ret
Function at 0x40b5e7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e090]
jne 0x40b5f1
repz ret
jmp fcn.0040ca36

Function at 0x41224c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41e090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00410a29
and dword [ebp - 0x14], 0
cmp dword [0x683810], 0
mov dword [ebp - 0x18], eax
jne 0x4122ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4123a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4123a7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x683810], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x683814], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x683818], eax
call edi
push eax
call esi
mov dword [0x683820], eax
test eax, eax
je 0x4122ff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x68381c], eax
mov eax, dword [0x68381c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412358
cmp dword [0x683820], ecx
je 0x412358
push eax
call esi
push dword [0x683820]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412358
test ebx, ebx
je 0x412358
call edi
test eax, eax
je 0x41234f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41234f
test byte [ebp - 8], 1
jne 0x412358
or dword [ebp + 0x10], 0x200000
jmp 0x41238b
mov eax, dword [0x683814]
cmp eax, dword [ebp - 0x18]
je 0x41238b
push eax
call esi
test eax, eax
je 0x41238b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41238b
mov eax, dword [0x683818]
cmp eax, dword [ebp - 0x18]
je 0x41238b
push eax
call esi
test eax, eax
je 0x41238b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x683810]
call esi
test eax, eax
je 0x4123a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4123a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b5e7
leave
ret
Function at 0x4047c0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406b04
test esi, esi
jne 0x4047f6
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.00406c6c
jmp 0x404814
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004046a4
mov edi, eax
test esi, esi
je 0x404814
cmp dword [ebx], 0
je 0x404814
dec esi
jmp 0x4047fd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404848
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x65c008], 0x8088405
inc edx
mov dword [ebx + 0x65c008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405864
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405c50
mov byte [esp], al
cmp byte [esp], 0
jne 0x4059ed
test edi, edi
je 0x4059ed
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405924
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4058ff
cmp edi, 0xffffffff
je 0x4058c3
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4058c3
mov byte [esp], 0
jmp 0x4059ed
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4058ff
test ebx, ebx
jne 0x4058f8
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004025d4
test eax, eax
jne 0x4058f8
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4059ed
pause
dec ebp
test ebp, ebp
jg 0x4058a8
cmp edi, 0xffffffff
je 0x405924
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405922
mov byte [esp], 0
jmp 0x4059ed
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405872
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004025d4
cmp ebx, eax
jne 0x405924
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405a60
mov edx, eax
mov ebx, dword [0x66a8cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40598b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405989
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40598b
xor edi, edi
cmp byte [esp], 0
je 0x4059b4
mov ebx, dword [esi]
test bl, 1
jne 0x4059cd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004025d4
cmp ebx, eax
jne 0x405991
mov byte [esp + 1], 1
jmp 0x4059cd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004025d4
cmp ebx, eax
jne 0x4059b4
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40593e
cmp byte [esp], 0
je 0x4059ed
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406768
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x66a054], 0
je 0x4067c9
cmp word [0x66a330], 0xd7b2
jne 0x406791
cmp dword [0x66a338], 0
jbe 0x406791
mov eax, 0x66a32c
call dword [0x66a348]
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 0x4067f4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x65c028], 0
jne 0x4067e5
push 0
push 0x65c78c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4069c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x65c02c], 0
je 0x4069eb
mov edx, edi
mov eax, esi
call dword [0x65c02c]
mov ebx, eax
jmp 0x4069fc
mov eax, 8
call fcn.004043d8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x66a055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406988
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x406a31
mov edx, 8
mov eax, ebx
call fcn.004043f4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x4090a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x409205
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406b04
cmp si, word [0x65c7dc]
jb 0x409138
cmp si, word [0x65c9dc]
ja 0x409138
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409138
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x65c7dc]
jae 0x409112
mov edi, ebx
dec edi
jmp 0x409133
cmp si, word [ebx*8 + 0x65c7dc]
jbe 0x409122
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409133
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x65c7e0]
call fcn.00408fb0
jmp 0x409138
cmp edi, dword [ebp - 8]
jae 0x4090fc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4091e7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4091e7
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407824
push dword [ebp - 0x160]
push 0x409220
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407824
push dword [ebp - 0x164]
push 0x409230
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407824
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407a5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40920c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406b64
ret
Function at 0x4093b8
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 0x4094bb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x66cb55
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x66cb6e]
jne 0x409404
mov eax, esi
mov edx, 0x66cb70
mov ecx, 0x55
call fcn.00407824
push 0x66cb55
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4094a5
push 0x66cb55
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406b04
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409473
cmp byte [0x66cb54], 0
je 0x409438
mov edx, esi
mov eax, ebx
call fcn.0040929c
jmp 0x409473
mov edx, esi
mov eax, ebx
call fcn.004090a0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409473
cmp dword [esi], 0
je 0x40945c
mov eax, esi
mov edx, 0x4094d4
call fcn.0040797c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004090a0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040797c
push 0x66cb55
call sub.kernel32.dll_EnterCriticalSection
mov word [0x66cb6e], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407770
push eax
push 0x66cb70
call sub.kernel32.dll_lstrcpynW
push 0x66cb55
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094c2
lea eax, [ebp - 4]
call fcn.00406b04
ret
Function at 0x4096f0
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.00406be8
xor eax, eax
push ebp
push 0x409915
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409730
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40974a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407770
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4098ff
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409924
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409819
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409924
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409819
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409960
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409819
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409960
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409819
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409994
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409819
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4098ff
xor eax, eax
push ebp
push 0x4098f8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004094fc
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 0x409888
mov eax, dword [ebp - 0x10]
call fcn.004043d8
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.004077d0
jmp 0x4098d3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409a08
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4098d3
mov eax, dword [ebp - 0x10]
call fcn.004043d8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409a08
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004077d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4098ff
cmp dword [ebp - 8], 0
je 0x4098ee
mov eax, dword [ebp - 8]
call fcn.004043f4
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 0x40991c
lea eax, [ebp - 4]
call fcn.00406b04
ret