joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003a364
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x10058e34]
cmp byte [eax + 0xc], 0
je 0x1003a4d1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x1003a4ca
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x10059b68], 0
jne 0x1003a3b8
push 0x1003a4d8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x1003a4e0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x10059b68], eax
cmp dword [0x10057b10], 0
jne 0x1003a4b3
push 0x1003a4f0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x10057b10], eax
cmp dword [0x10057b10], 0
je 0x1003a4b3
push 0x1003a4fc
mov eax, dword [0x10057b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x10059b6c], eax
push 0x1003a50c
mov eax, dword [0x10057b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x10059b70], eax
push 0x1003a520
mov eax, dword [0x10057b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x10059b74], eax
push 0x1003a538
mov eax, dword [0x10057b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x10059b78], eax
push 0x1003a550
mov eax, dword [0x10057b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x10059b7c], eax
push 0x1003a564
mov eax, dword [0x10057b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x10059b80], eax
push 0x1003a57c
mov eax, dword [0x10057b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x10059b84], eax
push 0x1003a594
mov eax, dword [0x10057b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x10059b88], eax
push 0x1003a5b0
mov eax, dword [0x10057b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x10059b8c], eax
push 0x1003a5bc
mov eax, dword [0x10057b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x10059b90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1003a4d1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x1003e35c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.10003f80
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x1003e3ab
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.100041f0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10045ac0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x10045b10]
test si, 4
je 0x10045ad4
or bl, 1
test si, 8
je 0x10045ade
or bl, 4
test si, 1
je 0x10045ae8
or bl, 8
test si, 2
je 0x10045af2
or bl, 0x10
test si, 0x10
je 0x10045afc
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x10045b0b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x10045b14
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x10045b4c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x10045b2d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x10045b3c
or bl, 4
test esi, 0x20000000
je 0x10045b47
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x1004c1f4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x1004c206
add esp, 0xfffffff0
call fcn.10003554
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.1001c584
mov eax, dword [0x100589e0]
mov dword [eax + 4], ebx
mov dword [eax], 0x1004c598
mov eax, dword [0x100589ec]
mov dword [eax + 4], ebx
mov dword [eax], 0x1004c5a4
mov eax, ebx
call fcn.1004c5b0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x1001487c]
call fcn.10003218
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x1001487c]
call fcn.10003218
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x1001487c]
call fcn.10003218
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x1001487c]
call fcn.10003218
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x1001487c]
call fcn.10003218
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, 0x100489cc
push eax
push 0
push 0
mov eax, dword [0x10058bb0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x1001dfa8]
call fcn.1001f3ec
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x1001dfa8]
call fcn.1001f3ec
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x1001dfa8]
call fcn.1001f3ec
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.1004c9d0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x1004c8ac
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x1004c8ac
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x1004c8ac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x1004c343
call fcn.100035ac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x1004c690
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 0x1004c83b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x1004c81c
mov dl, 1
mov eax, dword [0x10014c98]
call fcn.10003218
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.10003f80
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x1004c80b
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.1003a6c4
test al, al
je 0x1004c7fe
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, 0x1004c84c
lea eax, [ebp - 0x254]
call fcn.10008c10
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x1004c7fe
xor eax, eax
push ebp
push 0x1004c7f7
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 0x1004c884
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x1004c7e0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.100041f0
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 0x1004c7e0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.100041f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1004c7fe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x1004c701
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.10018774
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 0x1004c842
lea eax, [ebp - 0x260]
call fcn.10003f80
ret

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

