joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006a690
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.QueueUserWorkItem
mov ecx, eax
call fcn.140060580
nop
nop dword [rax]
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rax, qword [rcx + 0x80]
mov rdx, qword [rcx + 0x98]
mov rsi, qword [rax + 8]
mov rbx, rcx
lea r9, [rsp + 0x3c]
mov rcx, qword [rax + 0x118]
mov qword [rsp + 0x20], 0
mov r8d, dword [rbx + 0x90]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14006a6f8
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsi + 0x38]
lea r9, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x14006a726
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
test eax, eax
jle 0x14006a720
call rdi
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
jmp 0x14006a6d2
call rdi
cdqe
jmp 0x14006a711
call fcn.14006a580
nop
nop dword [rax]
Function at 0x14006ae60
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
lea r12, [rsp + 0x30]
mov rbx, rcx
mov esi, edx
mov edi, r8d
xor edx, edx
xor r8d, r8d
lea rbp, [rsp + 0x50]
mov rcx, r12
call fcn.140082e40
movdqu xmm0, xmmword [rsp + 0x30]
mov edx, esi
mov r8, rbp
mov rcx, rbx
movaps xmmword [rsp + 0x50], xmm0
call qword [rbx + 0x68]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14006aeb3
mov r8d, dword [rsp + 0x50]
test r8d, r8d
jne 0x14006aed0
mov r8, rbp
mov rdx, 0xfffffffffffff024
mov rcx, rbx
call qword [rbx + 0x70]
xor eax, eax
jmp 0x14006af07
cmp r8d, edi
mov rcx, qword [rbx + 0x118]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x20], 0
cmova r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006af18
mov edx, dword [rsp + 0x4c]
mov r8, rbp
mov rcx, rbx
call qword [rbx + 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, r12
mov rcx, rbx
mov edx, eax
movaps xmmword [rsp + 0x30], xmm1
call fcn.14006ada0
xor eax, eax
jmp 0x14006af07
Function at 0x14006b530
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 0x14006b5a1
call r15
mov edx, eax
cmp eax, 0xe7
je 0x14006b59d
cmp eax, 5
jne 0x14006b668
add rbx, 1
call r13
mov r9, rbx
mov r8, rbp
mov rdx, r14
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.14006ad70
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 0x14006b588
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 0x14006b67b
mov rax, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xa8]
mov eax, dword [rax + 0x58]
mov qword [rdi + 0x80], rdi
mov qword [rdi + 0x128], 0
mov edx, eax
or dl, 0x80
mov dword [rdi + 0x58], edx
test eax, 0x1000000
jne 0x14006b6a0
mov rax, qword [rsp + 0xa8]
xor edx, edx
mov qword [rax + 0x118], r10
mov eax, edx
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 rcx, qword [rsp + 0x48]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x40]
jmp 0x14006b668
mov qword [rsp + 0x40], r10
lea rcx, [rdi + 0x210]
mov qword [rdi + 0x238], 0
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov r10, qword [rsp + 0x40]
jmp 0x14006b657
Function at 0x14006c630
Capabilities:
Connect pipe
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov eax, dword [rcx + 0x58]
mov rbp, qword [rcx + 8]
mov rsi, rcx
test al, 0x40
je 0x14006c655
mov qword [rcx + 0x100], r8
mov edx, 0x2726
test ah, 0x20
je 0x14006c800
mov edx, 0x2748
test ah, 0x10
jne 0x14006c800
mov edx, 0x32
test eax, 0x2000000
je 0x14006c800
mov edx, eax
or edx, 0x40
mov dword [rsi + 0x58], edx
mov edx, dword [rsi + 0x7c]
lea ecx, [rdx + 1]
mov dword [rsi + 0x7c], ecx
mov ecx, eax
and ecx, 4
or ecx, edx
jne 0x14006c6b0
mov edx, eax
or edx, 0x44
mov dword [rsi + 0x58], edx
test al, 8
jne 0x14006c8a0
nop dword [rax + rax]
mov eax, dword [rsi + 0x128]
mov qword [rsi + 0x100], r8
xor edi, edi
test eax, eax
jle 0x14006c7fe
mov r12, qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov r14, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13, qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
jmp 0x14006c6f9
mov eax, dword [rsi + 0x78]
add rdi, 1
add eax, 1
mov dword [rsi + 0x78], eax
cmp dword [rsi + 0x128], edi
jle 0x14006c7fe
mov rbx, rdi
shl rbx, 7
add rbx, qword [rsi + 0x130]
test rdi, rdi
je 0x14006c777
mov rcx, qword [rsi + 0x120]
xor r8d, r8d
mov qword [rsp + 0x38], 0
mov r9d, 0xff
mov dword [rsp + 0x30], 0
mov edx, 0x40040003
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call r13
mov qword [rbx + 0x70], rax
mov r8, rax
cmp rax, 0xffffffffffffffff
je 0x14006c82a
mov dword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov rdx, rsi
mov rcx, rbp
call fcn.140069ef0
test eax, eax
jne 0x14006c818
pxor xmm0, xmm0
lea rdx, [rbx + 0x40]
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rdx + 0x10], xmm0
mov rcx, qword [rbx + 0x70]
call r12
test eax, eax
jne 0x14006c6e0
call r14
cmp eax, 0x3e5
je 0x14006c6e0
call r14
mov edx, eax
xor eax, eax
cmp edx, 0x217
jne 0x14006c870
nop word [rax + rax]
mov qword [rbx + 0x40], rax
mov rax, qword [rbp + 0x48]
mov qword [rbx + 0x68], 0
test rax, rax
je 0x14006c850
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0x68], rdx
mov qword [rax + 0x68], rbx
mov eax, dword [rsi + 0x78]
mov qword [rbp + 0x48], rbx
add rdi, 1
add eax, 1
mov dword [rsi + 0x78], eax
cmp dword [rsi + 0x128], edi
jg 0x14006c6f9
xor edx, edx
mov eax, edx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
call r15
test eax, eax
jle 0x14006c860
call r15
movzx eax, ax
or eax, 0x80070000
cdqe
jmp 0x14006c7c0
mov qword [rbx + 0x68], rbx
jmp 0x14006c7e1
call r15
cdqe
jmp 0x14006c7c0
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call r14
test eax, eax
jle 0x14006c8b0
call r14
movzx eax, ax
or eax, 0x80070000
cdqe
jmp 0x14006c7c0
add dword [rbp + 8], 1
jmp 0x14006c6b0
call r14
cdqe
jmp 0x14006c7c0
Function at 0x14006ce40
Capabilities:
Read file on windows
Read pipe

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov ecx, dword [rdx + 0x58]
mov rbx, rdx
mov rdi, r8
mov edx, ecx
and edx, 0xffdeffff
sub dword [rbx + 0x78], 1
mov dword [rbx + 0x58], edx
jne 0x14006ce6d
test cl, 1
jne 0x14006cf50
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x14006ce81
call fcn.140082490
mov edx, dword [rbx + 0x58]
and dh, 0x10
je 0x14006ceb7
mov rax, qword [rdi + 0x40]
mov ecx, eax
test eax, eax
jns 0x14006cec0
mov rax, qword [0x1402341f0]
call qword [rax]
cmp eax, 0x3e3
jne 0x14006cf70
mov eax, dword [rbx + 0x58]
and eax, 0x11000
cmp eax, 0x1000
je 0x14006cf9f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
lea rax, [rsp + 0x4c]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x118]
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x14006cfb8
mov edx, dword [rsp + 0x4c]
mov eax, dword [rbx + 0x58]
test edx, edx
jne 0x14006cf24
jmp 0x14006cea7
mov rcx, rbx
call fcn.14006b000
test eax, eax
je 0x14006cea4
mov edx, dword [rsp + 0x4c]
cmp edx, eax
jb 0x14006cea4
sub edx, eax
mov dword [rsp + 0x4c], edx
je 0x14006cea4
mov eax, dword [rbx + 0x58]
test ah, 0x10
je 0x14006cea7
mov eax, dword [rbx + 0x110]
test eax, eax
jne 0x14006cf08
mov r8d, 0xffffffff
mov rcx, rbx
call fcn.14006ae60
jmp 0x14006cf10
and ecx, 0x20
jne 0x14006ce6d
mov rax, qword [rsi + 0x50]
or edx, 0x20
mov dword [rbx + 0x58], edx
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
jmp 0x14006ce6d
movdqa xmm0, xmmword [0x140226e10]
mov edx, eax
lea r8, [rsp + 0x30]
mov rcx, rbx
movaps xmmword [rsp + 0x30], xmm0
call fcn.14006ada0
mov eax, dword [rbx + 0x58]
and eax, 0x11000
cmp eax, 0x1000
jne 0x14006ceb7
mov rdx, rbx
mov rcx, rsi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
jmp fcn.14006a370
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm1, xmmword [0x140226e10]
lea r8, [rsp + 0x30]
mov rcx, rbx
mov edx, eax
movaps xmmword [rsp + 0x30], xmm1
call fcn.14006ada0
jmp 0x14006cef8
Function at 0x14006df70
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
test rax, rax
je 0x14006dfee
xor eax, eax
lock cmpxchg qword [0x140274db8], rbx
mov rsi, rax
test rax, rax
jne 0x14006dfd0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140274dc0], eax
cmp eax, 0xffffffff
je 0x140211cb6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [0x140274db0], 1
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xffffffff
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140226e40]
mov ecx, eax
call fcn.140060580
nop
nop word cs:[rax + rax]
nop
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
mov rsi, qword [rcx + 8]
mov rdi, qword [rcx + 0x10]
call fcn.140082d20
cmp byte [0x140274db0], 0
jne 0x14006e035
call fcn.14006df70
mov ecx, dword [0x140274dc0]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140211cbc
mov rcx, rsi
call rbx
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14006e010
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
test rax, rax
je 0x14006dfee
xor eax, eax
lock cmpxchg qword [0x140274db8], rbx
mov rsi, rax
test rax, rax
jne 0x14006dfd0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140274dc0], eax
cmp eax, 0xffffffff
je 0x140211cb6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [0x140274db0], 1
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xffffffff
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140226e40]
mov ecx, eax
call fcn.140060580
nop
nop word cs:[rax + rax]
nop
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
mov rsi, qword [rcx + 8]
mov rdi, qword [rcx + 0x10]
call fcn.140082d20
cmp byte [0x140274db0], 0
jne 0x14006e035
call fcn.14006df70
mov ecx, dword [0x140274dc0]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140211cbc
mov rcx, rsi
call rbx
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x14006e100
Capabilities:
Create thread
Resume thread

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, rcx
mov ecx, 0x18
mov rbp, rdx
mov rsi, r8
call fcn.140082d00
mov rbx, rax
test rax, rax
je 0x14006e1d7
mov qword [rax], rbp
xor edx, edx
xor ecx, ecx
mov r9, rax
mov qword [rax + 8], rsi
lea r8, [0x14006e010]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
jne 0x14006e190
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, rbx
mov esi, dword [rax]
call fcn.140082d20
cmp esi, 0xd
je 0x14006e1d0
jg 0x14006e1b0
test esi, esi
je 0x14006e1a0
cmp esi, 0xb
mov edx, 0xfffff008
mov eax, 0xfffff01a
cmove eax, edx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov qword [rdi], rax
mov rcx, rax
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor eax, eax
cmp esi, 0x16
setne al
sub eax, 0xfe7
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 0xfffff004
jmp 0x14006e1a2
mov eax, 0xfffff027
jmp 0x14006e1a2
Function at 0x14006f7d0
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, 0x38
mov r15, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xb8]
mov r12, rcx
mov rsi, rdx
mov r14, r8
mov rbp, r9
cmp rdx, 2
jbe 0x14006f900
movzx eax, word [rcx]
cmp ax, 0x5c
je 0x14006f980
cmp ax, 0x2f
jne 0x14006f9f0
mov edi, 4
mov r13d, 2
lea rcx, [rbp + r15 + 4]
add rcx, rsi
add rcx, r13
add rcx, rcx
call fcn.140082d00
mov rdx, qword [rsp + 0xb0]
mov r8, r13
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_wcsncpy
lea rax, [rsi + rsi]
add rdi, rbx
mov qword [rsp + 0x28], rax
movzx edx, word [rdi - 2]
lea rcx, [0x140226f00]
call sub.msvcrt.dll_wcsrchr
test rax, rax
je 0x14006fa08
mov rcx, rdi
mov r8, rsi
mov rdx, r12
call sub.msvcrt.dll_wcsncpy
mov rax, qword [rsp + 0x28]
add rdi, rax
test rsi, rsi
jne 0x14006f9c3
mov r8, rbp
mov rdx, r14
lea rsi, [rdi + rbp*2]
mov rcx, rdi
call sub.msvcrt.dll_wcsncpy
test r15, r15
je 0x14006f8cc
test rbp, rbp
jne 0x14006f950
mov rdx, qword [rsp + 0xa0]
mov rcx, rsi
mov r8, r15
lea rsi, [rsi + r15*2]
call sub.msvcrt.dll_wcsncpy
xor eax, eax
mov rcx, rbx
mov word [rsi], ax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006f970
test al, 0x10
jne 0x14006f970
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x28], 0
test rdx, rdx
jne 0x14006fa20
lea rcx, [rbp + r15 + 4]
add rcx, r13
add rcx, rsi
add rcx, rcx
call fcn.140082d00
mov rdx, qword [rsp + 0xb0]
mov r8, r13
mov rbx, rax
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
lea rdi, [rbx + r13*2]
test r13, r13
je 0x14006f876
jmp 0x14006f85d
cmp word [rsi - 2], 0x2e
je 0x14006f8b5
mov edx, 0x2e
add rsi, 2
mov word [rsi - 2], dx
jmp 0x14006f8b5
mov rcx, rbx
xor ebx, ebx
call fcn.140082d20
jmp 0x14006f8eb
cmp word [rcx + 2], 0x5c
jne 0x14006f81d
lea rcx, [rbp + r15 + 4]
add rcx, rsi
add rcx, rcx
call fcn.140082d00
mov rdx, qword [rsp + 0xb0]
xor r8d, r8d
mov rbx, rax
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
mov r8, rsi
mov rdx, r12
mov rcx, rbx
call sub.msvcrt.dll_wcsncpy
lea rdi, [rbx + rsi*2]
movzx edx, word [rdi - 2]
lea rcx, [0x140226f00]
call sub.msvcrt.dll_wcsrchr
test rax, rax
jne 0x14006f895
mov ecx, 0x5c
add rdi, 2
mov word [rdi - 2], cx
jmp 0x14006f895
cmp word [rcx + 2], 0x3a
je 0x14006fa50
lea rax, [rsi + rsi]
mov qword [rsp + 0x28], rax
jmp 0x14006f912
mov r8d, 0x5c
add rdi, 2
mov word [rdi - 2], r8w
jmp 0x14006f876
movzx eax, word [rcx]
cmp ax, 0x2f
je 0x14006f81d
cmp ax, 0x5c
je 0x14006f81d
cmp rdx, 1
jne 0x14006faa5
mov qword [rsp + 0x28], 2
jmp 0x14006f912
movzx eax, word [r12 + 4]
cmp ax, 0x2f
je 0x14006f98b
cmp ax, 0x5c
je 0x14006f98b
cmp r13, 1
jbe 0x14006f98b
mov rcx, qword [rsp + 0xb0]
mov r8d, 2
mov rdx, r12
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x14006f98b
add r12, 4
sub rsi, 2
lea rdi, [r13 + r13]
jmp 0x14006f828
cmp word [rcx + 2], 0x3a
jne 0x14006f9f7
jmp 0x14006fa6a
Function at 0x1400732e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [rcx + 0x58]
test al, 1
jne 0x140073320
test ah, 0x80
je 0x140073330
mov eax, dword [rcx + 0x10]
cmp eax, 0xc
je 0x140073318
cmp eax, 0xe
je 0x140073310
cmp eax, 7
mov edx, 0xfffff02a
mov eax, 0xfffff008
cmovne eax, edx
ret
jmp fcn.14007b270
jmp 0x140074de0
mov eax, 0xfffff00d
ret
mov eax, 0xfffff031
ret
sub rsp, 0x58
mov eax, dword [rcx + 0x100]
test eax, eax
jne 0x140074e48
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 edx, eax
mov eax, dword [rsp + 0x4c]
cmp edx, 0xffffffff
je 0x140074e30
add rsp, 0x58
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400605e0
add rsp, 0x58
ret
mov eax, 0xfffff008
jmp 0x140074e25
Function at 0x140073770
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
pxor xmm0, xmm0
mov rbx, rdx
lea rax, [rdx + 0xc0]
mov rsi, rcx
mov dword [rsp + 0x50], 0
lea rdi, [rdx + 0x80]
mov edx, dword [rdx + 0x58]
movups xmmword [rbx + 0xc0], xmm0
mov ecx, edx
or ecx, 0x40000
and edx, 0x80000
mov dword [rbx + 0x58], ecx
lea rcx, [0x140274ea0]
mov qword [rsp + 0x58], rcx
movups xmmword [rax + 0x10], xmm0
je 0x1400737d7
mov rdx, qword [rbx + 0xf0]
or rdx, 1
mov qword [rbx + 0xd8], rdx
lea rdx, [rsp + 0x50]
lea r9, [rsp + 0x48]
mov rcx, qword [rbx + 0x110]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c]
mov dword [rsp + 0x4c], 0
mov r8d, 1
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x140073878
mov eax, dword [rbx + 0x58]
mov edx, dword [rbx + 0x78]
test eax, 0x20000
je 0x14007388c
or eax, 0x10000
add edx, 1
mov qword [rbx + 0xe8], 0
mov dword [rbx + 0x58], eax
mov eax, dword [rsp + 0x48]
mov dword [rbx + 0x78], edx
mov qword [rbx + 0xc8], rax
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14007391a
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0xe8], rdx
mov qword [rax + 0x68], rdi
mov qword [rsi + 0x48], rdi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140073930
mov eax, dword [rbx + 0x58]
mov edx, eax
add dword [rbx + 0x78], 1
or edx, 0x10000
mov dword [rbx + 0x58], edx
test eax, 0x80000
je 0x140073869
cmp qword [rbx + 0xf8], 0xffffffffffffffff
jne 0x140073869
mov rdx, qword [rbx + 0xf0]
lea rcx, [rbx + 0xf8]
mov dword [rsp + 0x28], 4
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
lea r8, [0x1400739d0]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x140073869
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
test eax, eax
jle 0x140073999
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
jne 0x140073856
mov qword [rbx + 0xe8], rdi
mov qword [rsi + 0x48], rdi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rbp, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbp
test eax, eax
jle 0x140073988
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 0x140073990
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0xe8], rdx
mov qword [rax + 0x68], rdi
mov qword [rsi + 0x48], rdi
add dword [rbx + 0x78], 1
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
call rbp
cdqe
jmp 0x140073949
mov qword [rbx + 0xe8], rdi
jmp 0x140073973
call rbp
cdqe
jmp 0x1400738fb
Function at 0x140073a50
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp qword [rdx + 0x110], 0xffffffffffffffff
mov rbp, rcx
mov rsi, rdx
mov rbx, r8
mov edi, r9d
mov dword [rsp + 0x34], 1
jne 0x140073c70
lea r8, [rsp + 0x34]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x140073b30
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x140073b18
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 0x140073b40
mov eax, dword [rsi + 0x58]
mov ecx, eax
and ecx, 0x80000
cmp edi, 0x17
je 0x140073c30
mov rdx, qword [0x1402342a0]
mov edx, dword [rdx]
or edx, ecx
je 0x140073c40
test eax, 0x1000000
jne 0x140073b5d
test eax, 0x2000000
jne 0x140073b9d
mov qword [rsi + 0x110], rbx
cmp edi, 0x17
je 0x140073c20
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, dword [rsp + 0x90]
test edx, edx
je 0x140073b18
mov eax, dword [rsi + 0x58]
or eax, 0x80000
mov dword [rsi + 0x58], eax
test eax, 0x1000000
je 0x140073aef
mov dword [rsp + 0x3c], 1
lea r9, [rsp + 0x3c]
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 0x140073c80
mov eax, dword [rsi + 0x58]
test eax, 0x2000000
je 0x140073afa
mov dword [rsp + 0x38], 1
lea r9, [rsp + 0x38]
mov rcx, rbx
mov rbp, qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x3c], 0x3c
mov r8d, 8
mov edx, 0xffff
mov dword [rsp + 0x20], 4
call rbp
cmp eax, 0xffffffff
je 0x140073c08
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140073afa
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov edx, 6
mov rcx, rbx
mov r8d, 3
call rbp
cmp eax, 0xffffffff
jne 0x140073afa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x140073b0c
jmp 0x140073afa
or dword [rsi + 0x58], 0x400000
jmp 0x140073b0a
mov rdx, qword [0x1402342b0]
mov edx, dword [rdx]
jmp 0x140073ae0
mov edx, 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x140073b18
mov eax, dword [rsi + 0x58]
or eax, 0x20000
mov dword [rsi + 0x58], eax
jmp 0x140073ae8
mov eax, 0xfffff00e
jmp 0x140073b0c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x140073b0c
jmp 0x140073b8f
Function at 0x140073ca0
Capabilities:
Set socket configuration

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
movzx eax, word [rdx]
mov rbx, rcx
mov rcx, qword [rcx + 0x110]
mov rsi, rdx
mov r12d, r8d
mov ebp, r9d
cmp rcx, 0xffffffffffffffff
je 0x140073d00
cmp word [rsi], 0x17
je 0x140073d68
mov r8d, r12d
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140073db0
or dword [rbx + 0x58], 0x2000
xor edi, edi
mov eax, edi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test r9b, 1
je 0x140073d10
cmp ax, 0x17
jne 0x140073da0
movzx ecx, ax
xor r8d, r8d
mov edx, 1
call qword [sym.imp.WS2_32.dll_socket]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140073dd8
mov rcx, qword [rbx + 8]
mov dword [rsp + 0x20], 0
mov r8, rax
mov rdx, rbx
movzx r9d, word [rsi]
call fcn.140073a50
mov edi, eax
test eax, eax
jne 0x140073df0
cmp word [rsi], 0x17
mov rcx, qword [rbx + 0x110]
jne 0x140073cd2
nop dword [rax]
mov r9d, ebp
mov r8d, 0x1b
mov edx, 0x29
mov dword [rsp + 0x20], 4
and r9d, 1
mov dword [rsp + 0x3c], r9d
lea r9, [rsp + 0x3c]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x110]
jmp 0x140073cd2
mov edi, 0x57
jmp 0x140073cf0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2740
jne 0x140073cf0
mov dword [rbx + 0x118], 0x2740
jmp 0x140073ce7
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140073cf0