joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c7a8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x43c7c4
cmp dword [esi + 4], 0
je 0x43c7f1
test byte [ebx + 0x55], 1
jne 0x43c7e3
mov eax, ebx
call fcn.0043ab90
test eax, eax
jne 0x43c7e3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43c901
mov edx, esi
mov eax, ebx
call fcn.0043c1b0
jmp 0x43c901
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43c8fa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043e800
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00437ff8
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043c7a8
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043e800
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c901
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443a3c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x462e38]
cmp byte [eax + 0xc], 0
je 0x443ba9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x443ba2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x466544], 0
jne 0x443a90
push 0x443bb0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x443bb8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466544], eax
cmp dword [0x4625b0], 0
jne 0x443b8b
push 0x443bc8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4625b0], eax
cmp dword [0x4625b0], 0
je 0x443b8b
push 0x443bd4
mov eax, dword [0x4625b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466548], eax
push 0x443be4
mov eax, dword [0x4625b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46654c], eax
push 0x443bf8
mov eax, dword [0x4625b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466550], eax
push 0x443c10
mov eax, dword [0x4625b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466554], eax
push 0x443c28
mov eax, dword [0x4625b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466558], eax
push 0x443c3c
mov eax, dword [0x4625b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46655c], eax
push 0x443c54
mov eax, dword [0x4625b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466560], eax
push 0x443c6c
mov eax, dword [0x4625b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466564], eax
push 0x443c88
mov eax, dword [0x4625b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466568], eax
push 0x443c94
mov eax, dword [0x4625b0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46656c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x443ba9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x449218
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44926c]
test si, 4
je 0x44922d
or bl, 1
test si, 8
je 0x449237
or bl, 4
test si, 1
je 0x449241
or bl, 8
test si, 2
je 0x44924b
or bl, 0x10
test si, 0x10
je 0x449255
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449264
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x449270
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4492ac]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44928a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449299
or bl, 4
test esi, 0x20000000
je 0x4492a4
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x450960
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x450972
add esp, 0xfffffff0
call fcn.00403b94
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a0c8
mov eax, dword [0x462adc]
mov dword [eax + 4], ebx
mov dword [eax], 0x450d04
mov eax, dword [0x462ae8]
mov dword [eax + 4], ebx
mov dword [eax], 0x450d10
mov eax, ebx
call fcn.00450d1c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411d04]
call fcn.00403858
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411d04]
call fcn.00403858
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411d04]
call fcn.00403858
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411d04]
call fcn.00403858
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411d04]
call fcn.00403858
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44c7b4
push eax
push 0
push 0
mov eax, dword [0x462c48]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41dc44]
call fcn.0041f164
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41dc44]
call fcn.0041f164
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41dc44]
call fcn.0041f164
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045114c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45101c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45101c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45101c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450aaf
call fcn.00403bec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x450e00
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x450fab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450f8c
mov dl, 1
mov eax, dword [0x412128]
call fcn.00403858
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040469c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450f7b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00443d98
test al, al
je 0x450f6e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x450fbc
lea eax, [ebp - 0x254]
call fcn.004091b0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450f6e
xor eax, eax
push ebp
push 0x450f67
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x450ff4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450f50
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040490c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x450f50
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040490c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450f6e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450e71
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00415e90
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450fb2
lea eax, [ebp - 0x260]
call fcn.0040469c
ret

Function at 0x451924
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x46657c]
cmp byte [eax + 0xad], 0
jne 0x451995
cmp dword [0x466594], 0
jne 0x451956
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4518e0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x466594], eax
cmp dword [0x466590], 0
jne 0x451971
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x466590], eax
cmp dword [0x466598], 0
jne 0x451995
push esp
push 0
push 0
push 0x451884
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x466598], eax
pop edx
ret
Function at 0x451b68
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x451b7f
add esp, 0xfffffff0
call fcn.00403b94
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a0c8
mov eax, dword [0x462c2c]
cmp word [eax + 2], 0
jne 0x451ba7
mov eax, dword [0x462c2c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453618
mov eax, dword [0x462ce0]
cmp word [eax + 2], 0
jne 0x451bc1
mov eax, dword [0x462ce0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453824
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411d04]
call fcn.00403858
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411d04]
call fcn.00403858
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411d04]
call fcn.00403858
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e420]
call fcn.004242d0
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x451d78
mov eax, dword [0x462b48]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004246a4
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453ee4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x462b48]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c8c0
test eax, eax
je 0x451cc8
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408b68
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c8f4
test eax, eax
je 0x451cdc
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040490c
mov byte [ebx + 0xd4], 0
push ebx
push 0x453178
call fcn.0041b244
mov dword [ebx + 0xc8], eax
mov eax, dword [0x462a38]
cmp byte [eax], 0
jne 0x451d2d
mov eax, ebx
call fcn.00451ebc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004540c0
mov eax, ebx
call fcn.00454c20
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451d6d
call fcn.00403bec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45213c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46657c]
cmp dword [eax + 0x30], 0
je 0x4521e6
cmp dword [ebx + 0x94], 0
jne 0x4521e0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4520cc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4521e0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4521a6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4521e0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414138
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4521b5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x452f00
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x452f35
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040478c
jmp 0x452f42
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046f0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4542a4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454312
mov eax, esi
call fcn.0043eba0
test al, al
je 0x454312
mov eax, dword [ebx + 0x84]
call fcn.0043e800
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454312
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x454306
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043e800
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00436c6c
jmp 0x454312
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004540e0
pop esi
pop ebx
ret
Function at 0x4044c4
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.004065fc
test esi, esi
jne 0x4044fc
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.00406738
jmp 0x40451a
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404408
mov edi, eax
test esi, esi
je 0x40451a
cmp dword [ebx], 0
je 0x40451a
dec esi
jmp 0x404503
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405c74
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44104c], 0
je 0x405cd5
cmp word [0x441328], 0xd7b2
jne 0x405c9d
cmp dword [0x441330], 0
jbe 0x405c9d
mov eax, 0x441324
call dword [0x441340]
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 0x405d00
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43d02c], 0
jne 0x405cf1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408134
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 0x40829b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004065fc
cmp si, word [0x43d7cc]
jb 0x4081ce
cmp si, word [0x43d9cc]
ja 0x4081ce
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4081ce
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x43d7cc]
jae 0x4081a8
mov edi, ebx
dec edi
jmp 0x4081c9
cmp si, word [ebx*8 + 0x43d7cc]
jbe 0x4081b8
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4081c9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x43d7d0]
call fcn.00408044
jmp 0x4081ce
cmp edi, dword [ebp - 0xc]
jae 0x408192
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40827d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40827d
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.004067e4
push dword [ebp - 0x164]
push 0x4082b8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004067e4
push dword [ebp - 0x168]
push 0x4082c8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004067e4
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406b90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4082a2
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004065f4
ret
Function at 0x408454
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 0x408559
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x443b54
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x443b6c]
jne 0x4084a0
mov eax, esi
mov edx, 0x443b70
mov ecx, 0x55
call fcn.004067e4
push 0x443b54
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408543
push 0x443b54
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.004065fc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408511
cmp byte [0x443b50], 0
je 0x4084d6
mov edx, esi
mov eax, ebx
call fcn.00408334
jmp 0x408511
mov edx, esi
mov eax, ebx
call fcn.00408134
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408511
cmp dword [esi], 0
je 0x4084fa
mov eax, esi
mov edx, 0x408574
call fcn.004069ec
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408134
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004069ec
push 0x443b54
call sub.kernel32.dll_EnterCriticalSection
mov word [0x443b6c], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406688
push eax
push 0x443b70
call sub.kernel32.dll_lstrcpynW
push 0x443b54
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408560
lea eax, [ebp - 4]
call fcn.004065ec
ret
Function at 0x408798
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.004065e4
xor eax, eax
push ebp
push 0x40897d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4087d8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4087f2
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406688
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408967
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40898c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408881
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40898c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408881
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4089c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408881
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4089f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408967
xor eax, eax
push ebp
push 0x408960
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040859c
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 0x4088f0
mov eax, dword [ebp - 0x10]
call fcn.00404170
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.004067a8
jmp 0x40893b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408a34
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40893b
mov eax, dword [ebp - 0x10]
call fcn.00404170
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408a34
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004067a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408967
cmp dword [ebp - 8], 0
je 0x408956
mov eax, dword [ebp - 8]
call fcn.0040418c
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 0x408984
lea eax, [ebp - 4]
call fcn.004065ec
ret