Disassembly:
push ecx
mov eax, dword [0x10059bb4]
cmp byte [eax + 0xa5], 0
jne 0x1004d1e1
cmp dword [0x10059bcc], 0
jne 0x1004d1a2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x1004d12c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x10059bcc], eax
cmp dword [0x10059bc8], 0
jne 0x1004d1bd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x10059bc8], eax
cmp dword [0x10059bd0], 0
jne 0x1004d1e1
push esp
push 0
push 0
push 0x1004d0d0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x10059bd0], eax
pop edx
ret
Function at 0x1004d2d8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x1004d2ef
add esp, 0xfffffff0
call fcn.10003554
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.1001c584
mov eax, dword [0x10058b94]
cmp word [eax + 2], 0
jne 0x1004d317
mov eax, dword [0x10058b94]
mov dword [eax + 4], ebx
mov dword [eax], fcn.1004e9b0
mov eax, dword [0x10058c7c]
cmp word [eax + 2], 0
jne 0x1004d331
mov eax, dword [0x10058c7c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.1004eba8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x1001487c]
call fcn.10003218
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x1001487c]
call fcn.10003218
mov dword [ebx + 0xa8], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x1001e758]
call fcn.100243a0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x1004d4b8
mov eax, dword [0x10058a70]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.10024770
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x1004f158
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x10058a70]
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.1000c33c
test eax, eax
je 0x1004d426
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.10008604
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.1000c364
test eax, eax
je 0x1004d43a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.100041f0
mov eax, dword [0x100588ec]
cmp byte [eax], 0
jne 0x1004d46e
mov eax, ebx
call fcn.1004d5e0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.1004f334
mov eax, ebx
call fcn.1004fcf8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x1004d4ae
call fcn.100035ac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004d860
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x10059bb4]
cmp dword [eax + 0x30], 0
je 0x1004d90a
cmp dword [ebx + 0x94], 0
jne 0x1004d904
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x1004d7f0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x1004d904
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 0x1004d8ca
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x1004d904
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.10016be4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x1004d8d9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x1004e46c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x1004e4a1
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.10004070
jmp 0x1004e4ae
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.10003fd4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x1004f510
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x1004f551
mov eax, esi
call fcn.10035ecc
test al, al
je 0x1004f551
mov eax, dword [ebx + 0x84]
call fcn.10035c6c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x1004f551
push 0
mov eax, dword [ebx + 0x84]
call fcn.10035c6c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x43b634
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
add edx, 0x536ef4bf
call fcn.0043b669
dec edx
inc edi
xor dword [ecx], eax
sub edx, 0x6595da45
add edi, edi
inc ecx
sub edx, edi
sub edi, 0xac2e1bdb
cmp ecx, esi
jne fcn.0043b634
sub edi, 0x9b732802
or edx, edi
ret
Function at 0x4045c4
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.00406e94
test esi, esi
jne 0x4045fc
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.00406fd0
jmp 0x40461a
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404508
mov edi, eax
test esi, esi
je 0x40461a
cmp dword [ebx], 0
je 0x40461a
dec esi
jmp 0x404603
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406288
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x500050], 0
je 0x4062e9
cmp word [0x50032c], 0xd7b2
jne 0x4062b1
cmp dword [0x500334], 0
jbe 0x4062b1
mov eax, 0x500328
call dword [0x500344]
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 0x406314
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4fb030], 0
jne 0x406305
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406494
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 [0x4fb038], 0
je 0x4064ba
mov edx, esi
mov eax, ebx
call dword [0x4fb038]
jmp 0x4064c9
mov eax, 8
call fcn.00404250
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x500051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40645c
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 0x408cd4
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 0x408e3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406e94
cmp si, word [0x4fb7e0]
jb 0x408d6e
cmp si, word [0x4fb9e0]
ja 0x408d6e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408d6e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4fb7e0]
jae 0x408d48
mov edi, ebx
dec edi
jmp 0x408d69
cmp si, word [ebx*8 + 0x4fb7e0]
jbe 0x408d58
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408d69
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4fb7e4]
call fcn.00408be4
jmp 0x408d6e
cmp edi, dword [ebp - 0xc]
jae 0x408d32
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408e1d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408e1d
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.00407094
push dword [ebp - 0x164]
push 0x408e58
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407094
push dword [ebp - 0x168]
push 0x408e68
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407094
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.0040744c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e42
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406e8c
ret
Function at 0x408ff4
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 0x4090f9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x502b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x502b70]
jne 0x409040
mov eax, esi
mov edx, 0x502b74
mov ecx, 0x55
call fcn.00407094
push 0x502b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4090e3
push 0x502b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406e94
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4090b1
cmp byte [0x502b54], 0
je 0x409076
mov edx, esi
mov eax, ebx
call fcn.00408ed4
jmp 0x4090b1
mov edx, esi
mov eax, ebx
call fcn.00408cd4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4090b1
cmp dword [esi], 0
je 0x40909a
mov eax, esi
mov edx, 0x409114
call fcn.004072a8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408cd4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004072a8
push 0x502b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x502b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406f20
push eax
push 0x502b74
call sub.kernel32.dll_lstrcpynW
push 0x502b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409100
lea eax, [ebp - 4]
call fcn.00406e84
ret
Function at 0x409338
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.00406e7c
xor eax, eax
push ebp
push 0x40951d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409378
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409392
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406f20
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409507
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40952c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409421
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40952c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409421
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409560
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409421
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409594
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409507
xor eax, eax
push ebp
push 0x409500
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040913c
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 0x409490
mov eax, dword [ebp - 0x10]
call fcn.00404250
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.00407040
jmp 0x4094db
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4095d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4094db
mov eax, dword [ebp - 0x10]
call fcn.00404250
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4095d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407040
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409507
cmp dword [ebp - 8], 0
je 0x4094f6
mov eax, dword [ebp - 8]
call fcn.0040426c
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 0x409524
lea eax, [ebp - 4]
call fcn.00406e84
ret
Function at 0x4097e8
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.00406e7c
mov eax, dword [ebp - 0x21c]
call fcn.00406e7c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409987
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406e94
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406f20
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 0x409888
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40989a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409885
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409953
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 0x4098c3
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.00409338
cmp dword [ebp - 0x220], 0
je 0x4098fb
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004096dc
pop ecx
mov ebx, eax
jmp 0x409953
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408ff4
mov eax, dword [ebp - 0x224]
call fcn.004096dc
pop ecx
mov ebx, eax
test bl, bl
jne 0x409946
cmp byte [0x502b54], 0
jne 0x409946
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408ff4
mov eax, dword [ebp - 0x228]
call fcn.004096dc
pop ecx
mov ebx, eax
test bl, bl
jne 0x409953
push ebp
call fcn.0040978c
pop ecx
mov ebx, eax
test bl, bl
je 0x409969
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407094
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40998e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406e8c
ret

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