Function at 0x140037f70
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
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 0x1400386a5
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x1400386a5
xor eax, eax
mov qword [rsi + 0xc], rax
mov qword [rsi + 4], rax
mov edi, dword [r14 + 0x18]
sub edi, dword [r14 + 0x10]
add edi, dword [r14 + 8]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call sym.AmazonVNCViewer.exe_crc32_z
mov dword [rsi], eax
test edi, edi
jne 0x140037ffa
mov sil, 1
jmp 0x1400386a8
mov rcx, qword [r14 + 0x10]
lea rax, vtable.rdr::InStream.0
mov qword [rbp - 0x41], rax
lea rax, vtable.rdr::MemInStream.0
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x29], rcx
mov qword [rbp - 0x39], rcx
movsxd rax, edi
add rax, rcx
mov qword [rbp - 0x31], rax
lea rcx, [rbp - 0x19]
call fcn.140091970
nop
lea rax, [rbp - 0x41]
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 0x140038217
lea rax, [r10 + 4]
cmp rax, r10
jbe 0x140038078
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 r12d, 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 r12d, 8
or r12d, eax
shl r12d, 8
or r12d, ecx
shl r12d, 8
or r12d, edx
jle 0x140038217
movsxd rdi, r12d
mov rcx, rdi
call fcn.14011b4c0
mov r15, rax
mov rsi, rax
lea r14, [rdi + rax]
cmp rax, r14
jae 0x140038142
mov r9, qword [rbp - 0x11]
nop dword [rax]
mov edx, r14d
sub edx, esi
movsxd rcx, edx
add rcx, r9
mov r8, qword [rbp - 9]
cmp rcx, r8
jbe 0x14003811e
lea rax, [r9 + 1]
cmp rax, r8
jbe 0x140038118
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 0x14003811e
mov edx, dword [rbp - 9]
sub edx, dword [rbp - 0x11]
movsxd rdi, edx
mov r8, rdi
mov rdx, r9
mov rcx, rsi
call fcn.14011fbe0
mov r9, qword [rbp - 0x11]
add r9, rdi
mov qword [rbp - 0x11], r9
add rsi, rdi
cmp rsi, r14
jb 0x1400380e0
mov r8d, r12d
mov rdx, r15
mov rdi, qword [rbp + 0x67]
mov ecx, dword [rdi]
call sym.AmazonVNCViewer.exe_crc32_z
mov dword [rdi], eax
xor eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov r8, r15
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd r14, eax
test eax, eax
jle 0x1400381f9
mov rdx, r14
add rdx, rdx
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x1400381f9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400381f0
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov r8, r15
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 0x1400381f0
mov rdx, rsi
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x1400381ed
lea eax, [r14 + r14]
mov rcx, qword [rbp + 0x67]
mov dword [rcx + 4], eax
jmp 0x1400381f9
mov r13b, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test r15, r15
je 0x140038206
mov rcx, r15
call fcn.14011b120
test r13b, r13b
jne 0x140038549
mov r10, qword [rbp - 0x11]
mov r14, qword [rbp + 0x77]
mov rax, qword [r14]
mov ecx, dword [rax]
shr ecx, 0x19
test cl, 1
je 0x140038363
lea rax, [r10 + 4]
cmp rax, qword [rbp - 9]
jbe 0x14003824a
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 0x140038363
movsxd rdi, r15d
mov rdx, rdi
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test rax, rax
je 0x140038549
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
test rax, rax
je 0x140038356
lea r14, [rdi + rax]
cmp rax, r14
jae 0x14003832f
mov rdx, qword [rbp - 0x11]
mov ecx, r14d
sub ecx, esi
movsxd rax, ecx
add rax, rdx
mov r8, qword [rbp - 9]
cmp rax, r8
jbe 0x14003830e
lea rax, [rdx + 1]
cmp rax, r8
jbe 0x140038308
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 0x14003830e
mov ecx, dword [rbp - 9]
sub ecx, dword [rbp - 0x11]
movsxd rdi, ecx
mov r8, rdi
mov rcx, rsi
call fcn.14011fbe0
mov rdx, qword [rbp - 0x11]
add rdx, rdi
mov qword [rbp - 0x11], rdx
add rsi, rdi
cmp rsi, r14
jb 0x1400382d0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r12
mov ecx, dword [0x1402c09f8]
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x140038356
mov rax, qword [rbp + 0x67]
mov dword [rax + 8], r15d
jmp 0x14003835f
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 0x1400384b4
lea rax, [r10 + 4]
cmp rax, qword [rbp - 9]
jbe 0x14003839b
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 0x1400384b4
movsxd rdi, r15d
mov rdx, rdi
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test rax, rax
je 0x140038549
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
test rax, rax
je 0x1400384a7
lea r14, [rdi + rax]
cmp rax, r14
jae 0x140038480
mov rdx, qword [rbp - 0x11]
mov ecx, r14d
sub ecx, esi
movsxd rax, ecx
add rax, rdx
mov r8, qword [rbp - 9]
cmp rax, r8
jbe 0x14003845f
lea rax, [rdx + 1]
cmp rax, r8
jbe 0x140038459
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 0x14003845f
mov ecx, dword [rbp - 9]
sub ecx, dword [rbp - 0x11]
movsxd rdi, ecx
mov r8, rdi
mov rcx, rsi
call fcn.14011fbe0
mov rdx, qword [rbp - 0x11]
add rdx, rdi
mov qword [rbp - 0x11], rdx
add rsi, rdi
cmp rsi, r14
jb 0x140038421
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r12
mov ecx, dword [0x1402c09f4]
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
jne 0x1400384a7
mov rax, qword [rbp + 0x67]
mov dword [rax + 0xc], r15d
jmp 0x1400384b0
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 0x14003860e
lea rax, [r10 + 4]
cmp rax, qword [rbp - 9]
jbe 0x1400384e8
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 0x14003860e
movsxd rdi, r14d
mov rdx, rdi
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test rax, rax
jne 0x140038551
xor sil, sil
jmp 0x140038611
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
test rax, rax
je 0x140038605
lea r15, [rdi + rax]
cmp rax, r15
jae 0x1400385df
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 0x1400385be
lea rax, [rdx + 1]
cmp rax, r8
jbe 0x1400385b8
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 0x1400385be
mov ecx, dword [rbp - 9]
sub ecx, dword [rbp - 0x11]
movsxd rdi, ecx
mov r8, rdi
mov rcx, rsi
call fcn.14011fbe0
mov rdx, qword [rbp - 0x11]
add rdx, rdi
mov qword [rbp - 0x11], rdx
add rsi, rdi
cmp rsi, r15
jb 0x140038580
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 0x140038605
mov rax, qword [rbp + 0x67]
mov dword [rax + 0x10], r14d
jmp 0x14003860e
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.14011b120
mov rdi, qword [rbp + 0xf]
test rdi, rdi
je 0x140038687
cmp qword [rdi + 0x30], 0
je 0x140038687
mov r8, qword [rdi + 0x38]
test r8, r8
je 0x140038687
mov rdx, qword [rdi + 0x28]
test rdx, rdx
je 0x140038687
cmp qword [rdx], rdi
jne 0x140038687
mov eax, dword [rdx + 8]
sub eax, 0x3f34
cmp eax, 0x1f
ja 0x140038687
mov rax, qword [rdx + 0x40]
test rax, rax
je 0x140038674
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.14011b120
lea rax, vtable.rdr::InStream.0
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x41], rax
jmp 0x1400386a8
xor sil, sil
test bl, bl
je 0x1400386b2
call qword [sym.imp.USER32.dll_CloseClipboard]
movzx eax, sil
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret