joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414ac0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x414b0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004147fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414b27
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x414b30
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004147fc
dec esi
jne 0x414b52
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x415cc4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4a37e8
cmp dword [edi], 0
jne 0x415d40
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4a37e4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49b59c
mov ecx, 2
call fcn.00427d20
mov edx, 0x415c9c
lea eax, [esi + 5]
call fcn.00415cbc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00415cbc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x415d15
mov dword [0x4a37e4], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x417024
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00416970
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00429bd8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x417083
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a30fc]
mov dl, 1
mov eax, dword [0x416868]
call fcn.0041c8d8
call fcn.004291a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41708c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00429bd8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4170e4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a30f4]
mov dl, 1
mov eax, dword [0x416868]
call fcn.0041c8d8
call fcn.004291a4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004169a0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41887c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4188ce
test eax, edx
je 0x4188d1
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x418891
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4188b7
add ecx, 4
js 0x4188a7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4188b4
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4188dd
test edx, edx
jne 0x418884
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41bff4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x41c02d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00429838
jmp 0x41c036
mov eax, ebx
mov edx, esi
call fcn.0042979c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41c040
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x41c062
movzx eax, byte [esp]
jmp 0x41c064
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41c6f4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x41c56c
mov eax, dword [0x4a32e8]
cmp byte [eax], 0
je 0x41c770
mov eax, dword [0x4a32ec]
call fcn.004280d8
call fcn.00427c8c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.USER32.DLL_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00419728
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x41c7b8
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x41c7a6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a3194]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a34e0]
call fcn.0042ab24
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret

Function at 0x41d054
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41d12a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004297e0
lea eax, [ebp - 4]
call fcn.00429c30
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00429bd8
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x41d114
mov eax, ebx
call fcn.00427ac0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41d10d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00429bd8
push eax
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x41d0f7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41d13c
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x41d0f7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d114
mov eax, dword [ebp - 0x10]
call fcn.00427adc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d131
lea eax, [ebp - 4]
call fcn.00429748
ret

Function at 0x427f7c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00429748
test esi, esi
jne 0x427fb2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00429838
jmp 0x427fd0
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00427e20
mov edi, eax
test esi, esi
je 0x427fd0
cmp dword [ebx], 0
je 0x427fd0
dec esi
jmp 0x427fb9
add esp, 0x108
pop edi
pop esi
pop ebx
ret
Function at 0x428004
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x428728
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x49baac]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4287c0
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4287a0
xor eax, eax
push ebp
push 0x428799
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4287dc
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4287a0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
movzx eax, word [0x49baac]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x49baac], ax
mov esp, ebp
pop ebp
ret

Function at 0x429514
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a5a14], 0
je 0x429575
cmp word [0x4a5be8], 0xd7b2
jne 0x42953d
cmp dword [0x4a5bf0], 0
jbe 0x42953d
mov eax, 0x4a5be4
call dword [0x4a5c00]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x42959c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x49babc], 0
jne 0x429591
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x4296cc
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 [0x49ba94], 0
je 0x4296f2
mov edx, esi
mov eax, ebx
call dword [0x49ba94]
jmp 0x429701
mov eax, 8
call fcn.00427ac0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4a5a15], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x429694
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 0x42ad40
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42af70
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42adc3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42af70
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42adc3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42af8c
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x42ae4c
xor eax, eax
push ebp
push 0x42ae45
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0042ab7c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x42ae2a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x42afac
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x42ae2a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ae4c
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x42af66
cmp byte [ebp - 0xd], 0
jne 0x42ae93
cmp byte [ebp - 0x12], 0
je 0x42af66
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x42aeac
dec ebx
cmp byte [ebx], 0x2e
je 0x42aebb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x42aeab
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x42af66
inc ebx
cmp byte [ebp - 0x12], 0
je 0x42aef8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x42af66
cmp byte [ebp - 0xd], 0
je 0x42af66
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x42af66
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b6ec
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x4a5f8c], 1
jae 0x42b780
call fcn.0042789c
mov byte [0x49baa8], 2
mov dword [0x4a59d8], 0x497252
mov dword [0x4a59dc], 0x49726a
mov byte [0x4a5a16], 2
mov dword [0x4a59c4], 0x42a63c
call fcn.004286f8
test al, al
je 0x42b738
call fcn.00428728
call fcn.004287ec
mov word [0x4a5a1c], 0xd7b0
mov word [0x4a5be8], 0xd7b0
mov word [0x4a5db4], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4a5a08], eax
call fcn.00425f9c
mov dword [0x4a5a04], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x4a5f90], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4a59fc], eax
ret

Function at 0x4361e0
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.00429748
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43622e
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.004299b8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43b310
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43b443
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.USER32.DLL_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x4168c8]
call fcn.004169c8
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x43b419
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, SysReAllocStringLen
mov eax, dword [ebp - 0xc]
call fcn.00416a68
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.004299b8
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x43b458
call fcn.00429a60
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00416ccc
lea ecx, [ebp - 4]
mov edx, 0x43b494
mov eax, dword [ebp - 0xc]
call fcn.00416f44
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0041e4c0
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x43b3fc
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x43b4a0
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x49c86c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b403
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret
Function at 0x43b4f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x43b537
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x43b51a
add bx, 0x2000
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x43b52b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x43b537
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x43de94
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x43de9a
ret
Function at 0x449478
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_GetWindowLongA
mov edi, eax
test bl, bl
je 0x449499
test edi, 0x40000
je 0x4494b3
test bl, bl
jne 0x449534
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x449534
push esi
call sub.USER32.DLL_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.USER32.DLL_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x4494e6
push 0
push esi
call sub.USER32.DLL_ShowWindow
test bl, bl
je 0x4494fb
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongA
jmp 0x44950a
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x44951b
cmp byte [esp + 2], 0
je 0x449534
cmp byte [esp + 2], 0
je 0x44952c
push 6
push esi
call sub.USER32.DLL_ShowWindow
jmp 0x449534
push 5
push esi
call sub.USER32.DLL_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4497d8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.USER32.DLL_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x4497fe
mov eax, esp
push eax
push 0x4497a0
call sub.USER32.DLL_EnumWindows
jmp 0x449811
mov eax, esp
push eax
push 0x449780
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
call sub.USER32.DLL_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x44989c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4498f0]
test si, 4
je 0x4498b1
or bl, 1
test si, 8
je 0x4498bb
or bl, 4
test si, 1
je 0x4498c5
or bl, 8
test si, 2
je 0x4498cf
or bl, 0x10
test si, 0x10
je 0x4498d9
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4498e8
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4498f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x449930]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x44990e
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x44991d
or bl, 4
test esi, 0x20000000
je 0x449928
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x451b80
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x451b92
add esp, 0xfffffff0
call fcn.00428c54
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00414c04
mov eax, dword [0x4a330c]
mov dword [eax + 4], ebx
mov dword [eax], 0x451f24
mov eax, dword [0x4a3310]
mov dword [eax + 4], ebx
mov dword [eax], 0x451f30
mov eax, ebx
call fcn.00451f3c
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x40c138]
call fcn.00428900
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40c138]
call fcn.00428900
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x40c138]
call fcn.00428900
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x40c138]
call fcn.00428900
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x40c138]
call fcn.00428900
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, 0x44d308
push eax
push 0
push 0
mov eax, dword [0x4a3368]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x43d1c0]
call fcn.0043ea14
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x43d1c0]
call fcn.0043ea14
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x43d1c0]
call fcn.0043ea14
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00452444
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4522cc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4522cc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4522cc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451ccf
call fcn.00428cac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4520b0
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 0x45225b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45223c
mov dl, 1
mov eax, dword [0x40c55c]
call fcn.00428900
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00429748
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45222b
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.0046d9f0
test al, al
je 0x45221e
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, 0x45226c
lea eax, [ebp - 0x254]
call fcn.00419dd8
push eax
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x45221e
xor eax, eax
push ebp
push 0x452217
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4522a4
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x452200
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004299b8
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 0x452200
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004299b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45221e
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x452121
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.004103bc
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 0x452262
lea eax, [ebp - 0x260]
call fcn.00429748
ret

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

Disassembly:
push ecx
mov eax, dword [0x4a827c]
cmp byte [eax + 0xad], 0
jne 0x452d55
cmp dword [0x4a8298], 0
jne 0x452d16
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x452ca0
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x4a8298], eax
cmp dword [0x4a8294], 0
jne 0x452d31
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x4a8294], eax
cmp dword [0x4a829c], 0
jne 0x452d55
push esp
push 0
push 0
push 0x452c44
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x4a829c], eax
pop edx
ret