Function at 0x140016b70
Capabilities:
Create thread
Hide graphical window

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x718]
sub rsp, 0x810
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401b5030]
xor rax, rsp
mov qword [rbp + 0x700], rax
mov rbx, rcx
mov byte [0x1402babec], 0
mov byte [0x1402babed], 0
mov rdi, 0xffffffffffffffff
xor esi, esi
cmp dword [rcx + 0xa0], edi
jne 0x140016d20
mov rdx, qword [rcx + 0xd748]
cmp byte [rdx + 0x11], sil
je 0x140016bf1
add rdx, 0x218
xor r9d, r9d
xor r8d, r8d
call fcn.1400309a0
jmp 0x140016ccb
cmp byte [reloc.WS2_32.dll_accept], sil
jne 0x140016c14
add rdx, 0x97e
mov r9b, 1
movzx r8d, r9b
call fcn.1400309a0
mov rdx, qword [rbx + 0xd748]
mov r9, qword [rbx + 0x4d58]
mov r8, rbx
lea rcx, [rbp - 0x20]
call fcn.1400534d0
nop
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, [0x140053f80]
xor r8d, r8d
lea edx, [r8 + 0x75]
mov rcx, qword [0x1402bb178]
mov rcx, qword [rcx + 0xb98]
call qword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
je 0x14001707e
lea rcx, [rbx + 0xa9]
mov r9d, 0xfa
lea r8, [rbp - 0xd]
mov edx, r9d
call fcn.140122454
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.140122454
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 + 0x326], 0
je 0x140016cc2
mov dword [rax + 0x328], esi
lea rcx, [rbp - 0x20]
call fcn.140053e50
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x140016d20
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.140019060
mov rcx, qword [rbx + 0x720]
lea r8, [rcx + 0x1a]
mov rdx, rcx
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x140016d40
test rax, rax
je 0x140016d70
cmp byte [rcx + 0x7fc], 0
jne 0x140016d70
lea rcx, [rbx + 0x5010]
mov edx, 0x100
call fcn.14012209c
mov rdx, qword [rbx + 0x720]
lea r8, [rdx + 0x11a]
nop word [rax + rax]
inc rdi
cmp byte [r8 + rdi], 0
jne 0x140016d80
test rdi, rdi
je 0x140016da9
cmp byte [rdx + 0x7fc], 0
jne 0x140016da9
lea rcx, [rbx + 0x5110]
mov edx, 0x100
call fcn.14012209c
cmp byte [rbx + 0xa8], 0
je 0x140016ded
mov byte [rbx + 0xa8], 0
cmp byte [0x1402bace5], 0
jne 0x140016ded
lea r8, str.Saving_connection_info_n
mov edx, 2
lea rcx, vtable.Log.0
call fcn.1400153f0
mov rcx, qword [rbx + 0xd748]
lea rdx, [rcx + 0x97e]
call fcn.1400627c0
mov dword [rsp + 0x70], esi
lea rax, [0x140027c00]
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 0x140016e4f
cmp ecx, 2
je 0x140016e46
mov edx, 0x69
jmp 0x140016e54
mov edx, 0x7f00
xor ecx, ecx
jmp 0x140016e62
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.140017fc0
mov rcx, rbx
call fcn.140018550
mov rcx, rbx
call fcn.1400170c0
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.1400153f0
mov byte [rbx + 0x52c8], 0
mov rcx, rbx
call fcn.140020690
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14001f1a0
mov rcx, qword [rbx + 0xd760]
mov dword [0x1402baccc], esi
mov qword [0x1402bacd8], rsi
mov dword [0x1402bacc8], esi
mov dword [reloc.WS2_32.dll_accept], 1
mov qword [0x1402bacd0], rcx
test rcx, rcx
je 0x14001702e
mov edx, 0xfffffffa
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
mov rdi, rax
test rax, rax
je 0x14001702e
lea rdx, [0x1402baccc]
mov rcx, qword [0x1402bacd0]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea rax, [0x1402bace0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rdi
lea r8, [0x14004f500]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1402bace8], rax
cmp qword [rbx + 0x40], 0
jne 0x14001709f
cmp qword [rbx + 0x48], 0
jne 0x14001709f
mov dword [rbx + 0x58], esi
mov rcx, rbx
call fcn.140110820
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.14011b0c0
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, [0x1402bb790]
lea rcx, [rbp - 0x38]
call fcn.14003d420
lea rdx, [0x1401b1580]
lea rcx, [rbp - 0x38]
call fcn.1401202c4
nop
lea rdx, [0x1401b1948]
lea rcx, [rsp + 0x60]
call fcn.1401202c4
int3