Function at 0x140016d60
Capabilities:
Create thread
Hide graphical window

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x710]
sub rsp, 0x810
mov rax, qword [0x1401b7030]
xor rax, rsp
mov qword [rbp + 0x700], rax
mov rbx, rcx
mov byte [0x1401ba684], 0
mov byte [0x1401ba685], 0
mov rdi, 0xffffffffffffffff
xor esi, esi
cmp dword [rcx + 0xa0], edi
jne 0x140016f09
mov rdx, qword [rcx + 0xd748]
cmp byte [rdx + 0x11], sil
je 0x140016dda
add rdx, 0x218
xor r9d, r9d
xor r8d, r8d
call fcn.140030f70
jmp 0x140016eb4
cmp byte [reloc.WS2_32.dll_accept], sil
jne 0x140016dfd
add rdx, 0x97e
mov r9b, 1
movzx r8d, r9b
call fcn.140030f70
mov rdx, qword [rbx + 0xd748]
mov r9, qword [rbx + 0x4d58]
mov r8, rbx
lea rcx, [rbp - 0x20]
call fcn.14004fd00
nop
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, [0x140050790]
xor r8d, r8d
lea edx, [r8 + 0x75]
mov rcx, qword [0x1401bc5b8]
mov rcx, qword [rcx + 0xb98]
call qword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
je 0x14001725e
lea rcx, [rbx + 0xa9]
mov r9d, 0xfa
lea r8, [rbp - 0xd]
mov edx, r9d
call fcn.140125604
mov eax, dword [rbp - 0x18]
mov dword [rbx + 0xa0], eax
lea rcx, [rbx + 0x1a3]
mov r9d, 0xfa
lea r8, [rbp + 0xed]
mov edx, r9d
call fcn.140125604
mov eax, dword [rbp - 0x14]
mov dword [rbx + 0xa4], eax
movzx eax, byte [rbp - 0x10]
mov byte [rbx + 0x29d], al
mov rax, qword [rbx + 0xd748]
cmp byte [rax + 0x327], 0
je 0x140016eab
mov dword [rax + 0x328], esi
lea rcx, [rbp - 0x20]
call fcn.140050660
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x140016f09
mov rax, qword [rbx + 0x720]
mov byte [rax + 0x4d9], 0
mov rax, qword [rbx + 0x720]
mov dword [rax + 0x5d4], edi
mov rax, qword [rbx + 0x720]
mov byte [rax + 0x5d8], 0
mov rax, qword [rbx + 0x720]
mov dword [rax + 0x6d4], edi
mov rax, qword [rbx + 0x720]
mov byte [rax + 0x18], 0
mov rax, qword [rbx + 0x720]
mov byte [rax + 0x19], 0
xor edx, edx
mov rcx, rbx
call fcn.1400192b0
mov rcx, qword [rbx + 0x720]
lea r8, [rcx + 0x1a]
mov rdx, rcx
mov rax, rdi
inc rax
cmp byte [r8 + rax], 0
jne 0x140016f24
test rax, rax
je 0x140016f54
cmp byte [rcx + 0x7fc], 0
jne 0x140016f54
lea rcx, [rbx + 0x5010]
mov edx, 0x100
call fcn.14012524c
mov rdx, qword [rbx + 0x720]
lea r8, [rdx + 0x11a]
nop dword [rax + rax]
inc rdi
cmp byte [r8 + rdi], 0
jne 0x140016f60
test rdi, rdi
je 0x140016f89
cmp byte [rdx + 0x7fc], 0
jne 0x140016f89
lea rcx, [rbx + 0x5110]
mov edx, 0x100
call fcn.14012524c
cmp byte [rbx + 0xa8], 0
je 0x140016fcd
mov byte [rbx + 0xa8], 0
cmp byte [0x1401ba761], 0
jne 0x140016fcd
lea r8, str.Saving_connection_info_n
mov edx, 2
lea rcx, vtable.Log.0
call fcn.1400155a0
mov rcx, qword [rbx + 0xd748]
lea rdx, [rcx + 0x97e]
call fcn.140063c10
mov dword [rsp + 0x70], esi
lea rax, [0x140028020]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rsi
mov rcx, qword [rbx + 0x720]
mov rax, qword [rcx + 0xb98]
mov qword [rbp - 0x78], rax
mov edx, reloc.WS2_32.dll_WSAAsyncSelect
mov rcx, qword [rcx + 0xb98]
call qword [sym.imp.USER32.dll_LoadIconA]
mov qword [rbp - 0x70], rax
mov rax, qword [rbx + 0xd748]
mov ecx, dword [rax + 0x358]
test ecx, ecx
je 0x14001702f
cmp ecx, 2
je 0x140017026
mov edx, 0x69
jmp 0x140017034
mov edx, 0x7f00
xor ecx, ecx
jmp 0x140017042
mov edx, 0x8e
mov rcx, qword [rbx + 0x720]
mov rcx, qword [rcx + 0xb98]
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rbp - 0x68], rax
mov ecx, 4
call qword [sym.imp.GDI32.dll_GetStockObject]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rsi
lea rdi, str.VNCMDI_Window
mov qword [rbp - 0x50], rdi
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_RegisterClassA]
mov rax, qword [rbx + 0x720]
mov qword [rsp + 0x58], rbx
mov rax, qword [rax + 0xb98]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], 0x80000000
mov dword [rsp + 0x30], 0x80000000
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0xff0000
lea r8, str.VNCviewer
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [rbx + 0xd760], rax
mov r8, rbx
mov edx, 0xffffffeb
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
xor edx, edx
mov rcx, qword [rbx + 0xd760]
call qword [sym.imp.IMM32.dll_ImmAssociateContext]
mov rcx, rbx
call fcn.140018210
mov rcx, rbx
call fcn.1400187a0
mov rcx, rbx
call fcn.1400172a0
mov edx, 5
mov rcx, qword [rbx + 0x12b8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rbx + 0x52c8], 1
mov rcx, qword [rbx + 0x12b8]
call qword [sym.imp.USER32.dll_SetClipboardViewer]
mov qword [rbx + 0x52c0], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + 0x52c0]
mov qword [rsp + 0x20], rax
mov r9, qword [rbx + 0x12b8]
lea r8, str.SetClipboardViewer_to_0x_08x__next_is_0x_08x._Last_error_0x_08x
mov edx, 6
lea rcx, vtable.Log.0
call fcn.1400155a0
mov byte [rbx + 0x52c8], 0
mov rcx, rbx
call fcn.1400207a0
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14001f290
mov rcx, qword [rbx + 0xd760]
mov dword [0x1401ba72c], esi
mov qword [0x1401ba738], rsi
mov dword [0x1401ba728], esi
mov dword [reloc.WS2_32.dll_accept], 1
mov qword [0x1401ba730], rcx
test rcx, rcx
je 0x14001720e
mov edx, 0xfffffffa
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
mov rdi, rax
test rax, rax
je 0x14001720e
lea rdx, [0x1401ba72c]
mov rcx, qword [0x1401ba730]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea rax, [0x1401ba740]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rdi
lea r8, [0x14004dd00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1401ba748], rax
cmp qword [rbx + 0x40], 0
jne 0x14001727f
cmp qword [rbx + 0x48], 0
jne 0x14001727f
mov dword [rbx + 0x58], esi
mov rcx, rbx
call fcn.140111990
xor edx, edx
mov rcx, qword [rbx + 0x12d8]
call qword [sym.imp.USER32.dll_EndDialog]
mov rcx, qword [rbp + 0x700]
xor rcx, rsp
call fcn.14011c340
lea r11, [rsp + 0x810]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rdx, [0x1401bb130]
lea rcx, [rbp - 0x40]
call fcn.14003d690
lea rdx, [0x1401b3040]
lea rcx, [rbp - 0x40]
call fcn.140121974
nop
lea rdx, [0x1401b33e0]
lea rcx, [rsp + 0x60]
call fcn.140121974
int3