Function at 0x140007070
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rcx, qword [0x140124d78]
mov rbx, r8
mov rsi, rdx
test rcx, rcx
jne 0x140007122
xor edi, edi
test rdx, rdx
je 0x14000727b
mov eax, 0xffffffff
cmp rbx, rax
jne 0x1400070c2
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], di
jne 0x1400070b7
mov ebx, eax
test rbx, rbx
je 0x14000727b
lea r14, [rbx + 1]
test r14, r14
je 0x140007122
test rcx, rcx
jne 0x14000725f
lea rdx, [r14 + r14]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [0x140124d68], rax
test rax, rax
jne 0x14000713a
mov rax, qword [0x1401243b8]
lea rdx, str.Out_of_memory.
mov qword [rsp + 0x28], rax
lea rcx, [0x140124530]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call fcn.14000f6d0
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [0x140124d78], rax
test rax, rax
jne 0x14000724e
mov rcx, qword [0x140124d68]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [0x140124d68], rax
mov rax, qword [0x14011c188]
cmp dword [rax + 0x60], edi
jne 0x1400071b0
cmp dword [0x140124c38], edi
jne 0x1400071b0
cmp byte [0x14011ea7a], dil
jne 0x1400071b0
mov qword [rsp + 0x28], rdi
lea r9, [0x1400f9b50]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.An_internal_function_call_failed.
lea rcx, [0x140124530]
call fcn.1400106c0
jmp 0x140007122
mov rsi, qword [0x140124be0]
mov ecx, reloc.WSOCK32.dll_getservbyport
call fcn.1400b7ac4
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea r8, [0x1400f9b50]
mov rcx, rsi
lea rdx, str.An_internal_function_call_failed.
mov rbx, rax
call fcn.14000eca0
mov qword [rbx], rax
test rax, rax
je 0x14000720f
mov rdx, qword [0x14011c188]
xor r9d, r9d
mov r8, rbx
mov dword [rbx + 0x10], 5
mov rcx, rsi
mov qword [rbx + 0x20], rdi
call fcn.14000f1b0
jmp 0x140007122
mov edx, reloc.WSOCK32.dll_getservbyport
mov rcx, rbx
call fcn.1400b7abc
mov rax, qword [0x14011c188]
cmp qword [rax + 0x58], rdi
jne 0x140007122
xorps xmm3, xmm3
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea rcx, str.Out_of_memory.__The_current_thread_will_exit.
mov edx, 0x10000
call fcn.1400a1190
jmp 0x140007122
mov dword [0x140124d88], r14d
mov word [rax], di
mov rcx, qword [0x140124d78]
mov r14, rcx
test rcx, rcx
je 0x140007122
mov r8, rbx
mov rdx, rsi
call fcn.1400cd014
mov word [r14 + rbx*2], di
cmp dword [0x140124d8c], edi
jne 0x14000729d
call fcn.140007820
test eax, eax
jne 0x14000729d
lea rdx, str.Cant_open_clipboard_for_writing.
call fcn.1400073f0
jmp 0x140007124
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x1400072f0
cmp dword [0x140124d8c], edi
je 0x1400072df
cmp qword [0x140124d70], rdi
je 0x1400072cc
mov rcx, qword [0x140124d60]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140124d70], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140124d8c], edi
mov qword [0x140124d60], rdi
lea rdx, [0x1400fbd48]
call fcn.1400073f0
jmp 0x140007124
mov rdx, qword [0x140124d68]
test rdx, rdx
je 0x14000733a
mov rax, qword [0x140124d78]
test rax, rax
je 0x140007383
movzx ebx, word [rax]
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140124d78], rdi
mov dword [0x140124d88], edi
test bx, bx
jne 0x14000737c
mov rcx, qword [0x140124d68]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [0x140124d68], rax
cmp dword [0x140124d8c], edi
je 0x140007372
cmp qword [0x140124d70], rdi
je 0x14000735f
mov rcx, qword [0x140124d60]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140124d70], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140124d8c], edi
mov qword [0x140124d60], rdi
mov eax, 1
jmp 0x140007124
mov rdx, qword [0x140124d68]
mov ecx, recv
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x14000739c
mov qword [0x140124d68], rdi
jmp 0x14000733a
cmp dword [0x140124d8c], edi
je 0x1400073d4
cmp qword [0x140124d70], rdi
je 0x1400073c1
mov rcx, qword [0x140124d60]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140124d70], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140124d8c], edi
mov qword [0x140124d60], rdi
lea rdx, [0x1400fbd68]
call fcn.1400073f0
jmp 0x140007124