Function at 0x14004f350
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3250]
mov eax, 0x3350
call fcn.140148660
sub rsp, rax
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rbp + 0x3240], rax
mov qword [rbp - 0x80], rdx
mov rbx, rcx
xor r12d, r12d
mov r15d, r12d
mov qword [rbp - 0x68], r12
lea rcx, str.wtsapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbp - 0x60], rax
test rax, rax
je 0x14004f3c4
lea rdx, [0x1401f3cd0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
mov qword [rbp - 0x68], rax
mov r14, r12
mov qword [rbp - 0x78], r12
lea rcx, str.wtsapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbp - 0x70], rax
test rax, rax
je 0x14004f3f8
lea rdx, [0x1401f3cf8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
mov qword [rbp - 0x78], rax
mov dword [rbx + 0xe448], r12d
mov edi, r12d
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov esi, eax
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jg 0x14004f421
cmp esi, 0xffffffff
je 0x14004f402
lea ecx, [rsi - 1]
cmp ecx, 0xfffffffd
ja 0x14004f77d
mov rax, qword [rbx + 0xe440]
mov dword [rax], esi
mov rax, qword [rbx + 0xe440]
xorps xmm0, xmm0
movups xmmword [rax + 4], xmm0
movups xmmword [rax + 0x14], xmm0
mov rax, qword [rbx + 0xe440]
movups xmmword [rax + 0x24], xmm0
movups xmmword [rax + 0x34], xmm0
mov rcx, qword [rbx + 0xe440]
add rcx, 4
lea r8, str.Not_Active
mov edx, 0x20
call fcn.140150800
mov rcx, qword [rbx + 0xe440]
add rcx, 0x24
lea r8, str.Console
mov edx, 0x20
call fcn.140150800
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
xorps xmm0, xmm0
movups xmmword [rcx + rax + 0x44], xmm0
movups xmmword [rcx + rax + 0x54], xmm0
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
add rax, 0x44
add rcx, rax
lea r8, str.Current_Console
mov edx, 0x20
call fcn.140150800
lea rcx, str.WTSAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x60], r12d
test rax, rax
je 0x14004f560
lea rdx, str.WTSQuerySessionInformationA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xe440]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x70]
mov r8d, 5
mov edx, dword [rcx]
xor ecx, ecx
call rax
test eax, eax
je 0x14004f560
mov rcx, qword [rbx + 0xe440]
add rcx, 0x44
mov r8, qword [rsp + 0x70]
mov edx, 0x20
call fcn.140150800
mov rcx, qword [rbx + 0xe440]
add rcx, 4
lea r8, str.Active
mov edx, 0x20
call fcn.140150800
inc dword [rbx + 0xe448]
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], r12d
test r15, r15
je 0x14004f981
test r14, r14
je 0x14004f981
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call r15
test eax, eax
je 0x14004f981
mov edi, r12d
cmp dword [rsp + 0x40], r12d
jbe 0x14004f979
mov eax, edi
lea rcx, [rax + rax*2]
lea r15, [rcx*8]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + r15 + 0x10]
test eax, 0xfffffffc
jne 0x14004f76c
cmp eax, 1
je 0x14004f76c
lea rdx, str.Console
mov rcx, qword [rcx + r15 + 8]
call fcn.14015acf8
test eax, eax
je 0x14004f76c
movsxd rax, dword [rbx + 0xe448]
imul r8, rax, 0x64
mov rdx, qword [rbx + 0xe440]
mov rax, qword [rsp + 0x48]
mov ecx, dword [r15 + rax]
mov dword [r8 + rdx], ecx
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
xorps xmm0, xmm0
movups xmmword [rcx + rax + 4], xmm0
movups xmmword [rcx + rax + 0x14], xmm0
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
movups xmmword [rcx + rax + 0x24], xmm0
movups xmmword [rcx + rax + 0x34], xmm0
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
add rax, 4
add rcx, rax
lea r8, str.Active
mov edx, 0x20
call fcn.140150800
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
add rax, 0x24
add rcx, rax
mov r8, qword [rsp + 0x48]
mov r8, qword [r15 + r8 + 8]
mov edx, 0x20
call fcn.140150800
lea rcx, str.WTSAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x50], r12d
test rax, rax
je 0x14004f750
lea rdx, str.WTSQuerySessionInformationA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x58]
mov r8d, 5
mov rcx, qword [rsp + 0x48]
mov edx, dword [r15 + rcx]
xor ecx, ecx
call rax
test eax, eax
je 0x14004f750
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
xorps xmm0, xmm0
movups xmmword [rcx + rax + 0x44], xmm0
movups xmmword [rcx + rax + 0x54], xmm0
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
add rax, 0x44
add rcx, rax
mov r8, qword [rsp + 0x58]
mov edx, 0x20
call fcn.140150800
inc dword [rbx + 0xe448]
jmp 0x14004f75b
inc dword [rbx + 0xe448]
test rsi, rsi
je 0x14004f764
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x58]
call r14
inc edi
cmp edi, dword [rsp + 0x40]
jb 0x14004f5b2
jmp 0x14004f979
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], r12d
test r15, r15
je 0x14004f981
test r14, r14
je 0x14004f981
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call r15
test eax, eax
je 0x14004f981
mov edi, r12d
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x14004f979
nop word [rax + rax]
mov eax, edi
lea rcx, [rax + rax*2]
lea r15, [rcx*8]
mov r8, qword [rsp + 0x48]
mov eax, dword [r8 + r15 + 0x10]
test eax, 0xfffffffc
jne 0x14004f96f
cmp eax, 1
je 0x14004f96f
movsxd rax, dword [rbx + 0xe448]
imul rdx, rax, 0x64
mov rcx, qword [rbx + 0xe440]
mov eax, dword [r8 + r15]
mov dword [rdx + rcx], eax
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
xorps xmm0, xmm0
movups xmmword [rcx + rax + 4], xmm0
movups xmmword [rcx + rax + 0x14], xmm0
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
movups xmmword [rcx + rax + 0x24], xmm0
movups xmmword [rcx + rax + 0x34], xmm0
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
add rax, 4
add rcx, rax
lea r8, str.Active
mov edx, 0x20
call fcn.140150800
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
add rax, 0x24
add rcx, rax
mov r8, qword [rsp + 0x48]
mov r8, qword [r15 + r8 + 8]
mov edx, 0x20
call fcn.140150800
lea rcx, str.WTSAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x50], r12d
test rax, rax
je 0x14004f94f
lea rdx, str.WTSQuerySessionInformationA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x58]
mov r8d, 5
mov rcx, qword [rsp + 0x48]
mov edx, dword [r15 + rcx]
xor ecx, ecx
call rax
test eax, eax
je 0x14004f94f
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
xorps xmm0, xmm0
movups xmmword [rcx + rax + 0x44], xmm0
movups xmmword [rcx + rax + 0x54], xmm0
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
add rax, 0x44
add rcx, rax
mov r8, qword [rsp + 0x58]
mov edx, 0x20
call fcn.140150800
inc dword [rbx + 0xe448]
jmp 0x14004f95a
inc dword [rbx + 0xe448]
test rsi, rsi
je 0x14004f963
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x58]
call r14
mov edx, dword [rsp + 0x40]
inc edi
cmp edi, edx
jb 0x14004f7d0
mov rcx, qword [rsp + 0x48]
call r14
lea r8, [0x1401e9c5c]
mov edx, 0x3200
lea rcx, [rbp + 0x40]
call fcn.140150800
mov edi, r12d
cmp dword [rbx + 0xe448], r12d
jbe 0x14004fa2c
nop word [rax + rax]
mov eax, edi
imul r10, rax, 0x64
add r10, qword [rbx + 0xe440]
mov r9d, dword [r10]
test r9d, 0xfffeffff
je 0x14004fa22
lea rcx, [r10 + 4]
lea rdx, [r10 + 0x44]
add r10, 0x24
lea eax, [rdi + 0x61]
movsx r8d, al
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r10
lea rdx, str._c__session_i__s_user_s__status_s
lea rcx, [rbp - 0x40]
call fcn.14001a6e0
lea r8, [rbp - 0x40]
mov edx, 0x3200
lea rcx, [rbp + 0x40]
call fcn.140150860
lea r8, [0x1401f067c]
mov edx, 0x3200
lea rcx, [rbp + 0x40]
call fcn.140150860
inc edi
cmp edi, dword [rbx + 0xe448]
jb 0x14004f9b0
lea r8, [0x1401f067c]
mov edx, 0x3200
lea rcx, [rbp + 0x40]
call fcn.140150860
lea r8, [0x1401f067c]
mov edx, 0x3200
lea rcx, [rbp + 0x40]
call fcn.140150860
lea r8, str.Enter_session_to_clone:__n
mov edx, 0x3200
lea rcx, [rbp + 0x40]
call fcn.140150860
mov dword [rsp + 0x20], 0x280
mov r9d, 0x280
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_SetRect]
mov edx, 0xfefefe
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SetTextColor]
mov r12d, eax
mov edx, 0xff0000
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SetBkColor]
mov r13d, eax
mov ecx, 0xff0000
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
mov r14, rax
mov rdx, qword [rbx + 0xe4e0]
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SelectObject]
mov r15, rax
test rax, rax
je 0x14004fcdb
mov r8, r14
lea rdx, [rbp - 0x50]
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.USER32.dll_FillRect]
mov dword [rsp + 0x20], 0x280
xor edx, edx
mov r9d, 0x280
lea r8d, [rdx + 0xa]
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_SetRect]
mov dword [rsp + 0x20], 1
lea r9, [rbp - 0x50]
mov r8d, gethostbyname
lea rdx, str.UltraVNC_Server_Experimental_pre_connect_window__n
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.USER32.dll_DrawTextA]
lea rcx, [0x14021f660]
mov rdi, 0xffffffffffffffff
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14004fb50
test rax, rax
jne 0x14004fb63
call fcn.14001d340
mov dword [rsp + 0x20], 0x280
mov edx, 0x1e
mov r9d, 0x280
lea r8d, [rdx + 0x14]
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_SetRect]
mov ecx, reloc.WS2_32.dll_inet_addr
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rdx, rax
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rsi, rax
test rax, rax
je 0x14004fbe4
mov r8, rdi
lea rdx, [0x14021f660]
inc r8
cmp byte [rdx + r8], 0
jne 0x14004fbb1
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r9, [rbp - 0x50]
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.USER32.dll_DrawTextA]
mov rdx, rsi
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x20], 0x280
mov edx, 0x1e
mov r9d, 0x280
mov r8d, 0xb4
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_SetRect]
mov ecx, reloc.WS2_32.dll_inet_addr
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rdx, rax
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rsi, rax
test rax, rax
je 0x14004fc69
lea rax, [rbp + 0x40]
nop
inc rdi
cmp byte [rax + rdi], 0
jne 0x14004fc30
mov r8, rdi
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x50]
lea rdx, [rbp + 0x40]
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.USER32.dll_DrawTextA]
mov rdx, rsi
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SelectObject]
mov edx, r13d
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SetBkColor]
mov edx, r12d
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SetTextColor]
mov rdx, r15
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteObject]
mov dword [rsp + 0x20], 0x280
mov r9d, 0x280
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_SetRect]
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rsp + 0x70], xmm0
mov r8, qword [rbp - 0x80]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140050410
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x14004fceb
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14004fcfb
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rcx, qword [rbp + 0x3240]
xor rcx, rsp
call fcn.140147af0
mov rbx, qword [rsp + 0x33a0]
add rsp, 0x3350
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret