joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a9f0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rdx
mov dword [rsp + 0x38], 0x3c
mov rcx, rbx
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14001aa3b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x40
pop rbx
ret
cmp dword [rsp + 0x30], 0
je 0x14001aa66
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov rcx, rbx
lea r8d, [rdx - 3]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14001aa2f
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x14001aa70
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x110], 0xffffffffffffffff
mov esi, r9d
mov rdi, r8
mov dword [rsp + 0x60], 1
mov rbx, rdx
mov rbp, rcx
je 0x14001aaac
mov eax, 0xfffff00e
jmp 0x14001abb8
lea r8, [rsp + 0x60]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x14001aacf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14001abb8
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x14001aaee
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001abb8
mov rdx, qword [rbp + 0x38]
xor r9d, r9d
mov r8, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x14001aae3
mov eax, dword [0x1400e4ce0]
cmp esi, 0x17
mov r8, qword [0x1400e4d00]
cmove eax, dword [0x1400e4cdc]
test r8, r8
je 0x14001ab4f
test dword [rbx + 0x58], 0x100000
jne 0x14001ab4f
test eax, eax
jne 0x14001ab4f
mov dl, 3
mov rcx, rdi
call r8
test eax, eax
je 0x14001ab44
or dword [rbx + 0x58], 0x40000
jmp 0x14001ab4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
jne 0x14001aae3
test dword [rbx + 0x58], 0x2000000
je 0x14001ab8e
mov edx, 6
mov dword [rsp + 0x48], 1
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov rcx, rdi
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14001ab8e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x14001abb8
test dword [rbx + 0x58], 0x4000000
je 0x14001aba3
mov rdx, rdi
call fcn.14001a9f0
test eax, eax
jne 0x14001abb8
mov qword [rbx + 0x110], rdi
cmp esi, 0x17
jne 0x14001abb6
or dword [rbx + 0x58], 0x1000000
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14001aee0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov dword [rsp + 0x20], r9d
push rsi
push rdi
push r14
sub rsp, 0x30
cmp qword [rcx + 0x110], 0xffffffffffffffff
mov r14d, r8d
mov rdi, rdx
mov rbx, rcx
jne 0x14001af54
movzx ecx, word [rdx]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001af2e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14001afb9
movzx r9d, word [rdi]
mov r8, rsi
mov rcx, qword [rbx + 8]
mov rdx, rbx
call fcn.14001aa70
mov ebp, eax
test eax, eax
je 0x14001af54
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
jmp 0x14001afb9
cmp word [rdi], 0x17
jne 0x14001af85
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x68]
mov edx, 0x29
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x110]
mov r8d, r14d
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x14001afb0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x14001afb9
mov dword [rbx + 0x118], eax
or dword [rbx + 0x58], 0x200
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14001b320
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xor eax, eax
lea rbx, [rdx + 0x80]
mov qword [rbx + 0x40], rax
lea r14, [rbx + 0x40]
mov qword [r14 + 8], rax
xor ebp, ebp
mov qword [r14 + 0x10], rax
mov rdi, rdx
mov qword [r14 + 0x18], rax
mov rsi, rcx
or dword [rdx + 0x58], 0x80000
lea rax, [0x1400e4844]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rax
test dword [rdx + 0x58], 0x100000
mov dword [rsp + 0x40], ebp
je 0x14001b394
mov rax, qword [rbx + 0x70]
or rax, 1
mov qword [rbx + 0x58], rax
mov rcx, qword [rdi + 0x110]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], ebp
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x14001b41f
mov eax, dword [rdi + 0x58]
bt eax, 0x12
jae 0x14001b487
bts eax, 0x11
mov dword [rdi + 0x58], eax
mov eax, dword [rsp + 0x78]
mov qword [rbx + 0x48], rax
inc dword [rdi + 0x78]
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14001b412
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
jmp 0x14001b4fd
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x14001b4fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14001b487
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x14001b43e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14001b44c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [r14], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14001b47a
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]
jmp 0x14001b4fd
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x14001b4fd
or dword [rdi + 0x58], 0x20000
inc dword [rdi + 0x78]
test dword [rdi + 0x58], 0x100000
je 0x14001b4fd
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x14001b4fd
mov rdx, qword [rbx + 0x70]
lea r8, [0x14001afd0]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x14001b4fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14001b4df
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001b4ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov rdx, rbx
mov rcx, rsi
mov qword [r14], rax
call fcn.14001a9c0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14001bc20
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rdi, r8
mov rcx, qword [r8 + 0x70]
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
jne 0x14001bc9f
mov eax, dword [rdx + 0x58]
bt eax, 0xb
jae 0x14001bd1a
btr eax, 0xb
sub dword [rdx + 0x7c], 1
mov dword [rdx + 0x58], eax
jne 0x14001bc75
test al, 1
jne 0x14001bc75
test al, 0x40
je 0x14001bc75
and eax, 0xffffffbf
mov dword [rdx + 0x58], eax
test al, 0x20
je 0x14001bc75
mov rax, qword [rdx + 8]
dec dword [rax + 8]
mov r9, qword [rdx + 0x100]
test r9, r9
je 0x14001bd1a
mov ecx, dword [r8 + 0x40]
call fcn.140021a50
mov ecx, eax
call fcn.14001dc20
mov edx, eax
mov rcx, rbx
call r9
jmp 0x14001bd1a
cmp dword [r8 + 0x40], 0
jl 0x14001bcf4
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 0x14001bcf4
mov rax, qword [rbx + 0x130]
mov qword [rdi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rdi
test rax, rax
je 0x14001bd1a
xor edx, edx
mov rcx, rbx
call rax
jmp 0x14001bd1a
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x70], 0xffffffffffffffff
test dword [rbx + 0x58], 0x800
je 0x14001bd1a
mov rdx, rdi
mov rcx, rbx
call fcn.14001b010
dec dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
test al, 1
je 0x14001bd40
cmp dword [rbx + 0x78], 0
jne 0x14001bd40
test al, 8
jne 0x14001bd40
or eax, 8
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 rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14001bd50
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 0x14001bd8f
mov eax, dword [rdx + 0x58]
test al, 1
jne 0x14001bd8f
test al, 0x40
je 0x14001bd8f
and eax, 0xffffffbf
mov dword [rdx + 0x58], eax
test al, 0x20
je 0x14001bd8f
mov rax, qword [rdx + 8]
dec dword [rax + 8]
mov rcx, qword [r8 + 0x18]
xor edi, edi
mov rax, qword [r8 + 0x10]
mov qword [rcx], rax
mov rcx, qword [r8 + 0x10]
mov rax, qword [r8 + 0x18]
mov qword [rcx + 8], rax
mov ecx, dword [r8 + 0x40]
test ecx, ecx
js 0x14001be1a
mov rcx, qword [rbx + 0x110]
xor r9d, r9d
mov edx, 0xffff
mov dword [rsp + 0x20], edi
mov r8d, 0x7010
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14001be12
or dword [rbx + 0x58], 0x19000
mov dword [rbx + 0x100], edi
mov dword [rbx + 0x88], shutdown
mov qword [rbx + 0xc0], rdi
mov qword [rbx + 0xf0], rdi
mov qword [rbx + 0xf8], 0xffffffffffffffff
mov qword [rbx + 0x80], rbx
inc dword [rsi + 0xa8]
jmp 0x14001be21
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14001be1f
call fcn.140021a50
mov edi, eax
mov ecx, edi
call fcn.14001dc20
mov edx, eax
mov rcx, rbp
call qword [rbp + reloc.WS2_32.dll_WSASetLastError]
dec dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
test al, 1
je 0x14001be56
cmp dword [rbx + 0x78], 0
jne 0x14001be56
test al, 8
jne 0x14001be56
or eax, 8
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 0x14001be70
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov edi, edx
mov rcx, qword [rcx + 0x110]
cmp rcx, 0xffffffffffffffff
je 0x14001bebb
mov dword [rsp + 0x40], edx
lea r9, [rsp + 0x40]
mov edx, 6
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14001bebb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x14001bedc
test edi, edi
je 0x14001bed3
or dword [rbx + 0x58], 0x2000000
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
and dword [rbx + 0x58], 0xfdffffff
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14001cae0
Capabilities:
Resolve dns

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x40]
lea r9, [rcx + 0x48]
mov r8, qword [r9]
mov rbx, rcx
mov rcx, qword [rcx + 0x38]
mov qword [r9], 0
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov ecx, eax
call fcn.14001ca60
mov dword [rbx + 0x58], eax
add rsp, 0x20
pop rbx
ret
Function at 0x14001e340
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov rax, qword [0x1400dc160]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r9d, dword [rdx + 0x58]
mov rdi, r8
btr r9d, 0x11
mov rbx, rdx
mov dword [rdx + 0x58], r9d
mov rsi, rcx
mov r10d, dword [r8 + 0x40]
test r10d, r10d
jns 0x14001e3f5
mov ecx, r10d
call fcn.140021a50
mov r11d, eax
cmp eax, 0x2738
je 0x14001e3f5
lea ecx, [rax - 0x2744]
test ecx, 0xfffffffd
je 0x14001e3ea
bt r9d, 8
jae 0x14001e53c
mov rcx, rbx
call fcn.140010d40
xor edi, edi
test dword [rbx + 0x58], 0x80000
je 0x14001e3cc
mov qword [rbp - 0x61], rdi
lea rax, [rbp - 0x69]
mov dword [rbp - 0x69], edi
jmp 0x14001e3d3
lea rax, [rbx + 0xf0]
movups xmm0, xmmword [rax]
mov ecx, r11d
movaps xmmword [rbp - 0x69], xmm0
call fcn.14001dc20
movsxd rdx, eax
jmp 0x14001e528
bt r9d, 0x13
jae 0x14001e53c
bt r9d, 0x13
jb 0x14001e420
mov rdx, qword [rdi + 0x48]
lea r9, [rbx + 0x100]
sar r10d, 0x1f
lea r8, [rbx + 0xf0]
and r10d, 2
mov dword [rsp + 0x20], r10d
jmp 0x14001e533
bt r9d, 8
jae 0x14001e53c
xor edi, edi
lea r8, [rbp - 0x69]
mov qword [rbp - 0x61], rdi
mov edx, 0x10000
mov dword [rbp - 0x69], edi
mov rcx, rbx
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x69], xmm0
call qword [rbx + 0x190]
cmp qword [rbp - 0x61], rdi
je 0x14001e521
cmp dword [rbp - 0x69], edi
je 0x14001e521
xor edx, edx
lea rcx, [rbp - 0x49]
mov r8d, 0x80
call fcn.14007bf60
mov rcx, qword [rbx + 0x70]
lea rax, [rbp - 0x55]
mov qword [rsp + 0x40], rdi
lea r9, [rbp - 0x59]
mov qword [rsp + 0x38], rdi
lea r8d, [rdi + 1]
mov qword [rsp + 0x30], rax
lea rdx, [rbp - 0x69]
lea rax, [rbp - 0x49]
mov dword [rbp - 0x55], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x51]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x51], edi
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
je 0x14001e4c6
mov edx, dword [rbp - 0x59]
lea r9, [rbp - 0x49]
jmp 0x14001e52b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
cmp eax, 0x2738
jne 0x14001e4e6
mov edx, dword [rbp - 0x59]
lea r9, [rbp - 0x49]
mov dword [rsp + 0x20], 2
jmp 0x14001e52f
cmp edx, 0x2733
jne 0x14001e4f2
xor edx, edx
jmp 0x14001e528
add eax, 0xffffd8bc
mov rcx, rbx
test eax, 0xfffffffd
je 0x14001e512
call fcn.140010d40
mov ecx, edx
call fcn.14001dc20
movsxd rdx, eax
jmp 0x14001e528
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor edx, edx
lea r8, [rbp - 0x69]
jmp 0x14001e536
mov rdx, 0xfffffffffffff024
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea r8, [rbp - 0x69]
mov rcx, rbx
call qword [rbx + 0x188]
mov eax, dword [rbx + 0x58]
and eax, 0x20100
cmp eax, 0x100
jne 0x14001e556
mov rdx, rbx
mov rcx, rsi
call fcn.14001e1f0
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x14001e57f
test ecx, ecx
jne 0x14001e57f
test al, 8
jne 0x14001e57f
or eax, 8
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14005c600
mov rbx, qword [rsp + 0x138]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001f5f0
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
xor ebp, ebp
mov qword [rax - 0x10], rbp
mov rbx, r8
mov dword [rax - 0x18], ebp
mov rdi, rcx
mov dword [rax - 0x20], 0x10000
mov r9d, 0xff
mov rcx, qword [rsi + 0x120]
xor r8d, r8d
mov edx, 0x40040003
mov dword [rax - 0x28], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x14001f6a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14001f65b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001f669
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rdi + 0x48]
test rax, rax
je 0x14001f695
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rdi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rdi + 0x48], rbx
jmp 0x14001f789
mov qword [rbx + 0x68], rbx
mov qword [rdi + 0x48], rbx
jmp 0x14001f789
mov r8, rax
mov dword [rsp + 0x20], ebp
mov rdx, rsi
mov rcx, rdi
call fcn.14001eda0
test eax, eax
je 0x14001f6dc
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 0x14001f65b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001f669
xor eax, eax
mov qword [rsp + 0x50], r14
mov qword [rbx + 0x40], rax
lea rdx, [rbx + 0x40]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x58], rax
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14001f784
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14001f784
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x14001f725
mov qword [rbx + 0x40], rbp
jmp 0x14001f75d
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 0x14001f749
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001f757
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rdi + 0x48]
test rax, rax
je 0x14001f77c
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rdi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x14001f780
mov qword [rbx + 0x68], rbx
mov qword [rdi + 0x48], rbx
mov r14, qword [rsp + 0x50]
inc dword [rsi + 0x78]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14001fa40
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, 0x30
test dword [rdx + 0x58], 0x1000000
lea rbx, [rdx + 0x80]
mov rdi, rdx
mov rbp, rcx
je 0x14001fabc
mov r8d, select
lea rcx, [0x14001f7b0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
jne 0x14001fbe9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14001faa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cdqe
mov qword [rbx + 0x40], rax
jmp 0x14001fbb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
jmp 0x14001fbb8
xor eax, eax
lea rsi, [rbx + 0x40]
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rax
test dword [rdx + 0x58], 0x100000
je 0x14001fae6
mov rax, qword [rbx + 0x70]
or rax, 1
mov qword [rbx + 0x58], rax
mov rcx, qword [rdi + 0x118]
lea rdx, [0x1400e4846]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001fb2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14001fb2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14001fba5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001fbb3
test dword [rdi + 0x58], 0x100000
je 0x14001fbe9
cmp qword [rbx + 0x70], 0
jne 0x14001fb60
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x70], rax
test rax, rax
je 0x14001fc27
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x14001fbe9
mov rdx, qword [rbx + 0x58]
lea r8, [0x14001afd0]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x14001fbe9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14001fba5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001fbb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rsi], rax
mov qword [rbx + 0x68], 0
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x14001fbdf
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rbp + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rbp + 0x48], rbx
jmp 0x14001fc08
mov qword [rbx + 0x68], rbx
mov qword [rbp + 0x48], rbx
jmp 0x14001fc08
mov rcx, qword [rdi + 0x128]
test rcx, rcx
je 0x14001fc08
xor r9d, r9d
lea rdx, [0x1400206f0]
lea r8d, [r9 + 0x32]
call fcn.14001c820
or dword [rdi + 0x58], 0x20000
inc dword [rdi + 0x78]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.14001db70
int3
Function at 0x1400217b0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x478
mov rax, qword [0x1400dc160]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ecx, 0x202
lea rdx, [rsp + 0x2c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400219ac
xor eax, eax
mov qword [rsp + 0x480], rbx
mov qword [0x1400e4cb0], rax
mov ebx, 2
xor ecx, ecx
mov word [0x1400e4cb0], bx
mov qword [0x1400e4cb8], rax
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [0x1400e4cb4]
mov word [0x1400e4cb2], ax
lea rcx, str.0.0.0.0
call fcn.14001ea00
test eax, eax
jne 0x1400219bb
call fcn.140010b80
test eax, eax
jne 0x1400219c1
mov qword [rsp + 0x470], rdi
xor r8d, r8d
mov edi, 1
mov ecx, ebx
mov edx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400218c0
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1400219c7
mov eax, dword [0x1400e4ce0]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x1400e4ce0], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x1400218e7
jmp 0x1400219dc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x140021a30
cmp eax, 0x273a
jbe 0x140021a30
cmp eax, 0x2740
jae 0x140021a30
xor r8d, r8d
mov edx, edi
lea ecx, [r8 + 0x17]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002195d
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1400219f1
mov eax, dword [0x1400e4cdc]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x1400e4cdc], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x140021984
jmp 0x140021a06
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x140021a1b
cmp eax, 0x273a
jbe 0x140021a1b
cmp eax, 0x2740
jae 0x140021a1b
mov rdi, qword [rsp + 0x470]
mov rbx, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14005c600
add rsp, 0x478
ret
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.14001db70
int3
call fcn.14008a194
int3
call fcn.14008a194
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.14001db70
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.14001db70
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.14001db70
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.14001db70
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.14001db70
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.14001db70
int3