joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464f9c
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 0x46506a
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.0041c5bc
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x465084
call fcn.00406180
mov eax, dword [ebp - 4]
call fcn.00406480
push eax
push 0
push 4
call sub.KERNEL32.DLL_OpenFileMappingA
mov ebx, eax
test ebx, ebx
je 0x46504f
push 0
push 0
push 0
push 4
push ebx
call sub.KERNEL32.DLL_MapViewOfFile
mov esi, eax
test esi, esi
je 0x465049
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 0x465031
push 0xffffffffffffffff
push edi
call sub.KERNEL32.DLL_WaitForSingleObject
push edi
call sub.KERNEL32.DLL_CloseHandle_1
mov edx, 0x5d0880
lea eax, [esi + 8]
mov ecx, 0x50
call fcn.00403278
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 0x465071
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405d00
ret
Function at 0x465174
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x465326
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
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x119]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x465285
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.DLL_CreateFileMappingW
mov edi, eax
test edi, edi
je 0x46527f
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 0x465279
mov eax, dword [ebp - 8]
call fcn.00425e34
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x465270
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x58], 0
je 0x465270
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.00465118
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.00465118
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
cmp eax, dword [edx + 0x58]
je 0x465270
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 0x4652fa
push 0x10
push 0
lea edx, [ebp - 0x120]
mov eax, dword [0x5d0f84]
mov ecx, dword [eax]
call dword [ecx + 0x248]
mov eax, dword [ebp - 0x120]
call fcn.00406480
push eax
push 0
call sub.user32.dll_MessageBoxA
push 0
call sub.KERNEL32.DLL_GetModuleHandleW_2
cmp eax, dword [0x5dbb50]
je 0x4652f3
mov eax, 0x5d0f84
call fcn.00408d14
lea eax, [ebp - 0x124]
mov edx, dword [ebp - 4]
call fcn.00406e80
mov ecx, dword [ebp - 0x124]
mov dl, 1
mov eax, dword [0x41a388]
call fcn.0041a400
call fcn.004054b4
jmp 0x4652fa
push 0
call sub.KERNEL32.DLL_ExitProcess_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46532d
lea eax, [ebp - 0x124]
call fcn.00406c54
lea eax, [ebp - 0x120]
call fcn.00405cdc
lea eax, [ebp - 4]
call fcn.00405cdc
ret
Function at 0x4654b0
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 0x4655bd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov ecx, 0x4655cc
mov edx, 0x4655d8
mov eax, esi
call fcn.004264a0
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405eec
call fcn.00406084
cmp eax, 0x14
jne 0x4655a7
cmp esi, dword [0x5dbb50]
sete al
mov edx, dword [ebp - 4]
test byte [edx + 3], 0x80
sete dl
cmp al, dl
jne 0x4655a7
mov eax, esi
call fcn.00425e34
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 [0x5dbb50]
jne 0x46555b
mov eax, 0x43e768
mov edx, dword [ebp - 4]
sub eax, dword [edx]
sub eax, esi
mov dword [ebx + 0x2c], eax
mov eax, 0x5d07e4
mov edx, dword [ebp - 4]
sub eax, dword [edx + 4]
sub eax, esi
mov dword [ebx + 0x30], eax
jmp 0x465576
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 0x7fffffff
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
and eax, 0x7fffffff
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 4]
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 0x4655c4
lea eax, [ebp - 4]
call fcn.00405cdc
ret
Function at 0x480624
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.00480298
dec esi
jne 0x480646
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x481804
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5df07c
cmp dword [edi], 0
jne 0x481880
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5df078]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5d1328
mov ecx, 2
call fcn.00403278
mov edx, 0x4817dc
lea eax, [esi + 5]
call fcn.004817fc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004817fc
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 0x481855
mov dword [0x5df078], 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 0x487590
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x487648
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00487528
test al, al
je 0x48762a
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406da0
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x48762a
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406cf0
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.00406cf0
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00406e10
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x4875e3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48764f
lea eax, [ebp - 0x2c]
call fcn.00406c54
lea eax, [ebp - 4]
call fcn.00406c54
ret
Function at 0x487780
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.00406cf0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x4877d8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5d8ba8]
mov dl, 1
mov eax, dword [0x486f78]
call fcn.00415110
call fcn.004054b4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00487100
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 0x488b94
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 0x488b9a
ret
Function at 0x4a991c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4a99ee
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4a99c0
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
xor edx, edx
push ebp
push 0x4a99af
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.00403278
mov eax, dword [ebp - 4]
call fcn.004a9800
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a99b6
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret

Function at 0x4a9a00
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 0xd
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4a9a74
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4a9a46
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00406e10
jmp 0x4a9a4f
mov eax, ebx
xor edx, edx
call fcn.00406c64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9a7b
cmp dword [ebp - 8], 0
je 0x4a9a6b
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4a9b0c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4a9bb4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x4a9b87
mov edx, ebx
mov eax, dword [0x488548]
call fcn.0048d328
test al, al
je 0x4a9b77
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0048d240
call fcn.004055a8
jmp 0x4a9bbb
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x4a9b3f
mov ecx, dword [0x5d83c4]
mov dl, 1
mov eax, dword [0x4a9748]
call fcn.004150d4
call fcn.004054b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9bbb
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4a9bc4
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4a9c20
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov dx, 2
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9c27
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4a9c30
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4a9c85
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9c8c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4a9cfc
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4a9d71
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004a9800
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.0048d304
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4a9d5b
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9d78
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4a9d80
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4a9df5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004a9800
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x68]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4a9ddf
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9dfc
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4cba5c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406c64
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4cbaa3
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406e64
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x4d0ebc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d0ff5
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x486fec]
call fcn.00487128
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4d0fcb
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004871c8
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00406e64
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x4d1010
call fcn.00407078
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00487354
test al, al
je 0x4d0fb5
lea ecx, [ebp - 4]
mov edx, 0x4d1084
mov eax, dword [ebp - 0xc]
call fcn.004876d0
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00417ae8
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4d0fae
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4d109c
mov eax, dword [ebp - 8]
push eax
call fcn.0040a06c
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x5d5738]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0fb5
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0fd2
mov eax, dword [ebp - 0xc]
call fcn.0040461c
ret

Function at 0x4d1100
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 0x4d1147
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4d112a
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4d113b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4d1147
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4d704c
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 - 0xc]
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 [0x5df300], 0
je 0x4d718d
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5d8850]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x4d718d
mov eax, dword [0x5df304]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5df300]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4d715c
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5df300]
call fcn.00475c8c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4d7154
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x4d7154
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x4d7154
mov eax, dword [ebp - 0x14]
call fcn.004e2270
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4d7154
push ebp
call fcn.004d7008
pop ecx
test al, al
jne 0x4d7154
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00404864
test al, al
je 0x4d7154
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
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.00404864
cmp byte [ebp - 1], 0
je 0x4d7154
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00409ae0
test al, al
je 0x4d7154
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5df304]
call fcn.004d6780
inc edi
dec ebx
jne 0x4d70b1
mov eax, dword [0x5df304]
cmp dword [eax + 8], 0
jle 0x4d7174
mov eax, dword [0x5df304]
call fcn.004d6838
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4d718d
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004d6e6c
pop ecx
test al, al
jne 0x4d718d
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
Function at 0x4def5c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00409ac8
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.004d94c8
test ebx, ebx
jne 0x4defaf
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004dedf0
mov ebx, eax
test ebx, ebx
je 0x4df09a
cmp esi, ebx
je 0x4defd8
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x4defed
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4df025
add eax, 0xffffff5f
sub eax, 2
jb 0x4df03d
dec eax
sub eax, 2
jb 0x4df051
dec eax
sub eax, 2
jb 0x4df047
jmp 0x4df05b
add eax, 0xfffffdff
sub eax, 2
jb 0x4df03d
dec eax
sub eax, 2
jb 0x4df051
dec eax
sub eax, 2
jb 0x4df047
jmp 0x4df05b
mov byte [esp + 0x120], 0
jmp 0x4df063
mov byte [esp + 0x120], 2
jmp 0x4df063
mov byte [esp + 0x120], 1
jmp 0x4df063
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004f0da4
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004dacb8
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4df09c
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x4f08a8
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_GetWindowLongW
mov edi, eax
test bl, bl
je 0x4f08c9
test edi, 0x40000
je 0x4f08e3
test bl, bl
jne 0x4f0964
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x4f0964
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 0x4f0916
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x4f092b
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x4f093a
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4f094b
cmp byte [esp + 2], 0
je 0x4f0964
cmp byte [esp + 2], 0
je 0x4f095c
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x4f0964
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4f0c10
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 0x4f0c36
mov eax, esp
push eax
push 0x4f0bd8
call sub.user32.dll_EnumWindows
jmp 0x4f0c49
mov eax, esp
push eax
push 0x4f0bb8
call sub.KERNEL32.DLL_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x4f0d0c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4f0d60]
test si, 4
je 0x4f0d21
or bl, 1
test si, 8
je 0x4f0d2b
or bl, 4
test si, 1
je 0x4f0d35
or bl, 8
test si, 2
je 0x4f0d3f
or bl, 0x10
test si, 0x10
je 0x4f0d49
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4f0d58
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4f0d64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4f0da0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4f0d7e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4f0d8d
or bl, 4
test esi, 0x20000000
je 0x4f0d98
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret