joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450714
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
mov dword [ebp - 0x44], ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 0x40]
mov edx, dword [0x41585c]
call fcn.004060d0
xor eax, eax
push ebp
push 0x4507d4
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x45], 0
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.0041a988
cmp byte [ebp - 0x40], 0
je 0x4507b8
mov eax, dword [ebp - 0x20]
call fcn.00406a4c
test eax, eax
jl 0x4507b8
inc eax
xor esi, esi
mov edx, esi
add edx, edx
add edx, edx
add edx, edx
sub edx, esi
mov ecx, dword [ebp - 0x20]
lea ebx, [ecx + edx*4]
cmp byte [ebx + 0x10], 0
je 0x4507b4
cmp edi, dword [ebx + 0xc]
jne 0x4507b4
lea eax, [ebp - 0x4c]
push eax
push 0x40
push 4
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4507b8
mov edx, dword [ebp - 0x44]
sub edx, dword [ebx + 8]
mov eax, dword [ebx + 0x14]
mov dword [eax], edx
lea edx, [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x4c]
push edx
push 4
push eax
call sub.kernel32.dll_VirtualProtect
mov byte [ebp - 0x45], 1
jmp 0x4507b8
inc esi
dec eax
jne 0x450763
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4507db
lea eax, [ebp - 0x40]
mov edx, dword [0x41585c]
call fcn.004061a0
ret

Function at 0x450e8c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004057a0
lea eax, [ebp - 0xc]
mov edx, dword [0x450d88]
call fcn.004060d0
xor eax, eax
push ebp
push 0x450f3e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x450f4c
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
je 0x450f12
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov cl, 0x30
mov edx, 1
call fcn.004121e0
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x450f60
call fcn.00405638
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004053b8
lea eax, [ebp - 0xc]
push eax
push 0x450db4
call sub.user32.dll_EnumWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450f45
lea eax, [ebp - 0x10]
call fcn.00405320
lea eax, [ebp - 0xc]
mov edx, dword [0x450d88]
call fcn.004061a0
lea eax, [ebp - 4]
call fcn.00405320
ret
Function at 0x450f9c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x45106a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.004121e0
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x451080
call fcn.00405638
mov eax, dword [ebp - 4]
call fcn.004057b0
push eax
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov ebx, eax
test ebx, ebx
je 0x45104f
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
je 0x451049
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esi]
push eax
push 0
push 0x100000
call sub.kernel32.dll_OpenProcess
mov edi, eax
test edi, edi
je 0x451031
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
push edi
call sub.kernel32.dll_CloseHandle_1
mov edx, 0x55a458
lea eax, [esi + 8]
mov ecx, 0x50
call fcn.004031a0
push esi
call sub.kernel32.dll_UnmapViewOfFile
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451071
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405344
ret
Function at 0x451170
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x451300
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
push 0x104
lea edx, [ebp - 0x119]
push edx
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x119]
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x45127b
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov edi, eax
test edi, edi
je 0x451275
push 0
push 0
push 0
push 4
push edi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45126f
mov eax, dword [ebp - 8]
call fcn.004140c4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x451266
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x58], 0
je 0x451266
mov eax, dword [ebp - 0xc]
add eax, 0x58
mov dword [ebp - 0x10], eax
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 8]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.00451114
mov ecx, eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
sub edx, eax
sub edx, 4
mov eax, dword [ebp - 0x10]
add eax, 4
call fcn.00451114
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
cmp eax, dword [edx + 0x58]
je 0x451266
mov bl, 1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push edi
call sub.kernel32.dll_CloseHandle_1
push esi
call sub.kernel32.dll_CloseHandle_1
test bl, bl
je 0x4512df
push 0x10
push 0
lea edx, [ebp - 0x120]
mov eax, dword [0x55ab58]
mov ecx, dword [eax]
call dword [ecx + 0x248]
mov eax, dword [ebp - 0x120]
call fcn.004057b0
push eax
push 0
call sub.user32.dll_MessageBoxA_1
push 0
call sub.kernel32.dll_GetModuleHandleA_2
cmp eax, dword [0x56a7f8]
je 0x4512d8
mov eax, 0x55ab58
call fcn.00407404
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x409d80]
call fcn.00409dec
call fcn.00404c54
jmp 0x4512df
push 0
call sub.kernel32.dll_ExitProcess_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451307
lea eax, [ebp - 0x120]
call fcn.00405320
lea eax, [ebp - 4]
call fcn.00405320
ret
Function at 0x451484
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x45157f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov ecx, 0x45158c
mov edx, 0x451598
mov eax, esi
call fcn.00414714
mov eax, dword [ebp - 4]
call fcn.004055e0
cmp eax, 0x14
jne 0x451569
cmp esi, dword [0x56a7f8]
sete al
mov edx, dword [ebp - 4]
test byte [edx + 3], 0x80
sete dl
cmp al, dl
jne 0x451569
mov eax, esi
call fcn.004140c4
mov ebx, eax
lea eax, [ebp - 8]
push eax
push 0x40
push 0xe0
lea eax, [ebx + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
cmp esi, dword [0x56a7f8]
jne 0x451525
mov edx, 0x42bfbc
mov eax, dword [ebp - 4]
sub edx, dword [eax]
sub edx, esi
mov dword [ebx + 0x2c], edx
mov edx, 0x55a3bc
sub edx, dword [eax + 4]
sub edx, esi
mov dword [ebx + 0x30], edx
jmp 0x45153e
mov eax, dword [ebp - 4]
mov edx, dword [eax]
and edx, 0x7fffffff
mov dword [ebx + 0x2c], edx
mov eax, dword [eax + 4]
and eax, 0x7fffffff
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov dword [ebx + 0x1c], edx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x20], edx
mov eax, dword [eax + 0x10]
mov dword [ebx + 0x24], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 0xe0
lea eax, [ebx + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451586
lea eax, [ebp - 4]
call fcn.00405320
ret
Function at 0x455808
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x45585a
test eax, edx
je 0x45585d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x45581d
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 0x455843
add ecx, 4
js 0x455833
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x455840
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 0x455869
test edx, edx
jne 0x455810
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004057b0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4565f1
test al, 0x10
je 0x4565f5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004057b0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x456615
test al, 0x10
jne 0x456619
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x45a180
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 pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x45a1b9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405410
jmp 0x45a1c2
mov eax, ebx
mov edx, esi
call fcn.00405374
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45a1cc
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_1
test eax, eax
jle 0x45a1ee
movzx eax, byte [esp]
jmp 0x45a1f0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x45a880
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x45a6f8
mov eax, dword [0x5678f0]
cmp byte [eax], 0
je 0x45a8fc
mov eax, dword [0x5674e0]
call fcn.00403858
call fcn.0040310c
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.00456a4c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x45a944
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x45a932
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x567448]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x56a7f8]
call fcn.00406e08
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x45b1fc
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 0x45b2d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004053b8
lea eax, [ebp - 4]
call fcn.00405808
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004057b0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x45b2bc
mov eax, ebx
call fcn.00402fa4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x45b2b5
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.004057b0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x45b29f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x45b2e4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45b29f
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 0x45b2bc
mov eax, dword [ebp - 0x10]
call fcn.00402fc0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b2d9
lea eax, [ebp - 4]
call fcn.00405320
ret

Function at 0x471908
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.00471644
dec esi
jne 0x47192a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x472a9c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x56dbc8
cmp dword [edi], 0
jne 0x472b18
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x56dbc4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x55b0f8
mov ecx, 2
call fcn.004031a0
mov edx, 0x472a74
lea eax, [esi + 5]
call fcn.00472a94
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00472a94
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 0x472aed
mov dword [0x56dbc4], 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 0x4767ac
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.004057b0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x476804
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x567b04]
mov dl, 1
mov eax, dword [0x4760e8]
call fcn.0045aa4c
call fcn.00404c54
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0047625c
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 0x477c3c
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 0x477c42
ret
Function at 0x48727c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004057a0
xor eax, eax
push ebp
push 0x4873b1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x487384
xor edx, edx
push ebp
push 0x48737d
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x4872c9
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x487352
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x487341
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x487308
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.004057b0
lea ecx, [ebx + 1]
mov edx, esi
call fcn.004031a0
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487348
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x567370]
mov dl, 1
mov eax, dword [0x454974]
call fcn.0045aa10
call fcn.00404c54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4873b8
lea eax, [ebp - 4]
call fcn.00405320
ret
Function at 0x4873c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48757b
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00405aa4
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x487594
call fcn.00405638
mov eax, ebx
call fcn.0047201c
mov edi, eax
dec edi
test edi, edi
jl 0x487478
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00471ff0
mov edx, dword [0x482404]
call fcn.00404468
test al, al
je 0x487474
push dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.00471ff0
lea edx, [ebp - 0x14]
call fcn.004966e8
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00405aa4
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004056b4
inc esi
dec edi
jne 0x487426
movzx eax, byte [0x487598]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x4875a4
mov eax, dword [ebp - 8]
call fcn.0045bda4
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.004053b8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.004966e8
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x487594
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x360]
call fcn.004966e8
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x487594
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x487594
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x4875b0
call fcn.00457518
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487582
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00405344
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00405344
lea eax, [ebp - 0x14]
call fcn.00405320
lea eax, [ebp - 0x10]
call fcn.00405320
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405344
ret
Function at 0x48a808
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.00405320
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x48a856
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.00405590
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48e8d8
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 0x48ea0b
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 [0x476148]
call fcn.00476284
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x48e9e1
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00476360
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00405590
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x48ea20
call fcn.00405638
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004764ec
lea ecx, [ebp - 4]
mov edx, 0x48ea5c
mov eax, dword [ebp - 0xc]
call fcn.00476734
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0045c74c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x48e9c4
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x48ea68
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x55bad8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e9cb
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x48eab8
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 0x48eaff
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x48eae2
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x48eaf3
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x48eaff
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x493e90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x56de58], 0
je 0x493fd9
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x567824]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x493fd9
mov eax, dword [0x56de5c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x56de58]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x493fa8
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x56de58]
call fcn.00468210
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x493fa0
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x493fa0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x493fa0
mov eax, dword [ebp - 0x14]
call fcn.0049e6f0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x493fa0
push ebp
call fcn.00493e4c
pop ecx
test al, al
jne 0x493fa0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.004044d8
test al, al
je 0x493fa0
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.004044d8
cmp byte [ebp - 1], 0
je 0x493fa0
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x493fa0
mov edx, dword [ebp - 0x14]
mov eax, dword [0x56de5c]
call fcn.004935bc
inc edi
dec ebx
jne 0x493ef5
mov eax, dword [0x56de5c]
cmp dword [eax + 8], 0
jle 0x493fc0
mov eax, dword [0x56de5c]
call fcn.00493674
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x493fd9
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00493cb0
pop ecx
test al, al
jne 0x493fd9
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret