joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007b6d0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14007b6dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14007b6ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14007b6d5
lea eax, [rcx + 1]
jmp 0x14007b6fb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14007b70e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14007b6f4
sub eax, 3
jb 0x14007b72e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14007b77d
sar eax, 1
movsxd rbp, eax
jb 0x14007b764
jmp 0x14007b73c
add ebx, ebx
jne 0x14007b73a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14007b764
inc ecx
add ebx, ebx
jne 0x14007b74a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14007b764
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14007b75d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14007b74c
add ecx, 2
jmp 0x14007b769
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14007b692
jmp 0x14007b6dd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2a000
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14007b7c9
cmp rsi, rcx
jae 0x14007b7d1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14007b7b0
cmp al, 0x8f
ja 0x14007b7b0
cmp byte [rsi - 2], 0xf
je 0x14007b7b6
sub al, 0xe8
cmp al, 1
ja 0x14007b79a
cmp rsi, rcx
jae 0x14007b7d1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14007b7a0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14007b7d1
lodsb al, byte [rsi]
jmp 0x14007b7b0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x79000]
mov eax, dword [rdi]
or eax, eax
je 0x14007b83a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xace84]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14007b7de
jns 0x14007b813
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14007b81d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14007b834
mov qword [rbx], rax
add rbx, 8
jmp 0x14007b7fe
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14007b874
cmp al, 0xef
ja 0x14007b866
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14007b846
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14007b855
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14007b8c8
sub rsp, 0xffffffffffffff80
jmp 0x14000cdb0
Function at 0x14002b3f8
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140021e78
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140021e78
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002b548
cmp rax, 0xffffffffffffffff
je 0x14002b548
xor edi, edi
test rbp, rbp
jle 0x14002b4f3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fc84
mov rbx, rax
test rax, rax
jne 0x14002b480
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002b4e9
mov edx, 0x8000
mov ecx, r14d
call fcn.14001ad38
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001f534
cmp eax, 0xffffffff
je 0x14002b4c9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002b490
mov edx, r15d
mov ecx, r14d
call fcn.14001ad38
jmp 0x14002b4e9
cmp byte [rsi + 0x38], dil
je 0x14002b4e0
cmp dword [rsi + 0x34], 5
jne 0x14002b4e0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x14002b4e9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001e35c
jmp 0x14002b55c
jns 0x14002b55c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140021e78
cmp rax, 0xffffffffffffffff
jne 0x14002b514
cmp byte [rsi + 0x30], dil
je 0x14002b55c
mov edi, dword [rsi + 0x2c]
jmp 0x14002b55c
mov ecx, r14d
call fcn.140025dd8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002b55c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
jmp 0x14002b55c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002b555
mov eax, dword [rsi + 0x2c]
jmp 0x14002b55a
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140021e78
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002c000
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002c028
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002c028
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1800169a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [0x18001a568], 0
jne 0x1800169cc
mov rax, qword gs:[0x60]
mov qword [0x18001a568], rax
cmp dword [rsp + 0x48], 1
jne 0x1800169f9
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x180015e40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov eax, 1
add rsp, 0x38
ret
Function at 0x180006360
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x18002f108]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, rdx
mov edi, ecx
xor edx, edx
lea rcx, [rsp + 0x2a0]
mov r8d, 0x198
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x202
lea rdx, [rsp + 0x2a0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test eax, eax
je 0x1800063de
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str.wsastartup:_failed___d__n
mov rcx, rax
call fcn.180006600
mov eax, 3
jmp 0x1800065c7
lea rcx, [rsp + 0x40]
call fcn.1800014e0
mov r8, rsi
lea rcx, [rsp + 0x40]
mov edx, edi
call fcn.180005940
mov ebx, eax
test eax, eax
je 0x18000640c
xor esi, esi
cmp eax, 0x7fffffff
cmove ebx, esi
jmp 0x1800065bb
lea rcx, [rsp + 0x40]
call fcn.180003970
test eax, eax
jns 0x180006424
mov ebx, 3
jmp 0x1800065bb
xor esi, esi
cmp qword [rsp + 0x98], rsi
jne 0x18000658e
lea rdx, [rsp + 0x40]
lea rcx, [0x180005630]
call fcn.1800175c0
lea rax, str.RECV
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov dword [rsp + 0x28], 1
lea rdx, [0x180005ca0]
lea rcx, [rsp + 0x98]
mov dword [rsp + 0x20], 0xa
call qword [sym.imp.VBoxRT.dll_RTThreadCreate]
test eax, eax
js 0x18000658e
call fcn.180021e70
mov rdi, rax
test rax, rax
jne 0x1800064c5
mov ecx, 0x1540010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x18000658e
lea r9, str.run:_getMainEventQueue____NULL_n
mov r8d, 0x154
lea edx, [rsi + 0x10]
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
jmp 0x18000658e
mov edx, 0xffffffff
mov rcx, rdi
call fcn.180021ff0
mov ebx, eax
cmp eax, 0xffffffd9
je 0x180006527
nop dword [rax]
test ebx, ebx
je 0x180006513
mov ecx, 0x1540010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x180006513
lea r9, str.run:_processEventQueue:__Rrc_n
mov dword [rsp + 0x20], ebx
mov edx, reloc.WS2_32.dll_recv
mov r8d, 0x154
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov edx, 0xffffffff
mov rcx, rdi
call fcn.180021ff0
mov ebx, eax
cmp eax, 0xffffffd9
jne 0x1800064e0
mov ecx, 0x1540010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x180006552
lea r9, str.run:_shutdown_n
mov edx, reloc.WS2_32.dll_recv
mov r8d, 0x154
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov rcx, qword [rsp + 0x90]
call fcn.180006f00
lea rdx, [rsp + 0x40]
lea rcx, [0x1800055d0]
call fcn.180017520
mov rcx, qword [rsp + 0x98]
xor r8d, r8d
mov edx, 0x1388
call qword [sym.imp.VBoxRT.dll_RTThreadWait]
mov qword [rsp + 0x98], rsi
mov ecx, 0x1540010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1800065b9
lea r9, str.Terminating_n
mov edx, reloc.WS2_32.dll_recv
mov r8d, 0x154
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ebx, esi
lea rcx, [rsp + 0x40]
call fcn.180001a60
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.18001f500
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18000e670
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov qword [rcx + 0x14], 0x80fe
mov rbx, rcx
test dl, dl
je 0x18000e6df
movzx ecx, byte [rcx + 0x75]
movzx eax, byte [rbx + 0x76]
xor ecx, 2
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x77]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0xff
call fcn.180007d90
mov dword [rbx + 0x1c], eax
movzx eax, byte [rbx + 0x79]
movzx ecx, byte [rbx + 0x78]
or ecx, 0xfffffe00
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x7a]
shl ecx, 8
or ecx, eax
call fcn.180007d90
mov dword [rbx + 0x20], eax
mov byte [rbx + 0x44], 0x30
add rsp, 0x20
pop rbx
ret
mov qword [rcx + 0x1c], rax
mov r8, rbx
movzx eax, byte [rcx + 0x74]
xor dl, dl
sub r8, rax
test al, al
je 0x18000e71e
nop dword [rax]
nop word [rax + rax]
movzx ecx, dl
inc dl
movzx eax, byte [rcx + rbx + 0x75]
mov byte [rcx + r8 + 0x24], al
cmp dl, byte [rbx + 0x74]
jb 0x18000e700
mov byte [rbx + 0x44], 0x30
add rsp, 0x20
pop rbx
ret
mov byte [rcx + 0x44], 0x30
add rsp, 0x20
pop rbx
ret

Function at 0x180017860
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
test r8b, 4
jne 0x180017895
test r8b, 3
jne 0x180017895
movsxd rax, dword [rcx + 0x10]
lea rcx, [rax + rax*2]
lea rax, [0x1806a7120]
cmp byte [rax + rcx*8 + 0x58], 0
je 0x180017895
mov byte [rax + rcx*8 + 0x58], 0
mov rax, qword [rax + rcx*8 + 0x50]
add rsp, 0x28
ret
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]

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

Disassembly:
sub rsp, 0x48
cmp ecx, 7
ja 0x180017924
cmp r8, 8
jne 0x180017924
mov rax, qword [rdx]
lea r9d, [r8 - 5]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ecx
lea rax, [0x180017810]
mov rcx, qword [0x1806a7148]
xor edx, edx
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.VBoxRT.dll_RTReqQueueCallEx]
mov rcx, qword [0x1806a7140]
lea rdx, [0x1800253a7]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
je 0x180017924
mov eax, 8
cmp rcx, 1
je 0x18001792b
mov rax, 0xffffffffffffffff
add rsp, 0x48
ret
Function at 0x180017b20
Capabilities:
Terminate process

Disassembly:
push r15
sub rsp, 0x40
mov edx, dword [0x1806a7134]
lea r9, [rsp + 0x50]
mov rcx, qword [0x1806a7120]
mov r15, 0xffffffffffffffff
mov r8d, r15d
call fcn.18001e940
test eax, eax
js 0x180017da4
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x38], rbp
xor ebp, ebp
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r14
nop word [rax + rax]
mov ecx, dword [rsp + 0x50]
test ecx, ecx
jns 0x180017b8c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x180017d8b
jmp 0x180017d69
je 0x180017d69
cmp dword [0x1806a7134], ebp
lea r14, [rsp + 0x58]
mov qword [rsp + 0x58], r15
mov edi, ebp
jbe 0x180017d69
mov rsi, rbp
mov rbx, rbp
test ecx, ecx
jle 0x180017c3f
mov rax, qword [0x1806a7120]
mov rdx, qword [rbx + rax]
movsx r8d, word [rbx + rax + 0xa]
cmp rdx, r15
jne 0x180017cbb
cmp edi, 1
jl 0x180017cbb
test r8d, r8d
je 0x180017be6
dec ecx
mov dword [rsp + 0x50], ecx
movsxd rax, edi
mov qword [r14], rax
mov r14, rax
mov rax, qword [0x1806a7120]
shl r14, 4
add r14, rax
mov qword [rbx + rax], r15
mov rax, qword [0x1806a7120]
mov word [rbx + rax + 8], r15w
mov rax, qword [0x1806a7120]
mov word [rbx + rax + 0xa], bp
mov rax, qword [0x1806a7128]
mov qword [rsi + rax], rbp
mov ecx, dword [rsp + 0x50]
inc edi
add rbx, 0x10
add rsi, 8
cmp edi, dword [0x1806a7134]
jb 0x180017bb0
mov rdx, qword [rsp + 0x58]
cmp rdx, r15
je 0x180017d69
nop dword [rax]
mov eax, dword [0x1806a7134]
mov rcx, qword [0x1806a7120]
dec eax
movsxd r9, eax
mov r8, r9
add r8, r8
cmp word [rcx + r8*8 + 8], r15w
je 0x180017d22
cmp qword [rcx + r8*8], r15
je 0x180017d22
movups xmm0, xmmword [rcx + r8*8]
mov rax, rdx
add rax, rax
mov r10, qword [rcx + rax*8]
movups xmmword [rcx + rax*8], xmm0
mov rax, qword [0x1806a7128]
mov rcx, qword [rax + r9*8]
mov qword [rax + rdx*8], rcx
mov dword [rcx + 0x10], edx
mov eax, dword [0x1806a7134]
dec eax
mov dword [0x1806a7134], eax
cmp r10d, eax
jae 0x180017d2d
mov rdx, r10
jmp 0x180017d30
test r8d, r8d
je 0x180017c29
mov rax, qword [0x1806a7128]
dec ecx
mov dword [rsp + 0x50], ecx
mov rcx, qword [rsi + rax]
test rcx, rcx
je 0x180017cfd
mov rax, qword [rcx]
test rax, rax
je 0x180017cfd
call qword [case.0x180016895.0]
test eax, eax
js 0x180017cfd
mov rcx, qword [0x1806a7120]
mov word [rbx + rcx + 8], ax
jmp 0x180017c25
cmp edi, 1
jge 0x180017be6
mov rax, qword [0x1806a7120]
mov qword [rbx + rax], r15
mov rax, qword [0x1806a7120]
mov word [rbx + rax + 8], bp
jmp 0x180017c0e
dec dword [0x1806a7134]
cmp rdx, r9
jne 0x180017d30
mov rdx, r15
mov rax, qword [0x1806a7120]
mov qword [rax + r8*8], r15
mov rax, qword [0x1806a7120]
mov word [rax + r8*8 + 8], bp
mov rax, qword [0x1806a7120]
mov word [rax + r8*8 + 0xa], bp
mov rax, qword [0x1806a7128]
mov qword [rax + r9*8], rbp
cmp rdx, r15
jne 0x180017c50
mov edx, dword [0x1806a7134]
lea r9, [rsp + 0x50]
mov rcx, qword [0x1806a7120]
mov r8d, r15d
call fcn.18001e940
test eax, eax
jns 0x180017b70
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x60]
mov r14, qword [rsp + 0x20]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x180018460
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, r8
mov ebx, edx
mov esi, ecx
call fcn.180018680
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800184ee
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 4
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov eax, reloc.WS2_32.dll_recv
mov r8d, 0x1c
cmp esi, 2
mov rdx, rbp
mov rcx, rdi
cmove r8d, eax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1800184f7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rax, 0xffffffffffffffff
jmp 0x180018510
cmp ebx, 1
jne 0x18001850d
lea edx, [rbx + 4]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1800184d5
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180018530
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x18002f108]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov esi, 0x1c
mov ebx, ecx
cmp ecx, 0x17
mov edi, edx
movzx ecx, r9w
lea r15d, [rsi - 0xc]
jne 0x18001859b
movups xmm0, xmmword [r8]
xor eax, eax
lea rbp, [rsp + 0x30]
mov dword [rsp + 0x32], eax
mov r14d, esi
mov word [rsp + 0x36], ax
mov dword [rsp + 0x48], eax
mov eax, reloc.WS2_32.dll_socket
mov word [rsp + 0x30], ax
movups xmmword [rsp + 0x38], xmm0
call fcn.180007da0
mov word [rsp + 0x32], ax
jmp 0x1800185c6
mov eax, 2
lea rbp, [rsp + 0x20]
xorps xmm0, xmm0
mov r14d, r15d
movups xmmword [rsp + 0x20], xmm0
mov word [rsp + 0x20], ax
mov eax, dword [r8]
mov dword [rsp + 0x24], eax
call fcn.180007da0
mov word [rsp + 0x22], ax
mov edx, edi
mov ecx, ebx
call fcn.180018680
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180018624
mov rax, qword [0x1806a7100]
cmp ebx, 0x17
jne 0x1800185ea
mov rdx, qword [rax + 0x40]
jmp 0x1800185ee
mov rdx, qword [rax + 0x38]
test rdx, rdx
je 0x18001862d
cmp ebx, 0x17
mov rcx, rdi
cmovne esi, r15d
mov r8d, esi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x18001862d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rax, 0xffffffffffffffff
jmp 0x180018651
mov r8d, r14d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18001864e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18001860b
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18001f500
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180018680
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor r8d, r8d
mov edi, edx
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800186c7
lea r8, [rsp + 0x48]
mov dword [rsp + 0x48], 1
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x1800186d9
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp edi, 1
jne 0x180018764
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], edi
lea edx, [rdi + 5]
mov dword [rsp + 0x20], 4
mov r8d, edi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x180018764
cmp dword [rsp + 0x48], 0x10000
jge 0x180018764
mov eax, dword [rsp + 0x50]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov dword [rsp + 0x20], eax
mov r8d, 0x1001
mov dword [rsp + 0x48], 0x10000
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180018780
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
lea rdx, [0x1800189c0]
xor r8d, r8d
lea rcx, str.sockerr
call qword [sym.imp.VBoxRT.dll_RTStrFormatTypeRegister]
mov rcx, rbx
mov qword [0x1806a7100], rdi
mov qword [0x1806a70f8], rbx
call fcn.180018100
mov rdx, qword [rdi + 0x30]
test rdx, rdx
je 0x1800187ce
mov rcx, rbx
call fcn.18001d850
call fcn.180017950
test eax, eax
js 0x18001882b
call fcn.180019270
call fcn.18001ac60
call fcn.18001ce30
mov rcx, rbx
call fcn.18001b6f0
mov r8, qword [rdi + 0x28]
mov rcx, rbx
mov rdx, qword [rdi + 0x20]
call fcn.18001e380
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rdx, [0x180017f90]
lea rcx, str.pollmgr_thread
call fcn.180017400
mov qword [0x1806a3ae8], rax
test rax, rax
jne 0x180018837
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180018860
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
mov rbx, rcx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
add rsp, 0x30
pop rbx
ret
Function at 0x1800188a0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xf0
mov rax, qword [0x18002f108]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov r14, rcx
mov r12, r9
mov rcx, rdx
mov r15, r8
mov rbx, rdx
xor edi, edi
call fcn.18000ecf0
movzx ebp, al
cmp rbp, 8
jbe 0x180018912
mov ecx, ebp
lea rdx, [0x180023c98]
shl rcx, 4
call qword [sym.imp.VBoxRT.dll_RTMemAllocTag]
mov rsi, rax
test rax, rax
jne 0x18001890d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [rax]
neg eax
jmp 0x180018995
mov rdx, rax
jmp 0x18001891e
lea rdx, [rsp + 0x60]
mov rsi, rdi
test al, al
je 0x18001894d
mov r9, rdx
mov r10, rbp
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx + 8]
mov qword [r9 + 8], rax
lea r9, [r9 + 0x10]
movzx eax, word [rbx + 0x12]
mov dword [r9 - 0x10], eax
mov rbx, qword [rbx]
sub r10, 1
jne 0x180018930
mov qword [rsp + 0x40], rdi
lea r9, [rsp + 0x50]
mov qword [rsp + 0x38], rdi
mov r8d, ebp
mov dword [rsp + 0x30], r12d
mov rcx, r14
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], edi
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x180018985
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
mov edi, eax
test rsi, rsi
je 0x180018993
mov rcx, rsi
call qword [sym.imp.VBoxRT.dll_RTMemFree]
mov eax, edi
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.18001f500
add rsp, 0xf0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18001aaf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rsi, qword [rcx + 0x60]
mov rbx, rcx
xor ecx, ecx
mov r14, rdx
mov dword [rdx], ecx
mov rdi, qword [rbx + 0x68]
mov r8, qword [rbx + 0x58]
add r8, rdi
mov qword [rsp + 0x48], r8
mov r8, qword [rbx + 0x70]
test r8, r8
jne 0x18001ab2a
lea r8, [rsi - 1]
jmp 0x18001ab3d
cmp r8, 1
jne 0x18001ab3a
test rdi, rdi
je 0x18001ab3a
mov r8, rsi
jmp 0x18001ab3d
dec r8
cmp rdi, r8
jne 0x18001ab5b
mov dword [rdx], 1
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
jae 0x18001ab6d
sub r8d, edi
mov dword [rsp + 0x40], r8d
mov r8d, 1
jmp 0x18001ab89
mov eax, esi
mov dword [rsp + 0x50], r8d
sub eax, edi
mov r8d, 2
mov dword [rsp + 0x40], eax
mov rax, qword [rbx + 0x58]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x88]
mov dword [rsp + 0x80], ecx
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx + 0x20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x18001abd0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
movsxd r8, eax
jmp 0x18001abd8
mov r8d, dword [rsp + 0x88]
test r8, r8
jle 0x18001ac06
lea rdx, [r8 + rdi]
mov rax, r8
mov rcx, rdx
sub rcx, rsi
cmp rdx, rsi
cmovb rcx, rdx
mov qword [rbx + 0x68], rcx
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
jne 0x18001ac2c
mov dword [r14], 1
mov eax, 1
mov dword [rbx + 0x48], 1
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
lea eax, [r8 + 0x2747]
cmp eax, 0x33
ja 0x18001ac4c
movabs rcx, 0x8000000100001
bt rcx, rax
jb 0x18001ab48
mov rbx, qword [rsp + 0x90]
movsxd rax, r8d
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret