joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140073820
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 0x140073887
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 0x140073928
mov eax, dword [rbx + 0x58]
mov edx, dword [rbx + 0x78]
test eax, 0x20000
je 0x14007393c
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 0x1400739ca
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 0x1400739e0
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 0x140073919
cmp qword [rbx + 0xf8], 0xffffffffffffffff
jne 0x140073919
mov rdx, qword [rbx + 0xf0]
lea rcx, [rbx + 0xf8]
mov dword [rsp + 0x28], 4
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
lea r8, [0x140073a80]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x140073919
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
test eax, eax
jle 0x140073a49
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 0x140073906
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 0x140073a38
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 0x140073a40
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 0x1400739f9
mov qword [rbx + 0xe8], rdi
jmp 0x140073a23
call rbp
cdqe
jmp 0x1400739ab
Function at 0x140073b00
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 0x140073d20
lea r8, [rsp + 0x34]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x140073be0
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x140073bc8
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 0x140073bf0
mov eax, dword [rsi + 0x58]
mov ecx, eax
and ecx, 0x80000
cmp edi, 0x17
je 0x140073ce0
mov rdx, qword [0x1402342a0]
mov edx, dword [rdx]
or edx, ecx
je 0x140073cf0
test eax, 0x1000000
jne 0x140073c0d
test eax, 0x2000000
jne 0x140073c4d
mov qword [rsi + 0x110], rbx
cmp edi, 0x17
je 0x140073cd0
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 0x140073bc8
mov eax, dword [rsi + 0x58]
or eax, 0x80000
mov dword [rsi + 0x58], eax
test eax, 0x1000000
je 0x140073b9f
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 0x140073d30
mov eax, dword [rsi + 0x58]
test eax, 0x2000000
je 0x140073baa
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 0x140073cb8
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140073baa
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov edx, 6
mov rcx, rbx
mov r8d, 3
call rbp
cmp eax, 0xffffffff
jne 0x140073baa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x140073bbc
jmp 0x140073baa
or dword [rsi + 0x58], 0x400000
jmp 0x140073bba
mov rdx, qword [0x1402342b0]
mov edx, dword [rdx]
jmp 0x140073b90
mov edx, 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x140073bc8
mov eax, dword [rsi + 0x58]
or eax, 0x20000
mov dword [rsi + 0x58], eax
jmp 0x140073b98
mov eax, 0xfffff00e
jmp 0x140073bbc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x140073bbc
jmp 0x140073c3f
Function at 0x140073d50
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 0x140073db0
cmp word [rsi], 0x17
je 0x140073e18
mov r8d, r12d
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140073e60
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 0x140073dc0
cmp ax, 0x17
jne 0x140073e50
movzx ecx, ax
xor r8d, r8d
mov edx, 1
call qword [sym.imp.WS2_32.dll_socket]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140073e88
mov rcx, qword [rbx + 8]
mov dword [rsp + 0x20], 0
mov r8, rax
mov rdx, rbx
movzx r9d, word [rsi]
call fcn.140073b00
mov edi, eax
test eax, eax
jne 0x140073ea0
cmp word [rsi], 0x17
mov rcx, qword [rbx + 0x110]
jne 0x140073d82
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 0x140073d82
mov edi, 0x57
jmp 0x140073da0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2740
jne 0x140073da0
mov dword [rbx + 0x118], 0x2740
jmp 0x140073d97
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 0x140073da0
Function at 0x140074b00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, rdx
mov edx, dword [rbx + 0x58]
mov rsi, qword [rbx + 8]
mov qword [rbx + 0x68], rcx
mov ecx, dword [rbx + 0x7c]
mov qword [rbx + 0x70], r8
mov eax, edx
lea r8d, [rcx + 1]
or ah, 0x10
mov dword [rbx + 0x7c], r8d
mov r8d, edx
and r8d, 4
mov dword [rbx + 0x58], eax
or r8d, ecx
jne 0x140074a80
mov eax, edx
or eax, 0x1004
and edx, 8
mov dword [rbx + 0x58], eax
jne 0x140074ab0
nop dword [rax]
test eax, 0x10000
jne 0x140074aa3
test eax, 0x80000
je 0x140074a98
cmp qword [rbx + 0xf0], 0
je 0x140074ac0
mov rdx, rbx
mov rcx, rsi
call fcn.140073820
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
add dword [rsi + 8], 1
jmp 0x140074a80
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0xf0], rax
test rax, rax
jne 0x140074a98
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CreateEvent
mov ecx, eax
call fcn.140060630
nop
nop word cs:[rax + rax]
nop dword [rax]
sub rsp, 0x28
mov rax, qword [rcx + 0x110]
cmp rax, 0xffffffffffffffff
je 0x140074b41
mov ecx, dword [rcx + 0x118]
test ecx, ecx
jne 0x140074b38
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140074b30
add rsp, 0x28
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
add rsp, 0x28
jmp fcn.140060690
mov eax, 0xfffff019
jmp 0x140074b28
Function at 0x140074e90
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [rcx + 0x58]
test al, 1
jne 0x1400733d0
test ah, 0x80
je 0x1400733e0
mov eax, dword [rcx + 0x10]
cmp eax, 0xc
je 0x1400733c8
cmp eax, 0xe
je 0x1400733c0
cmp eax, 7
mov edx, 0xfffff02a
mov eax, 0xfffff008
cmovne eax, edx
ret
jmp fcn.14007b320
jmp 0x140074e90
mov eax, 0xfffff00d
ret
mov eax, 0xfffff031
ret
sub rsp, 0x58
mov eax, dword [rcx + 0x100]
test eax, eax
jne 0x140074ef8
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 0x140074ee0
add rsp, 0x58
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140060690
add rsp, 0x58
ret
mov eax, 0xfffff008
jmp 0x140074ed5
Function at 0x140075450
Capabilities:
Set socket configuration

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [r8 + 0x70]
mov rbx, rdx
mov rsi, r8
cmp rcx, 0xffffffffffffffff
je 0x140075508
mov eax, dword [r8 + 0x40]
test eax, eax
js 0x1400754d4
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 0x1400754d0
mov rax, qword [rbx + 0x130]
mov qword [rsi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rsi
test rax, rax
je 0x14007559b
xor edx, edx
mov rcx, rbx
call rax
mov edx, dword [rbx + 0x58]
jmp 0x1400754ee
mov rcx, qword [rsi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [rbx + 0x58]
mov qword [rsi + 0x70], 0xffffffffffffffff
test dl, 0x40
jne 0x140075590
sub dword [rbx + 0x78], 1
jne 0x1400754f9
test dl, 1
jne 0x140075570
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov edx, dword [rdx + 0x58]
test dl, 0x40
je 0x1400754ee
mov ecx, edx
and ecx, 0xffffffbf
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], ecx
jne 0x140075540
test dl, 1
jne 0x140075540
test dl, 4
je 0x140075540
mov ecx, edx
and ecx, 0xffffffbb
and edx, 8
mov dword [rbx + 0x58], ecx
je 0x140075540
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
nop dword [rax]
cmp qword [rbx + 0x100], 0
mov edx, ecx
je 0x1400754ee
mov ecx, dword [rsi + 0x40]
call fcn.14007f840
mov rsi, qword [rbx + 0x100]
mov ecx, eax
call fcn.140060690
mov rcx, rbx
mov edx, eax
call rsi
mov edx, dword [rbx + 0x58]
jmp 0x1400754ee
test dl, 0x20
jne 0x1400754f9
mov rax, qword [rdi + 0x50]
or edx, 0x20
mov dword [rbx + 0x58], edx
mov qword [rbx + 0x50], rax
mov qword [rdi + 0x50], rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov rdx, rsi
mov rcx, rbx
call fcn.1400734e0
mov edx, dword [rbx + 0x58]
jmp 0x1400754ee
Function at 0x1400755b0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
sub dword [rdx + 0x7c], 1
mov rdi, rcx
mov rbx, rdx
mov rsi, r8
jne 0x1400755ce
mov eax, dword [rdx + 0x58]
test al, 1
je 0x140075640
mov rax, qword [rsi + 0x40]
sub dword [rdi + 0x20], 1
mov ecx, eax
test eax, eax
js 0x1400756a8
mov ecx, 0x3e3
test byte [rbx + 0x58], 1
je 0x140075668
mov rbp, qword [rsi + 0x70]
call fcn.140060690
mov rcx, rsi
mov edx, eax
call rbp
sub dword [rbx + 0x78], 1
mov edx, dword [rbx + 0x58]
jne 0x140075609
test dl, 1
jne 0x140075618
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
test dl, 0x20
jne 0x140075609
mov rax, qword [rdi + 0x50]
or edx, 0x20
mov dword [rbx + 0x58], edx
mov qword [rbx + 0x50], rax
mov qword [rdi + 0x50], rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
test al, 4
je 0x1400755ce
mov edx, eax
and edx, 0xfffffffb
mov dword [rbx + 0x58], edx
test al, 8
je 0x1400755ce
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x1400755ce
mov rcx, qword [rbx + 0x110]
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov r8d, 0x7010
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, eax
test eax, eax
jne 0x1400756b8
or dword [rbx + 0x58], 0xc080
add dword [rdi + 0xa8], 1
jmp 0x1400755eb
call fcn.14007f840
mov ecx, eax
jmp 0x1400755eb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
jmp 0x1400755eb
Function at 0x140075a90
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
mov rcx, qword [rcx + 0x110]
mov esi, edx
cmp rcx, 0xffffffffffffffff
jne 0x140075ad0
mov eax, dword [rbx + 0x58]
mov edx, eax
or eax, 0x1000000
and edx, 0xfeffffff
test esi, esi
cmove eax, edx
mov dword [rbx + 0x58], eax
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
ret
mov dword [rsp + 0x3c], edx
lea r9, [rsp + 0x3c]
mov edx, 6
mov r8d, 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140075aa8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x140075ac2
jmp 0x140075aa8
Function at 0x14007ae30
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rbx, rcx
mov ecx, dword [rcx + 0x58]
mov edx, ecx
and dh, 0xef
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
jne 0x14007ae50
test cl, 1
je 0x14007ae80
test edx, 0x10000
je 0x14007ae6c
test edx, 0x2000000
jne 0x14007aea0
and edx, 0x200000
je 0x14007aef0
xor eax, eax
add rsp, 0x70
pop rbx
pop rsi
pop rdi
ret
test cl, 4
je 0x14007ae50
mov edx, ecx
and edx, 0xffffeffb
and ecx, 8
mov dword [rbx + 0x58], edx
je 0x14007ae50
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x14007ae50
xor r9d, r9d
pxor xmm0, xmm0
mov r10d, 0x10
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x50]
movups xmmword [rsp + 0x52], xmm0
mov r8d, 1
mov word [rsp + 0x62], r9w
lea r9, [rsp + 0x4c]
mov word [rsp + 0x50], r10w
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x14007ae6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14007ae6e
lea rsi, [0x140274eb8]
mov rcx, rsi
call fcn.14006e720
mov eax, 2
xchg dword [0x140274edc], eax
cmp eax, 1
je 0x14007af28
mov rcx, rsi
call fcn.14006e6f0
or dword [rbx + 0x58], 0x200000
jmp 0x14007ae6c
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov qword [rsp + 0x30], 0
lea rcx, str.conout_
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14007aff8
lea rdx, [0x140274ec0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14007b090
mov ecx, 1
xor edx, edx
movabs rax, 0xd000100000001
mov word [rsp + 0x50], cx
mov ecx, 0xd
mov qword [rsp + 0x54], rax
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, 0xd
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x60], 0
mov word [rsp + 0x5e], r8w
lea r9, [rsp + 0x4c]
mov rcx, qword [rbx + 0x110]
mov r8d, 1
mov word [rsp + 0x5c], ax
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
je 0x14007b078
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14007af17
mov eax, 1
xor edx, edx
mov ecx, 0xd
mov word [rsp + 0x50], ax
movabs rax, 0xd000100000001
mov qword [rsp + 0x54], rax
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edx, 0xd
lea r9, [rsp + 0x4c]
mov dword [rsp + 0x60], 0
mov word [rsp + 0x5e], dx
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x50]
mov r8d, 1
mov word [rsp + 0x5c], ax
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x14007af17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
test esi, esi
jne 0x14007ae6e
jmp 0x14007af17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14007b062
lock or dword [0x140274ed8], 1
jmp 0x14007af81
Function at 0x14007b6a0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2c8
cmp qword [rdx + 0x70], 0xffffffffffffffff
mov rbp, rcx
mov rdi, rdx
mov rbx, r8
mov esi, r9d
mov dword [rsp + 0x38], 1
jne 0x14007b810
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x14007b780
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x14007b768
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 0x14007b768
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov dword [rsp + 0x3c], 0x274
mov qword [rsp + 0x20], rax
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x14007b768
cmp dword [rsp + 0x68], 1
je 0x14007b7a8
mov qword [rdi + 0x70], rbx
cmp esi, 0x17
je 0x14007b798
xor eax, eax
add rsp, 0x2c8
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x2c8
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x2c8
pop rbx
pop rsi
pop rdi
pop rbp
ret
or dword [rdi + 0x58], 0x400000
jmp 0x14007b753
mov edx, 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x14007b7f0
lea rax, [0x14007fbf0]
lea rcx, [0x14007fa40]
or dword [rdi + 0x58], 0x20000
movq xmm0, rcx
movq xmm1, rax
punpcklqdq xmm0, xmm1
movups xmmword [rdi + 0x198], xmm0
jmp 0x14007b74a
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
cmp eax, 1
je 0x14007b74a
call rbp
jmp 0x14007b755
mov eax, 0xfffff00e
jmp 0x14007b755
Function at 0x14007b820
Capabilities:
Set socket configuration

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
mov rbp, rdx
mov r12d, r8d
mov esi, r9d
mov dword [rsp + 0x38], 0
test byte [rcx + 0x59], 0x20
jne 0x14007b892
mov r13d, r9d
and r13d, 1
je 0x14007b85c
cmp word [rdx], 0x17
mov edi, 0x57
jne 0x14007b894
mov rcx, qword [rbx + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x14007b918
and esi, 4
jne 0x14007b8a8
cmp word [rbp], 0x17
je 0x14007b8e2
mov r8d, r12d
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14007b960
or dword [rbx + 0x58], 0x2000
xor edi, edi
mov eax, edi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea r9, [rsp + 0x3c]
mov dword [rsp + 0x3c], 1
mov edx, 0xffff
mov r8d, 4
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14007b960
cmp word [rbp], 0x17
mov rcx, qword [rbx + 0x70]
jne 0x14007b876
or dword [rbx + 0x58], 0x400000
test r13d, r13d
jne 0x14007b876
lea r9, [rsp + 0x38]
mov r8d, 0x1b
mov edx, 0x29
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x70]
jmp 0x14007b876
movzx ecx, word [rbp]
xor r8d, r8d
mov edx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14007b960
mov rcx, qword [rbx + 8]
movzx r9d, word [rbp]
mov r8, rax
mov rdx, rbx
call fcn.14007b6a0
mov edi, eax
test eax, eax
jne 0x14007b970
mov rcx, qword [rbx + 0x70]
jmp 0x14007b86a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x14007b894
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14007b894
Function at 0x14007c400
Capabilities:
Set socket configuration

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov eax, dword [rcx + 0x58]
mov rbp, rdx
mov edx, eax
mov rbx, rcx
mov rdi, r8
and edx, 0x402000
mov esi, r9d
cmp edx, 0x2000
je 0x14007c51d
mov dword [rsp + 0x30], 0
test ah, 0x20
jne 0x14007c4d9
mov rcx, qword [rcx + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x14007c580
lea r9, [rsp + 0x50]
mov r8d, 4
mov edx, 0xffff
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x20], 4
mov r13, qword [sym.imp.WS2_32.dll_setsockopt]
call r13
cmp eax, 0xffffffff
je 0x14007c5d0
mov r12, qword [0x140234290]
cmp word [r12], 0x17
jne 0x14007c4b6
or dword [rbx + 0x58], 0x400000
mov rcx, qword [rbx + 0x70]
lea r9, [rsp + 0x30]
mov r8d, 0x1b
mov dword [rsp + 0x20], 4
mov edx, 0x29
call r13
mov rcx, qword [rbx + 0x70]
mov r8d, 0x1c
mov rdx, r12
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14007c5d0
or dword [rbx + 0x58], 0x2000
pxor xmm0, xmm0
mov dword [rsp + 0x40], 0
movaps xmmword [rsp + 0x30], xmm0
test rdi, rdi
je 0x14007c50a
xor edx, edx
lea r8, [rsp + 0x50]
mov rcx, rdi
call fcn.140084110
test eax, eax
jne 0x14007c51d
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x40], eax
movdqu xmm1, xmmword [rbp + 8]
movaps xmmword [rsp + 0x30], xmm1
test esi, esi
je 0x14007c530
cmp esi, 1
je 0x14007c570
mov eax, 0xfffff019
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r8d, 0xd
mov rcx, qword [rbx + 0x70]
mov edx, 0x29
mov dword [rsp + 0x20], 0x14
lea r9, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, eax
xor eax, eax
cmp edx, 0xffffffff
jne 0x14007c522
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140060690
jmp 0x14007c522
mov r8d, 0xc
jmp 0x14007c536
mov r12, qword [0x140234290]
xor r8d, r8d
mov edx, 2
movzx ecx, word [r12]
call qword [sym.imp.WS2_32.dll_socket]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x14007c5d0
movzx r9d, word [r12]
mov rcx, qword [rbx + 8]
mov r8, rax
mov rdx, rbx
call fcn.14007b6a0
mov r12d, eax
test eax, eax
jne 0x14007c5f8
mov rcx, qword [rbx + 0x70]
jmp 0x14007c44e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r12d, eax
test eax, eax
je 0x14007c4d9
mov ecx, r12d
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.140060690
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14007c5e1
Function at 0x14007ccd0
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov r14, qword [rsp + 0xd0]
mov r12d, dword [rsp + 0xd8]
mov r15, qword [rsp + 0xe0]
mov rsi, rcx
mov rbx, rdx
mov rdi, r8
mov ebp, r9d
test byte [rdx + 0x59], 0x20
jne 0x14007cd3d
cmp r12d, 0x10
je 0x14007cec0
cmp r12d, 0x1c
jne 0x14007cee0
mov rdx, qword [0x140234290]
mov rcx, rbx
xor r9d, r9d
mov r8d, r12d
call fcn.14007b820
mov ecx, eax
test eax, eax
jne 0x14007ce81
pxor xmm0, xmm0
lea rax, [rsi + 0x40]
mov r13, qword [rbx + 8]
mov r8d, ebp
movups xmmword [rsi + 0x40], xmm0
lea r9, [rsp + 0x5c]
mov rdx, rdi
movups xmmword [rsi + 0x50], xmm0
mov rcx, qword [rbx + 0x70]
mov dword [rsi + 8], 5
mov qword [rsi + 0x70], rbx
mov qword [rsi + 0x78], r15
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
jne 0x14007ce60
mov eax, dword [rbx + 0x58]
test eax, 0x20000
jne 0x14007ce10
mov edx, ebp
mov rcx, rdi
call fcn.140084620
mov qword [rsi + 0x60], rax
add qword [rbx + 0x60], rax
mov eax, dword [rbx + 0x7c]
add dword [rbx + 0x78], 1
lea edx, [rax + 1]
add qword [rbx + 0x68], 1
mov dword [rbx + 0x7c], edx
test eax, eax
jne 0x14007cdf0
mov eax, dword [rbx + 0x58]
test al, 4
jne 0x14007cdf0
mov edx, eax
or edx, 4
mov dword [rbx + 0x58], edx
test al, 8
je 0x14007cdf0
mov rax, qword [rbx + 8]
add dword [rax + 8], 1
nop word [rax + rax]
add dword [r13 + 0x20], 1
xor eax, eax
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [rbx + 0x7c]
mov qword [rsi + 0x60], 0
add dword [rbx + 0x78], 1
lea ecx, [rdx + 1]
add qword [rbx + 0x68], 1
mov dword [rbx + 0x7c], ecx
mov ecx, eax
and ecx, 4
or ecx, edx
je 0x14007cea0
mov rax, qword [r13 + 0x48]
add dword [r13 + 0x20], 1
mov qword [rsi + 0x68], 0
test rax, rax
je 0x14007ced0
mov rdx, qword [rax + 0x68]
mov qword [rsi + 0x68], rdx
mov qword [rax + 0x68], rsi
mov qword [r13 + 0x48], rsi
jmp 0x14007cdf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14007cda7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
test eax, eax
je 0x14007cdf5
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140060690
mov edx, eax
or edx, 4
mov dword [rbx + 0x58], edx
test al, 8
je 0x14007ce33
mov rax, qword [rbx + 8]
add dword [rax + 8], 1
jmp 0x14007ce33
mov rdx, qword [0x140234280]
jmp 0x14007cd25
mov qword [rsi + 0x68], rsi
mov qword [r13 + 0x48], rsi
jmp 0x14007cdf5
mov eax, 0xfffff019
jmp 0x14007cdf7