joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006f3c0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x60
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x40], rbx
mov rax, rdx
mov qword [rbp + 0x50], rsi
shl rax, 4
mov qword [rbp + 0x58], rdi
mov rdi, rcx
lea r9, [rax + 0xf]
cmp r9, rax
ja 0x18006f3f8
movabs r9, 0xffffffffffffff0
and r9, 0xfffffffffffffff0
mov rax, r9
call fcn.18008c1c0
sub rsp, r9
lea r10, [rsp + 0x40]
test r10, r10
jne 0x18006f41a
lea eax, [r10 - 0x14]
jmp 0x18006f5a3
test rdx, rdx
je 0x18006f44c
lea rcx, [r8 - 8]
mov r9, rdx
mov r8, r10
nop dword [rax]
mov rax, qword [rcx + 8]
add rcx, 0x10
add r8, 0x10
dec r9
mov qword [r8 - 0x10], rax
mov rax, qword [rcx]
mov qword [r8 - 8], rax
jne 0x18006f430
mov r8, rdx
lea rcx, [rbp]
mov rdx, r10
call sym.VBoxRT.dll_RTSgBufInit
lea r11, [rdi + 0x1000]
cmp r11, 0x2000
jb 0x18006f59c
movabs rcx, 0xffff800000000000
test rcx, rdi
jne 0x18006f59c
cmp dword [rdi], 0x19210912
jne 0x18006f59c
lea rax, [rbp + 0x1000]
cmp rax, 0x2000
jb 0x18006f595
lea rax, [rbp]
test rcx, rax
jne 0x18006f595
cmp dword [rbp + 8], 0
jbe 0x18006f595
xor eax, eax
mov r13d, 1
lock cmpxchg dword [rdi + 4], r13d
je 0x18006f4d1
lea ebx, [r13 - 0x5d]
jmp 0x18006f5a1
movzx edx, r13b
mov rcx, rdi
call fcn.18006e520
mov ebx, eax
test eax, eax
js 0x18006f5a1
mov ecx, dword [rbp + 8]
lea rdx, str.D:_tinderboxwin_4.2_srcVBoxRuntime_r3_socket.cpp
mov ebx, 0xffffffec
shl rcx, 4
call sym.VBoxRT.dll_RTMemTmpAllocZTag
xor r12d, r12d
mov rsi, rax
test rax, rax
je 0x18006f58a
mov r8d, dword [rbp + 8]
mov r9d, r12d
test r8d, r8d
je 0x18006f54a
mov edx, r12d
nop dword [rax]
mov rax, qword [rbp]
inc r9d
add rdx, 0x10
mov rcx, qword [rdx + rax - 0x10]
mov qword [rdx + rsi - 8], rcx
mov rax, qword [rbp]
mov ecx, dword [rdx + rax - 8]
mov dword [rdx + rsi - 0x10], ecx
mov r8d, dword [rbp + 8]
cmp r9d, r8d
jb 0x18006f520
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x30], r12
lea r9, [rbp + 0x48]
mov rdx, rsi
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x18006f573
mov ebx, r12d
jmp 0x18006f582
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call sym.VBoxRT.dll_RTErrConvertFromWin32
mov ebx, eax
mov rcx, rsi
call sym.VBoxRT.dll_RTMemTmpFree
mov eax, r13d
lock cmpxchg dword [rdi + 4], r12d
jmp 0x18006f5a1
mov ebx, 0xfffffffe
jmp 0x18006f5a1
mov ebx, 0xfffffffc
mov eax, ebx
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x50]
mov rdi, qword [rbp + 0x58]
lea rsp, [rbp + 0x20]
pop r13
pop r12
pop rbp
ret
Function at 0x18006f5c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
lea rax, [rcx + 0x1000]
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
cmp rax, 0x2000
jb 0x18006f606
movabs rcx, 0xffff800000000000
test rcx, rbx
jne 0x18006f606
cmp dword [rbx], 0x19210912
je 0x18006f610
mov eax, 0xfffffffc
jmp 0x18006f6bb
test r8, r8
jne 0x18006f61f
mov eax, 0xfffffffe
jmp 0x18006f6bb
lea rax, [r9 + 0x1000]
cmp rax, 0x2000
jb 0x18006f615
test rcx, r9
jne 0x18006f615
mov qword [rsp + 0x30], r12
xor eax, eax
mov r12d, 1
lock cmpxchg dword [rbx + 4], r12d
je 0x18006f64f
lea eax, [r12 - 0x5d]
jmp 0x18006f6b6
xor edx, edx
mov rcx, rbx
call fcn.18006e520
test eax, eax
js 0x18006f6b6
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, qword [rbx + 8]
mov eax, 0x3fffffff
cmp rsi, rax
mov rdx, rbp
cmovae esi, eax
xor r9d, r9d
mov r8d, esi
call qword [sym.imp.WS2_32.dll_recv]
xor esi, esi
test eax, eax
js 0x18006f692
cdqe
mov ecx, esi
mov qword [rdi], rax
jmp 0x18006f6ac
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call sym.VBoxRT.dll_RTErrConvertFromWin32
mov edx, reloc.WS2_32.dll_gethostbyname
mov ecx, eax
cmp eax, 0xffffffcc
cmove ecx, edx
mov eax, r12d
lock cmpxchg dword [rbx + 4], esi
mov eax, ecx
mov r12, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18006f6d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
lea rax, [rcx + 0x1000]
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
cmp rax, 0x2000
jb 0x18006f716
movabs rcx, 0xffff800000000000
test rcx, rbx
jne 0x18006f716
cmp dword [rbx], 0x19210912
je 0x18006f71d
mov eax, 0xfffffffc
jmp 0x18006f758
lea rax, [r9 + 0x1000]
cmp rax, 0x2000
jb 0x18006f7e2
test rcx, r9
jne 0x18006f7e2
mov qword [rsp + 0x30], r12
xor eax, eax
mov r12d, 1
lock cmpxchg dword [rbx + 4], r12d
je 0x18006f76d
lea eax, [r12 - 0x5d]
mov r12, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov rcx, rbx
call fcn.18006e520
test eax, eax
js 0x18006f753
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, qword [rbx + 8]
mov r8d, 0x3fffffff
cmp esi, r8d
mov rdx, rbp
cmovle r8d, esi
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
xor esi, esi
test eax, eax
js 0x18006f7b9
cdqe
mov ecx, esi
mov qword [rdi], rax
mov eax, r12d
lock cmpxchg dword [rbx + 4], esi
mov eax, ecx
jmp 0x18006f753
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call sym.VBoxRT.dll_RTErrConvertFromWin32
mov edx, reloc.WS2_32.dll_gethostbyname
mov ecx, eax
cmp eax, 0xffffffcc
mov eax, r12d
cmove ecx, edx
lock cmpxchg dword [rbx + 4], esi
mov eax, ecx
jmp 0x18006f753
mov eax, 0xfffffffe
jmp 0x18006f758
Function at 0x18006f7f0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rdi
push r13
sub rsp, 0x50
lea rax, [rcx + 0x1000]
mov r13, r8
mov rbx, rdx
mov rdi, rcx
cmp rax, 0x2000
jb 0x18006f828
movabs rcx, 0xffff800000000000
test rcx, rdi
jne 0x18006f828
cmp dword [rdi], 0x19210912
je 0x18006f836
mov eax, 0xfffffffc
add rsp, 0x50
pop r13
pop rdi
pop rbx
ret
lea rax, [rdx + 0x1000]
cmp rax, 0x2000
jb 0x18006f9d6
test rcx, rdx
jne 0x18006f9d6
lea rax, [r8 + 0x1000]
cmp rax, 0x2000
jb 0x18006f9d6
test rcx, r8
jne 0x18006f9d6
cmp dword [rdx + 8], 0
jbe 0x18006f9d6
mov qword [rsp + 0x40], r15
xor eax, eax
mov r15d, 1
lock cmpxchg dword [rdi + 4], r15d
je 0x18006f89f
lea eax, [r15 - 0x5d]
mov r15, qword [rsp + 0x40]
add rsp, 0x50
pop r13
pop rdi
pop rbx
ret
xor edx, edx
mov rcx, rdi
call fcn.18006e520
test eax, eax
js 0x18006f891
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0xc]
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], r12
mov esi, eax
sub esi, ecx
mov qword [rsp + 0x48], r14
mov r12d, 0xffffffec
cmp eax, ecx
jne 0x18006f8dd
inc esi
mov ecx, esi
lea rdx, str.D:_tinderboxwin_4.2_srcVBoxRuntime_r3_socket.cpp
shl rcx, 4
call sym.VBoxRT.dll_RTMemTmpAllocZTag
xor r14d, r14d
mov rbp, rax
test rax, rax
je 0x18006f9a2
mov rcx, qword [rbx + 0x10]
mov edx, r15d
mov qword [rax + 8], rcx
mov ecx, dword [rbx + 0x18]
mov dword [rax], ecx
cmp esi, edx
jbe 0x18006f950
lea r8, [rax + 0x10]
nop word [rax + rax]
mov ecx, dword [rbx + 0xc]
mov rax, qword [rbx]
add r8, 0x10
add ecx, edx
add rcx, rcx
mov rcx, qword [rax + rcx*8]
mov qword [r8 - 8], rcx
mov ecx, dword [rbx + 0xc]
mov rax, qword [rbx]
add ecx, edx
inc edx
add rcx, rcx
mov ecx, dword [rax + rcx*8 + 8]
mov dword [r8 - 0x10], ecx
cmp edx, esi
jb 0x18006f920
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x30], r14
lea r9, [rsp + 0x70]
mov r8d, esi
mov rdx, rbp
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x70], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x18006f982
mov r12d, r14d
jmp 0x18006f992
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call sym.VBoxRT.dll_RTErrConvertFromWin32
mov r12d, eax
mov ecx, dword [rsp + 0x70]
mov qword [r13], rcx
mov rcx, rbp
call sym.VBoxRT.dll_RTMemTmpFree
mov eax, r15d
lock cmpxchg dword [rdi + 4], r14d
mov r14, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov r15, qword [rsp + 0x40]
mov eax, r12d
mov r12, qword [rsp + 0x88]
add rsp, 0x50
pop r13
pop rdi
pop rbx
ret
mov eax, 0xfffffffe
add rsp, 0x50
pop r13
pop rdi
pop rbx
ret
Function at 0x18006f9f0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x60
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x50], rbx
mov rax, rdx
mov qword [rbp + 0x60], rsi
shl rax, 4
mov qword [rbp + 0x68], rdi
mov r13, r8
lea r10, [rax + 0xf]
mov rdi, rcx
cmp r10, rax
ja 0x18006fa2f
movabs r10, 0xffffffffffffff0
and r10, 0xfffffffffffffff0
mov rax, r10
call fcn.18008c1c0
sub rsp, rax
lea r10, [rsp + 0x40]
test r10, r10
jne 0x18006fa51
lea eax, [r10 - 0x14]
jmp 0x18006fc1d
test rdx, rdx
je 0x18006fa7c
lea rcx, [r9 - 8]
mov r8, r10
mov r9, rdx
mov rax, qword [rcx + 8]
add rcx, 0x10
add r8, 0x10
dec r9
mov qword [r8 - 0x10], rax
mov rax, qword [rcx]
mov qword [r8 - 8], rax
jne 0x18006fa60
mov r8, rdx
lea rcx, [rbp]
mov rdx, r10
call sym.VBoxRT.dll_RTSgBufInit
lea r11, [rdi + 0x1000]
cmp r11, 0x2000
jb 0x18006fc16
movabs rcx, 0xffff800000000000
test rcx, rdi
jne 0x18006fc16
cmp dword [rdi], 0x19210912
jne 0x18006fc16
lea rax, [rbp + 0x1000]
cmp rax, 0x2000
jb 0x18006fc0f
lea rax, [rbp]
test rcx, rax
jne 0x18006fc0f
lea rax, [r13 + 0x1000]
cmp rax, 0x2000
jb 0x18006fc0f
test rcx, r13
jne 0x18006fc0f
cmp dword [rbp + 8], 0
jbe 0x18006fc0f
xor eax, eax
mov r15d, 1
lock cmpxchg dword [rdi + 4], r15d
je 0x18006fb1d
lea ebx, [r15 - 0x5d]
jmp 0x18006fc1b
xor edx, edx
mov rcx, rdi
call fcn.18006e520
mov ebx, eax
test eax, eax
js 0x18006fc1b
mov ecx, dword [rbp + 8]
mov eax, dword [rbp + 0xc]
mov ebx, 0xffffffec
mov esi, ecx
sub esi, eax
cmp ecx, eax
jne 0x18006fb46
inc esi
mov ecx, esi
lea rdx, str.D:_tinderboxwin_4.2_srcVBoxRuntime_r3_socket.cpp
shl rcx, 4
call sym.VBoxRT.dll_RTMemTmpAllocZTag
xor r14d, r14d
mov r12, rax
test rax, rax
je 0x18006fc04
mov rcx, qword [rbp + 0x10]
mov r8d, r15d
mov qword [rax + 8], rcx
mov ecx, dword [rbp + 0x18]
mov dword [rax], ecx
cmp esi, r15d
jbe 0x18006fbb6
lea r9, [rax + 0x10]
mov ecx, dword [rbp + 0xc]
mov rax, qword [rbp]
add r9, 0x10
add ecx, r8d
add rcx, rcx
mov rcx, qword [rax + rcx*8]
mov qword [r9 - 8], rcx
mov edx, dword [rbp + 0xc]
mov rax, qword [rbp]
add edx, r8d
inc r8d
add rdx, rdx
mov ecx, dword [rax + rdx*8 + 8]
mov dword [r9 - 0x10], ecx
cmp r8d, esi
jb 0x18006fb80
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x30], r14
lea r9, [rbp + 0x58]
mov r8d, esi
mov rdx, r12
mov qword [rsp + 0x28], r14
mov dword [rbp + 0x58], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x18006fbe6
mov ebx, r14d
jmp 0x18006fbf5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call sym.VBoxRT.dll_RTErrConvertFromWin32
mov ebx, eax
mov ecx, dword [rbp + 0x58]
mov qword [r13], rcx
mov rcx, r12
call sym.VBoxRT.dll_RTMemTmpFree
mov eax, r15d
lock cmpxchg dword [rdi + 4], r14d
jmp 0x18006fc1b
mov ebx, 0xfffffffe
jmp 0x18006fc1b
mov ebx, 0xfffffffc
mov eax, ebx
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x60]
mov rdi, qword [rbp + 0x68]
lea rsp, [rbp + 0x20]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x18006fc40
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x450
lea rax, [rcx + 0x1000]
mov ebp, edx
mov rbx, rcx
cmp rax, 0x2000
jb 0x18006fc78
movabs rax, 0xffff800000000000
test rax, rcx
jne 0x18006fc78
cmp dword [rcx], 0x19210912
je 0x18006fc8e
mov eax, 0xfffffffc
mov rbx, qword [rsp + 0x478]
add rsp, 0x450
pop rbp
ret
mov qword [rsp + 0x470], rdi
call sym.VBoxRT.dll_RTMemPoolRefCount
mov ecx, dword [rbx + 4]
xor edi, edi
test ecx, ecx
mov edx, edi
setne dl
inc edx
cmp eax, edx
jae 0x18006fcb5
lea eax, [rdi - 0x5d]
jmp 0x18006fd77
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x468], rsi
movsxd rsi, dword [rbx + 8]
cmp rsi, rdx
je 0x18006fcd4
mov eax, 0xffffff1b
jmp 0x18006fd6f
mov qword [rsp + 0x38], rdx
lea rcx, [rsp + 0x240]
lea rdx, [rsp + 0x30]
mov r8d, 0x208
mov dword [rsp + 0x30], 1
call sub.MSVCR100.dll_memcpy
xor r8d, r8d
lea r9, [rsp + 0x240]
lea ecx, [rsi + 1]
cmp ebp, 0xffffffff
jne 0x18006fd13
mov qword [rsp + 0x20], rdi
jmp 0x18006fd46
mov eax, 0x10624dd3
mul ebp
lea rax, [rsp + 0x460]
shr edx, 6
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x460], edx
imul edx, edx, 0x3e8
sub ebp, edx
imul ebp, ebp, 0x3e8
mov dword [rsp + 0x464], ebp
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x18006fd6d
jne 0x18006fd5e
mov edi, 0xffffffd8
jmp 0x18006fd6d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call sym.VBoxRT.dll_RTErrConvertFromWin32
mov edi, eax
mov eax, edi
mov rsi, qword [rsp + 0x468]
mov rdi, qword [rsp + 0x470]
mov rbx, qword [rsp + 0x478]
add rsp, 0x450
pop rbp
ret
Function at 0x18006fd90
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
sub rsp, 0x660
lea rax, [rcx + 0x1000]
mov r12d, r9d
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp rax, 0x2000
jb 0x18006fdd1
movabs rcx, 0xffff800000000000
test rcx, rbx
jne 0x18006fdd1
cmp dword [rbx], 0x19210912
je 0x18006fdd8
mov eax, 0xfffffffc
jmp 0x18006fe2d
lea rax, [r8 + 0x1000]
cmp rax, 0x2000
jb 0x18006ff8e
test rcx, r8
jne 0x18006ff8e
test edx, 0xfffffff8
jne 0x18006ff8e
mov rcx, rbx
mov qword [rsp + 0x688], rsi
call sym.VBoxRT.dll_RTMemPoolRefCount
mov ecx, dword [rbx + 4]
xor esi, esi
test ecx, ecx
mov edx, esi
setne dl
inc edx
cmp eax, edx
jae 0x18006fe41
lea eax, [rsi - 0x5d]
mov rsi, qword [rsp + 0x688]
mov rbx, qword [rsp + 0x690]
add rsp, 0x660
pop r12
pop rdi
pop rbp
ret
movsxd r10, dword [rbx + 8]
cmp r10, qword [rbx + 8]
je 0x18006fe52
mov eax, 0xffffff1b
jmp 0x18006fe25
mov dword [rdi], esi
mov dword [rsp + 0x240], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x450], esi
test bpl, 1
je 0x18006fe83
mov rax, qword [rbx + 8]
mov dword [rsp + 0x240], 1
mov qword [rsp + 0x248], rax
test bpl, 2
je 0x18006fe9a
mov rax, qword [rbx + 8]
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x38], rax
test bpl, 4
je 0x18006feb7
mov rax, qword [rbx + 8]
mov dword [rsp + 0x450], 1
mov qword [rsp + 0x458], rax
lea r9, [rsp + 0x450]
lea r8, [rsp + 0x30]
lea ecx, [r10 + 1]
cmp r12d, 0xffffffff
jne 0x18006fed5
mov qword [rsp + 0x20], rsi
jmp 0x18006ff0c
mov eax, 0x10624dd3
mul r12d
lea rax, [rsp + 0x680]
shr edx, 6
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x680], edx
imul edx, edx, 0x3e8
sub r12d, edx
imul r12d, r12d, 0x3e8
mov dword [rsp + 0x684], r12d
lea rdx, [rsp + 0x240]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x18006ff6a
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x240]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18006ff36
or dword [rdi], 1
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x30]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18006ff4b
or dword [rdi], 2
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x450]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18006ff87
or dword [rdi], 4
mov eax, esi
jmp 0x18006fe25
jne 0x18006ff78
mov esi, 0xffffffd8
mov eax, esi
jmp 0x18006fe25
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call sym.VBoxRT.dll_RTErrConvertFromWin32
mov esi, eax
mov eax, esi
jmp 0x18006fe25
mov eax, 0xfffffffe
jmp 0x18006fe2d
Function at 0x180070070
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
lea rax, [rcx + 0x1000]
mov rsi, rdx
mov rbx, rcx
cmp rax, 0x2000
jb 0x1800700a6
movabs rax, 0xffff800000000000
test rax, rcx
jne 0x1800700a6
cmp dword [rcx], 0x19210912
je 0x1800700b6
mov eax, 0xfffffffc
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov qword [rsp + 0x48], rdi
call sym.VBoxRT.dll_RTMemPoolRefCount
mov ecx, dword [rbx + 4]
xor edi, edi
test ecx, ecx
mov edx, edi
setne dl
inc edx
cmp eax, edx
jae 0x1800700e5
lea eax, [rdi - 0x5d]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [rbx + 8]
xor eax, eax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x180070172
cmp dword [rsp + 0x40], 0x10
jne 0x18007015b
cmp word [rsp + 0x20], 2
jne 0x18007015b
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
movzx eax, word [rsp + 0x22]
mov dword [rsi + 0x10], 1
ror ax, 8
movzx eax, ax
mov dword [rsi + 0x14], eax
mov eax, dword [rsp + 0x24]
mov dword [rsi], eax
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov edi, 0xfffffe41
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call sym.VBoxRT.dll_RTErrConvertFromWin32
mov rbx, qword [rsp + 0x50]
mov edi, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret

Function at 0x180070560
Capabilities:
Connect socket

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rcx + 0x1000]
mov rbx, rcx
cmp rax, 0x2000
jb 0x18007058f
movabs rax, 0xffff800000000000
test rax, rcx
jne 0x18007058f
cmp dword [rcx], 0x19210912
je 0x18007059a
mov eax, 0xfffffffc
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 0x48], rsi
xor eax, eax
mov esi, 1
lock cmpxchg dword [rcx + 4], esi
je 0x1800705bb
lea eax, [rsi - 0x5d]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
xor eax, eax
mov qword [rsp + 0x40], rbp
xor ebp, ebp
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
cmp dword [rdx + 0x10], esi
jne 0x18007061f
mov rcx, qword [rcx + 8]
mov eax, 2
lea r8d, [rbp + 0x10]
mov word [rsp + 0x20], ax
movzx eax, word [rdx + 0x14]
mov edi, ebp
ror ax, 8
mov word [rsp + 0x22], ax
mov eax, dword [rdx]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x180070624
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call sym.VBoxRT.dll_RTErrConvertFromWin32
mov edi, eax
jmp 0x180070624
mov edi, 0xfffffe41
mov eax, esi
lock cmpxchg dword [rbx + 4], ebp
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
Function at 0x180070650
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rcx + 0x1000]
mov rbx, rcx
cmp rax, 0x2000
jb 0x18007067f
movabs rax, 0xffff800000000000
test rax, rcx
jne 0x18007067f
cmp dword [rcx], 0x19210912
je 0x18007068a
mov eax, 0xfffffffc
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 0x48], rsi
xor eax, eax
mov esi, 1
lock cmpxchg dword [rcx + 4], esi
je 0x1800706ab
lea eax, [rsi - 0x5d]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
mov eax, dword [rsp + 0x60]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x40], rbp
xor ebp, ebp
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x20], eax
mov edi, ebp
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1800706de
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call sym.VBoxRT.dll_RTErrConvertFromWin32
mov edi, eax
mov eax, esi
lock cmpxchg dword [rbx + 4], ebp
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret

Function at 0x1800707e0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x2c], 0
mov rbx, rcx
je 0x180070839
mov rcx, qword [rcx + 8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x180070826
mov dword [rbx + 0x2c], eax
cmp byte [rbx + 0x11], al
je 0x180070839
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov dword [rsp + 0x30], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x180070839
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call sym.VBoxRT.dll_RTErrConvertFromWin32
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180071200
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rax, [rcx + 0x1000]
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
cmp rax, 0x2000
jb 0x18007130a
movabs rax, 0xffff800000000000
test rax, rcx
jne 0x18007130a
cmp dword [rcx], 0xe44e44ee
jne 0x18007130a
mov edx, dword [rcx + 4]
test edx, edx
js 0x180071306
cmp byte [rcx + 0x12], 0
je 0x180071268
call fcn.180071170
mov r9, qword [rbx + 8]
mov rcx, rbp
test rdi, rdi
je 0x1800712b7
mov r8, rsi
mov edx, 1
call qword [sym.imp.MSVCR100.dll_fread]
mov qword [rdi], rax
cmp rax, rsi
je 0x1800712b3
mov rcx, qword [rbx + 8]
call qword [sym.imp.MSVCR100.dll_ferror]
test eax, eax
je 0x1800712b3
mov rcx, qword [rbx + 8]
call qword [sym.imp.MSVCR100.dll_feof]
test eax, eax
je 0x1800712e8
cmp qword [rdi], 0
je 0x1800712da
mov eax, WSASetLastError
jmp 0x18007130f
xor eax, eax
jmp 0x18007130f
mov r8d, 1
mov rdx, rsi
call qword [sym.imp.MSVCR100.dll_fread]
cmp rax, 1
je 0x1800712b3
mov rcx, qword [rbx + 8]
call qword [sym.imp.MSVCR100.dll_feof]
test eax, eax
je 0x1800712e8
mov edx, 0xffffff92
mov ecx, edx
mov eax, edx
xchg dword [rbx + 4], ecx
jmp 0x18007130f
mov rcx, qword [rbx + 8]
call qword [sym.imp.MSVCR100.dll_ferror]
mov ecx, 0xffffff91
mov edx, 0xffffff1f
test eax, eax
cmovne edx, ecx
mov ecx, edx
xchg dword [rbx + 4], ecx
mov eax, edx
jmp 0x18007130f
mov eax, 0xfffffffe
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180071860
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
lea rax, [rcx + 0x1000]
mov rbx, rcx
cmp rax, 0x2000
jb 0x180071904
movabs rax, 0xffff800000000000
test rax, rcx
jne 0x180071904
cmp dword [rcx], 0xe44e44ee
jne 0x180071904
mov eax, dword [rcx + 4]
test eax, eax
js 0x180071904
cmp byte [rcx + 0x12], 0
je 0x1800718a5
call fcn.180071170
mov r9, qword [rbx + 8]
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
call qword [sym.imp.MSVCR100.dll_fread]
cmp rax, 1
je 0x1800718f9
mov rcx, qword [rbx + 8]
call qword [sym.imp.MSVCR100.dll_feof]
test eax, eax
je 0x1800718d7
mov ecx, 0xffffff92
jmp 0x1800718f0
mov rcx, qword [rbx + 8]
call qword [sym.imp.MSVCR100.dll_ferror]
mov ecx, 0xffffff1f
mov edx, 0xffffff91
test eax, eax
cmovne ecx, edx
mov eax, ecx
xchg dword [rbx + 4], eax
test ecx, ecx
js 0x180071904
movzx eax, byte [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x180071d60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x180071d84
mov rcx, qword [0x1803c0c00]
call sym.VBoxRT.dll_RTTlsGet
mov qword [rbx], rax
mov rcx, qword [0x1803c0c00]
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp sym.VBoxRT.dll_RTTlsSet