joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43373c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4337cc
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4337cc
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x43377f
test edx, 3
jne 0x43376e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x433779
jmp 0x43377f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x43377f
cmp dword [ecx - 8], 1
je 0x433789
mov edx, ebx
or edx, 3
call fcn.00448c48
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x43379b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00448494

Function at 0x4337d8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x433868
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x433868
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x43381b
test edx, 3
jne 0x43380a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x433815
jmp 0x43381b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x43381b
cmp dword [ecx - 8], 1
je 0x433825
mov edx, ebx
or edx, 3
call fcn.00448c48
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x433837
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00448494

Function at 0x4349fc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x434a2d
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x434a34
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x434a65
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x434b44
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00448974
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x434b6a
test byte [ebp - 0xc], 0x10
je 0x434b6e
xor eax, eax
jmp 0x434b70
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00448974
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x434ba2
test byte [ebp - 0xc], 0x10
jne 0x434ba6
xor eax, eax
jmp 0x434ba8
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x434d90
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00448974
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x434db4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00448974
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x434de3
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x434f78
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00448974
push eax
call sub.KERNEL32.DLL_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x435608
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
call fcn.00448974
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x4386f4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x43873c
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.00448584
jmp 0x438747
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.004484e8
mov esp, ebp
pop ebp
ret 4
Function at 0x438750
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x43877e
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x438784
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x438f0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00438d54
mov eax, dword [0x519c9c]
cmp byte [eax], 0
je 0x438f9f
mov eax, dword [0x519ca0]
call fcn.00446dbc
call fcn.0044687c
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x44c]
push eax
call sub.USER32.DLL_CharToOemA
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44c]
call fcn.00435634
push eax
lea eax, [ebp - 0x44c]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x438fe4
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x438fd5
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x519b34]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x519ff8]
call fcn.00449e18
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
mov esp, ebp
pop ebp
ret

Function at 0x439a00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x439ade
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0044852c
lea eax, [ebp - 0xc]
call fcn.004489c4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00448974
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x439ac8
mov eax, dword [ebp - 0x10]
call fcn.004466a4
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x439ac1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00448974
push eax
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x439aab
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x439aec
mov eax, dword [ebp - 0x18]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x439aab
mov eax, dword [ebp - 0x1c]
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 0x439ac8
mov eax, dword [ebp - 0x18]
call fcn.004466c0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439ae5
lea eax, [ebp - 0xc]
call fcn.00448494
ret
Function at 0x446928
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x446964
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test bl, bl
je 0x446984
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00448704
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x446c2c
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.00448494
test esi, esi
jne 0x446c62
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.00448584
jmp 0x446c80
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00446b30
mov edi, eax
test esi, esi
je 0x446c80
cmp dword [ebx], 0
je 0x446c80
dec esi
jmp 0x446c69
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x446cb8
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x44743c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x50f7c8]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4474d4
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4474b4
xor eax, eax
push ebp
push 0x4474ad
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 0x4474f0
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 0x4474b4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
movzx eax, word [0x50f7c8]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x50f7c8], ax
mov esp, ebp
pop ebp
ret

Function at 0x448260
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x51af3c], 0
je 0x4482c1
cmp word [0x51b110], 0xd7b2
jne 0x448289
cmp dword [0x51b118], 0
jbe 0x448289
mov eax, 0x51b10c
call dword [0x51b128]
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 0x4482e8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x50f7d4], 0
jne 0x4482dd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x448418
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 [0x50f7b0], 0
je 0x44843e
mov edx, esi
mov eax, ebx
call dword [0x50f7b0]
jmp 0x44844d
mov eax, 8
call fcn.004466a4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x51af3d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4483e0
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 0x44a034
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 0x44a264
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x44a0b7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x44a264
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x44a0b7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x44a280
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x44a140
xor eax, eax
push ebp
push 0x44a139
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00449e70
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 0x44a11e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x44a2a0
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x44a11e
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 0x44a140
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 0x44a25a
cmp byte [ebp - 0xd], 0
jne 0x44a187
cmp byte [ebp - 0x12], 0
je 0x44a25a
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x44a1a0
dec ebx
cmp byte [ebx], 0x2e
je 0x44a1af
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x44a19f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x44a25a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x44a1ec
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 0x44a25a
cmp byte [ebp - 0xd], 0
je 0x44a25a
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 0x44a25a
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 0x44a9e0
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x51b4b4], 1
jae 0x44aa74
call fcn.00446480
mov byte [0x50f7c4], 2
mov dword [0x51af00], 0x50b174
mov dword [0x51af04], 0x50b18c
mov byte [0x51af3e], 2
mov dword [0x51aeec], 0x44977c
call fcn.0044740c
test al, al
je 0x44aa2c
call fcn.0044743c
call fcn.00447500
mov word [0x51af44], 0xd7b0
mov word [0x51b110], 0xd7b0
mov word [0x51b2dc], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x51af30], eax
call fcn.00444d40
mov dword [0x51af2c], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x51b4b8], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x51af24], eax
ret
Function at 0x45b4b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push esi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45b6b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004965d8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x258], 0
je 0x45b69e
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x268]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x2c0]
jb 0x45b517
mov eax, dword [ebp - 4]
add eax, 0x264
call fcn.00448494
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x268], eax
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 8
je 0x45b605
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov edx, dword [0x519a90]
and eax, 0xff
bt dword [edx], eax
jae 0x45b5b1
push 1
push 0x102
push 0x102
mov eax, dword [ebp - 4]
call fcn.00497d30
push eax
lea eax, [ebp - 0x30]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x45b659
mov eax, dword [ebp - 4]
push dword [eax + 0x264]
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.0044867c
push dword [ebp - 0x34]
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x28]
call fcn.0044867c
push dword [ebp - 0x38]
mov eax, dword [ebp - 4]
add eax, 0x264
mov edx, 3
call fcn.00448834
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x45b659
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.0044867c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
add eax, 0x264
call fcn.0044877c
jmp 0x45b659
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x264]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x45b5f0
mov eax, dword [ebp - 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
add eax, 0x264
mov ecx, 1
mov edx, dword [ebp - 0xc]
call fcn.00448a18
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x264]
call fcn.00448770
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x264]
call fcn.00439ba8
cmp al, 2
je 0x45b5d3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x264]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45b644
mov eax, dword [ebp - 0x10]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, 0x264
mov ecx, 1
mov edx, dword [ebp - 0x10]
call fcn.00448a18
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x264]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x45b676
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x45b685
push ebp
call fcn.0045b3c4
pop ecx
jmp 0x45b69e
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [ebp - 4]
mov si, 0xffeb
call fcn.00447838
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b6c0
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.004484b8
ret
Function at 0x45c988
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
mov eax, dword [ebp - 8]
call fcn.00448494
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x45c9e1
push 0x100
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10c]
mov ecx, 0x100
call fcn.00448704
mov esp, ebp
pop ebp
ret

Function at 0x461820
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46195a
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 [0x42e3e8]
call fcn.0042e5ac
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x461930
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, SysStringLen
mov eax, dword [ebp - 0xc]
call fcn.0042e6d8
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00448704
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x461970
call fcn.004487c0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0042e9c4
lea ecx, [ebp - 4]
mov edx, 0x4619ac
mov eax, dword [ebp - 0xc]
call fcn.0042ecb0
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0043b70c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x461913
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4619b8
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x20], eax
call dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x510684]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46191a
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret

Function at 0x4619cc
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov byte [ebp - 1], 0
push 0xa5
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x461a11
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [0x510680]
je 0x461a09
push ebp
call fcn.00461820
pop ecx
mov eax, dword [ebp - 8]
mov dword [0x510680], eax
mov al, byte [0x510684]
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop ebp
ret
Function at 0x461a18
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x12]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
mov al, byte [ebp - 0xe]
mov word [ebp - 2], ax
cmp word [ebp - 2], 0
je 0x461a69
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x461a4b
add word [ebp - 2], 0x2000
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x461a5d
add word [ebp - 2], 0x4000
test byte [ebp - 7], 0x20
je 0x461a69
add word [ebp - 2], 0x8000
mov ax, word [ebp - 2]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x464a98
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 0x464a9e
ret
Function at 0x472460
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov word [ebp - 2], ax
mov al, byte [0x4724b8]
mov byte [ebp - 3], al
test byte [ebp - 2], 4
je 0x47247a
or byte [ebp - 3], 1
test byte [ebp - 2], 8
je 0x472484
or byte [ebp - 3], 4
test byte [ebp - 2], 1
je 0x47248e
or byte [ebp - 3], 8
test byte [ebp - 2], 2
je 0x472498
or byte [ebp - 3], 0x10
test byte [ebp - 2], 0x10
je 0x4724a2
or byte [ebp - 3], 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4724b2
or byte [ebp - 3], 2
mov al, byte [ebp - 3]
pop ecx
pop ebp
ret

Function at 0x4724bc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov al, byte [0x472500]
mov byte [ebp - 5], al
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4724dd
or byte [ebp - 5], 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4724ed
or byte [ebp - 5], 4
test byte [ebp - 1], 0x20
je 0x4724f7
or byte [ebp - 5], 2
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret