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

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4be69b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004bc6de
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004bc6b6
jmp 0x4be6a7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4bfe61
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4bfea3
call fcn.004c6098
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4bfea3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4bfe9a
xor eax, eax
jmp 0x4bfeab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004bfeb1
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c65c8
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 0x4c65f6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c6614
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c652e
jmp 0x4c6614
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c6614
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c652e
test edi, edi
mov eax, edi
jne 0x4c65fe
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xab266b2
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x472c6f4a
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x401206
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x7f00
xor edi, edi
push edi
mov dword [ebp - 0x24], str.construct
mov dword [ebp - 0x44], 0x401000
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x4c], 0x30
call esi
push 0x7f00
push edi
mov dword [ebp - 0x34], eax
call esi
push 0x7f00
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call esi
push edi
mov dword [0x4030b0], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x401318
push 1
push dword [0x4030b0]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push edi
push edi
call esi
push eax
push edi
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.displayed
push str.construct
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x4030b8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401318
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x4012fb
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4080e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40d055
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
push edi
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
push 0x100
push eax
mov dword [esp + 0x120], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + eax + 0x10]
mov edi, 0x412330
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x4122cc
push edx
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x12c]
add esp, 0xc
lea eax, [esp + 8]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x118], 0
call fcn.0040bef8
mov ecx, dword [esp + 0x110]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x409380
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40d2b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push esi
push edi
lea ecx, [esp + 8]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
push 0x100
push eax
mov dword [esp + 0x124], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0xc]
mov esi, eax
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x128]
lea edx, [esp + 0xc]
push ecx
push 0x4124f8
push edx
mov byte [esp + 0x128], 2
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + esi + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
push 0x4122cc
push edx
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x13c]
add esp, 0x18
lea eax, [esp + 8]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x11c], 1
call fcn.0040bef8
lea ecx, [esp + 8]
mov byte [esp + 0x11c], 0
call fcn.0040bef8
mov ecx, dword [esp + 0x114]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret 8
Function at 0x409490
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40d302
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x138]
lea eax, [esp + 0x10]
push esi
push 0x412530
push eax
mov dword [esp + 0x13c], 0
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x20]
push 0x4129c4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov bl, 2
push ecx
mov byte [esp + 0x134], bl
call fcn.004080e0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], bl
call fcn.0040bef8
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push 0x104
push eax
push ecx
push 0x412528
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x1c]
push 0x4129c4
push ecx
mov byte [esp + 0x138], 4
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4095e9
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], bl
call fcn.0040bef8
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 1
call fcn.0040bef8
lea ecx, [esp + 0x20]
mov byte [esp + 0x130], 0
call fcn.0040bef8
lea ecx, [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
call fcn.0040bef8
xor al, al
jmp 0x409672
lea edx, [esp + 0x14]
push esi
push edx
mov ecx, ebp
call fcn.0040b0a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x13c]
push eax
push esi
push 0x412514
push ecx
mov byte [esp + 0x140], 5
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 4
call fcn.0040bef8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], bl
call fcn.0040bef8
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 1
call fcn.0040bef8
lea ecx, [esp + 0x20]
mov byte [esp + 0x130], 0
call fcn.0040bef8
lea ecx, [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
call fcn.0040bef8
mov al, 1
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 8
Function at 0x40a270
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40d450
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x60]
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetWindowTextLengthA
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push eax
mov eax, dword [esi + 0x20]
push 0xb1
push eax
call ebp
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0xb7
push ecx
call ebp
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1e]
mov edx, dword [esp + 0x1c]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x1e]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
push edx
mov edx, dword [esp + 0x20]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x28]
push 0x412660
push eax
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x30]
push ecx
push edx
lea eax, [esp + 0x34]
push 0x412654
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x3c]
mov edx, dword [edi + 0x80]
add esp, 0x30
push ecx
push 0
push 0xc2
push edx
call ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0040bef8
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040bef8
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x405dac
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.00406184
mov byte [esp], al
cmp byte [esp], 0
jne 0x405f2c
test edi, edi
je 0x405f2c
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405e6c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405e47
cmp edi, 0xffffffff
je 0x405e0b
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405e0b
mov byte [esp], 0
jmp 0x405f2c
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405e47
test ebx, ebx
jne 0x405e3d
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x405e3d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405f2c
call 0x4062a4
dec ebp
test ebp, ebp
jg 0x405df0
cmp edi, 0xffffffff
je 0x405e6c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405e6a
mov byte [esp], 0
jmp 0x405f2c
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405dba
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405e6c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405f98
mov edx, eax
mov ebx, dword [0x5ef8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405ed0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405ece
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405ed0
xor edi, edi
cmp byte [esp], 0
je 0x405ef6
mov ebx, dword [esi]
test bl, 1
jne 0x405f0c
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405ed6
mov byte [esp + 1], 1
jmp 0x405f0c
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405ef6
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405e83
cmp byte [esp], 0
je 0x405f2c
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 0x406ce0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5ef058], 0
je 0x406d47
cmp word [0x5ef344], 0xd7b2
jne 0x406d09
cmp dword [0x5ef34c], 0
jbe 0x406d09
mov eax, 0x5ef340
call dword [0x5ef35c]
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
mov eax, 0x406d74
call fcn.00407a68
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5e7032], 0
jne 0x406d63
push 0
push 0x5e79c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406f04
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 [0x5e7034], 0
je 0x406f2f
mov edx, edi
mov eax, esi
call dword [0x5e7034]
mov ebx, eax
jmp 0x406f40
mov eax, 8
call fcn.00404900
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5ef059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406ecc
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 0x406f70
mov eax, ebx
call fcn.0040491c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x4099ec
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 0x409b51
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407044
cmp si, word [0x5e7a00]
jb 0x409a84
cmp si, word [0x5e7c00]
ja 0x409a84
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409a84
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5e7a00]
jae 0x409a5e
mov edi, ebx
dec edi
jmp 0x409a7f
cmp si, word [ebx*8 + 0x5e7a00]
jbe 0x409a6e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409a7f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5e7a04]
call fcn.0040990c
jmp 0x409a84
cmp edi, dword [ebp - 8]
jae 0x409a48
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409b33
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409b33
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.00407f5c
push dword [ebp - 0x160]
push 0x409b6c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407f5c
push dword [ebp - 0x164]
push 0x409b7c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407f5c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408194
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409b58
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004070a4
ret
Function at 0x409d04
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 0x409e07
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5f1b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5f1ba0]
jne 0x409d50
mov eax, esi
mov edx, 0x5f1ba2
mov ecx, 0x55
call fcn.00407f5c
push 0x5f1b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409df1
push 0x5f1b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407044
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409dbf
cmp byte [0x5f1b84], 0
je 0x409d84
mov edx, esi
mov eax, ebx
call fcn.00409be8
jmp 0x409dbf
mov edx, esi
mov eax, ebx
call fcn.004099ec
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409dbf
cmp dword [esi], 0
je 0x409da8
mov eax, esi
mov edx, 0x409e20
call fcn.004080b4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004099ec
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004080b4
push 0x5f1b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5f1ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407ea0
push eax
push 0x5f1ba2
call sub.kernel32.dll_lstrcpynW
push 0x5f1b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409e0e
lea eax, [ebp - 4]
call fcn.00407044
ret
Function at 0x40a03c
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.00407128
xor eax, eax
push ebp
push 0x40a261
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a07c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40a096
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407ea0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a24b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a270
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a165
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a270
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a165
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a2ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a165
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a2ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a165
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a2e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a165
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a314
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a24b
xor eax, eax
push ebp
push 0x40a244
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409e48
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 0x40a1d4
mov eax, dword [ebp - 0x10]
call fcn.00404900
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.00407f08
jmp 0x40a21f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a354
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a21f
mov eax, dword [ebp - 0x10]
call fcn.00404900
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a354
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407f08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a24b
cmp dword [ebp - 8], 0
je 0x40a23a
mov eax, dword [ebp - 8]
call fcn.0040491c
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 0x40a268
lea eax, [ebp - 4]
call fcn.00407044
ret