joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140085430
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 0x140085613
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
test rax, rax
jne 0x1400854d8
lea r8, str.vncServer::GetScreenInfo_:_Failed_rootdc__n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
xor ebx, ebx
movzx edi, bx
mov dword [rsp + 0x40], ebx
mov byte [rsp + 0x44], bl
jmp 0x140085624
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 0x140085535
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 0x140085624
xor edx, edx
mov r8d, 0x430
lea rcx, [rsp + 0x70]
call fcn.140135010
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 0x140085576
movzx edi, bx
mov dword [rsp + 0x40], ebx
mov byte [rsp + 0x44], bl
jmp 0x1400855f8
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 0x1400855e4
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 0x1400855e4
movzx eax, byte [rbp - 0x7e]
mov ecx, eax
mov edx, 0x20
cmp al, 0x18
cmove ecx, edx
mov byte [rsp + 0x44], cl
jmp 0x1400855ef
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 0x140085624
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.140132620
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 0x1400865d0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x594], 0
mov rbx, rcx
je 0x140086659
cmp byte [0x1401f32e3], 0
jne 0x140086659
lea r8, str.vncServer::AutoConnectRetry_:_AutoConnectRetry__:_started_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov rcx, qword [rbx + 0xb0]
test rcx, rcx
je 0x140086628
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140086659
mov rcx, qword [rbx + 0xb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9, qword [0x1401fb650]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x1400865b0]
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 0x140086660
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 0x1400868c2
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 0x1400866a3
test rax, rax
je 0x1400868b0
cmp byte [0x1401f32e3], r14b
jne 0x1400868b0
lea r8, str.vncServer::actualRetryThread_:_Attempting_AutoReconnect...._n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov ecx, 0x23f8
call fcn.140132648
mov rcx, rax
mov qword [rsp + 0x70], rax
call fcn.140087c00
mov qword [rbx + 0xc8], rax
test rax, rax
je 0x140086788
mov rcx, rax
call fcn.140087da0
mov r8d, dword [rbx + 0x59c]
mov rdx, rdi
mov rcx, qword [rbx + 0xc8]
call fcn.140087f00
test eax, eax
jne 0x14008679a
lea r8, str.vncServer::actualRetryThread_:_connect_failed__waitin_5_sec_to_retry...._n
lea edx, [rax + 9]
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov rcx, qword [rbx + 0xc8]
test rcx, rcx
je 0x14008674f
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0xc8], r14
cmp dword [rbx + 0x594], r14d
je 0x1400868b0
mov rax, rsi
inc rax
cmp byte [rdi + rax], r14b
jne 0x140086766
test rax, rax
je 0x140086788
cmp byte [0x1401f32e3], r14b
jne 0x140086788
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x594], r14d
jne 0x1400866a0
jmp 0x1400868b0
mov qword [rsp + 0x78], rbp
lea rbp, [rbx + 0x69f]
inc rsi
cmp byte [rsi + rbp], r14b
jne 0x1400867a6
test rsi, rsi
je 0x14008685a
mov rcx, qword [rbx + 0xc8]
mov r8d, 0xfa
mov rdx, rbp
call fcn.140088340
cmp byte [0x14023e518], 2
mov rsi, qword [rbx + 0xc8]
jb 0x14008682b
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 0x14008682b
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 [0x1401fdf80]
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 0x140086887
mov rax, qword [0x1401fdf80]
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.140018c00
Function at 0x140087da0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov rbx, rcx
mov dword [rsp + 0x40], 1
je 0x140087e0e
lea r8, str.VSocket::Close_:_closing_socket_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140018c00
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 0x140087e0e
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 0x140087e60
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 0x140087e60
mov rcx, rbx
call fcn.1400880b0
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140087f00
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 0x140087fa1
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 0x140087f6b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x140087fa1
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
test rcx, rcx
je 0x140087fa1
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 0x140087fa1
mov rcx, rbx
call fcn.1400880b0
mov eax, 0xffffffff
jmp 0x140087fa3
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140132620
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140087fc0
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 0x140088095
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 0x140088095
mov ecx, 0x23f8
call fcn.140132648
mov rcx, rax
mov qword [rsp + 0x50], rax
call fcn.140087c00
mov rbx, rax
test rax, rax
je 0x14008807e
mov rcx, rax
mov qword [rax + 0x10], rdi
call fcn.1400880b0
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 0x1400880b0
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 0x14008812e
mov eax, esi
jmp 0x14008819c
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.140132620
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400881c0
Capabilities:
Set socket configuration

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

Function at 0x140088240
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x14023e518], 2
mov rbx, rcx
jae 0x14008825a
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 0x140088252
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 0x1400882c0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x14023e518], 2
mov rbx, rcx
jae 0x1400882da
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 0x1400882d2
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 0x140088740
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 0x14008876f
xor eax, eax
jmp 0x140088909
test r8d, r8d
je 0x1400887b4
xor r14d, r14d
cmp byte [rcx + 0x30], r14b
je 0x140088825
mov r15, qword [rcx + 0x20]
cmp byte [r15 + 0x39], r14b
je 0x140088825
cmp byte [rcx + 0xb8], r14b
je 0x1400887be
mov r8, rbp
movsxd rcx, dword [rcx + 0xbc]
add rcx, qword [rbx + 0xb0]
call fcn.140134960
add dword [rbx + 0xbc], ebp
mov eax, 0xffffffff
jmp 0x140088909
mov dword [rsp + 0x50], r14d
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x1400887df
mov rax, qword [rcx]
lea r9, [rsp + 0x50]
mov r8d, ebp
call qword [rax + reloc.WS2_32.dll_htonl]
mov rsi, rax
jmp 0x140088821
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 0x1400888e3
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.140134960
lea rdx, [rbx + 0xc4]
mov r8d, dword [rbx + 0x23f0]
mov rcx, qword [rbx + 0x10]
call fcn.140088c30
test al, al
jne 0x140088887
mov eax, r14d
jmp 0x140088900
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 0x1400888e3
nop dword [rax]
mov r8d, edx
mov rdx, rsi
mov rcx, qword [rbx + 0x10]
call fcn.140088c30
test al, al
je 0x140088882
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 0x1400888b0
mov ecx, dword [rbx + 0x23ec]
mov r8d, edi
add rcx, 0xc4
add rcx, rbx
mov rdx, rsi
call fcn.140134960
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 0x140088930
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 0x140088a8e
test r8d, r8d
je 0x140088afa
cmp byte [rcx + 0x30], 0
je 0x140088b01
mov rcx, qword [rcx + 0x20]
cmp byte [rcx + 0x39], 0
je 0x140088b01
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 0x1400889a7
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsi + 0x28]
mov dword [rsp + 0x60], 0
test rcx, rcx
je 0x1400889c6
mov rax, qword [rcx]
lea r9, [rsp + 0x60]
mov r8d, edi
xor edx, edx
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x1400889e0
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 0x1400889f1
lea r8, str.VSocket::ReadExact_:_WriteExact:_DSMPlugin_RestoreBuffer_Alloc_Error_n
jmp 0x140088a4b
mov eax, dword [rsp + 0x60]
mov r12d, eax
test eax, eax
jle 0x140088aa7
mov rcx, qword [rsi + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x140088a31
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdx, eax
test eax, eax
jle 0x140088a2f
add rdi, rdx
mov eax, dword [rsp + 0x60]
sub eax, edx
mov dword [rsp + 0x60], eax
jmp 0x1400889f8
je 0x140088a44
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140088a5e
mov eax, dword [rsp + 0x60]
jmp 0x1400889f8
lea r8, str.VSocket::ReadExact_:_zero_bytes_read1_n
mov edx, 4
lea rcx, vtable.VNCLog.0
call fcn.140018c00
jmp 0x140088a80
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.140018c00
nop
test r14, r14
jne 0x140088a8e
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 0x140088ad0
mov rax, qword [rcx]
lea r9, [rsp + 0x78]
mov r8d, r12d
mov rdx, rbp
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x140088aec
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 0x140088afa
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xffffffff
jmp 0x140088a90
mov rcx, qword [rsi + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x140088b2a
xor r9d, r9d
mov r8d, edi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140088b28
movsxd rcx, eax
add rbp, rcx
sub edi, eax
jmp 0x140088b3b
je 0x140088b41
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140088a8e
test edi, edi
je 0x140088afa
jmp 0x140088b01
lea r8, str.VSocket::ReadExact_:_zero_bytes_read2_n
mov edx, 4
lea rcx, vtable.VNCLog.0
call fcn.140018c00
jmp 0x140088a8e
Function at 0x140088b60
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ebx, 1
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x140088ba9
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140088ba7
movsxd rcx, eax
add rdi, rcx
sub ebx, eax
jmp 0x140088bb6
je 0x140088bcd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140088bf7
test ebx, ebx
jne 0x140088b80
lea eax, [rbx - 1]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r8, str.VSocket::ReadExactHTTP_:_zero_bytes_read3_n
mov edx, 4
lea rcx, vtable.VNCLog.0
call fcn.140018c00
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.VSocket::ReadExactHTTP_:_HTTP_socket_error:__d_n
mov edx, 4
mov r9d, eax
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140088c30
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor r13d, r13d
mov r15d, r8d
mov r12, rdx
mov rsi, rcx
mov ebp, r13d
mov edi, r13d
test r8d, r8d
je 0x140088d18
mov qword [rsp + 0x30], 1
mov ebx, r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rsi
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 1
xor edx, edx
lea ecx, [rsi + 1]
call qword [sym.imp.WS2_32.dll_select]
mov ecx, eax
inc ebx
movzx eax, byte [0x1401f32e3]
test ecx, ecx
jne 0x140088cc9
test al, al
jne 0x140088cc9
cmp ebx, 0x258
jl 0x140088c80
xor al, al
jmp 0x140088d1a
cmp ebx, 0x258
jge 0x140088cc5
test al, al
jne 0x140088cc5
cmp ecx, 1
ja 0x140088cc5
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140088d05
mov r8d, r15d
mov edx, edi
sub r8d, edi
add rdx, r12
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov ebp, eax
lea ecx, [rbp + 1]
cmp ecx, 1
jbe 0x140088cc5
add edi, ebp
cmp edi, r15d
jb 0x140088c74
mov al, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140132620
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400ae6c0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r15
sub rsp, 0x20
xor ebp, ebp
mov r15, r9
mov esi, r8d
mov rdi, rdx
cmp dword [rcx + 0x68], ebp
jne 0x1400ae6ed
xor eax, eax
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
cmp r8d, 4
jb 0x1400ae7b8
mov r8d, dword [0x1401efef8]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r12
mov r12d, 0x4453
mov qword [rsp + 0x50], r14
mov r14, qword [rsp + 0x60]
nop dword [rax + rax]
movzx eax, byte [rdi + 2]
movzx ebx, byte [rdi + 3]
shl ebx, 8
or ebx, eax
lea eax, [rsi - 4]
cmp ebx, eax
ja 0x1400ae7a9
movzx ecx, byte [rdi + 1]
movzx eax, byte [rdi]
shl cx, 8
or cx, ax
cmp cx, r12w
jne 0x1400ae791
cmp r8d, 0xffffffff
jne 0x1400ae776
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1400ae76a
mov r8d, 1
mov dword [0x1401efef8], r8d
jmp 0x1400ae77b
xor r8d, r8d
mov dword [0x1401efef8], r8d
jmp 0x1400ae791
test r8d, r8d
je 0x1400ae791
cmp ebx, 5
jb 0x1400ae791
cmp byte [rdi + 8], 0
ja 0x1400ae791
mov qword [r15], rdi
mov ebp, 1
mov dword [r14], ebx
mov ecx, 0xfffffffc
lea edx, [rbx + 4]
sub ecx, ebx
add rdi, rdx
add esi, ecx
cmp esi, 4
jae 0x1400ae720
mov r12, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov eax, ebp
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret