joyce8/EMBER2024-capa huggingface dataset:
Function at 0x541944
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x5419a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00541ad4
test esi, esi
je 0x54198a
mov eax, dword [ebp - 4]
call fcn.00409f10
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x541984
test al, 0x10
jne 0x541988
xor ebx, ebx
jmp 0x54198a
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5419a7
lea eax, [ebp - 4]
call fcn.00408f98
ret

Function at 0x5420fc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp ecx, 0
jle 0x542120
push ebx
mov ebx, eax
mov eax, ebx
xor al, byte [edx]
and eax, 0xff
mov eax, dword [eax*4 + 0x6a45c4]
shr ebx, 8
xor ebx, eax
inc edx
dec ecx
jne 0x542104
mov eax, ebx
pop ebx
ret

Function at 0x5421ec
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov byte [ebp - 9], 1
cmp dword [ebp - 4], 0xffffffff
je 0x54232b
xor eax, eax
push ebp
push 0x54231d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00421958
lea edx, [ebp - 0x58]
mov ecx, 0x40
mov eax, dword [ebp - 4]
call fcn.00421890
mov ebx, eax
cmp ebx, 0x40
jne 0x542313
cmp word [ebp - 0x58], 0x5a4d
jne 0x542313
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00421958
test eax, eax
jl 0x542313
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.00421890
mov ebx, eax
cmp ebx, 4
jne 0x542313
cmp dword [ebp - 0x10], 0x4550
jne 0x542313
lea edx, [ebp - 0x6c]
mov ecx, 0x14
mov eax, dword [ebp - 4]
call fcn.00421890
mov ebx, eax
cmp ebx, 0x14
jne 0x542313
cmp word [ebp - 0x6c], 0x14c
jne 0x542313
movzx eax, word [ebp - 0x6a]
mov dword [ebp - 0x18], eax
mov ecx, 1
mov edx, 0xe0
mov eax, dword [ebp - 4]
call fcn.00421958
test eax, eax
jl 0x542313
mov byte [ebp - 9], 0
mov edi, dword [ebp - 0x18]
test edi, edi
jle 0x542228
lea edx, [ebp - 0x94]
mov ecx, 0x28
mov eax, dword [ebp - 4]
call fcn.00421890
mov ebx, eax
cmp ebx, 0x28
je 0x5422fa
mov byte [ebp - 9], 1
jmp 0x542228
mov esi, dword [ebp - 0x80]
add esi, dword [ebp - 0x84]
cmp esi, dword [ebp - 8]
jbe 0x54230b
mov dword [ebp - 8], esi
dec edi
jne 0x5422d7
jmp 0x542228
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54232b
cmp byte [ebp - 9], 0
je 0x542336
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x542c34
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffeb8
mov dword [esp], ecx
mov edi, edx
mov esi, eax
mov byte [esp + 4], 0
xor ecx, ecx
xor edx, edx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x1c]
lea edx, [esp + 0x10]
mov ecx, 0x40
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp eax, 0x40
jne 0x542c73
cmp word [esp + 0x10], 0x5a4d
je 0x542c8b
push 1
mov ecx, 0xe1eb475
mov dl, 1
mov eax, dword [0x545ccc]
call fcn.00545e58
call fcn.0040869c
xor ecx, ecx
mov edx, dword [esp + 0x4c]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x1c]
lea edx, [esp + 0x50]
mov ecx, 0xf8
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp eax, 0xf8
jne 0x542cb9
cmp dword [esp + 0x50], 0x4550
je 0x542cd1
push 1
mov ecx, 0xe1ec875
mov dl, 1
mov eax, dword [0x545ccc]
call fcn.00545e58
call fcn.0040869c
lea eax, [esp + 0xd8]
mov edx, dword [eax]
test edx, edx
je 0x542ce4
cmp dword [eax + 4], 0
jne 0x542cfe
push 1
mov ecx, 0xe1ee093
mov dl, 1
mov eax, dword [0x545ccc]
call fcn.00545e58
call fcn.0040869c
jmp 0x542d02
mov dword [esp + 8], edx
movzx ebx, word [esp + 0x56]
dec ebx
test ebx, ebx
jl 0x542d4b
inc ebx
mov edx, edi
mov ecx, 0x28
mov eax, esi
mov ebp, dword [eax]
call dword [ebp + 0xc]
cmp eax, 0x28
je 0x542d38
push 1
mov ecx, 0xe1f0090
mov dl, 1
mov eax, dword [0x545ccc]
call fcn.00545e58
call fcn.0040869c
mov eax, dword [edi + 0xc]
cmp eax, dword [esp + 8]
jne 0x542d48
mov byte [esp + 4], 1
jmp 0x542d4b
dec ebx
jne 0x542d0d
cmp byte [esp + 4], 0
jne 0x542d6a
push 1
mov ecx, 0xe1f2c93
mov dl, 1
mov eax, dword [0x545ccc]
call fcn.00545e58
call fcn.0040869c
mov eax, dword [edi + 0x14]
xor edx, edx
push edx
push eax
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x20]
push esi
mov ecx, dword [edi + 0x14]
mov eax, dword [esp + 4]
xor edx, edx
call fcn.00542aa0
test al, al
jne 0x542da5
push 1
mov ecx, 0xe1f4892
mov dl, 1
mov eax, dword [0x545ccc]
call fcn.00545e58
call fcn.0040869c
add esp, 0x148
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x54da68
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf4
mov byte [esp], dl
mov ebp, eax
mov esi, 0xff
mov dword [esp + 8], 0xff
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0
lea eax, [ebp + 4]
call fcn.00408f98
xor eax, eax
mov dword [ebp + 0xc], eax
mov word [esp + 0xc], 0
xor ebx, ebx
cmp word [ebp + 0x12], 0
je 0x54db19
movzx eax, word [ebp + 0x12]
cmp ax, 0x41
jb 0x54dacd
cmp ax, 0x5a
jbe 0x54dae7
mov eax, dword [ebp + 0x14]
push eax
mov ecx, 0x682f87c
mov dl, 1
mov eax, dword [0x545ccc]
call fcn.00545f00
call fcn.0040869c
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
movzx eax, word [ebp + 0x12]
sub eax, 0x41
cmp eax, 0x1f
ja 0x54dafd
bt edi, eax
jb 0x54db19
mov eax, dword [ebp + 0x14]
push eax
mov ecx, 0x6830c78
mov dl, 1
mov eax, dword [0x545ccc]
call fcn.00545f00
call fcn.0040869c
push 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
push 0
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebp + 0x14]
call fcn.00409f10
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
jne 0x54db60
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x1f
jne 0x54db81
cmp byte [esp], 0
je 0x54db81
mov bl, 1
jmp 0x54db81
lea eax, [ebp + 4]
lea edx, [esp + 0xc]
mov ecx, pe_nt_image_headers32
call fcn.00409fcc
mov byte [ebp + 8], 0
mov edx, 7
mov eax, ebp
call fcn.0054dd34
push edi
call sub.kernel32.dll_SetErrorMode
cmp word [ebp + 0x12], 0
je 0x54dba1
cmp word [ebp + 0x12], 0
je 0x54dba3
cmp dword [ebp + 0x30], 0xffffffff
jne 0x54db9f
cmp dword [ebp + 0x2c], 0xffffffff
je 0x54dba3
mov bl, 1
mov eax, ebx
add esp, 0x20c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x54dc00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x54dcf6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.0042275c
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.004222d8
lea eax, [ebp - 8]
mov edx, 0x54dd10
call fcn.0040a124
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00420268
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 0x1c]
call fcn.0040a314
je 0x54dcdb
mov eax, ebx
call fcn.0054d9fc
mov eax, dword [ebp - 4]
test eax, eax
je 0x54dc6e
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jne 0x54dc80
mov eax, dword [ebp - 4]
cmp word [eax + 2], 0x3a
sete al
jmp 0x54dc82
xor eax, eax
test al, al
je 0x54dcbe
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov word [ebx + 0x12], ax
mov eax, dword [ebp - 4]
call fcn.00409f10
push eax
call sub.kernel32.dll_GetDriveTypeW
mov esi, eax
mov dword [ebx + 0x18], esi
cmp esi, 2
jne 0x54dcc5
movzx eax, word [ebx + 0x12]
cmp ax, 0x41
je 0x54dcb8
cmp ax, 0x42
jne 0x54dcc5
mov byte [ebx + 0x10], 1
jmp 0x54dcc5
mov eax, ebx
call fcn.0054d9fc
lea eax, [ebx + 0x1c]
mov edx, dword [ebp - 4]
call fcn.00409378
lea eax, [ebx + 0x14]
mov edx, dword [ebp - 4]
call fcn.00409378
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54dcfd
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00408ff8
ret
Function at 0x54dd34
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe8
mov esi, edx
mov ebx, eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
xor edi, edi
lea eax, [ebx + 0x3c]
push eax
lea eax, [ebx + 0x20]
push eax
lea eax, [esp + 8]
push eax
lea eax, [ebx + 0x28]
push eax
mov eax, dword [ebx + 0x14]
call fcn.00409f10
push eax
call sub.kernel32.dll_GetDiskFreeSpaceW
test eax, eax
je 0x54dd86
mov edi, dword [esp]
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebx + 0x14]
call fcn.00409f10
push eax
mov eax, dword [0x749abc]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x54de18
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
test edi, edi
je 0x54de18
mov eax, dword [ebx + 0x20]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x28]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x10]
xor edx, edx
call fcn.0040b338
call fcn.0040b338
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x28]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x10]
xor edx, edx
call fcn.0040b338
call fcn.0040b338
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
test esi, 1
je 0x54de2e
mov eax, dword [esp + 8]
mov dword [ebx + 0x34], eax
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x38], eax
test esi, 2
je 0x54de44
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x30], eax
test esi, 4
je 0x54de4f
mov dword [ebx + 0x24], edi
add esp, 0x18
pop edi
pop esi
pop ebx
ret
Function at 0x54ea4c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xfffffffd
mov eax, ebx
test eax, eax
je 0x54ea6c
sub eax, 4
mov eax, dword [eax]
dec eax
jle 0x54ea79
cmp word [ebx + 2], 0x3a
sete al
jmp 0x54ea7b
xor eax, eax
test al, al
je 0x54ea9e
movzx eax, word [ebx]
mov edx, 0x54eb60
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x14]
cmp ax, 0xff
ja 0x54ea99
movzx eax, ax
bt dword [edx], eax
setb al
jmp 0x54eaa0
xor eax, eax
test al, al
je 0x54eb54
mov eax, ebx
call fcn.00409f10
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 2
jne 0x54eb54
movzx eax, word [ebx]
mov edx, eax
mov ecx, eax
add ecx, 0xffffff9f
sub cx, 0x1a
jae 0x54ead5
mov edx, eax
and dx, 0xffdf
movzx edi, dx
sub edi, 0x41
push 3
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x10], eax
push 0x54eb80
call sub.kernel32.dll_LoadLibraryW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x54eb54
push 0x54eb90
mov eax, dword [ebp - 0xc]
push eax
call fcn.004124ec
mov esi, eax
mov ebx, esi
test esi, esi
je 0x54eb4b
xor eax, eax
push ebp
push 0x54eb44
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0xffff
push edi
mov eax, dword [ebp - 4]
push eax
call ebx
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54eb4b
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetErrorMode
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x559788
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
test esi, esi
je 0x559845
mov eax, esi
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x5597b9
cmp eax, 0x2ee0
jbe 0x559845
jmp 0x5597bf
jle 0x559845
xor ebx, ebx
mov eax, dword [esi + 4]
mov edx, eax
cmp word [edx], 0x5a4d
jne 0x559845
mov dword [esp + 4], 0xf5f7174e
mov edx, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x559845
add eax, 4
movzx edx, word [eax + 2]
add eax, 0xf4
mov ecx, edx
test ecx, ecx
jle 0x55980a
mov edx, eax
mov edi, dword [edx + 0x14]
add edi, dword [edx + 0x10]
mov edx, edi
cmp ebx, edx
jae 0x559804
mov ebx, edx
add eax, 0x28
dec ecx
jne 0x5597f4
mov eax, dword [esi + 4]
add eax, ebx
mov edx, eax
mov ecx, dword [edx]
cmp ecx, 0xc005a44
jne 0x55982d
mov ecx, esi
mov edx, eax
mov eax, dword [esp]
call fcn.00559a70
mov dword [esp + 4], eax
jmp 0x559845
cmp ecx, 0x1005a44
jne 0x559845
mov ecx, esi
mov edx, eax
mov eax, dword [esp]
call fcn.00559850
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x559ddc
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, edx
mov byte [esp], 0
test edi, edi
je 0x559e85
mov eax, edi
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x559e06
cmp eax, 0x2ee0
jbe 0x559e85
jmp 0x559e08
jle 0x559e85
xor esi, esi
mov eax, dword [edi + 4]
mov edx, eax
cmp word [edx], 0x5a4d
jne 0x559e85
mov edx, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x559e85
add eax, 4
movzx edx, word [eax + 2]
add eax, 0xf4
mov ecx, edx
test ecx, ecx
jle 0x559e4d
mov edx, eax
mov ebx, dword [edx + 0x14]
add ebx, dword [edx + 0x10]
cmp esi, ebx
jae 0x559e47
mov esi, dword [edx + 0x14]
add esi, dword [edx + 0x10]
add eax, 0x28
dec ecx
jne 0x559e35
mov eax, dword [edi + 4]
add eax, esi
mov edx, eax
cmp dword [edx], 0xc005a44
jne 0x559e85
movzx ecx, word [edx + 4]
movzx ebx, cx
add esi, ebx
movzx edx, cx
add eax, edx
mov edx, eax
cmp dword [edx], 0x2014b50
jne 0x559e85
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, edi
call fcn.00497254
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x56c74c
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 0x56c839
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 0x56c80b
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 0x56c7fa
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.004057b0
mov eax, dword [ebp - 4]
call fcn.0056c630
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.user32.dll_SetClipboardData
test eax, eax
jne 0x56c7e3
mov ecx, dword [0x749848]
mov dl, 1
mov eax, dword [0x47085c]
call fcn.004277f0
call fcn.0040869c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56c801
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret

Function at 0x56c84c
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 0x56c8be
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x56c892
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00409f78
jmp 0x56c899
mov eax, ebx
call fcn.00408f98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56c8c5
cmp dword [ebp - 8], 0
je 0x56c8b5
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 0x56c900
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 0x56c9a5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x56c978
mov edx, ebx
mov eax, dword [0x4cd5b4]
call fcn.004d5164
test al, al
je 0x56c968
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.004d507c
call fcn.00408790
jmp 0x56c9ac
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x56c932
mov ecx, dword [0x7498e4]
mov dl, 1
mov eax, dword [0x56c538]
call fcn.004277f0
call fcn.0040869c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56c9ac
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 0x56c9b4
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, 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 0x56ca0c
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56ca13
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x56ca1c
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 0x56ca71
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 0x56ca78
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x56cae8
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 0x56cb5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0056c630
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.004d5140
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 0x56cb47
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 0x56cb64
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x56cb6c
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 0x56cbe1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0056c630
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 0x56cbcb
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 0x56cbe8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x56ffa4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
movdqu xmm6, xmmword [0x6a437c]
movdqu xmm5, xmmword [0x6a438c]
movd xmm7, dword [ebp + 8]
pshuflw xmm7, xmm7, 0
punpcklqdq xmm7, xmm7
psllw xmm7, 4
pxor xmm4, xmm4
mov esi, eax
mov edi, edx
mov edx, dword [ebp + 0x14]
mov eax, ecx
shr ecx, 1
shl ecx, 3
add esi, ecx
add edi, ecx
neg ecx
push ecx
jcxz 0x57003c
lea ax, [eax]
lea ax, fs:[eax]
movq xmm0, qword [ecx + esi]
movq xmm1, qword [ecx + edi]
punpcklbw xmm0, xmm4
punpcklbw xmm1, xmm4
psllw xmm0, 4
paddw xmm1, xmm5
pmulhw xmm0, xmm7
pshuflw xmm2, xmm0, 0xff
pshufhw xmm2, xmm2, 0xff
pxor xmm2, xmm6
psllw xmm2, 8
pmulhuw xmm1, xmm2
paddw xmm0, xmm1
packuswb xmm0, xmm0
movq qword [ecx + edi], xmm0
add ecx, 8
jne 0x56fff4
test eax, 1
je 0x570081
movd xmm0, dword [ecx + esi]
movd xmm1, dword [ecx + edi]
punpcklbw xmm0, xmm4
punpcklbw xmm1, xmm4
psllw xmm0, 4
paddw xmm1, xmm5
pmulhw xmm0, xmm7
pshuflw xmm2, xmm0, 0xff
pxor xmm2, xmm6
psllw xmm2, 8
pmulhuw xmm1, xmm2
paddw xmm0, xmm1
packuswb xmm0, xmm0
movd dword [ecx + edi], xmm0
pop ecx
add esi, dword [ebp + 0x10]
add edi, dword [ebp + 0xc]
dec edx
jne 0x56ffe4
pop esi
pop edi
pop ebp
ret 0x10

Function at 0x570098
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
movdqu xmm6, xmmword [0x6a437c]
movdqu xmm5, xmmword [0x6a438c]
pxor xmm4, xmm4
mov esi, eax
mov edi, edx
mov edx, dword [ebp + 0x10]
mov eax, ecx
shr ecx, 1
shl ecx, 3
add esi, ecx
add edi, ecx
neg ecx
push ecx
jcxz 0x570117
lea ax, [eax]
lea ax, fs:[eax]
movq xmm0, qword [ecx + esi]
movq xmm1, qword [ecx + edi]
punpcklbw xmm0, xmm4
punpcklbw xmm1, xmm4
paddw xmm1, xmm5
pshuflw xmm2, xmm0, 0xff
pshufhw xmm2, xmm2, 0xff
pxor xmm2, xmm6
psllw xmm2, 8
pmulhuw xmm1, xmm2
paddw xmm0, xmm1
packuswb xmm0, xmm0
movq qword [ecx + edi], xmm0
add ecx, 8
jne 0x5700d8
test eax, 1
je 0x570153
movd xmm0, dword [ecx + esi]
movd xmm1, dword [ecx + edi]
punpcklbw xmm0, xmm4
punpcklbw xmm1, xmm4
paddw xmm1, xmm5
pshuflw xmm2, xmm0, 0xff
pxor xmm2, xmm6
psllw xmm2, 8
pmulhuw xmm1, xmm2
paddw xmm0, xmm1
packuswb xmm0, xmm0
movd dword [ecx + edi], xmm0
pop ecx
add esi, dword [ebp + 0xc]
add edi, dword [ebp + 8]
dec edx
jne 0x5700c5
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x574a60
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x7526ac], 0
jne 0x574a77
call fcn.00574a1c
mov eax, edi
dec eax
test eax, eax
jl 0x574a9f
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x7522ac]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x574a81
mov eax, ebx
pop edi
pop esi
pop ebx
ret