joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ae5c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x42af81
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042ac64
mov esi, eax
mov eax, dword [0x8c1458]
cmp byte [eax], 0
je 0x42af29
mov eax, dword [0x8c0bec]
call fcn.00407e30
call fcn.00407268
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42ae2c]
call fcn.0040d2b8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42af9c
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
jmp 0x42af65
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x8c0ab4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x8c55a0]
call fcn.0040d814
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42af88
lea eax, [ebp - 4]
mov edx, dword [0x42ae2c]
call fcn.0040d3dc
ret

Function at 0x42bc90
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 0x42bd66
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040abb8
lea eax, [ebp - 4]
call fcn.0040ad58
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42bd50
mov eax, ebx
call fcn.004070f4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42bd49
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.0040b7f8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42bd33
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42bd78
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42bd33
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 0x42bd50
mov eax, dword [ebp - 0x10]
call fcn.00407110
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bd6d
lea eax, [ebp - 4]
call fcn.0040a790
ret
Function at 0x4ae6d0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ae76e
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x4ae732
cmp byte [ebx + 0x11], 0
jne 0x4ae732
cmp byte [ebx + 0x3c], 0
jne 0x4ae732
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
je 0x4ae753
lea edx, [ebp - 4]
mov eax, dword [0x8c131c]
call fcn.00410254
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x486034]
call fcn.0042afcc
call fcn.00409e94
jmp 0x4ae753
lea edx, [ebp - 8]
mov eax, dword [0x8c131c]
call fcn.00410254
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x486034]
call fcn.0042afcc
call fcn.00409e94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae775
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a7f0
ret

Function at 0x4aebdc
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 + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4aec2a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004ae61c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aec43
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4aec4c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004ae61c
dec esi
jne 0x4aec6e
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4b1660
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x8c7da4
cmp dword [edi], 0
jne 0x4b16dc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x8c7da0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x8b7b04
mov ecx, 2
call fcn.00407394
mov edx, 0x4b1638
lea eax, [esi + 5]
call fcn.004b1658
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004b1658
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 0x4b16b1
mov dword [0x8c7da0], 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 0x4d765c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4d7817
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040abb8
mov eax, dword [ebp - 4]
call fcn.004d7090
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4d76ae
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040bc7c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004d7d34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4d778d
xor eax, eax
push ebp
push 0x4d7786
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004d724c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004d7828
test al, al
je 0x4d7764
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.0040a918
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4d7764
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0040b7f8
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004d71ac
test al, al
je 0x4d775e
mov eax, dword [ebp - 8]
call fcn.0040b7f8
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040b860
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004d765c
dec ebx
cmp ebx, 0xffffffff
jne 0x4d770d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d778d
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004d724c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
ret
cmp byte [0x8c7df4], 0
je 0x4d77cd
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004d7238
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004d71ac
mov ebx, eax
jmp 0x4d77f4
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004d7238
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004d71ac
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d781e
lea eax, [ebp - 0x3c]
call fcn.0040a790
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a7f0
ret
Function at 0x4d7894
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 0x4d794c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004d7828
test al, al
je 0x4d792e
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040a918
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4d792e
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.0040b7f8
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.0040b7f8
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040b860
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x4d78e7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7953
lea eax, [ebp - 0x2c]
call fcn.0040a790
lea eax, [ebp - 4]
call fcn.0040a790
ret

Function at 0x4d7c34
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.004d70a8
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.0040b7f8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004d71ac
test al, al
jne 0x4d7c9c
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x8c1060]
mov dl, 1
mov eax, dword [0x4d5900]
call fcn.0042b0c4
call fcn.00409e94
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4d7ca8
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.0040b7f8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004d71ac
test al, al
jne 0x4d7d09
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x8c18e0]
mov dl, 1
mov eax, dword [0x4d5900]
call fcn.0042b0c4
call fcn.00409e94
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004d70d8
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 0x4e0c60
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 0x4e0c66
ret
Function at 0x4f3aa8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x43cf2c]
call fcn.0040c104
xor eax, eax
push ebp
push 0x4f3c2b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x8b8578], 0
jne 0x4f3afc
mov ecx, dword [0x8c077c]
mov dl, 1
mov eax, dword [0x41c620]
call fcn.0042b088
call fcn.00409e94
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.00407f88
mov eax, ebx
call fcn.0040b4a0
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x4f3c3c
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040eca0
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4f3b43
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4f3b98
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.KERNEL32.DLL_GetComputerNameW
test eax, eax
je 0x4f3b91
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.0040b8f0
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.0040b8b4
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.004236d4
test eax, eax
jne 0x4f3b91
mov ebx, 0x15
jmp 0x4f3b9d
mov ebx, 0x10
jmp 0x4f3b9d
mov ebx, 0x15
xor eax, eax
push ebp
push 0x4f3be8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x8c17f4]
movzx eax, word [eax]
or ax, 8
call fcn.004076d8
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x8b8578]
call fcn.004f3820
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3bef
call fcn.004076c8
ret
Function at 0x501fcc
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 - 8]
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 [0x8c7fe0], 0
je 0x50210d
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x8c1264]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x50210d
mov eax, dword [0x8c7fe4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x8c7fe0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x5020dc
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x8c7fe0]
call fcn.0049e030
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x5020d4
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x20d], 0
je 0x5020d4
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x74]
test al, al
je 0x5020d4
mov eax, dword [ebp - 0x14]
call fcn.0050dd6c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5020d4
push ebp
call fcn.00501f88
pop ecx
test al, al
jne 0x5020d4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb8
call fcn.00408dbc
test al, al
je 0x5020d4
mov byte [ebp - 9], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 9]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb9
call fcn.00408dbc
cmp byte [ebp - 9], 0
je 0x5020d4
lea edx, [ebp - 8]
lea eax, [ebp - 0x28]
call fcn.004125d0
test al, al
je 0x5020d4
mov edx, dword [ebp - 0x14]
mov eax, dword [0x8c7fe4]
call fcn.005016d0
inc edi
dec ebx
jne 0x502031
mov eax, dword [0x8c7fe4]
cmp dword [eax + 8], 0
jle 0x5020f4
mov eax, dword [0x8c7fe4]
call fcn.00501784
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x50210d
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00501df0
pop ecx
test al, al
jne 0x50210d
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 0x53b4e8
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 0x53b5d5
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 0x53b5a7
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 0x53b596
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.00407394
mov eax, dword [ebp - 4]
call fcn.0053b3cc
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.user32.dll_SetClipboardData
test eax, eax
jne 0x53b57f
mov ecx, dword [0x8c092c]
mov dl, 1
mov eax, dword [0x47aa94]
call fcn.0042b088
call fcn.00409e94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53b59d
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret

Function at 0x53b5e8
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 0x53b65a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x53b62e
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.0040b860
jmp 0x53b635
mov eax, ebx
call fcn.0040a790
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53b661
cmp dword [ebp - 8], 0
je 0x53b651
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 0x53b69c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
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 0x53b741
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x53b714
mov edx, ebx
mov eax, dword [0x4de140]
call fcn.004e60fc
test al, al
je 0x53b704
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004e6014
call fcn.00409f88
jmp 0x53b748
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x53b6ce
mov ecx, dword [0x8c0a78]
mov dl, 1
mov eax, dword [0x53b2d4]
call fcn.0042b088
call fcn.00409e94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53b748
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x582998
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.0040a874
xor eax, eax
push ebp
push 0x582ad5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x582aa8
xor edx, edx
push ebp
push 0x582aa1
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x5829e5
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x582a76
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 0x582a65
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x582a28
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.0040b7f8
mov ecx, ebx
add ecx, ecx
add ecx, 2
mov edx, esi
call fcn.00407394
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x582a6c
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
mov ecx, dword [0x8c089c]
mov dl, 1
mov eax, dword [0x41c620]
call fcn.0042b088
call fcn.00409e94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x582adc
lea eax, [ebp - 4]
call fcn.0040a790
ret

Function at 0x5b2490
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.005b2540
test eax, eax
je 0x5b24cb
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.005b2540
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040a918
jmp 0x5b24d9
mov ecx, esi
mov edx, 0x5b24f8
mov eax, ebx
call fcn.005b2418
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.0040ab70
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5d1af4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.0040a790
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x5d1b46
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x5d1b3f
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.0040b8b4
jmp 0x5d1b46
mov eax, esi
call fcn.0040a790
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x5d71d0
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 0x5d732f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x8b91b4], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4d5b24]
call fcn.004d7100
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5d7305
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004d71e8
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0040b8b4
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x5d7348
call fcn.0040ba64
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004d7474
test al, al
je 0x5d72ef
lea ecx, [ebp - 4]
mov edx, 0x5d73bc
mov eax, dword [ebp - 0xc]
call fcn.004d7bb8
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0042d63c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5d72ef
xor edx, edx
push ebp
push 0x5d72e8
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x5d73d4
mov eax, dword [ebp - 8]
push eax
call fcn.00414f7c
test eax, eax
je 0x5d72d1
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x5d72d1
call fcn.005d715c
test eax, eax
je 0x5d72c1
mov eax, dword [ebx + 0x50]
jmp 0x5d72c4
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x8b91b4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d72ef
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d730c
mov eax, dword [ebp - 0xc]
call fcn.00408ac4
ret

Function at 0x5d7438
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 0x5d747f
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5d7462
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5d7473
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x5d747f
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret