joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400784f0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rbp + 0x220], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
call fcn.140020f50
test eax, eax
je 0x140078550
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 0x14007856a
xor dil, dil
jmp 0x140078695
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.140139fd0
lea r8, str.__openhomepage
mov edx, 0x104
lea rcx, [rbp]
call fcn.14013a030
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 0x140078642
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x408
jmp 0x14007864f
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 0x14007866d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14007867d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14007868d
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rbx, qword [rsp + 0x70]
mov dil, 1
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400786aa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x1400786b8
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.1401312c0
mov rbx, qword [rsp + 0x348]
add rsp, 0x330
pop rbp
ret
Function at 0x140083ec0
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 0x140083f8c
mov rcx, qword [rcx + 0xe4b8]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140083f86
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x140083f86
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x30], rsi
mov rdx, rbx
inc rdx
cmp byte [rdi + rdx], 0
jne 0x140083f23
inc rdx
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x140083f81
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140083f81
cmp byte [rdi + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x140083f50
lea rdx, [rbx + 1]
mov r8, rdi
mov rcx, rax
call fcn.140139fd0
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 0x1400849f0
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 [0x1401ef010]
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 0x140084bd3
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
test rax, rax
jne 0x140084a98
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 0x140084be4
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 0x140084af5
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 0x140084be4
xor edx, edx
mov r8d, 0x430
lea rcx, [rsp + 0x70]
call fcn.140133cb0
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 0x140084b36
movzx edi, bx
mov dword [rsp + 0x40], ebx
mov byte [rsp + 0x44], bl
jmp 0x140084bb8
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 0x140084ba4
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 0x140084ba4
movzx eax, byte [rbp - 0x7e]
mov ecx, eax
mov edx, 0x20
cmp al, 0x18
cmove ecx, edx
mov byte [rsp + 0x44], cl
jmp 0x140084baf
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 0x140084be4
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.1401312c0
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 0x140085b90
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x594], 0
mov rbx, rcx
je 0x140085c19
cmp byte [0x1401f32c3], 0
jne 0x140085c19
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 0x140085be8
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140085c19
mov rcx, qword [rbx + 0xb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9, qword [0x1401fb630]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x140085b70]
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 0x140085c20
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 0x140085e82
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 0x140085c63
test rax, rax
je 0x140085e70
cmp byte [0x1401f32c3], r14b
jne 0x140085e70
lea r8, str.vncServer::actualRetryThread_:_Attempting_AutoReconnect...._n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov ecx, 0x23f8
call fcn.1401312e8
mov rcx, rax
mov qword [rsp + 0x70], rax
call fcn.1400871b0
mov qword [rbx + 0xc8], rax
test rax, rax
je 0x140085d48
mov rcx, rax
call fcn.140087350
mov r8d, dword [rbx + 0x59c]
mov rdx, rdi
mov rcx, qword [rbx + 0xc8]
call fcn.1400874b0
test eax, eax
jne 0x140085d5a
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 0x140085d0f
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0xc8], r14
cmp dword [rbx + 0x594], r14d
je 0x140085e70
mov rax, rsi
inc rax
cmp byte [rdi + rax], r14b
jne 0x140085d26
test rax, rax
je 0x140085d48
cmp byte [0x1401f32c3], r14b
jne 0x140085d48
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x594], r14d
jne 0x140085c60
jmp 0x140085e70
mov qword [rsp + 0x78], rbp
lea rbp, [rbx + 0x69f]
inc rsi
cmp byte [rsi + rbp], r14b
jne 0x140085d66
test rsi, rsi
je 0x140085e1a
mov rcx, qword [rbx + 0xc8]
mov r8d, 0xfa
mov rdx, rbp
call fcn.1400878f0
cmp byte [0x14023e4f4], 2
mov rsi, qword [rbx + 0xc8]
jb 0x140085deb
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 0x140085deb
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 [0x1401fdf60]
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 0x140085e47
mov rax, qword [0x1401fdf60]
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 0x140087350
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov rbx, rcx
mov dword [rsp + 0x40], 1
je 0x1400873be
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 0x1400873be
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 0x140087410
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 0x140087410
mov rcx, rbx
call fcn.140087660
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x1400874b0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
je 0x140087551
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 0x14008751b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x140087551
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
test rcx, rcx
je 0x140087551
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 0x140087551
mov rcx, rbx
call fcn.140087660
mov eax, 0xffffffff
jmp 0x140087553
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401312c0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140087570
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 0x140087645
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 0x140087645
mov ecx, 0x23f8
call fcn.1401312e8
mov rcx, rax
mov qword [rsp + 0x50], rax
call fcn.1400871b0
mov rbx, rax
test rax, rax
je 0x14008762e
mov rcx, rax
mov qword [rax + 0x10], rdi
call fcn.140087660
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 0x140087660
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1401ef010]
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 0x1400876de
mov eax, esi
jmp 0x14008774c
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.1401312c0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140087770
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x14023e4f4], 2
mov rbx, rcx
jb 0x1400877df
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 0x1400877df
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 0x1400877df
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x1400877f0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x14023e4f4], 2
mov rbx, rcx
jae 0x14008780a
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 0x140087802
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 0x140087870
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x14023e4f4], 2
mov rbx, rcx
jae 0x14008788a
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 0x140087882
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 0x140087cf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
cmp qword [rcx + 0x10], 0xffffffffffffffff
jne 0x140087d1f
xor eax, eax
jmp 0x140087eb9
test r8d, r8d
je 0x140087d64
xor r14d, r14d
cmp byte [rcx + 0x30], r14b
je 0x140087dd5
mov r15, qword [rcx + 0x20]
cmp byte [r15 + 0x39], r14b
je 0x140087dd5
cmp byte [rcx + 0xb8], r14b
je 0x140087d6e
mov r8, rbp
movsxd rcx, dword [rcx + 0xbc]
add rcx, qword [rbx + 0xb0]
call fcn.140133600
add dword [rbx + 0xbc], ebp
mov eax, 0xffffffff
jmp 0x140087eb9
mov dword [rsp + 0x50], r14d
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x140087d8f
mov rax, qword [rcx]
lea r9, [rsp + 0x50]
mov r8d, ebp
call qword [rax + reloc.WS2_32.dll_htonl]
mov rsi, rax
jmp 0x140087dd1
lea rdi, [r15 + 0x320]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], WSAGetLastError
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, [rsp + 0x50]
mov edx, ebp
mov rcx, rsi
call qword [r15 + 0x2d8]
mov rsi, rax
mov qword [r15 + 0x310], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, dword [rsp + 0x50]
mov edi, ebp
mov ecx, dword [rbx + 0x23ec]
lea eax, [rcx + rbp]
cmp eax, dword [rbx + 0x23f0]
jb 0x140087e93
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x18], eax
mov ecx, dword [rbx + 0x23ec]
mov r8d, dword [rbx + 0x23f0]
sub r8d, ecx
add rcx, 0xc4
add rcx, rbx
mov rdx, rsi
call fcn.140133600
lea rdx, [rbx + 0xc4]
mov r8d, dword [rbx + 0x23f0]
mov rcx, qword [rbx + 0x10]
call fcn.1400881e0
test al, al
jne 0x140087e37
mov eax, r14d
jmp 0x140087eb0
mov edx, dword [rbx + 0x23f0]
mov edi, dword [rbx + 0x23ec]
mov ecx, edx
sub ecx, edi
add rsi, rcx
sub edi, edx
add edi, ebp
mov dword [rbx + 0x23ec], r14d
mov ecx, r14d
cmp edi, edx
jb 0x140087e93
nop dword [rax]
mov r8d, edx
mov rdx, rsi
mov rcx, qword [rbx + 0x10]
call fcn.1400881e0
test al, al
je 0x140087e32
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x18], eax
mov eax, dword [rbx + 0x23f0]
add rsi, rax
sub edi, eax
mov edx, eax
cmp edi, eax
jae 0x140087e60
mov ecx, dword [rbx + 0x23ec]
mov r8d, edi
add rcx, 0xc4
add rcx, rbx
mov rdx, rsi
call fcn.140133600
add dword [rbx + 0x23ec], edi
mov eax, ebp
cmp eax, ebp
sete r14b
mov eax, r14d
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140087ee0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov edi, r8d
mov rbp, rdx
mov rsi, rcx
cmp qword [rcx + 0x10], 0xffffffffffffffff
je 0x14008803e
test r8d, r8d
je 0x1400880aa
cmp byte [rcx + 0x30], 0
je 0x1400880b1
mov rcx, qword [rcx + 0x20]
cmp byte [rcx + 0x39], 0
je 0x1400880b1
mov r14, qword [rsi + 0x28]
test r14, r14
sete al
lea r15, [rcx + 0x10]
mov qword [rsp + 0x20], r15
mov byte [rsp + 0x28], al
mov rcx, r14
test r14, r14
jne 0x140087f57
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsi + 0x28]
mov dword [rsp + 0x60], 0
test rcx, rcx
je 0x140087f76
mov rax, qword [rcx]
lea r9, [rsp + 0x60]
mov r8d, edi
xor edx, edx
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x140087f90
mov rbx, qword [rsi + 0x20]
lea r8, [rsp + 0x60]
mov edx, edi
xor ecx, ecx
call qword [rbx + 0x2e0]
mov qword [rbx + 0x318], rax
mov rdi, rax
test rax, rax
jne 0x140087fa1
lea r8, str.VSocket::ReadExact_:_WriteExact:_DSMPlugin_RestoreBuffer_Alloc_Error_n
jmp 0x140087ffb
mov eax, dword [rsp + 0x60]
mov r12d, eax
test eax, eax
jle 0x140088057
mov rcx, qword [rsi + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x140087fe1
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdx, eax
test eax, eax
jle 0x140087fdf
add rdi, rdx
mov eax, dword [rsp + 0x60]
sub eax, edx
mov dword [rsp + 0x60], eax
jmp 0x140087fa8
je 0x140087ff4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14008800e
mov eax, dword [rsp + 0x60]
jmp 0x140087fa8
lea r8, str.VSocket::ReadExact_:_zero_bytes_read1_n
mov edx, 4
lea rcx, vtable.VNCLog.0
call fcn.140017a50
jmp 0x140088030
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
lea r8, str.VSocket::ReadExact_:_socket_error_1:__d_n
mov edx, 4
lea rcx, vtable.VNCLog.0
call fcn.140017a50
nop
test r14, r14
jne 0x14008803e
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x60], r12d
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x140088080
mov rax, qword [rcx]
lea r9, [rsp + 0x78]
mov r8d, r12d
mov rdx, rbp
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x14008809c
mov rbx, qword [rsi + 0x20]
lea r8, [rsp + 0x78]
mov edx, r12d
mov rcx, rbp
call qword [rbx + 0x2e0]
mov qword [rbx + 0x318], rax
test r14, r14
jne 0x1400880aa
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xffffffff
jmp 0x140088040
mov rcx, qword [rsi + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x1400880da
xor r9d, r9d
mov r8d, edi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1400880d8
movsxd rcx, eax
add rbp, rcx
sub edi, eax
jmp 0x1400880eb
je 0x1400880f1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14008803e
test edi, edi
je 0x1400880aa
jmp 0x1400880b1
lea r8, str.VSocket::ReadExact_:_zero_bytes_read2_n
mov edx, 4
lea rcx, vtable.VNCLog.0
call fcn.140017a50
jmp 0x14008803e