joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53fca8
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 0x53fe67
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a954
mov eax, dword [ebp - 4]
call fcn.0053f5f4
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x53fcfa
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040b410
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.005408fc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x53fddb
xor eax, eax
push ebp
push 0x53fdd4
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0053f894
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0053fe9c
test al, al
je 0x53fdb0
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.0040a6b4
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x53fdb0
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.0040aff0
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.0053f7f4
test al, al
je 0x53fdaa
mov eax, dword [ebp - 8]
call fcn.0040aff0
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040b054
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0053fca8
dec ebx
cmp ebx, 0xffffffff
jne 0x53fd59
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53fddb
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0053f894
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
cmp byte [0x8adba4], 0
je 0x53fe1b
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040aff0
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0053f880
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0053f7f4
mov ebx, eax
jmp 0x53fe42
mov eax, dword [ebp - 4]
call fcn.0040aff0
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0053f880
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0053f7f4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53fe6e
lea eax, [ebp - 0x3c]
call fcn.0040a52c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a58c
pop eax
jmp eax
Function at 0x540180
Capabilities:
Query or enumerate registry value

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 0x54023a
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.0053fe9c
test al, al
je 0x54021a
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040a6b4
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x54021a
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
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.0040aff0
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 4]
call fcn.0040aff0
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040b054
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x5401d3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x540241
lea eax, [ebp - 0x2c]
call fcn.0040a52c
lea eax, [ebp - 4]
call fcn.0040a52c
pop eax
jmp eax

Function at 0x5407d8
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.0053f60c
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.0040aff0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.0053f7f4
test al, al
jne 0x540840
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x8a3fd4]
mov dl, 1
mov eax, dword [0x53e3d8]
call fcn.004303c4
call fcn.00409be8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x54084c
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.0040aff0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.0053f7f4
test al, al
jne 0x5408ad
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x8a45dc]
mov dl, 1
mov eax, dword [0x53e3d8]
call fcn.004303c4
call fcn.00409be8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0053f63c
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 0x540ec4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x540ff0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.0053f894
xor eax, eax
push ebp
push 0x540fc9
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0053fe9c
test al, al
je 0x540fab
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00540d9c
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040a6b4
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x540fab
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
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.0040aff0
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0053f7f4
test al, al
je 0x540fa7
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aff0
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.0040b054
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00540d9c
pop ecx
inc edi
dec ebx
jne 0x540f4f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x540fd0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.0053f894
pop eax
jmp eax
Function at 0x541000
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x541258
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.0053f894
xor eax, eax
push ebp
push 0x54122c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0053fe9c
test al, al
je 0x54120e
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040a6b4
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x54120e
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x40]
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 - 4]
call fcn.0040aff0
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0053f7f4
test al, al
je 0x541202
mov eax, dword [ebp - 4]
call fcn.0040aff0
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.0040b054
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.005408fc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x541202
xor eax, eax
push ebp
push 0x5411fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.0053f894
xor eax, eax
push ebp
push 0x5411db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040aff0
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.0040b054
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0053f898
mov eax, dword [ebp - 4]
call fcn.0040aff0
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.0040b054
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.005408fc
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x5411b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00540ec4
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00541000
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5411bd
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x54108b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x541233
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.0053f894
pop eax
jmp eax
Function at 0x54ac1c
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 0x54ac22
ret

Function at 0x551e5c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, esi
call fcn.00551cec
lea edx, [ebp - 0x22]
mov ecx, 0x16
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x22], 0x9ac6cdd7
jne 0x551e9e
lea eax, [ebp - 0x22]
call fcn.0054e9d0
cmp ax, word [ebp - 0xe]
je 0x551ea3
call fcn.0054d968
sub dword [ebp - 8], 0x16
mov eax, dword [ebp - 8]
call fcn.004071f0
mov dword [ebp - 0xc], eax
mov ebx, dword [esi + 0x30]
xor eax, eax
push ebp
push 0x551fcd
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [esi + 0x30]
movzx edx, word [ebp - 0x14]
mov word [eax + 0x18], dx
cmp word [ebp - 0x14], 0
jne 0x551ee9
mov word [ebp - 0x14], 0x60
movzx eax, word [ebp - 0x14]
push eax
push 0x9ec
movsx eax, word [ebp - 0x18]
movsx edx, word [ebp - 0x1c]
sub eax, edx
push eax
call sub.kernel32.dll_MulDiv
mov dword [ebx + 0xc], eax
movzx eax, word [ebp - 0x14]
push eax
push 0x9ec
movsx eax, word [ebp - 0x16]
movsx edx, word [ebp - 0x1a]
sub eax, edx
push eax
call sub.kernel32.dll_MulDiv
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x34], 8
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SetWinMetaFileBits
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x551f5a
call fcn.0054d968
lea eax, [ebp - 0xa0]
push eax
push 0x6c
mov eax, dword [ebx + 8]
push eax
call sub.gdi32.dll_GetEnhMetaFileHeader
mov dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 8]
push eax
call sub.gdi32.dll_DeleteEnhMetaFile
lea eax, [ebp - 0x34]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SetWinMetaFileBits
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x551fae
call fcn.0054d968
mov byte [esi + 0x34], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x551fd4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0040720c
pop eax
jmp eax
Function at 0x56fa6c
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 [0x8add90], 0
je 0x56fbad
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x8a4154]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x56fbad
mov eax, dword [0x8add94]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x8add90]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x56fb7c
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x8add90]
call fcn.004729e4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x56fb74
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x21d], 0
je 0x56fb74
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x78]
test al, al
je 0x56fb74
mov eax, dword [ebp - 0x14]
call fcn.0057c340
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x56fb74
push ebp
call fcn.0056fa28
pop ecx
test al, al
jne 0x56fb74
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb8
call fcn.00408b0c
test al, al
je 0x56fb74
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, 0xffb9
call fcn.00408b0c
cmp byte [ebp - 1], 0
je 0x56fb74
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00413b8c
test al, al
je 0x56fb74
mov edx, dword [ebp - 0x14]
mov eax, dword [0x8add94]
call fcn.0056f1a8
inc edi
dec ebx
jne 0x56fad1
mov eax, dword [0x8add94]
cmp dword [eax + 8], 0
jle 0x56fb94
mov eax, dword [0x8add94]
call fcn.0056f25c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x56fbad
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0056f890
pop ecx
test al, al
jne 0x56fbad
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 0x5787dc
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.0041407c
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.00572104
test ebx, ebx
jne 0x57882f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.005786fc
mov ebx, eax
test ebx, ebx
je 0x578925
cmp esi, ebx
je 0x578858
mov eax, dword [esp]
sub eax, dword [ebx + 0x50]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x54]
mov dword [esp + 0x118], eax
jmp 0x57886d
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 0x5788a5
add eax, 0xffffff5f
sub eax, 2
jb 0x5788bd
dec eax
sub eax, 2
jb 0x5788d1
dec eax
sub eax, 2
jb 0x5788c7
jmp 0x5788db
add eax, 0xfffffdff
sub eax, 2
jb 0x5788bd
dec eax
sub eax, 2
jb 0x5788d1
dec eax
sub eax, 2
jb 0x5788c7
jmp 0x5788db
mov byte [esp + 0x120], 0
jmp 0x5788e3
mov byte [esp + 0x120], 2
jmp 0x5788e3
mov byte [esp + 0x120], 1
jmp 0x5788e3
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00651e90
mov esi, eax
call fcn.0056e82c
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00573c88
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x578927
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x5a7874
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 0x5a7965
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 0x5a7935
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 0x5a7924
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.004074d4
mov eax, dword [ebp - 4]
call fcn.005a75a4
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.user32.dll_SetClipboardData
test eax, eax
jne 0x5a790b
mov ecx, dword [0x8a3a84]
mov dl, 1
mov eax, dword [0x44956c]
call fcn.004302f0
call fcn.00409be8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a792b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
pop eax
jmp eax

Function at 0x5a7b48
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 0x5a7bef
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x5a7bc0
mov edx, ebx
mov eax, dword [0x547cb4]
call fcn.00550bd0
test al, al
je 0x5a7bb0
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.00550ac8
call fcn.00409cdc
jmp 0x5a7bf6
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x5a7b7a
mov ecx, dword [0x8a3b74]
mov dl, 1
mov eax, dword [0x5a74ac]
call fcn.004302f0
call fcn.00409be8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a7bf6
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
pop eax
jmp eax
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x5a7bfc
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 0x5a7c53
push dword fs:[edx]
mov dword fs:[edx], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 2
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a7c5a
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
pop eax
jmp eax
Function at 0x5a7c60
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 0x5a7cb7
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 + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a7cbe
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
pop eax
jmp eax

Function at 0x5a7d2c
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 0x5a7da3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005a75a4
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.00550bb0
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 0x5a7d8b
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 0x5a7daa
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
pop eax
jmp eax

Function at 0x5a7db0
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 0x5a7e27
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005a75a4
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 + 0x6c]
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 0x5a7e0f
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 0x5a7e2e
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
pop eax
jmp eax