Function at 0x140038800
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov r14, r8
mov rsi, rcx
mov rcx, rdx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne bl
mov byte [rbp + 0x7f], bl
test bl, bl
je 0x140038f45
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x140038f45
xor eax, eax
mov qword [rsi + 0xc], rax
mov qword [rsi + 4], rax
mov edi, dword [r14 + 0x18]
add edi, dword [r14 + 8]
sub edi, dword [r14 + 0x10]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call sym.vncviewer.exe_crc32_z
mov dword [rsi], eax
test edi, edi
jne 0x140038883
mov sil, 1
jmp 0x140038f48
mov rcx, qword [r14 + 0x10]
lea rax, vtable.rdr::MemInStream.0
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x21], rcx
mov qword [rbp - 0x31], rcx
movsxd rax, edi
add rax, rcx
mov qword [rbp - 0x29], rax
lea rcx, [rbp - 0x19]
call fcn.140093530
nop
lea rax, [rbp - 0x39]
mov qword [rbp - 1], rax
mov dword [rbp + 0x17], edi
mov r10, qword [rbp + 0x1f]
mov qword [rbp - 9], r10
mov qword [rbp - 0x11], r10
xor r13b, r13b
mov rax, qword [r14]
test byte [rax + 3], 1
je 0x140038aa7
lea rax, [r10 + 4]
cmp rax, r10
jbe 0x1400388f6
mov edx, 4
lea r8d, [rdx - 3]
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + 0x18]
mov r10, qword [rbp - 0x11]
movzx r15d, byte [r10]
inc r10
mov qword [rbp - 0x11], r10
movzx eax, byte [r10]
inc r10
mov qword [rbp - 0x11], r10
movzx ecx, byte [r10]
inc r10
mov qword [rbp - 0x11], r10
movzx edx, byte [r10]
inc r10
mov qword [rbp - 0x11], r10
shl r15d, 8
or r15d, eax
shl r15d, 8
or r15d, ecx
shl r15d, 8
or r15d, edx
jle 0x140038aa7
movsxd rdi, r15d
mov rcx, rdi
call fcn.14011c740
mov r12, rax
mov rsi, rax
lea r14, [rdi + rax]
cmp rax, r14
jae 0x1400389c2
mov r9, qword [rbp - 0x11]
nop dword [rax + rax]
mov edx, r14d
sub edx, esi
movsxd rcx, edx
add rcx, r9
mov r8, qword [rbp - 9]
cmp rcx, r8
jbe 0x14003899e
lea rax, [r9 + 1]
cmp rax, r8
jbe 0x140038998
mov r8d, edx
mov edx, 1
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + 0x18]
mov edx, eax
mov r9, qword [rbp - 0x11]
jmp 0x14003899e
mov edx, dword [rbp - 9]
sub edx, dword [rbp - 0x11]
movsxd rdi, edx
mov r8, rdi
mov rdx, r9
mov rcx, rsi
call fcn.140121290
mov r9, qword [rbp - 0x11]
add r9, rdi
mov qword [rbp - 0x11], r9
add rsi, rdi
cmp rsi, r14
jb 0x140038960
mov r8d, r15d
mov rdx, r12
mov rdi, qword [rbp + 0x67]
mov ecx, dword [rdi]
call sym.vncviewer.exe_crc32_z
mov dword [rdi], eax
xor eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
mov r9d, r15d
mov r8, r12
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd r14, eax
test eax, eax
jle 0x140038a8e
mov rdx, r14
add rdx, rdx
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x140038a8e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140038a85
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov r9d, r15d
mov r8, r12
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test edi, edi
jle 0x140038a85
mov rdx, rsi
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x140038a82
lea eax, [r14 + r14]
mov r13, qword [rbp + 0x67]
mov dword [r13 + 4], eax
mov rcx, r12
call fcn.14011c3a0
mov r10, qword [rbp - 0x11]
mov r14, qword [rbp + 0x77]
jmp 0x140038aab
mov r13b, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, r12
call fcn.14011c3a0
test r13b, r13b
jne 0x140038de8
mov r10, qword [rbp - 0x11]
mov r14, qword [rbp + 0x77]
mov r13, qword [rbp + 0x67]
mov rax, qword [r14]
mov ecx, dword [rax]
shr ecx, 0x19
test cl, 1
je 0x140038bff
lea rax, [r10 + 4]
cmp rax, qword [rbp - 9]
jbe 0x140038ade
mov edx, 4
lea r8d, [rdx - 3]
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + 0x18]
mov r10, qword [rbp - 0x11]
movzx r15d, byte [r10]
inc r10
mov qword [rbp - 0x11], r10
movzx eax, byte [r10]
inc r10
mov qword [rbp - 0x11], r10
movzx ecx, byte [r10]
inc r10
mov qword [rbp - 0x11], r10
movzx edx, byte [r10]
inc r10
mov qword [rbp - 0x11], r10
shl r15d, 8
or r15d, eax
shl r15d, 8
or r15d, ecx
shl r15d, 8
or r15d, edx
jle 0x140038bff
movsxd rdi, r15d
mov rdx, rdi
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test rax, rax
je 0x140038de8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
test rax, rax
je 0x140038bf2
lea r14, [rdi + rax]
cmp rax, r14
jae 0x140038bcf
mov rdx, qword [rbp - 0x11]
nop dword [rax]
nop dword [rax + rax]
mov ecx, r14d
sub ecx, esi
movsxd rax, ecx
add rax, rdx
mov r8, qword [rbp - 9]
cmp rax, r8
jbe 0x140038bae
lea rax, [rdx + 1]
cmp rax, r8
jbe 0x140038ba8
mov r8d, ecx
mov edx, 1
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + 0x18]
mov ecx, eax
mov rdx, qword [rbp - 0x11]
jmp 0x140038bae
mov ecx, dword [rbp - 9]
sub ecx, dword [rbp - 0x11]
movsxd rdi, ecx
mov r8, rdi
mov rcx, rsi
call fcn.140121290
mov rdx, qword [rbp - 0x11]
add rdx, rdi
mov qword [rbp - 0x11], rdx
add rsi, rdi
cmp rsi, r14
jb 0x140038b70
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r12
mov ecx, dword [0x1401bfbe0]
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x140038bf2
mov dword [r13 + 8], r15d
jmp 0x140038bfb
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r10, qword [rbp - 0x11]
mov r13, qword [rbp + 0x77]
mov rax, qword [r13]
mov ecx, dword [rax]
shr ecx, 0x1a
test cl, 1
je 0x140038d53
lea rax, [r10 + 4]
cmp rax, qword [rbp - 9]
jbe 0x140038c37
mov edx, 4
lea r8d, [rdx - 3]
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + 0x18]
mov r10, qword [rbp - 0x11]
movzx r15d, byte [r10]
inc r10
mov qword [rbp - 0x11], r10
movzx eax, byte [r10]
inc r10
mov qword [rbp - 0x11], r10
movzx ecx, byte [r10]
inc r10
mov qword [rbp - 0x11], r10
movzx edx, byte [r10]
inc r10
mov qword [rbp - 0x11], r10
shl r15d, 8
or r15d, eax
shl r15d, 8
or r15d, ecx
shl r15d, 8
or r15d, edx
jle 0x140038d53
movsxd rdi, r15d
mov rdx, rdi
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test rax, rax
je 0x140038de8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
test rax, rax
je 0x140038d46
lea r14, [rdi + rax]
cmp rax, r14
jae 0x140038d1f
mov rdx, qword [rbp - 0x11]
nop dword [rax]
mov ecx, r14d
sub ecx, esi
movsxd rax, ecx
add rax, rdx
mov r8, qword [rbp - 9]
cmp rax, r8
jbe 0x140038cfe
lea rax, [rdx + 1]
cmp rax, r8
jbe 0x140038cf8
mov r8d, ecx
mov edx, 1
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + 0x18]
mov ecx, eax
mov rdx, qword [rbp - 0x11]
jmp 0x140038cfe
mov ecx, dword [rbp - 9]
sub ecx, dword [rbp - 0x11]
movsxd rdi, ecx
mov r8, rdi
mov rcx, rsi
call fcn.140121290
mov rdx, qword [rbp - 0x11]
add rdx, rdi
mov qword [rbp - 0x11], rdx
add rsi, rdi
cmp rsi, r14
jb 0x140038cc0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r12
mov ecx, dword [0x1401bfbdc]
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
jne 0x140038d46
mov rax, qword [rbp + 0x67]
mov dword [rax + 0xc], r15d
jmp 0x140038d4f
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r10, qword [rbp - 0x11]
mov rax, qword [r13]
mov ecx, dword [rax]
shr ecx, 0x1b
test cl, 1
je 0x140038eae
lea rax, [r10 + 4]
cmp rax, qword [rbp - 9]
jbe 0x140038d87
mov edx, 4
lea r8d, [rdx - 3]
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + 0x18]
mov r10, qword [rbp - 0x11]
movzx r14d, byte [r10]
inc r10
mov qword [rbp - 0x11], r10
movzx edx, byte [r10]
inc r10
mov qword [rbp - 0x11], r10
movzx r8d, byte [r10]
inc r10
mov qword [rbp - 0x11], r10
movzx r9d, byte [r10]
lea rax, [r10 + 1]
mov qword [rbp - 0x11], rax
shl r14d, 8
or r14d, edx
shl r14d, 8
or r14d, r8d
shl r14d, 8
or r14d, r9d
jle 0x140038eae
movsxd rdi, r14d
mov rdx, rdi
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test rax, rax
jne 0x140038df0
xor sil, sil
jmp 0x140038eb1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
test rax, rax
je 0x140038ea5
lea r15, [rdi + rax]
cmp rax, r15
jae 0x140038e7f
mov rdx, qword [rbp - 0x11]
nop dword [rax]
nop word [rax + rax]
mov ecx, r15d
sub ecx, esi
movsxd rax, ecx
add rax, rdx
mov r8, qword [rbp - 9]
cmp rax, r8
jbe 0x140038e5e
lea rax, [rdx + 1]
cmp rax, r8
jbe 0x140038e58
mov r8d, ecx
mov edx, 1
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + 0x18]
mov ecx, eax
mov rdx, qword [rbp - 0x11]
jmp 0x140038e5e
mov ecx, dword [rbp - 9]
sub ecx, dword [rbp - 0x11]
movsxd rdi, ecx
mov r8, rdi
mov rcx, rsi
call fcn.140121290
mov rdx, qword [rbp - 0x11]
add rdx, rdi
mov qword [rbp - 0x11], rdx
add rsi, rdi
cmp rsi, r15
jb 0x140038e20
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r12
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
jne 0x140038ea5
mov rax, qword [rbp + 0x67]
mov dword [rax + 0x10], r14d
jmp 0x140038eae
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov sil, 1
lea rax, vtable.rdr::ZlibInStream.0
mov qword [rbp - 0x19], rax
mov rcx, qword [rbp + 0x1f]
call fcn.14011c3a0
mov rdi, qword [rbp + 0xf]
test rdi, rdi
je 0x140038f27
cmp qword [rdi + 0x30], 0
je 0x140038f27
mov r8, qword [rdi + 0x38]
test r8, r8
je 0x140038f27
mov rdx, qword [rdi + 0x28]
test rdx, rdx
je 0x140038f27
cmp qword [rdx], rdi
jne 0x140038f27
mov eax, dword [rdx + 8]
sub eax, 0x3f34
cmp eax, 0x1f
ja 0x140038f27
mov rax, qword [rdx + 0x40]
test rax, rax
je 0x140038f14
mov rdx, rax
mov rcx, qword [rdi + 0x40]
call r8
mov rdx, qword [rdi + 0x28]
mov r8, qword [rdi + 0x38]
mov rcx, qword [rdi + 0x40]
call r8
mov qword [rdi + 0x28], 0
mov rdi, qword [rbp + 0xf]
mov edx, 0x58
mov rcx, rdi
call fcn.14011c3a0
lea rax, vtable.rdr::InStream.0
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x39], rax
jmp 0x140038f48
xor sil, sil
test bl, bl
je 0x140038f52
call qword [sym.imp.USER32.dll_CloseClipboard]
movzx eax, sil
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret