joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800556b0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push rbx
push rbp
sub rsp, 0x98
mov rax, qword [0x180084080]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov ebp, edx
mov dword [rsp + 0x6c], 0
mov rbx, rcx
mov qword [rsp + 0x40], 1
xorps xmm0, xmm0
mov dword [rsp + 0x48], 1
xorps xmm1, xmm1
lea rcx, [rsp + 0x70]
mov r9d, edx
lea r8, [0x180073008]
mov edx, reloc.WS2_32.dll_recv
movdqu xmmword [rsp + 0x4c], xmm0
movdqu xmmword [rsp + 0x5c], xmm1
call fcn.180006c60
lea r9, [rsp + 0x30]
mov rcx, rbx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x18005573d
mov rax, 0xffffffffffffffff
jmp 0x180055898
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0xc0], rsi
mov rsi, qword [rsp + 0x30]
mov qword [rsp + 0x90], rdi
mov rdi, 0xffffffffffffffff
test rbx, rbx
je 0x1800557d2
cmp rdi, 0xffffffffffffffff
jne 0x180055790
cmp dword [rbx + 4], 0x17
jne 0x180055787
mov r8d, dword [rbx + 0xc]
mov ecx, reloc.WS2_32.dll_socket
mov edx, dword [rbx + 8]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
mov rsi, rbx
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180055763
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1800557d2
nop word [rax + rax]
cmp rdi, 0xffffffffffffffff
jne 0x1800557e0
cmp dword [rbx + 4], 2
jne 0x1800557c4
mov r8d, dword [rbx + 0xc]
mov ecx, 2
mov edx, dword [rbx + 8]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
mov rsi, rbx
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1800557a0
mov rbx, qword [rsp + 0x30]
cmp rdi, 0xffffffffffffffff
jne 0x1800557e0
mov rcx, rbx
jmp 0x18005587b
test ebp, ebp
je 0x18005580d
lea r9, [rsp + 0x38]
mov dword [rsp + 0x38], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x3c]
mov dword [rsp + 0x3c], 0
mov edx, 0x29
mov dword [rsp + 0x20], 4
mov r8d, 0x1b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, dword [rsi + 0x10]
mov rcx, rdi
mov rdx, qword [rsi + 0x20]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x18005586d
mov edx, 0x200
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x18005586d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, rdi
jmp 0x180055888
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, 0xffffffffffffffff
mov rsi, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180062330
add rsp, 0x98
pop rbp
pop rbx
ret
Function at 0x180055a70
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180084080]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov r14d, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
xor edx, edx
mov ecx, 4
mov ebp, r8d
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180055c2a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180055bb8
mov edi, 1
cmp dword [rsp + 0x20], 0x10
jb 0x180055b72
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180055b72
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180055b72
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180055b34
mov rcx, qword [0x1803248a0]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180055b9b
jmp 0x180055b65
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180055b65
mov rcx, qword [0x1803248a0]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180055b9b
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180055ae2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180055bb8
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x180055bb8
mov rcx, qword [0x1803248a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x180055c2a
cmp qword [rbx], r15
je 0x180055c25
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x180055c25
nop dword [rax]
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, edi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180055c1e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.1800558c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180055be0
mov eax, r15d
jmp 0x180055c2f
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180062330
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180055c50
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180084080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov r8d, 0x40
add rbx, qword [0x180324cb0]
mov rdx, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [rdx - 5]
cmove rdi, rdx
lea rsi, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180055cb9
mov eax, 0xa
jmp 0x180055d06
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180055cd5
mov rax, qword [rbx]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rbx + 0x20], 6
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180062330
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180055d30
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov edx, dword [0x180324cbc]
xor ebx, ebx
test edx, edx
je 0x180055d5f
mov rcx, qword [0x180324cb0]
add rcx, 0x20
nop dword [rax]
test byte [rcx], 2
je 0x180055d67
inc ebx
add rcx, 0x38
cmp ebx, edx
jb 0x180055d50
xor eax, eax
add rsp, 0x30
pop rbx
ret
cmp ebx, 0xffffffff
je 0x180055d5f
mov edx, 0xffffffff
mov qword [rsp + 0x50], rdi
mov r8d, 1
lea rcx, [rsp + 0x20]
call fcn.180055a70
mov edi, eax
test eax, eax
jne 0x180055e44
mov eax, dword [0x180324cbc]
cmp ebx, eax
jae 0x180055dcd
nop word [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x180324cb0]
test byte [rdx + rcx + 0x20], 2
jne 0x180055dc7
mov ecx, ebx
call fcn.180055c50
mov edi, eax
test eax, eax
jne 0x180055dcd
mov eax, dword [0x180324cbc]
inc ebx
cmp ebx, eax
jb 0x180055da0
cmp qword [rsp + 0x20], 0
je 0x180055e42
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180055e2e
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
nop
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180055e1a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180055df0
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1803248a0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
Function at 0x1800565d0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180084080]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18005661f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180324ca0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18005665d
cmp rsi, r14
jb 0x180056655
cmp rsi, r15
jae 0x180056655
cmp qword [rsi + 8], 0
jne 0x180056827
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180056640
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800566f2
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800566e9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800566e9
cmp dword [rsp + 0x40], 0x10000
je 0x18005676b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x1800566e9
sub rbx, rbp
cmp rbx, r14
jae 0x1800566b0
test rsi, rsi
jne 0x1800567d0
cmp rdi, r15
ja 0x18005680f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18005680f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18005680f
cmp dword [rsp + 0x40], 0x10000
je 0x1800567a1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180056722
jmp 0x18005680f
test rbx, rbx
je 0x1800566e9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800567d0
cmp rbx, r14
jae 0x180056690
jmp 0x1800566f2
test rdi, rdi
je 0x18005680f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800567d0
cmp rdi, r15
jbe 0x180056700
jmp 0x18005680f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800567e0
mov rax, qword [0x180324ca0]
mov qword [rsi], rax
mov qword [0x180324ca0], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180062330
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x1800590b0
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x310
mov rax, qword [0x180084080]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rdi, r8
mov dword [rsp + 0x50], 1
mov rbx, rdx
lea r8, [rsp + 0x50]
mov rbp, rcx
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x180059108
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.18005c920
jmp 0x18005932b
lea rax, [rsp + 0x58]
mov qword [rsp + 0x300], r14
xor r14d, r14d
xor r9d, r9d
mov qword [rsp + 0x40], r14
xor r8d, r8d
mov qword [rsp + 0x38], r14
mov edx, 0x48000022
mov qword [rsp + 0x30], rax
mov rcx, rdi
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAIoctl]
lea r8, [rbx + 0x20]
mov dword [rbx + 0x58], 8
lea rdx, [rbp + 0x10]
mov qword [rbx + 8], rbp
mov qword [r8], rdx
lea r9, [rsp + 0x70]
test eax, eax
mov dword [rbx + 0x10], 8
mov rax, qword [rdx + 8]
cmove rdi, qword [rsp + 0x60]
mov qword [r8 + 8], rax
mov rcx, rdi
mov qword [rax], r8
lea rax, [rsp + 0x54]
mov qword [rdx + 8], r8
mov edx, 0xffff
mov r8d, 0x2005
mov qword [rsp + 0x20], rax
mov dword [rbx + 0x30], 0xffffffff
mov qword [rbx + 0x68], rdi
mov byte [rbx + 0x19c], r14b
mov dword [rsp + 0x54], 0x274
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x1800591d4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.18005c920
jmp 0x180059323
mov r9, qword [rsp + 0x8c]
lea r11, [0x180069d80]
mov r10, qword [rsp + 0x84]
mov r8d, 0xffffffff
mov edx, r14d
nop dword [rax]
nop dword [rax + rax]
movsxd rcx, edx
mov rax, r10
shl rcx, 4
sub rax, qword [rcx + r11]
jne 0x180059218
mov rax, r9
sub rax, qword [rcx + r11 + 8]
test rax, rax
cmove r8d, edx
inc edx
cmp edx, 4
jb 0x180059200
test r8d, r8d
js 0x1800592e2
mov qword [rsp + 0x308], rsi
movsxd rax, r8d
lea rsi, [rax*8]
add rsi, rbp
mov rdi, qword [rsi + 0x90]
test rdi, rdi
jne 0x1800592ce
mov r8d, dword [rsp + 0xcc]
lea r9, [rsp + 0x70]
mov edx, dword [rsp + 0xc8]
mov ecx, dword [rsp + 0xbc]
mov rbp, qword [rbp + 0x38]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r14d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800592c0
xor r8d, r8d
mov rcx, rax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1800592b7
xor r9d, r9d
mov r8, rdi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
jne 0x1800592c7
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, 0xffffffffffffffff
mov qword [rsi + 0x90], rdi
mov rsi, qword [rsp + 0x308]
cmp rdi, 0xffffffffffffffff
je 0x1800592e2
mov qword [rbx + 0x70], rdi
jmp 0x1800592e9
or dword [rbx + 0x58], 0x1000000
mov word [rbx + 0x198], r14w
xor eax, eax
mov dword [rbx + 0xc0], reloc.WS2_32.dll_listen
mov qword [rbx + 0xf8], r14
mov qword [rbx + 0xb8], rbx
mov dword [rbx + 0x130], reloc.WS2_32.dll_listen
mov qword [rbx + 0x168], r14
mov qword [rbx + 0x128], rbx
mov r14, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.180062330
add rsp, 0x310
pop rdi
pop rbp
pop rbx
ret
Function at 0x18005ae10
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, rcx
mov rsi, r8
mov rcx, qword [r8 + 0x70]
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
jne 0x18005ae97
mov eax, dword [rdx + 0x58]
lea rdi, [rdx + 0x58]
test al, 0x40
je 0x18005af16
mov ecx, eax
and ecx, 0xffffffbf
sub dword [rdx + 0x7c], 1
mov dword [rdi], ecx
jne 0x18005ae6c
test cl, 1
jne 0x18005ae6c
test al, 4
je 0x18005ae6c
and eax, 0xffffffbb
mov dword [rdi], eax
test al, 8
je 0x18005ae6c
mov rax, qword [rdx + 8]
dec dword [rax + 8]
cmp qword [rdx + 0x100], 0
je 0x18005af16
mov ecx, dword [r8 + 0x40]
call fcn.1800611f0
mov ecx, eax
call fcn.18005c920
mov edx, eax
mov rcx, rbx
call qword [rbx + 0x100]
jmp 0x18005af16
cmp dword [r8 + 0x40], 0
jl 0x18005aef0
lea r9, [rdx + 0x110]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x18005aef0
mov rax, qword [rbx + 0x130]
mov qword [rsi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rsi
test rax, rax
je 0x18005aeea
xor edx, edx
mov rcx, rbx
call rax
lea rdi, [rbx + 0x58]
jmp 0x18005af16
mov rcx, qword [rsi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
lea rdi, [rbx + 0x58]
mov qword [rsi + 0x70], 0xffffffffffffffff
test byte [rdi], 0x40
je 0x18005af16
mov rdx, rsi
mov rcx, rbx
call fcn.18005ba00
mov ecx, dword [rbx + 0x78]
mov eax, dword [rdi]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x18005af3d
test ecx, ecx
jne 0x18005af3d
test al, 0x20
jne 0x18005af3d
or eax, 0x20
mov dword [rdi], eax
mov rax, qword [rbp + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rbp + 0x50], rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18005af60
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
sub dword [rdx + 0x7c], 1
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
jne 0x18005af9f
mov eax, dword [rdx + 0x58]
test al, 1
jne 0x18005af9f
test al, 4
je 0x18005af9f
and eax, 0xfffffffb
mov dword [rdx + 0x58], eax
test al, 8
je 0x18005af9f
mov rax, qword [rdx + 8]
dec dword [rax + 8]
dec dword [rcx + 0x20]
xor edx, edx
mov eax, dword [rbx + 0x118]
mov edi, edx
test eax, eax
je 0x18005afb8
mov dword [rbx + 0x118], edx
jmp 0x18005b006
mov ecx, dword [r8 + 0x40]
test ecx, ecx
js 0x18005b001
test byte [rbx + 0x58], 1
je 0x18005afcd
mov edi, 0x3e3
jmp 0x18005b008
mov rcx, qword [rbx + 0x110]
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov r8d, 0x7010
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x18005aff9
or dword [rbx + 0x58], 0xc080
jmp 0x18005b008
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18005b006
call fcn.1800611f0
mov edi, eax
mov ecx, edi
call fcn.18005c920
mov edx, eax
mov rcx, rbp
call qword [rbp + reloc.WS2_32.dll_WSASetLastError]
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x18005b040
test ecx, ecx
jne 0x18005b040
test al, 0x20
jne 0x18005b040
or eax, 0x20
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18005bcb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
xorps xmm0, xmm0
lea rbx, [rdx + 0x80]
movups xmmword [rbx + 0x40], xmm0
lea r14, [rbx + 0x40]
xor r15d, r15d
movups xmmword [r14 + 0x10], xmm0
or dword [rdx + 0x58], 0x40000
lea rax, [0x18009acd8]
movups xmmword [r14], xmm0
mov rbp, rdx
mov rdi, rcx
movups xmmword [r14 + 0x10], xmm0
test dword [rdx + 0x58], 0x80000
lea rsi, [rbx + 0x70]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], r15d
je 0x18005bd19
mov rax, qword [rsi]
or rax, 1
mov qword [rbx + 0x58], rax
mov rcx, qword [rbp + 0x110]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x30], r15
lea r9, [rsp + 0x90]
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x88], r15d
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ecx, dword [rbp + 0x58]
inc dword [rbp + 0x78]
bts ecx, 0x10
mov dword [rbp + 0x58], ecx
test eax, eax
jne 0x18005bda0
bt ecx, 0x11
jae 0x18005bddd
mov eax, dword [rsp + 0x90]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x68], r15
mov rax, qword [rdi + 0x48]
test rax, rax
je 0x18005be4a
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rdi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x18005be4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x18005bdd9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x18005bdc4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cdqe
mov qword [r14], rax
jmp 0x18005bd7a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [r14], rax
jmp 0x18005bd7a
lea rsi, [rbx + 0x70]
test dword [rbp + 0x58], 0x80000
je 0x18005be52
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x18005be52
mov rdx, qword [rsi]
lea r8, [0x18005ada0]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x18005be52
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x18005be32
call qword [sym.imp.KERNEL32.dll_GetLastError]
cdqe
mov qword [r14], rax
jmp 0x18005bd7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [r14], rax
jmp 0x18005bd7a
mov qword [rbx + 0x68], rbx
mov qword [rdi + 0x48], rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18005cf50
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
test r9d, r9d
mov edx, 0x40040003
mov eax, 0x400c0003
cmovne edx, eax
mov rdi, r8
xor eax, eax
mov rsi, rcx
mov rcx, qword [rbx + 0x120]
mov r9d, 0xff
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rdi + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x18005cfc5
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rdx, qword [rsi + 0x38]
xor r9d, r9d
mov r8, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x18005cffd
mov rax, qword [rdi + 0x70]
mov rsi, qword [rsp + 0x58]
mov qword [rbx + 0x118], rax
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [0x180069ee0]
call fcn.18005c860
int3
Function at 0x18005d4f0
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
test r9d, r9d
jne 0x18005d593
call fcn.18005cf50
test eax, eax
jne 0x18005d593
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x18005d52c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18005d53a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x18005d578
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xorps xmm0, xmm0
mov qword [rsp + 0x30], r14
movups xmmword [rbx + 0x40], xmm0
lea rdx, [rbx + 0x40]
movups xmmword [rbx + 0x50], xmm0
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x18005d63a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x18005d63a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x18005d5d7
xor eax, eax
jmp 0x18005d60b
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x18005d5fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18005d609
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x18005d632
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x18005d636
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
mov r14, qword [rsp + 0x30]
inc dword [rdi + 0x78]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret