joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800067f0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, rdx
mov r14, rcx
mov qword [rax + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov r8d, 0x7fffffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [r14 + 0x28], rax
lea rbx, [r14 + 0x30]
mov qword [rsp + 0x88], rbx
xor r15d, r15d
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov qword [rbx + 0x20], r15
lea ecx, [r15 + 0x10]
call fcn.180037f00
mov qword [rbx], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov rax, qword [rbx]
mov qword [rax], rbx
lea rbx, [r14 + 0x58]
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov eax, r15d
cmp rbx, rdi
je 0x18000689a
mov r8, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, rbx
call fcn.180007880
mov rax, qword [rbx + 8]
mov rbx, qword [rbx]
mov rsi, r15
mov rbp, rax
sub rbp, rbx
add rbp, 7
shr rbp, 3
cmp rbx, rax
cmova rbp, r15
test rbp, rbp
je 0x18000690c
nop word [rax + rax]
mov rdi, qword [rbx]
mov qword [rdi + 0x28], r14
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1800068d6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rdi + 8], 1
lea rax, [rdi + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rdi
lea r8, [0x180006720]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x10], rax
add rbx, 8
inc rsi
cmp rsi, rbp
jne 0x1800068c0
mov rax, r14
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180008ba0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x40
mov rbx, rcx
add rcx, 0x200
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rbx + 0x1f8]
test eax, eax
jne 0x180008bdc
mov rcx, qword [rbx + 0x228]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [rbx + 0x1f8]
inc eax
lea rcx, [rbx + 0x200]
mov dword [rbx + 0x1f8], eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, byte [rsp + 0x58]
lea rcx, [rbx + 0x1e8]
lea r9, [rsp + 0x58]
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x30]
call fcn.180009780
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180008c24
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbx + 0x20]
mov byte [rbx + 8], 1
mov qword [rsp + 0x28], rax
lea r8, [0x180006720]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x10], rax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x18000ad80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov ebp, r9d
mov esi, r8d
mov r14d, edx
mov rdi, rcx
test r9d, r9d
je 0x180008ed0
add rcx, 0x168
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [rdi + 0x194], 0
jne 0x180008ebe
mov byte [rdi + 0x194], 1
mov dword [rdi + 0x190], ebp
lea rcx, [rdi + 0x168]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
test esi, esi
je 0x180008ede
mov edx, esi
mov rcx, rdi
call fcn.180008730
mov r9d, ebp
mov r8d, esi
mov edx, r14d
mov rcx, rdi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp method.NS::SessionGeneric.virtual_120
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov esi, edx
add rcx, 0x168
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r8, qword [rbx + 0x1d8]
mov rdx, r8
mov rax, qword [r8 + 8]
cmp byte [rax + 0x19], 0
jne 0x18000adcc
cmp dword [rax + 0x1c], esi
jae 0x18000adc0
mov rax, qword [rax + 0x10]
jmp 0x18000adc6
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x18000adb5
cmp rdx, r8
je 0x18000add6
cmp esi, dword [rdx + 0x1c]
jae 0x18000add9
mov rdx, r8
cmp rdx, r8
je 0x18000ae35
mov rcx, qword [rdx + 0x10]
mov rax, rdx
cmp byte [rcx + 0x19], 0
je 0x18000ae0a
mov rcx, qword [rdx + 8]
cmp byte [rcx + 0x19], 0
jne 0x18000ae1c
cmp rax, qword [rcx + 0x10]
jne 0x18000ae1c
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x18000adf5
jmp 0x18000ae1c
mov rax, qword [rcx]
cmp byte [rax + 0x19], 0
jne 0x18000ae1c
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x18000ae13
lea rcx, [rbx + 0x1d8]
call fcn.180009310
mov edx, 0x20
mov rcx, rax
call fcn.180037f3c
lea rcx, [rbx + 0x168]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 0x30
call fcn.180037f00
mov rcx, qword [rbx + 8]
mov rdi, rax
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, vtable.Base::Thread.0
xor r8d, r8d
mov ebx, dword [rcx + 8]
xor ecx, ecx
lea edx, [r9 + 1]
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x18], rax
xor edx, edx
lea rcx, [rdi + 0x20]
mov r9, rdi
mov dword [rcx], edx
lea rax, vtable.NS::SessionGeneric::WireCleanupThread.0
mov qword [rsp + 0x28], rcx
lea r8, [0x180006720]
xor ecx, ecx
mov qword [rdi], rax
mov qword [rdi + 0x10], rdx
mov dword [rdi + 0x28], ebx
mov dword [rdi + 0x2c], esi
mov byte [rdi + 8], 1
mov dword [rsp + 0x20], edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov qword [rdi + 0x10], rax
add rsp, 0x30
pop rdi
ret
Function at 0x18000da50
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, rcx
lea rax, vtable.NS::TunnelIO.0
mov qword [rcx], rax
mov qword [rcx + 8], rdx
lea rbx, [rcx + 0x20]
mov qword [rsp + 0x78], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov r8d, 0x7fffffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [rbx + 0x28], rax
add rbx, 0x30
mov qword [rsp + 0x88], rbx
xor ebp, ebp
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], rbp
lea ecx, [rbp + 0x10]
call fcn.180037f00
mov qword [rbx], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov rax, qword [rbx]
mov qword [rax], rbx
mov qword [rdi + 0x78], rbp
lea ecx, [rbp + 0x30]
call fcn.180037f00
mov rbx, rax
mov qword [rsp + 0x78], rax
lea rsi, vtable.Base::Thread.0
mov qword [rax], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x18], rax
mov byte [rbx + 8], 1
mov dword [rbx + 0x20], ebp
mov qword [rbx + 0x10], rbp
lea rax, vtable.NS::TunnelIO::ReadThread.0
mov qword [rbx], rax
mov qword [rbx + 0x28], rdi
mov qword [rdi + 0x18], rbx
lea ecx, [rbp + 0x30]
call fcn.180037f00
mov rbx, rax
mov qword [rsp + 0x70], rax
mov qword [rax], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x18], rax
mov byte [rbx + 8], 1
mov dword [rbx + 0x20], ebp
mov qword [rbx + 0x10], rbp
lea rax, vtable.NS::TunnelIO::WriteThread.0
mov qword [rbx], rax
mov qword [rbx + 0x28], rdi
mov qword [rdi + 0x10], rbx
mov dword [rsp + 0x80], 1
lea r8, [rsp + 0x80]
mov edx, 0x8004667e
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x80]
lea edx, [rbp + 6]
lea r8d, [rbp + 1]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
mov rax, rdi
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x18000ddd0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x10]
mov rdi, rcx
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18000ddf0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbx + 0x20]
mov byte [rbx + 8], 1
mov qword [rsp + 0x28], rax
lea r8, [0x180006720]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x10], rax
mov rbx, qword [rdi + 0x18]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18000de30
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbx + 0x20]
mov byte [rbx + 8], 1
mov qword [rsp + 0x28], rax
lea r8, [0x180006720]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x10], rax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18000de70
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push rbp
push rdi
sub rsp, 0x268
mov rax, qword [0x180067048]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov ecx, 0x80000
call fcn.180040c80
mov rbp, rax
test rax, rax
je 0x18000df8b
mov qword [rsp + 0x288], rbx
mov bl, 1
mov qword [rsp + 0x260], r14
xor r14d, r14d
mov qword [rsp + 0x290], rsi
mov rax, qword [rdi + 0x28]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r14d
xor r9d, r9d
mov dword [rsp + 0x30], r14d
xor r8d, r8d
mov dword [rsp + 0x34], 1
mov rcx, qword [rax + 8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rcx
lea ecx, [r9 + 1]
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x18000df4f
mov rax, qword [rdi + 0x28]
xor r9d, r9d
mov r8d, 0x80000
mov rdx, rbp
mov rcx, qword [rax + 8]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jle 0x18000df46
mov rcx, qword [rdi + 0x28]
mov r8, rsi
mov rdx, rbp
mov r9, qword [rcx]
call qword [r9 + ioctlsocket]
jmp 0x18000df59
cmp eax, 0x2733
je 0x18000df59
jmp 0x18000df57
jns 0x18000df59
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor bl, bl
test bl, bl
jne 0x18000dec2
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, rbp
call fcn.180040c78
mov r14, qword [rsp + 0x260]
mov rsi, qword [rsp + 0x290]
mov rbx, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800377f0
add rsp, 0x268
pop rdi
pop rbp
ret
Function at 0x18000dfb0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x180067048]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbp, rcx
mov r14b, 1
xor r15d, r15d
nop word [rax + rax]
mov rcx, qword [rbp + 0x28]
add rcx, 0x20
call fcn.18000e160
mov rsi, rax
test rax, rax
je 0x18000e0f1
mov rbx, r15
cmp qword [rax + 8], rbx
jbe 0x18000e0cc
nop word [rax + rax]
mov rcx, qword [rbp + 0x28]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], r15d
lea r8, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rdx, qword [rcx + 8]
mov qword [rsp + 0x48], rdx
xor edx, edx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x34], 1
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x18000e0b5
mov rax, qword [rbp + 0x28]
xor r9d, r9d
mov r8d, dword [rsi + 8]
mov rdx, qword [rsi]
sub r8d, ebx
add rdx, rbx
mov rcx, qword [rax + 8]
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jle 0x18000e0ac
mov rcx, qword [rbp + 0x28]
mov r8, rdi
mov rdx, qword [rsi]
add rdx, rbx
mov r9, qword [rcx]
call qword [r9 + reloc.WS2_32.dll_recv]
add rbx, rdi
jmp 0x18000e0b7
cmp eax, 0x2733
jne 0x18000e0c9
jmp 0x18000e0b7
js 0x18000e0c3
cmp rbx, qword [rsi + 8]
jb 0x18000e020
jmp 0x18000e0cc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor r14b, r14b
mov rcx, qword [rsi]
test rcx, rcx
je 0x18000e0d9
call fcn.180040c78
mov edx, reloc.WS2_32.dll_recv
mov rcx, rsi
call fcn.180037f3c
test r14b, r14b
jne 0x18000dff0
jmp 0x18000e104
mov rcx, qword [rbp + 0x28]
mov edx, 1
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800377f0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1800131e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov ebp, r8d
mov rbx, rdx
mov rsi, rcx
lea rax, vtable.HH::ThreadPool.0
mov qword [rcx], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rbx
lea rdi, [rsi + 0x18]
mov qword [rsp + 0x78], rdi
xor r14d, r14d
mov qword [rdi], r14
mov qword [rdi + 8], r14
call fcn.180009750
mov qword [rdi], rax
lea rbx, [rdi + 0x10]
mov qword [rsp + 0x88], rbx
mov qword [rbx], r14
mov qword [rbx + 8], r14
call fcn.180009750
mov qword [rbx], rax
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov r8d, 0x7fffffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [rdi + 0x28], rax
lea rcx, [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
lea rdi, [rsi + 0x78]
mov qword [rsp + 0x78], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
lea rbx, [rdi + 0x28]
mov qword [rsp + 0x88], rbx
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov qword [rbx + 0x20], r14
lea ecx, [r14 + 0x10]
call fcn.180037f00
mov qword [rbx], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov rax, qword [rbx]
mov qword [rax], rbx
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov r8d, 0x7fffffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [rdi + 0x50], rax
mov qword [rdi + 0x58], r14
mov qword [rdi + 0x60], r14
mov qword [rdi + 0x68], r14
mov dword [rsi + 0x38], r14d
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test ebp, ebp
jle 0x180013357
mov edi, ebp
nop
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
mov r9, rsi
lea r8, [0x180013750]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsi + 0xd8]
cmp qword [rsi + 0xe0], rdx
je 0x180013340
mov qword [rdx], rax
add qword [rsi + 0xd8], 8
jmp 0x180013351
lea r8, [rsp + 0x78]
lea rcx, [rsi + 0xd0]
call fcn.1800076c0
sub rdi, 1
jne 0x180013300
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
mov r9, rsi
lea r8, [0x1800146c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0x70], rax
mov rax, rsi
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180014d00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x430
mov rax, qword [0x180067048]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov edx, 1
mov rbx, rcx
call qword [sym.imp.WS2_32.dll_shutdown]
nop dword [rax]
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov r8d, 0x400
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x180014d30
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1800377f0
add rsp, 0x430
pop rbx
ret
Function at 0x180014d70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x420
mov rax, qword [0x180067048]
xor rax, rsp
mov qword [rsp + 0x410], rax
xor r8d, r8d
lea r11, [rsp + 4]
mov r9d, r8d
mov rbx, rdx
mov rdi, rcx
mov eax, r9d
mov r10d, 8
nop dword [rax]
mov edx, eax
mov ecx, eax
shr edx, 1
mov eax, edx
xor eax, 0xedb88320
and cl, 1
cmove eax, edx
add r10d, 0xffffffff
jne 0x180014db0
mov dword [r11], eax
inc r9d
add r11, 4
cmp r9d, 0x100
jb 0x180014da0
mov dword [rsp], r8d
test rbx, rbx
je 0x180014e1d
nop word [rax + rax]
movzx edx, byte [rdi]
lea rdi, [rdi + 1]
movzx eax, byte [rsp]
mov ecx, r8d
xor rdx, rax
shr ecx, 8
mov r8d, dword [rsp + rdx*4 + 4]
xor r8d, ecx
xor r8d, 0xd202ef8d
mov dword [rsp], r8d
sub rbx, 1
jne 0x180014df0
mov eax, r8d
mov rcx, qword [rsp + 0x410]
xor rcx, rsp
call fcn.1800377f0
mov rbx, qword [rsp + 0x430]
add rsp, 0x420
pop rdi
ret
Function at 0x180015730
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x180067048]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x18006b808]
mov rbp, rcx
lea rcx, [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [rsi + 0x38]
lea rcx, [rsi + 0x10]
inc edi
mov dword [rsi + 0x38], edi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, word [rbp + 0x3c]
lea rcx, [rsp + 0x24]
mov edx, 7
mov word [rsp + 0x29], ax
mov dword [rbp + 0x38], edi
mov byte [rsp + 0x24], 1
mov dword [rsp + 0x25], edi
call fcn.180014d70
xor ebx, ebx
mov dword [rsp + 0x20], eax
mov edi, ebx
nop dword [rax]
cmp rdi, 0xb
jae 0x1800157d3
mov rcx, qword [rbp + 0x30]
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_inet_addr
add rdx, rdi
sub r8d, edi
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x18001586d
cdqe
add rdi, rax
jmp 0x1800157a0
mov eax, dword [rbp + 0x3c]
cmp eax, 1
je 0x1800158f3
cmp eax, 2
je 0x180015874
add eax, 0xfffffffd
cmp eax, 1
ja 0x18001586d
mov rdx, qword [rbp + 0x40]
lea rcx, [rsp + 0x34]
movzx eax, word [rdx + 0x18]
add rdx, 0x1c
mov word [rsp + 0x54], ax
call fcn.180014e50
lea rdx, [rbp + 0x9c]
lea rcx, [rsp + 0x44]
call fcn.180014e50
mov edx, 0x22
lea rcx, [rsp + 0x34]
call fcn.180014d70
mov dword [rsp + 0x30], eax
mov dil, 1
cmp rbx, 0x26
jae 0x180015864
mov rcx, qword [rbp + 0x30]
lea rdx, [rsp + 0x30]
mov r8d, 0x26
add rdx, rbx
sub r8d, ebx
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x180015861
cdqe
add rbx, rax
jmp 0x180015832
xor dil, dil
movzx eax, dil
jmp 0x1800159a1
xor al, al
jmp 0x1800159a1
lea rdx, [rbp + 0x88]
lea rcx, [rsp + 0x34]
call fcn.180014e50
cmp qword [0x18006b828], rbx
je 0x180015898
lea rdx, [rsp + 0x54]
call fcn.180014a00
lea r9, [rsp + 0x44]
mov rcx, rbp
lea rdx, [rsp + 0x54]
call fcn.180015040
mov edx, 0x30
lea rcx, [rsp + 0x34]
call fcn.180014d70
mov dword [rsp + 0x30], eax
mov dil, 1
cmp rbx, 0x34
jae 0x180015864
mov rcx, qword [rbp + 0x30]
lea rdx, [rsp + 0x30]
mov r8d, 0x34
add rdx, rbx
sub r8d, ebx
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x180015861
cdqe
add rbx, rax
jmp 0x1800158c0
movzx ebx, word [rbp + 0x78]
mov qword [rsp + 0xa0], r15
mov esi, ebx
lea rcx, [rbx + 0x26]
call fcn.180040c80
mov rdi, rax
test rax, rax
je 0x180015999
mov qword [rsp + 0x98], r14
lea rcx, [rax + 0x26]
mov word [rax + 4], bx
test bx, bx
je 0x180015941
lea rdx, [rbp + 0x68]
cmp qword [rdx + 0x18], 0x10
jb 0x180015939
mov rdx, qword [rdx]
mov r8, rsi
call fcn.180038e30
cmp qword [0x18006b828], 0
je 0x180015954
lea rdx, [rdi + 0x16]
call fcn.180014a00
lea r9, [rdi + 6]
mov rcx, rbp
lea rdx, [rdi + 0x16]
call fcn.180015040
mov edx, 0x22
lea rcx, [rdi + 4]
call fcn.180014d70
lea r8, [rsi + 0x26]
mov dword [rdi], eax
mov rdx, rdi
mov rcx, rbp
call fcn.180015f10
mov rcx, rdi
movzx ebx, al
call fcn.180040c78
mov r14, qword [rsp + 0x98]
movzx eax, bl
mov r15, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800377f0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x180015f10
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
xor ebx, ebx
nop
cmp rbx, rdi
jae 0x180015f5b
mov rcx, qword [rbp + 0x30]
lea rdx, [rbx + rsi]
mov r8d, edi
xor r9d, r9d
sub r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x180015f57
cdqe
add rbx, rax
jmp 0x180015f30
xor al, al
jmp 0x180015f5d
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180015f80
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov edi, r9d
mov ebx, r8d
mov rsi, rcx
call fcn.1800050c0
nop
lea rax, vtable.NS::WireGeneric.0
mov qword [rsi], rax
mov dword [rsi + 0x10], ebx
mov eax, dword [rsp + 0x88]
mov dword [rsi + 0x14], eax
mov dword [rsi + 0x1c], edi
lea rcx, [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov rdi, qword [rsp + 0x80]
mov qword [rsi + 0x60], rdi
xor ebp, ebp
mov dword [rsi + 0x70], ebp
lea rcx, [rsi + 0x78]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
mov edx, 1
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0xa0], rax
lea rbx, [rsi + 0xc0]
mov qword [rsp + 0x80], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
add rbx, 0x28
mov qword [rsp + 0x38], rbx
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], rbp
lea ecx, [rbp + 0x10]
call fcn.180037f00
mov qword [rbx], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov rax, qword [rbx]
mov qword [rax], rbx
mov word [rsi + 0x6c], bp
mov dword [rsi + 0x68], ebp
mov dword [rsi + 0x18], 3
mov dword [rsi + 0x48], ebp
mov byte [rsi + 0x6e], bpl
mov qword [rsi + 0xa8], rbp
mov byte [rsi + 0xbe], 1
mov byte [rsi + 0x110], bpl
mov ecx, 0x100
call fcn.180037f00
mov rbx, rax
xor edx, edx
mov r8d, 0x100
mov rcx, rax
call fcn.180038c70
mov qword [rsi + 0x50], rbx
mov ecx, 0x100
call fcn.180037f00
mov rbx, rax
xor edx, edx
mov r8d, 0x100
mov rcx, rax
call fcn.180038c70
mov qword [rsi + 0x58], rbx
mov dword [rsp + 0x70], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x70]
lea edx, [rbp + 6]
lea r8d, [rbp + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
mov rax, rsi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180016230
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x50], 1
mov rcx, qword [rcx + 0x60]
lea r8, [rsp + 0x50]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rcx, [rbx + 0x78]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rbx + 0x70]
test eax, eax
jne 0x18001627c
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [rbx + 0x70]
inc eax
lea rcx, [rbx + 0x78]
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x48]
mov rcx, qword [0x18006b810]
lea r8, [rsp + 0x58]
movsxd rbp, eax
xor edi, edi
mov rax, qword [rbx + 8]
mov esi, edi
mov edx, dword [rax + 8]
call fcn.180005880
test al, al
je 0x1800162e1
mov rdx, qword [rsp + 0x58]
mov r9, rbp
mov qword [rsp + 0x28], rdi
mov r8d, 0xca
mov byte [rsp + 0x20], sil
mov rax, qword [rdx + 8]
mov rcx, qword [rax + 0x88]
call fcn.180013aa0
mov esi, eax
mov rax, qword [rbx]
mov rcx, rbx
mov dword [rbx + 0xa8], esi
call qword [rax + 0x40]
mov rcx, qword [0x18006b810]
lea r8, [rsp + 0x58]
movsxd rsi, eax
mov rax, qword [rbx + 8]
mov edx, dword [rax + 8]
call fcn.180005880
test al, al
je 0x180016339
mov rdx, qword [rsp + 0x58]
mov r9, rsi
mov qword [rsp + 0x28], rdi
mov r8d, 0xcb
mov byte [rsp + 0x20], 1
mov rax, qword [rdx + 8]
mov rcx, qword [rax + 0x88]
call fcn.180013aa0
mov edi, eax
mov edx, recv
mov dword [rbx + 0xac], edi
mov rcx, rbx
call fcn.180016f30
mov rcx, rbx
call fcn.180017160
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret