joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400766f0
Capabilities:
Move file
Print debug messages
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x40
mov rbx, 0xffffffffffffffff
lea rsi, [0x1401f0f20]
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x140076710
test rax, rax
jne 0x140076746
lea r8, str.Error_opening_log_file_n
mov word [0x1401f0f08], 0x100
xor edx, edx
lea rcx, vtable.VNCLog.0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
jmp fcn.140017a50
cmp byte [0x1401f1120], 0
mov byte [0x1401f0f08], 1
jne 0x1400767dd
mov qword [rsp + 0x50], rdi
mov rcx, rbx
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140076762
add rcx, 5
call fcn.140131f5c
mov rdi, rax
mov rdx, rbx
nop word [rax + rax]
inc rdx
cmp byte [rsi + rdx], 0
jne 0x140076780
add rdx, 5
mov r8, rsi
mov rcx, rdi
call fcn.14013ac00
nop dword [rax + rax]
cmp byte [rsi + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x1400767a0
lea rdx, [rbx + 5]
mov rcx, rdi
lea r8, str..bak
call fcn.14013ac60
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
mov rcx, rdi
call fcn.140131f10
mov rdi, qword [rsp + 0x50]
mov rcx, qword [0x1401f0f18]
xor ebx, ebx
test rcx, rcx
je 0x1400767f8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401f0f18], rbx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, rsi
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x1401f0f18], rax
cmp rax, 0xffffffffffffffff
jne 0x140076857
mov r9, rsi
mov word [0x1401f0f08], 0x100
lea r8, str.Error_opening_log_file__s_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rax, qword [0x1401f0f18]
cmp byte [0x1401f1120], bl
mov rcx, rax
je 0x14007687e
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetEndOfFile]

Function at 0x140076890
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x30
cmp byte [rcx + 9], 0
mov rsi, rdx
mov rbp, rcx
je 0x1400768b4
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [rbp + 0xa], 0
mov rbx, 0xffffffffffffffff
je 0x140076906
mov qword [rsp + 0x48], rdi
mov rdi, rbx
nop dword [rax]
inc rdi
cmp byte [rsi + rdi], 0
jne 0x1400768d0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov rdi, qword [rsp + 0x48]
cmp byte [rbp + 8], 0
je 0x140076938
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140076938
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140076915
mov r8, rbx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
Function at 0x140076ac0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9d, dword [0x1401fefd4]
lea r8, str.RestoreDesktop_:_Restorewallpaper__i_n
mov edx, 8
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov r9d, dword [0x1401fefd4]
test r9d, r9d
je 0x140076bba
mov eax, dword [0x1401ff480]
lea r8, str.RestoreDesktop_:_Restorewallpaper__i__i_n
mov edx, 8
mov dword [rsp + 0x20], eax
lea rcx, vtable.VNCLog.0
call fcn.140017a50
cmp dword [0x1401ff480], 0
je 0x140076b31
call fcn.140021600
cmp eax, 0x40047
jb 0x140076b31
mov cl, 1
call fcn.1400216a0
xor edx, edx
lea r8, [0x1401ff080]
mov r9d, 2
lea ecx, [rdx + 0x14]
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
lea rax, [rsp + 0x40]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Control_PanelDesktop
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140076bba
lea rcx, [0x1401ff488]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140076b82
mov dword [rsp + 0x28], eax
lea rdx, str.WallpaperStyle
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x1401fefd4], 0
add rsp, 0x38
ret

Function at 0x140077470
Capabilities:
Find taskbar

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x690], 0
mov rbx, rcx
je 0x14007751c
xor edx, edx
lea rcx, str.SYSTEM
nop
movzx eax, byte [rbx + rdx + 0x690]
inc rdx
cmp al, byte [rcx + rdx - 1]
jne 0x1400774ad
cmp rdx, 7
jne 0x140077490
add rsp, 0x20
pop rbx
ret
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
jne 0x1400774d3
inc dword [rbx + 0x7c0]
mov byte [rbx + 0x7bc], al
add rsp, 0x20
pop rbx
ret
cmp byte [rbx + 0x7bc], 0
jne 0x1400774e4
mov rcx, rbx
call fcn.140077590
mov rcx, rbx
call fcn.140077a90
lea r8, [rbx + 0x7c6]
mov edx, 0x80
lea rcx, [rbx + 0x2b0]
call fcn.14014b110
lea rdx, [rbx + 0x288]
mov ecx, 1
add rsp, 0x20
pop rbx
jmp qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
add rsp, 0x20
pop rbx
ret
Function at 0x140078390
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rbp + 0x220], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
call fcn.140020ef0
test eax, eax
je 0x1400783f0
mov r8d, eax
xor edx, edx
mov ecx, 0x2000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r8, [rsp + 0x70]
mov edx, 0x201eb
mov rcx, rax
mov qword [rsp + 0x68], rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x340], rdi
test rbx, rbx
jne 0x14007840a
xor dil, dil
jmp 0x140078535
mov r8d, 0x104
lea rdx, [rbp + 0x110]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rbp + 0x110]
mov edx, 0x104
lea rcx, [rbp]
call fcn.14013ac00
lea r8, str.__openhomepage
mov edx, 0x104
lea rcx, [rbp]
call fcn.14013ac60
xorps xmm0, xmm0
lea rcx, [rsp + 0x60]
xor eax, eax
xor edi, edi
mov qword [rbp - 0x10], rax
xor r8d, r8d
mov qword [rbp - 0x78], rax
mov rdx, rbx
mov eax, 5
mov qword [rsp + 0x60], rdi
movups xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x30], ax
lea rax, str.Winsta0Default
movups xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x70], 0x68
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x60], rax
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rsp + 0x78], xmm0
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
xor r9d, r9d
lea r8, [rbp]
xor edx, edx
mov rcx, rbx
test eax, eax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
je 0x1400784e2
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x408
jmp 0x1400784ef
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14007850d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14007851d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14007852d
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rbx, qword [rsp + 0x70]
mov dil, 1
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14007854a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x140078558
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
mov rdi, qword [rsp + 0x340]
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.140131ef0
mov rbx, qword [rsp + 0x348]
add rsp, 0x330
pop rbp
ret
Function at 0x140083d60
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
lea rbp, [rcx + 0x548]
mov rbx, rcx
mov rcx, rbp
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x108]
test rcx, rcx
je 0x140083e2c
mov rcx, qword [rcx + 0xe4b8]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140083e26
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x140083e26
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x30], rsi
mov rdx, rbx
inc rdx
cmp byte [rdi + rdx], 0
jne 0x140083dc3
inc rdx
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x140083e21
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140083e21
cmp byte [rdi + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x140083df0
lea rdx, [rbx + 1]
mov r8, rdi
mov rcx, rax
call fcn.14013ac00
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rsi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rsi, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, rbp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140084890
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov qword [rsp + 0x60], r9
mov r14, r8
mov qword [rsp + 0x58], r8
mov r13, rdx
mov rbx, rcx
lea r12, [rcx + 0x548]
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], gethostname
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [rbx + 0x108]
test rax, rax
jne 0x140084a73
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
test rax, rax
jne 0x140084938
lea r8, str.vncServer::GetScreenInfo_:_Failed_rootdc__n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140017a50
xor ebx, ebx
movzx edi, bx
mov dword [rsp + 0x40], ebx
mov byte [rsp + 0x44], bl
jmp 0x140084a84
mov edx, 8
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
mov word [rsp + 0x40], di
mov edx, 0xa
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov word [rsp + 0x42], ax
movzx r8d, ax
movzx edx, di
mov rcx, rsi
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r15, rax
test rax, rax
jne 0x140084995
xor ebx, ebx
movzx edi, bx
mov dword [rsp + 0x40], ebx
mov byte [rsp + 0x44], bl
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x140084a84
xor edx, edx
mov r8d, 0x430
lea rcx, [rsp + 0x70]
call fcn.1401348e0
mov dword [rsp + 0x74], 0x28
xor ebx, ebx
mov word [rbp - 0x7e], bx
mov rcx, rsi
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r14, rax
test rax, rax
jne 0x1400849d6
movzx edi, bx
mov dword [rsp + 0x40], ebx
mov byte [rsp + 0x44], bl
jmp 0x140084a58
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x140084a44
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x140084a44
movzx eax, byte [rbp - 0x7e]
mov ecx, eax
mov edx, 0x20
cmp al, 0x18
cmove ecx, edx
mov byte [rsp + 0x44], cl
jmp 0x140084a4f
movzx edi, bx
mov dword [rsp + 0x40], ebx
mov byte [rsp + 0x44], bl
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r14, qword [rsp + 0x58]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x140084a84
movups xmm0, xmmword [rax + 0xe460]
movups xmmword [rsp + 0x40], xmm0
movzx edi, word [rsp + 0x40]
movzx eax, di
mov dword [r13], eax
mov rdx, qword [rsp + 0x40]
mov rax, rdx
shr rax, 0x10
movzx eax, ax
mov dword [r14], eax
shr rdx, 0x20
movzx eax, dl
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140131ef0
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140085a30
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x594], 0
mov rbx, rcx
je 0x140085ab9
cmp byte [0x1401f42c3], 0
jne 0x140085ab9
lea r8, str.vncServer::AutoConnectRetry_:_AutoConnectRetry__:_started_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rcx, qword [rbx + 0xb0]
test rcx, rcx
je 0x140085a88
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140085ab9
mov rcx, qword [rbx + 0xb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9, qword [0x1401fc630]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x140085a10]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xb0], rax
add rsp, 0x30
pop rbx
ret
Function at 0x140085ac0
Capabilities:
Print debug messages
Set socket configuration
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
cmp dword [rcx + 0x594], 0
mov rbx, rcx
je 0x140085d22
mov qword [rsp + 0x80], rsi
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x58], rdi
lea rdi, [rcx + 0x5a0]
mov qword [rsp + 0x50], r14
xor r14d, r14d
nop dword [rax]
mov rax, rsi
inc rax
cmp byte [rdi + rax], r14b
jne 0x140085b03
test rax, rax
je 0x140085d10
cmp byte [0x1401f42c3], r14b
jne 0x140085d10
lea r8, str.vncServer::actualRetryThread_:_Attempting_AutoReconnect...._n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov ecx, 0x23f8
call fcn.140131f18
mov rcx, rax
mov qword [rsp + 0x70], rax
call fcn.140087050
mov qword [rbx + 0xc8], rax
test rax, rax
je 0x140085be8
mov rcx, rax
call fcn.1400871f0
mov r8d, dword [rbx + 0x59c]
mov rdx, rdi
mov rcx, qword [rbx + 0xc8]
call fcn.140087350
test eax, eax
jne 0x140085bfa
lea r8, str.vncServer::actualRetryThread_:_connect_failed__waitin_5_sec_to_retry...._n
lea edx, [rax + 9]
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rcx, qword [rbx + 0xc8]
test rcx, rcx
je 0x140085baf
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0xc8], r14
cmp dword [rbx + 0x594], r14d
je 0x140085d10
mov rax, rsi
inc rax
cmp byte [rdi + rax], r14b
jne 0x140085bc6
test rax, rax
je 0x140085be8
cmp byte [0x1401f42c3], r14b
jne 0x140085be8
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x594], r14d
jne 0x140085b00
jmp 0x140085d10
mov qword [rsp + 0x78], rbp
lea rbp, [rbx + 0x69f]
inc rsi
cmp byte [rsi + rbp], r14b
jne 0x140085c06
test rsi, rsi
je 0x140085cba
mov rcx, qword [rbx + 0xc8]
mov r8d, 0xfa
mov rdx, rbp
call fcn.140087790
cmp byte [0x14023f4fc], 2
mov rsi, qword [rbx + 0xc8]
jb 0x140085c8b
mov rcx, qword [rsi + 0x10]
lea r9, [rsp + 0x70]
mov edx, 0xffff
mov dword [rsp + 0x70], r14d
mov r8d, 0x1006
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140085c8b
mov rcx, qword [rsi + 0x10]
lea r9, [rsp + 0x70]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1005
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [0x1401fef68]
mov r8d, r14d
mov dword [rsp + 0x48], 1
cmp dword [rax + 0xa64], r14d
mov eax, dword [rbx + 0x59c]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rbp
jmp 0x140085ce7
mov rax, qword [0x1401fef68]
mov r8d, r14d
mov dword [rsp + 0x48], 1
cmp dword [rax + 0xa64], r14d
mov eax, dword [rbx + 0x59c]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r14
mov r10, qword [rbx]
mov r9d, 1
mov rdx, qword [rbx + 0xc8]
sete r8b
mov qword [rsp + 0x28], r14
mov rcx, rbx
mov dword [rsp + 0x20], r14d
call qword [r10]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x50]
lea r8, str.vncServer::actualRetryThread_:_leaving_reconnectThread...._n
mov edx, 9
lea rcx, vtable.VNCLog.0
add rsp, 0x60
pop rbx
jmp fcn.140017a50
Function at 0x1400871f0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov rbx, rcx
mov dword [rsp + 0x40], 1
je 0x14008725e
lea r8, str.VSocket::Close_:_closing_socket_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rcx, qword [rbx + 0x10]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 0x28]
mov qword [rbx + 0x10], 0xffffffffffffffff
test rcx, rcx
je 0x14008725e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
xor eax, eax
mov qword [rbx + 0x28], rax
mov qword [rbx + 8], rax
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x10], rax
cmp rax, 0xffffffffffffffff
je 0x1400872b0
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 4
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400872b0
mov rcx, rbx
call fcn.140087500
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140087350
Capabilities:
Connect socket
Resolve dns

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
je 0x1400873f1
xorps xmm0, xmm0
mov eax, 2
movups xmmword [rsp + 0x20], xmm0
mov rcx, rdx
mov word [rsp + 0x20], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x24], eax
cmp eax, 0xffffffff
jne 0x1400873bb
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1400873f1
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400873f1
mov eax, dword [rcx]
mov dword [rsp + 0x24], eax
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1400873f1
mov rcx, rbx
call fcn.140087500
mov eax, 0xffffffff
jmp 0x1400873f3
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140131ef0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140087410
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x1400874e5
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 4
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_getsockopt]
mov eax, dword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov rcx, qword [rbx + 0x10]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x48], 0x8000
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x10]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400874e5
mov ecx, 0x23f8
call fcn.140131f18
mov rcx, rax
mov qword [rsp + 0x50], rax
call fcn.140087050
mov rbx, rax
test rax, rax
je 0x1400874ce
mov rcx, rax
mov qword [rax + 0x10], rdi
call fcn.140087500
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov edx, 2
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140087500
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov ebx, 0xffffffff
mov dword [rsp + 0x50], 1
mov rdi, rcx
mov dword [rsp + 0x20], 4
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x50]
lea edx, [rbx + 7]
lea r8d, [rbx + 2]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x50]
xor esi, esi
mov dword [rsp + 0x20], 4
test eax, eax
mov edx, 0xffff
cmovne ebx, esi
lea r8d, [rsi + 8]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14008757e
mov eax, esi
jmp 0x1400875ec
mov rcx, qword [rdi + 0x10]
lea r8, [rsp + 0x58]
xor eax, eax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x68], rax
mov r9d, reloc.WS2_32.dll_inet_ntoa
mov dword [rsp + 0x70], eax
mov edx, 0x98000004
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], reloc.WS2_32.dll_inet_ntoa
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x54], esi
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x5c], 0x2710
mov dword [rsp + 0x60], 0x3e8
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
cmovne ebx, esi
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140131ef0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140087610
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x14023f4fc], 2
mov rbx, rcx
jb 0x14008767f
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], edx
mov r8d, 0x1006
mov edx, 0xffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14008767f
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1005
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14008767f
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140087690
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x14023f4fc], 2
mov rbx, rcx
jae 0x1400876aa
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], edx
mov r8d, 0x1006
mov edx, 0xffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400876a2
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1005
call qword [sym.imp.WS2_32.dll_setsockopt]
inc eax
neg eax
sbb eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140087710
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x14023f4fc], 2
mov rbx, rcx
jae 0x14008772a
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], edx
mov r8d, 0x1006
mov edx, 0xffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140087722
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1005
call qword [sym.imp.WS2_32.dll_setsockopt]
inc eax
neg eax
sbb eax, eax
add rsp, 0x30
pop rbx
ret