joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6dbc30
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov eax, dword [rdx + 0x58]
mov rsi, rcx
mov rbx, rdx
test ah, 0x10
je 0x6dbe08
test eax, 0x10000
jne 0x6dbe30
cmp qword [rbx + 0x118], 0xffffffffffffffff
je 0x6dbe58
mov eax, dword [rbx + 0x58]
lea rdi, [rbx + 0x80]
test eax, 0x1000000
je 0x6dbce0
mov r8d, 0x10
mov rdx, rdi
mov qword [rbx + 0x238], 0
lea rcx, [0x006dae40]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x6dbdb0
mov eax, dword [rbx + 0x58]
test al, 0x80
je 0x6dbe80
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x6dbcc9
xor r9d, r9d
mov r8d, 0x32
lea rdx, [0x006dbf10]
call fcn.006cabe0
or dword [rbx + 0x58], 0x10000
add dword [rbx + 0x78], 1
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rbp, [rbx + 0xc0]
mov qword [rbx + 0xc0], 0
mov qword [rbx + 0xc8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
test eax, 0x80000
je 0x6dbd2f
mov rax, qword [rbx + 0xf0]
test rax, rax
je 0x6dbee0
or rax, 1
mov qword [rbx + 0xd8], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbp
mov rcx, qword [rbx + 0x118]
lea rdx, [0x00c807e0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6dbea0
mov eax, dword [rbx + 0x58]
test eax, 0x80000
je 0x6dbca0
cmp qword [rbx + 0xf8], 0xffffffffffffffff
jne 0x6dbca0
mov dword [rsp + 0x28], 4
mov rdx, qword [rbx + 0xf0]
lea rcx, [rbx + 0xf8]
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
lea r8, [0x006da830]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x6dbc9d
nop dword [rax + rax]
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
test eax, eax
jle 0x6dbec0
call rbp
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0xc0], rax
mov rax, qword [rsi + 0x48]
mov qword [rbx + 0xe8], 0
test rax, rax
je 0x6dbed0
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0xe8], rdx
mov qword [rax + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x6dbcc9
mov r8d, 0x45e
lea rdx, str.src_win_pipe.c
lea rcx, [0x00958c48]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x58]
test eax, 0x10000
je 0x6dbc55
mov r8d, 0x45f
lea rdx, str.src_win_pipe.c
lea rcx, [0x00958c70]
call qword [sym.imp.msvcrt.dll__assert]
cmp qword [rbx + 0x118], 0xffffffffffffffff
jne 0x6dbc63
mov r8d, 0x461
lea rdx, str.src_win_pipe.c
lea rcx, str.handle__handle___INVALID_HANDLE_VALUE
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x6dbc63
mov r8d, 0x7e0
lea rdx, str.src_win_pipe.c
lea rcx, str.pipe__flags__UV_HANDLE_CONNECTION
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x6dbca8
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
cmp eax, 0x3e5
je 0x6dbd56
jmp 0x6dbdb7
call rbp
cdqe
jmp 0x6dbdcd
mov qword [rbx + 0xe8], rdi
mov qword [rsi + 0x48], rdi
jmp 0x6dbcc9
mov r8d, 0x471
lea rdx, str.src_win_pipe.c
lea rcx, [0x00958c9a]
call qword [sym.imp.msvcrt.dll__assert]
mov rax, qword [rbx + 0xf0]
jmp 0x6dbd24
Function at 0x6dc150
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x30]
mov r12, rcx
mov ebx, edx
mov edi, r8d
xor edx, edx
xor r8d, r8d
lea rsi, [rsp + 0x50]
mov rcx, rbp
call fcn.006cb4c0
movdqu xmm0, xmmword [rsp + 0x30]
mov edx, ebx
mov r8, rsi
mov rcx, r12
movaps xmmword [rsp + 0x50], xmm0
call qword [r12 + 0x68]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x6dc1a5
mov r8d, dword [rsp + 0x50]
test r8d, r8d
jne 0x6dc1c8
mov r8, rsi
mov rdx, 0xfffffffffffff024
mov rcx, r12
call qword [r12 + 0x70]
xor eax, eax
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp r8d, edi
mov rcx, qword [r12 + 0x118]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x20], 0
cmova r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6dc210
mov edx, dword [rsp + 0x4c]
mov r8, rsi
mov rcx, r12
call qword [r12 + 0x70]
mov eax, dword [rsp + 0x4c]
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm1, xmmword [rsp + 0x50]
mov r8, rbp
mov rcx, r12
mov edx, eax
movaps xmmword [rsp + 0x30], xmm1
call fcn.006dc010
xor eax, eax
jmp 0x6dc1b9
Function at 0x6dc4f0
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r13, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r12, qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea rbp, str._pipeuv_p__lu
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [rsp + 0xc0]
mov edi, r8d
mov qword [rsp + 0xa0], rcx
mov rsi, r9
mov rbx, rdx
mov qword [rsp + 0xa8], rdx
or edi, 0x400c0000
jmp 0x6dc562
call r15
mov r8d, eax
cmp eax, 0xe7
je 0x6dc55e
cmp eax, 5
jne 0x6dc635
add rbx, 1
call r13
mov r9, rbx
mov r8, rbp
mov rdx, r14
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.006dbc00
mov r9d, 1
xor r8d, r8d
mov edx, edi
mov qword [rsp + 0x38], 0
mov rcx, rsi
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call r12
mov r10, rax
cmp rax, 0xffffffffffffffff
je 0x6dc548
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x40], r10
xor r9d, r9d
mov rcx, r10
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov r10, qword [rsp + 0x40]
test rax, rax
je 0x6dc649
mov rax, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xa8]
mov edx, dword [rax + 0x58]
mov qword [rdi + 0x80], rdi
mov qword [rdi + 0x128], 0
mov eax, edx
or al, 0x80
and edx, 0x2000000
mov dword [rdi + 0x58], eax
jne 0x6dc670
test eax, 0x1000000
jne 0x6dc6aa
mov rax, qword [rsp + 0xa8]
xor r8d, r8d
mov qword [rax + 0x118], r10
mov eax, r8d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x48], r10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10, qword [rsp + 0x48]
mov dword [rsp + 0x40], eax
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x40]
jmp 0x6dc635
mov qword [rsp + 0x40], r10
mov r8d, 0x7f
lea rdx, str.src_win_pipe.c
lea rcx, str.__handle__flags__UV_HANDLE_PIPESERVER_
call qword [sym.imp.msvcrt.dll__assert]
mov rax, qword [rsp + 0xa8]
mov r10, qword [rsp + 0x40]
mov eax, dword [rax + 0x58]
test eax, 0x1000000
je 0x6dc623
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x40], r10
mov qword [rax + 0x238], 0
lea rcx, [rax + 0x210]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov r10, qword [rsp + 0x40]
jmp 0x6dc623

Function at 0x6de0e0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rsi, qword [rsp + 0x80]
mov rax, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov r13, rdx
mov edx, dword [r8 + 0x110]
mov r12, rcx
mov rbx, r8
test edx, edx
jne 0x6de178
test rax, rax
je 0x6de140
mov qword [rsp + 0x28], r9
mov r8d, 0x638
lea rdx, str.src_win_pipe.c
lea rcx, str.send_handle__NULL
call qword [sym.imp.msvcrt.dll__assert]
mov r9, qword [rsp + 0x28]
mov r8, rbx
mov rdx, r13
mov rcx, r12
mov dword [rsp + 0x90], 0
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x80], rsi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.006db550
mov rdx, r13
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp 0x6ddca0
Function at 0x6de190
Capabilities:
Read file on windows
Read pipe

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x50
cmp dword [rdx + 0x10], 7
mov r13, rcx
mov r12, rdx
mov rbx, r8
je 0x6de1c2
mov r8d, 0x702
lea rdx, str.src_win_pipe.c
lea rcx, str.handle__type__UV_NAMED_PIPE
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [r12 + 0x58]
mov edx, dword [r12 + 0x78]
and eax, 0xffdeffff
mov dword [r12 + 0x58], eax
test edx, edx
je 0x6de340
sub edx, 1
mov dword [r12 + 0x78], edx
jne 0x6de1f0
test al, 1
jne 0x6de2f0
test al, 0x80
je 0x6de318
mov rcx, qword [r12 + 0x128]
test rcx, rcx
je 0x6de20a
call fcn.006cab80
test byte [r12 + 0x59], 0x10
je 0x6de245
mov rcx, qword [rbx + 0x40]
test ecx, ecx
jns 0x6de250
mov rax, qword [0x0096a200]
call qword [rax]
mov edx, eax
cmp eax, 0x3e3
jne 0x6de370
mov eax, dword [r12 + 0x58]
and eax, 0x11000
cmp eax, 0x1000
je 0x6de390
add rsp, 0x50
pop rbx
pop r12
pop r13
ret
lea rax, [rsp + 0x4c]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x4c], 0
mov rcx, qword [r12 + 0x118]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x6de3a8
mov edx, dword [rsp + 0x4c]
mov eax, dword [r12 + 0x58]
test edx, edx
jne 0x6de2c9
jmp 0x6de235
mov rcx, r12
call fcn.006dc240
test eax, eax
je 0x6de230
mov edx, dword [rsp + 0x4c]
cmp edx, eax
jb 0x6de230
sub edx, eax
mov eax, dword [r12 + 0x58]
mov dword [rsp + 0x4c], edx
je 0x6de235
test ah, 0x10
je 0x6de235
mov eax, dword [r12 + 0x110]
test eax, eax
jne 0x6de2a0
mov r8d, 0xffffffff
mov rcx, r12
call fcn.006dc150
jmp 0x6de2a8
test al, 0x20
jne 0x6de1f0
mov rdx, qword [r13 + 0x50]
or eax, 0x20
mov dword [r12 + 0x58], eax
mov qword [r12 + 0x50], rdx
mov qword [r13 + 0x50], r12
test al, 0x80
jne 0x6de1f8
nop dword [rax]
mov r8d, 0x7e9
lea rdx, str.src_win_pipe.c
lea rcx, str.pipe__flags__UV_HANDLE_CONNECTION
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x6de1f8
lea rdx, str.src_win_pipe.c
mov r8d, 0x705
lea rcx, [0x00958d87]
call qword [sym.imp.msvcrt.dll__assert]
mov edx, dword [r12 + 0x78]
mov eax, dword [r12 + 0x58]
jmp 0x6de1de
movdqa xmm0, xmmword [0x00958fc0]
lea r8, [rsp + 0x30]
mov rcx, r12
movaps xmmword [rsp + 0x30], xmm0
call fcn.006dc010
jmp 0x6de230
mov rdx, r12
mov rcx, r13
add rsp, 0x50
pop rbx
pop r12
pop r13
jmp fcn.006dbc30
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm1, xmmword [0x00958fc0]
lea r8, [rsp + 0x30]
mov rcx, r12
mov edx, eax
movaps xmmword [rsp + 0x30], xmm1
call fcn.006dc010
jmp 0x6de289
Function at 0x6e0490
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [rsp + 0x98]
mov r14, qword [rsp + 0xa8]
mov r15, rcx
mov rbx, rdx
mov r13, r8
mov rsi, r9
cmp rdx, 2
jbe 0x6e05b0
movzx eax, word [rcx]
cmp ax, 0x5c
je 0x6e06e0
cmp ax, 0x2f
je 0x6e0638
cmp word [rcx + 2], 0x3a
je 0x6e0720
nop dword [rax + rax]
lea rcx, [rsi + rbp + 4]
add rcx, r14
add rcx, rbx
add rcx, rcx
call fcn.006cb300
mov rdx, qword [rsp + 0xa0]
mov r8, r14
mov r12, rax
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
lea rdi, [r12 + r14*2]
test r14, r14
jne 0x6e066f
mov rcx, rdi
mov r8, rbx
lea rdi, [rdi + rbx*2]
mov rdx, r15
call sub.msvcrt.dll_wcsncpy
test rbx, rbx
jne 0x6e06b0
mov r8, rsi
mov rdx, r13
lea rbx, [rdi + rsi*2]
mov rcx, rdi
call sub.msvcrt.dll_wcsncpy
test rbp, rbp
je 0x6e0578
test rsi, rsi
jne 0x6e0618
mov rdx, qword [rsp + 0x90]
mov rcx, rbx
mov r8, rbp
lea rbx, [rbx + rbp*2]
call sub.msvcrt.dll_wcsncpy
xor eax, eax
mov rcx, r12
mov word [rbx], ax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6e06a0
test al, 0x10
jne 0x6e06a0
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test rdx, rdx
je 0x6e04f0
movzx eax, word [rcx]
cmp ax, 0x2f
je 0x6e0638
cmp ax, 0x5c
je 0x6e0638
cmp rdx, 2
jne 0x6e04f0
cmp word [rcx + 2], 0x3a
jne 0x6e04f0
cmp r14, 1
jbe 0x6e06eb
mov rcx, qword [rsp + 0xa0]
mov r8d, 2
mov rdx, r15
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x6e06eb
add r15, 4
sub rbx, 2
lea rdi, [r14 + r14]
jmp 0x6e0643
cmp word [rbx - 2], 0x2e
je 0x6e0561
mov edx, 0x2e
add rbx, 2
mov word [rbx - 2], dx
jmp 0x6e0561
mov edi, 4
mov r14d, 2
lea rcx, [rsi + rbp + 4]
add rcx, rbx
add rcx, r14
add rcx, rcx
call fcn.006cb300
mov rdx, qword [rsp + 0xa0]
mov r8, r14
mov r12, rax
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
add rdi, r12
movzx edx, word [rdi - 2]
lea rcx, [0x00959330]
call sub.msvcrt.dll_wcsrchr
test rax, rax
jne 0x6e0526
mov r8d, 0x5c
add rdi, 2
mov word [rdi - 2], r8w
jmp 0x6e0526
mov rcx, r12
xor r12d, r12d
call fcn.006cb320
jmp 0x6e0597
movzx edx, word [rdi - 2]
lea rcx, [0x00959330]
call sub.msvcrt.dll_wcsrchr
test rax, rax
jne 0x6e0541
mov ecx, 0x5c
add rdi, 2
mov word [rdi - 2], cx
jmp 0x6e0541
cmp word [rcx + 2], 0x5c
jne 0x6e0638
lea rcx, [rsi + rbp + 4]
add rcx, rbx
add rcx, rcx
call fcn.006cb300
mov rdx, qword [rsp + 0xa0]
xor r8d, r8d
mov rdi, rax
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
mov r12, rdi
jmp 0x6e0526
movzx eax, word [r15 + 4]
cmp ax, 0x2f
je 0x6e06eb
cmp ax, 0x5c
jne 0x6e05dd
jmp 0x6e06eb
Function at 0x6e0830
Capabilities:
Terminate process

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
mov r12, rcx
mov ebx, edx
cmp edx, 0x1c
ja 0x6e0910
cmp edx, 2
je 0x6e088f
jg 0x6e0880
mov eax, 0xfffff02a
test edx, edx
jne 0x6e0876
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x6e08d0
cmp dword [rsp + 0x2c], 0x103
mov eax, 0xfffff038
cmove eax, ebx
add rsp, 0x30
pop rbx
pop r12
pop r13
ret
cmp edx, 9
je 0x6e088f
mov eax, 0xfffff02a
cmp edx, 0xf
jne 0x6e0876
mov edx, 1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov r8d, eax
xor eax, eax
test r8d, r8d
jne 0x6e0876
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
cmp eax, 5
je 0x6e08e0
mov ecx, r13d
call fcn.006cf860
add rsp, 0x30
pop rbx
pop r12
pop r13
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.006cf860
jmp 0x6e0876
lea rdx, [rsp + 0x2c]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x6e08b5
cmp dword [rsp + 0x2c], 0x103
mov eax, 0xfffff038
jne 0x6e0876
jmp 0x6e08b5
mov eax, 0xfffff019
jmp 0x6e0876
Function at 0x6e33e0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov eax, dword [rcx + 0x58]
test al, 1
jne 0x6e3450
test ah, 0x80
je 0x6e3460
mov eax, dword [rcx + 0x10]
cmp eax, 0xc
je 0x6e3430
cmp eax, 0xe
je 0x6e3440
mov r8d, 0xfffff008
cmp eax, 7
je 0x6e3428
mov r8d, 0xc0
lea rdx, str.src_win_stream.c
lea rcx, [0x009599b1]
call qword [sym.imp.msvcrt.dll__assert]
mov r8d, 0xfffff02a
mov eax, r8d
add rsp, 0x28
ret
add rsp, 0x28
jmp 0x6e5400
add rsp, 0x28
jmp 0x6ec130
mov r8d, 0xfffff00d
jmp 0x6e3428
mov r8d, 0xfffff031
jmp 0x6e3428
sub rsp, 0x58
mov eax, dword [rcx + 0x100]
test eax, eax
jne 0x6e5468
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASend]
mov r8d, eax
mov eax, dword [rsp + 0x4c]
cmp r8d, 0xffffffff
je 0x6e5450
add rsp, 0x58
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.006cf860
add rsp, 0x58
ret
mov eax, 0xfffff008
jmp 0x6e5447
push r13
push r12
sub rsp, 0x38
mov eax, dword [rcx + 0x100]
mov r12, rdx
mov r13d, r8d
test eax, eax
jne 0x6ec188
lea r9, [rsp + 0x2c]
call fcn.006e84f0
test eax, eax
jne 0x6ec170
mov edx, r13d
mov rcx, r12
call fcn.006cdb10
add rsp, 0x38
pop r12
pop r13
ret
mov ecx, dword [rsp + 0x2c]
call fcn.006cf860
add rsp, 0x38
pop r12
pop r13
ret
mov eax, 0xfffff008
jmp 0x6ec161
Function at 0x6e3e60
Capabilities:
Set socket configuration

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov rbx, qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x58], edx
mov r12, rcx
lea r9, [rsp + 0x58]
mov edx, 0xffff
mov dword [rsp + 0x60], r8d
mov r8d, 8
mov dword [rsp + 0x20], 4
call rbx
cmp eax, 0xffffffff
je 0x6e3ed2
mov eax, dword [rsp + 0x58]
test eax, eax
jne 0x6e3eb0
xor eax, eax
add rsp, 0x38
pop rbx
pop r12
ret
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x60]
mov edx, 6
mov rcx, r12
mov r8d, 3
call rbx
cmp eax, 0xffffffff
jne 0x6e3ea1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x38
pop rbx
pop r12
ret

Function at 0x6e3ee0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
cmp qword [rdx + 0x110], 0xffffffffffffffff
mov rbp, rcx
mov rsi, rdx
mov rbx, r8
mov edi, r9d
mov dword [rsp + 0x48], 1
jne 0x6e40f0
lea r8, [rsp + 0x48]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x6e3fd0
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x6e3fc0
xor r9d, r9d
mov rdx, qword [rbp + 0x38]
mov r8, rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x6e3fe0
mov edx, dword [rsi + 0x58]
mov eax, edx
and eax, 0x80000
cmp edi, 0x17
je 0x6e4005
mov rcx, qword [0x0096a580]
mov ecx, dword [rcx]
or ecx, eax
je 0x6e40c0
test edx, 0x1000000
jne 0x6e4040
test edx, 0x2000000
jne 0x6e4081
mov qword [rsi + 0x110], rbx
cmp edi, 0x17
je 0x6e40a8
xor eax, eax
and edx, 0x400000
jne 0x6e4018
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, dword [rsp + 0xa0]
test eax, eax
je 0x6e3fc0
mov edx, dword [rsi + 0x58]
mov eax, 0x80000
or edx, 0x80000
mov dword [rsi + 0x58], edx
cmp edi, 0x17
jne 0x6e3f6e
mov rcx, qword [0x0096a590]
mov ecx, dword [rcx]
jmp 0x6e3f77
mov dword [rsp + 0x3c], eax
mov r8d, 0x93
lea rdx, str.src_win_tcp.c
lea rcx, [0x00959b00]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rsp + 0x3c]
jmp 0x6e3fb1
mov dword [rsp + 0x4c], 1
lea r9, [rsp + 0x4c]
mov r8d, 1
mov rcx, rbx
mov dword [rsp + 0x20], 4
mov edx, 6
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x6e4100
mov edx, dword [rsi + 0x58]
test edx, 0x2000000
je 0x6e3f97
mov r8d, 0x3c
mov edx, 1
mov rcx, rbx
call fcn.006e3e60
test eax, eax
jne 0x6e3fb1
mov edx, dword [rsi + 0x58]
jmp 0x6e3f97
or edx, 0x400000
xor eax, eax
mov dword [rsi + 0x58], edx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x6e3fc0
mov edx, dword [rsi + 0x58]
or edx, 0x20000
mov dword [rsi + 0x58], edx
jmp 0x6e3f7f
mov eax, 0xfffff00e
jmp 0x6e3fb1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x6e3fb1
jmp 0x6e4072
Function at 0x6e4120
Capabilities:
Set socket configuration

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
movzx eax, word [rdx]
mov rbx, rcx
mov rcx, qword [rcx + 0x110]
mov r12, rdx
mov edi, r8d
mov esi, r9d
cmp rcx, 0xffffffffffffffff
je 0x6e4188
cmp ax, 0x17
je 0x6e41f8
mov r8d, edi
mov rdx, r12
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x6e4240
or dword [rbx + 0x58], 0x2000
xor r13d, r13d
mov eax, r13d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
test r9b, 1
je 0x6e4198
cmp ax, 0x17
jne 0x6e4230
movzx ecx, ax
xor r8d, r8d
mov edx, 1
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x6e4268
mov rcx, qword [rbx + 8]
movzx r9d, word [r12]
mov r8, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0
call fcn.006e3ee0
mov r13d, eax
test eax, eax
jne 0x6e4280
movzx eax, word [r12]
mov rcx, qword [rbx + 0x110]
cmp ax, 0x17
jne 0x6e4153
nop dword [rax + rax]
and esi, 1
lea r9, [rsp + 0x3c]
mov edx, 0x29
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x3c], esi
mov r8d, 0x1b
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x110]
jmp 0x6e4153
mov r13d, 0x57
jmp 0x6e4172
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r13d, eax
cmp eax, 0x2740
jne 0x6e4172
mov dword [rbx + 0x118], 0x2740
jmp 0x6e4168
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
jmp qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x6e4172
Function at 0x6e5400
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov eax, dword [rcx + 0x58]
test al, 1
jne 0x6e3450
test ah, 0x80
je 0x6e3460
mov eax, dword [rcx + 0x10]
cmp eax, 0xc
je 0x6e3430
cmp eax, 0xe
je 0x6e3440
mov r8d, 0xfffff008
cmp eax, 7
je 0x6e3428
mov r8d, 0xc0
lea rdx, str.src_win_stream.c
lea rcx, [0x009599b1]
call qword [sym.imp.msvcrt.dll__assert]
mov r8d, 0xfffff02a
mov eax, r8d
add rsp, 0x28
ret
add rsp, 0x28
jmp 0x6e5400
add rsp, 0x28
jmp 0x6ec130
mov r8d, 0xfffff00d
jmp 0x6e3428
mov r8d, 0xfffff031
jmp 0x6e3428
sub rsp, 0x58
mov eax, dword [rcx + 0x100]
test eax, eax
jne 0x6e5468
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASend]
mov r8d, eax
mov eax, dword [rsp + 0x4c]
cmp r8d, 0xffffffff
je 0x6e5450
add rsp, 0x58
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.006cf860
add rsp, 0x58
ret
mov eax, 0xfffff008
jmp 0x6e5447
push r13
push r12
sub rsp, 0x38
mov eax, dword [rcx + 0x100]
mov r12, rdx
mov r13d, r8d
test eax, eax
jne 0x6ec188
lea r9, [rsp + 0x2c]
call fcn.006e84f0
test eax, eax
jne 0x6ec170
mov edx, r13d
mov rcx, r12
call fcn.006cdb10
add rsp, 0x38
pop r12
pop r13
ret
mov ecx, dword [rsp + 0x2c]
call fcn.006cf860
add rsp, 0x38
pop r12
pop r13
ret
mov eax, 0xfffff008
jmp 0x6ec161
Function at 0x6e5b90
Capabilities:
Set socket configuration

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
cmp dword [rdx + 0x10], 0xc
mov rsi, rcx
mov rbx, rdx
mov r12, r8
je 0x6e5bc1
mov r8d, 0x45a
lea rdx, str.src_win_tcp.c
lea rcx, str.handle__type__UV_TCP
call qword [sym.imp.msvcrt.dll__assert]
mov rcx, qword [r12 + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x6e5c90
mov eax, dword [r12 + 0x40]
test eax, eax
js 0x6e5c55
mov dword [rsp + 0x20], 8
mov r8d, 0x700b
mov edx, 0xffff
lea r9, [rbx + 0x110]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x6e5c50
mov rax, qword [rbx + 0x130]
mov qword [r12 + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], r12
test rax, rax
je 0x6e5c6e
xor edx, edx
mov rcx, rbx
call rax
mov eax, dword [rbx + 0x78]
test eax, eax
jne 0x6e5c75
nop dword [rax]
mov r8d, 0x481
lea rdx, str.src_win_tcp.c
lea rcx, [0x00959b87]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x78]
jmp 0x6e5c75
mov rcx, qword [r12 + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [r12 + 0x70], 0xffffffffffffffff
test byte [rbx + 0x58], 0x40
jne 0x6e5d28
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x6e5c30
sub eax, 1
mov edx, dword [rbx + 0x58]
mov dword [rbx + 0x78], eax
jne 0x6e5c85
test dl, 1
jne 0x6e5d00
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov eax, dword [rbx + 0x58]
test al, 0x40
je 0x6e5c6e
mov edx, eax
and edx, 0xffffffbf
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
jne 0x6e5d40
test al, 1
jne 0x6e5cc8
test al, 4
je 0x6e5cc8
mov edx, eax
and edx, 0xffffffbb
mov dword [rbx + 0x58], edx
test al, 8
je 0x6e5cc8
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
nop dword [rax]
cmp qword [rbx + 0x100], 0
je 0x6e5c6e
mov rcx, qword [r12 + 0x40]
call fcn.006f16d0
mov r12, qword [rbx + 0x100]
mov ecx, eax
call fcn.006cf860
mov rcx, rbx
mov edx, eax
call r12
jmp 0x6e5c6e
test dl, 0x20
jne 0x6e5c85
mov rax, qword [rsi + 0x50]
or edx, 0x20
mov dword [rbx + 0x58], edx
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov rdx, r12
mov rcx, rbx
call fcn.006e35b0
jmp 0x6e5c6e
jns 0x6e5cc8
mov r8d, 0x462
lea rdx, str.src_win_tcp.c
lea rcx, [0x00959c5d]
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x6e5cc8