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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x51991c]
cmp byte [eax + 0xc], 0
je 0x440379
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x440372
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x51aafc], 0
jne 0x440260
push 0x440380
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x440388
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51aafc], eax
cmp dword [0x461ad4], 0
jne 0x44035b
push 0x440398
call sub.kernel32.dll_LoadLibraryA
mov dword [0x461ad4], eax
cmp dword [0x461ad4], 0
je 0x44035b
push 0x4403a4
mov eax, dword [0x461ad4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51ab00], eax
push 0x4403b4
mov eax, dword [0x461ad4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51ab04], eax
push 0x4403c8
mov eax, dword [0x461ad4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51ab08], eax
push 0x4403e0
mov eax, dword [0x461ad4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51ab0c], eax
push 0x4403f8
mov eax, dword [0x461ad4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51ab10], eax
push 0x44040c
mov eax, dword [0x461ad4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51ab14], eax
push 0x440424
mov eax, dword [0x461ad4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51ab18], eax
push 0x44043c
mov eax, dword [0x461ad4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51ab1c], eax
push 0x440458
mov eax, dword [0x461ad4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51ab20], eax
push 0x440464
mov eax, dword [0x461ad4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51ab24], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440379
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44422c
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.0040429c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44427b
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.0040450c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44bacc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44bb1c]
test si, 4
je 0x44bae0
or bl, 1
test si, 8
je 0x44baea
or bl, 4
test si, 1
je 0x44baf4
or bl, 8
test si, 2
je 0x44bafe
or bl, 0x10
test si, 0x10
je 0x44bb08
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44bb17
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44bb20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44bb58]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44bb39
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44bb48
or bl, 4
test esi, 0x20000000
je 0x44bb53
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45221c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45222e
add esp, 0xfffffff0
call fcn.00403848
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d218
mov eax, dword [0x5195b0]
mov dword [eax + 4], ebx
mov dword [eax], 0x4525c0
mov eax, dword [0x5195bc]
mov dword [eax + 4], ebx
mov dword [eax], 0x4525cc
mov eax, ebx
call fcn.004525d8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415430]
call fcn.004034e0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415430]
call fcn.004034e0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415430]
call fcn.004034e0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415430]
call fcn.004034e0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415430]
call fcn.004034e0
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, 0x44e9f0
push eax
push 0
push 0
mov eax, dword [0x519714]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ecc0]
call fcn.004204f8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ecc0]
call fcn.004204f8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ecc0]
call fcn.004204f8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00452a28
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4528f0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4528f0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4528f0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45236b
call fcn.004038a0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4526d4
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 0x45287f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x452860
mov dl, 1
mov eax, dword [0x41584c]
call fcn.004034e0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040429c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45284f
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.0044056c
test al, al
je 0x452842
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, 0x452890
lea eax, [ebp - 0x254]
call fcn.0040915c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x452842
xor eax, eax
push ebp
push 0x45283b
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 0x4528c8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x452824
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040450c
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 0x452824
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040450c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452842
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x452745
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004193b0
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 0x452886
lea eax, [ebp - 0x260]
call fcn.0040429c
ret

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

Disassembly:
push ecx
mov eax, dword [0x51ab48]
cmp byte [eax + 0xa5], 0
jne 0x453239
cmp dword [0x51ab60], 0
jne 0x4531fa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x453184
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x51ab60], eax
cmp dword [0x51ab5c], 0
jne 0x453215
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x51ab5c], eax
cmp dword [0x51ab64], 0
jne 0x453239
push esp
push 0
push 0
push 0x453128
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x51ab64], eax
pop edx
ret
Function at 0x4538cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x51ab48]
cmp dword [eax + 0x30], 0
je 0x453976
cmp dword [ebx + 0x94], 0
jne 0x453970
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45385c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453970
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 0x453936
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453970
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.004177ac
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453945
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4544d4
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 0x454509
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.0040438c
jmp 0x454516
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042f0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x455628
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x455669
mov eax, esi
call fcn.0043bbdc
test al, al
je 0x455669
mov eax, dword [ebx + 0x84]
call fcn.0043b904
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x455669
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b904
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x405bc0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x456054], 0
je 0x405c21
cmp word [0x456330], 0xd7b2
jne 0x405be9
cmp dword [0x456338], 0
jbe 0x405be9
mov eax, 0x45632c
call dword [0x456348]
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 0x405c4c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45202c], 0
jne 0x405c3d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408690
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 0x4087f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406b44
cmp si, word [0x4527c0]
jb 0x40872a
cmp si, word [0x4529c0]
ja 0x40872a
mov edi, pe_nt_image_headers32
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40872a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4527c0]
jae 0x408704
mov edi, ebx
dec edi
jmp 0x408725
cmp si, word [ebx*8 + 0x4527c0]
jbe 0x408714
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408725
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4527c4]
call fcn.004085a0
jmp 0x40872a
cmp edi, dword [ebp - 0xc]
jae 0x4086ee
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4087d9
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4087d9
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.00406d44
push dword [ebp - 0x164]
push 0x408814
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406d44
push dword [ebp - 0x168]
push 0x408824
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406d44
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.0040703c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4087fe
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406b3c
ret
Function at 0x408828
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x408a0e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x458b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x458b74]
cmp ax, word [ebp - 2]
jne 0x408880
mov eax, dword [ebp - 6]
mov edx, 0x458b78
mov ecx, 0x55
call fcn.00406d44
push 0x458b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4089f8
push 0x458b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00406b44
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4089c0
cmp byte [0x458b58], 0
je 0x408976
call dword [0x458b50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x458b54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x40896f
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x458b4c]
test al, al
je 0x408948
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004040f4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x458b4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x40893d
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x408939
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x408926
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406cf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4089c0
movzx eax, word [ebp - 0x16]
push eax
call dword [0x458b54]
cmp dword [ebp - 0x10], 0
je 0x40896e
mov eax, dword [ebp - 0x10]
call fcn.00404110
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00408690
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x4089c0
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x4089a5
mov eax, dword [ebp - 6]
mov edx, 0x408a28
call fcn.00406e98
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00408690
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406e98
mov eax, dword [ebp - 6]
push 0x458b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x458b74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406bd0
push eax
push 0x458b78
call sub.kernel32.dll_lstrcpynW
push 0x458b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a15
lea eax, [ebp - 0x1c]
call fcn.00406b34
ret
Function at 0x408c4c
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.00406b2c
xor eax, eax
push ebp
push 0x408e31
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408c8c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408ca6
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406bd0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408e1b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e40
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d35
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e40
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d35
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e74
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d35
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ea8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408e1b
xor eax, eax
push ebp
push 0x408e14
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408a50
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 0x408da4
mov eax, dword [ebp - 0x10]
call fcn.004040f4
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.00406cf0
jmp 0x408def
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408ee8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408def
mov eax, dword [ebp - 0x10]
call fcn.004040f4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408ee8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406cf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e1b
cmp dword [ebp - 8], 0
je 0x408e0a
mov eax, dword [ebp - 8]
call fcn.00404110
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 0x408e38
lea eax, [ebp - 4]
call fcn.00406b34
ret
Function at 0x4090fc
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.00406b2c
mov eax, dword [ebp - 0x21c]
call fcn.00406b2c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40929b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406b44
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406bd0
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 0x40919c
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4091ae
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409199
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409267
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 0x4091d7
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.00408c4c
cmp dword [ebp - 0x220], 0
je 0x40920f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00408ff0
pop ecx
mov ebx, eax
jmp 0x409267
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408828
mov eax, dword [ebp - 0x224]
call fcn.00408ff0
pop ecx
mov ebx, eax
test bl, bl
jne 0x40925a
cmp byte [0x458b58], 0
jne 0x40925a
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408828
mov eax, dword [ebp - 0x228]
call fcn.00408ff0
pop ecx
mov ebx, eax
test bl, bl
jne 0x409267
push ebp
call fcn.004090a0
pop ecx
mov ebx, eax
test bl, bl
je 0x40927d
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406d44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092a2
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406b3c
ret

Function at 0x40abc8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
mov edi, 0xfffffff9
mov ebx, 0x452b16
mov esi, 0x452b1e
movzx eax, byte [ebx]
push eax
call sub.user32.dll_GetKeyState
movsx eax, ax
and eax, dword [ebp - 8]
je 0x40ac03
movzx eax, byte [esi]
or dword [ebp - 4], eax
mov dword [ebp - 8], 0x8000
dec esi
dec ebx
inc edi
jne 0x40abec
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x40ce48
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
test esi, esi
jne 0x40ce80
push 0x20a
lea eax, [ebp - 0x20a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_2
mov ecx, eax
lea edx, [ebp - 0x20a]
mov eax, edi
call fcn.00406c80
jmp 0x40ced3
call sub.kernel32.dll_GetCommandLineW_1
call fcn.0040cdf4
mov ebx, eax
mov eax, ebx
call fcn.0040ce08
dec esi
test esi, esi
jge 0x40ce85
mov edx, eax
sub edx, ebx
sar edx, 1
jns 0x40cea3
adc edx, 0
cmp edx, 2
jl 0x40cebf
cmp word [ebx], 0x22
jne 0x40cebf
mov edx, eax
sub edx, 2
cmp word [edx], 0x22
jne 0x40cebf
add ebx, 2
sub eax, 2
mov ecx, eax
sub ecx, ebx
sar ecx, 1
jns 0x40ceca
adc ecx, 0
mov eax, edi
mov edx, ebx
call fcn.00406c80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406bd0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40d0a4
test al, 0x10
je 0x40d0a9
xor eax, eax
pop ebx
pop ebp
ret
mov al, 1
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
push 0x8001
call sub.kernel32.dll_SetErrorMode
mov edi, eax
mov eax, esi
call fcn.00406bd0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40d26e
test al, 0x10
jne 0x40d272
xor ebx, ebx
jmp 0x40d274
mov bl, 1
push edi
call sub.kernel32.dll_SetErrorMode
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40d71c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d786
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20a]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathW
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
call fcn.00406cf0
mov eax, dword [ebp - 0x210]
mov edx, ebx
call fcn.0040d3a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d78d
lea eax, [ebp - 0x210]
call fcn.00406b34
ret

Function at 0x40d794
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x20a]
push eax
push 0
mov eax, esi
call fcn.00406bd0
push eax
mov eax, ebx
call fcn.00406bd0
push eax
call sub.kernel32.dll_GetTempFileNameW
mov eax, edi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406d44
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret