joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140073780
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 0x1400737e7
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 0x140073888
mov eax, dword [rbx + 0x58]
mov edx, dword [rbx + 0x78]
test eax, 0x20000
je 0x14007389c
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 0x14007392a
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 0x140073940
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 0x140073879
cmp qword [rbx + 0xf8], 0xffffffffffffffff
jne 0x140073879
mov rdx, qword [rbx + 0xf0]
lea rcx, [rbx + 0xf8]
mov dword [rsp + 0x28], 4
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
lea r8, [0x1400739e0]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x140073879
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
test eax, eax
jle 0x1400739a9
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 0x140073866
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 0x140073998
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 0x1400739a0
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 0x140073959
mov qword [rbx + 0xe8], rdi
jmp 0x140073983
call rbp
cdqe
jmp 0x14007390b
Function at 0x140073a60
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 0x140073c80
lea r8, [rsp + 0x34]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x140073b40
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x140073b28
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 0x140073b50
mov eax, dword [rsi + 0x58]
mov ecx, eax
and ecx, 0x80000
cmp edi, 0x17
je 0x140073c40
mov rdx, qword [0x1402342a0]
mov edx, dword [rdx]
or edx, ecx
je 0x140073c50
test eax, 0x1000000
jne 0x140073b6d
test eax, 0x2000000
jne 0x140073bad
mov qword [rsi + 0x110], rbx
cmp edi, 0x17
je 0x140073c30
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 0x140073b28
mov eax, dword [rsi + 0x58]
or eax, 0x80000
mov dword [rsi + 0x58], eax
test eax, 0x1000000
je 0x140073aff
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 0x140073c90
mov eax, dword [rsi + 0x58]
test eax, 0x2000000
je 0x140073b0a
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 0x140073c18
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140073b0a
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov edx, 6
mov rcx, rbx
mov r8d, 3
call rbp
cmp eax, 0xffffffff
jne 0x140073b0a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x140073b1c
jmp 0x140073b0a
or dword [rsi + 0x58], 0x400000
jmp 0x140073b1a
mov rdx, qword [0x1402342b0]
mov edx, dword [rdx]
jmp 0x140073af0
mov edx, 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x140073b28
mov eax, dword [rsi + 0x58]
or eax, 0x20000
mov dword [rsi + 0x58], eax
jmp 0x140073af8
mov eax, 0xfffff00e
jmp 0x140073b1c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x140073b1c
jmp 0x140073b9f
Function at 0x140073cb0
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 0x140073d10
cmp word [rsi], 0x17
je 0x140073d78
mov r8d, r12d
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140073dc0
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 0x140073d20
cmp ax, 0x17
jne 0x140073db0
movzx ecx, ax
xor r8d, r8d
mov edx, 1
call qword [sym.imp.WS2_32.dll_socket]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140073de8
mov rcx, qword [rbx + 8]
mov dword [rsp + 0x20], 0
mov r8, rax
mov rdx, rbx
movzx r9d, word [rsi]
call fcn.140073a60
mov edi, eax
test eax, eax
jne 0x140073e00
cmp word [rsi], 0x17
mov rcx, qword [rbx + 0x110]
jne 0x140073ce2
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 0x140073ce2
mov edi, 0x57
jmp 0x140073d00
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2740
jne 0x140073d00
mov dword [rbx + 0x118], 0x2740
jmp 0x140073cf7
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 0x140073d00
Function at 0x140074a60
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 0x1400749e0
mov eax, edx
or eax, 0x1004
and edx, 8
mov dword [rbx + 0x58], eax
jne 0x140074a10
nop dword [rax]
test eax, 0x10000
jne 0x140074a03
test eax, 0x80000
je 0x1400749f8
cmp qword [rbx + 0xf0], 0
je 0x140074a20
mov rdx, rbx
mov rcx, rsi
call fcn.140073780
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
add dword [rsi + 8], 1
jmp 0x1400749e0
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 0x1400749f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CreateEvent
mov ecx, eax
call fcn.140060590
nop
nop word cs:[rax + rax]
nop dword [rax]
sub rsp, 0x28
mov rax, qword [rcx + 0x110]
cmp rax, 0xffffffffffffffff
je 0x140074aa1
mov ecx, dword [rcx + 0x118]
test ecx, ecx
jne 0x140074a98
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140074a90
add rsp, 0x28
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
add rsp, 0x28
jmp fcn.1400605f0
mov eax, 0xfffff019
jmp 0x140074a88
Function at 0x140074df0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [rcx + 0x58]
test al, 1
jne 0x140073330
test ah, 0x80
je 0x140073340
mov eax, dword [rcx + 0x10]
cmp eax, 0xc
je 0x140073328
cmp eax, 0xe
je 0x140073320
cmp eax, 7
mov edx, 0xfffff02a
mov eax, 0xfffff008
cmovne eax, edx
ret
jmp fcn.14007b280
jmp 0x140074df0
mov eax, 0xfffff00d
ret
mov eax, 0xfffff031
ret
sub rsp, 0x58
mov eax, dword [rcx + 0x100]
test eax, eax
jne 0x140074e58
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 0x140074e40
add rsp, 0x58
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400605f0
add rsp, 0x58
ret
mov eax, 0xfffff008
jmp 0x140074e35
Function at 0x1400753b0
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 0x140075468
mov eax, dword [r8 + 0x40]
test eax, eax
js 0x140075434
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 0x140075430
mov rax, qword [rbx + 0x130]
mov qword [rsi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rsi
test rax, rax
je 0x1400754fb
xor edx, edx
mov rcx, rbx
call rax
mov edx, dword [rbx + 0x58]
jmp 0x14007544e
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 0x1400754f0
sub dword [rbx + 0x78], 1
jne 0x140075459
test dl, 1
jne 0x1400754d0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov edx, dword [rdx + 0x58]
test dl, 0x40
je 0x14007544e
mov ecx, edx
and ecx, 0xffffffbf
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], ecx
jne 0x1400754a0
test dl, 1
jne 0x1400754a0
test dl, 4
je 0x1400754a0
mov ecx, edx
and ecx, 0xffffffbb
and edx, 8
mov dword [rbx + 0x58], ecx
je 0x1400754a0
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
nop dword [rax]
cmp qword [rbx + 0x100], 0
mov edx, ecx
je 0x14007544e
mov ecx, dword [rsi + 0x40]
call fcn.14007f7a0
mov rsi, qword [rbx + 0x100]
mov ecx, eax
call fcn.1400605f0
mov rcx, rbx
mov edx, eax
call rsi
mov edx, dword [rbx + 0x58]
jmp 0x14007544e
test dl, 0x20
jne 0x140075459
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.140073440
mov edx, dword [rbx + 0x58]
jmp 0x14007544e
Function at 0x140075510
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 0x14007552e
mov eax, dword [rdx + 0x58]
test al, 1
je 0x1400755a0
mov rax, qword [rsi + 0x40]
sub dword [rdi + 0x20], 1
mov ecx, eax
test eax, eax
js 0x140075608
mov ecx, 0x3e3
test byte [rbx + 0x58], 1
je 0x1400755c8
mov rbp, qword [rsi + 0x70]
call fcn.1400605f0
mov rcx, rsi
mov edx, eax
call rbp
sub dword [rbx + 0x78], 1
mov edx, dword [rbx + 0x58]
jne 0x140075569
test dl, 1
jne 0x140075578
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
test dl, 0x20
jne 0x140075569
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 0x14007552e
mov edx, eax
and edx, 0xfffffffb
mov dword [rbx + 0x58], edx
test al, 8
je 0x14007552e
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x14007552e
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 0x140075618
or dword [rbx + 0x58], 0xc080
add dword [rdi + 0xa8], 1
jmp 0x14007554b
call fcn.14007f7a0
mov ecx, eax
jmp 0x14007554b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
jmp 0x14007554b
Function at 0x1400759f0
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 0x140075a30
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 0x140075a08
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x140075a22
jmp 0x140075a08
Function at 0x14007ad90
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 0x14007adb0
test cl, 1
je 0x14007ade0
test edx, 0x10000
je 0x14007adcc
test edx, 0x2000000
jne 0x14007ae00
and edx, 0x200000
je 0x14007ae50
xor eax, eax
add rsp, 0x70
pop rbx
pop rsi
pop rdi
ret
test cl, 4
je 0x14007adb0
mov edx, ecx
and edx, 0xffffeffb
and ecx, 8
mov dword [rbx + 0x58], edx
je 0x14007adb0
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x14007adb0
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 0x14007adcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14007adce
lea rsi, [0x140274eb8]
mov rcx, rsi
call fcn.14006e680
mov eax, 2
xchg dword [0x140274edc], eax
cmp eax, 1
je 0x14007ae88
mov rcx, rsi
call fcn.14006e650
or dword [rbx + 0x58], 0x200000
jmp 0x14007adcc
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 0x14007af58
lea rdx, [0x140274ec0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14007aff0
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 0x14007afd8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14007ae77
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 0x14007ae77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
test esi, esi
jne 0x14007adce
jmp 0x14007ae77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14007afc2
lock or dword [0x140274ed8], 1
jmp 0x14007aee1
Function at 0x14007b600
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 0x14007b770
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x14007b6e0
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x14007b6c8
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 0x14007b6c8
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 0x14007b6c8
cmp dword [rsp + 0x68], 1
je 0x14007b708
mov qword [rdi + 0x70], rbx
cmp esi, 0x17
je 0x14007b6f8
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 0x14007b6b3
mov edx, 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x14007b750
lea rax, [0x14007fb50]
lea rcx, [0x14007f9a0]
or dword [rdi + 0x58], 0x20000
movq xmm0, rcx
movq xmm1, rax
punpcklqdq xmm0, xmm1
movups xmmword [rdi + 0x198], xmm0
jmp 0x14007b6aa
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
cmp eax, 1
je 0x14007b6aa
call rbp
jmp 0x14007b6b5
mov eax, 0xfffff00e
jmp 0x14007b6b5
Function at 0x14007b780
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 0x14007b7f2
mov r13d, r9d
and r13d, 1
je 0x14007b7bc
cmp word [rdx], 0x17
mov edi, 0x57
jne 0x14007b7f4
mov rcx, qword [rbx + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x14007b878
and esi, 4
jne 0x14007b808
cmp word [rbp], 0x17
je 0x14007b842
mov r8d, r12d
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14007b8c0
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 0x14007b8c0
cmp word [rbp], 0x17
mov rcx, qword [rbx + 0x70]
jne 0x14007b7d6
or dword [rbx + 0x58], 0x400000
test r13d, r13d
jne 0x14007b7d6
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 0x14007b7d6
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 0x14007b8c0
mov rcx, qword [rbx + 8]
movzx r9d, word [rbp]
mov r8, rax
mov rdx, rbx
call fcn.14007b600
mov edi, eax
test eax, eax
jne 0x14007b8d0
mov rcx, qword [rbx + 0x70]
jmp 0x14007b7ca
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x14007b7f4
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14007b7f4
Function at 0x14007c360
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 0x14007c47d
mov dword [rsp + 0x30], 0
test ah, 0x20
jne 0x14007c439
mov rcx, qword [rcx + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x14007c4e0
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 0x14007c530
mov r12, qword [0x140234290]
cmp word [r12], 0x17
jne 0x14007c416
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 0x14007c530
or dword [rbx + 0x58], 0x2000
pxor xmm0, xmm0
mov dword [rsp + 0x40], 0
movaps xmmword [rsp + 0x30], xmm0
test rdi, rdi
je 0x14007c46a
xor edx, edx
lea r8, [rsp + 0x50]
mov rcx, rdi
call fcn.140084070
test eax, eax
jne 0x14007c47d
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x40], eax
movdqu xmm1, xmmword [rbp + 8]
movaps xmmword [rsp + 0x30], xmm1
test esi, esi
je 0x14007c490
cmp esi, 1
je 0x14007c4d0
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 0x14007c482
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400605f0
jmp 0x14007c482
mov r8d, 0xc
jmp 0x14007c496
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 0x14007c530
movzx r9d, word [r12]
mov rcx, qword [rbx + 8]
mov r8, rax
mov rdx, rbx
call fcn.14007b600
mov r12d, eax
test eax, eax
jne 0x14007c558
mov rcx, qword [rbx + 0x70]
jmp 0x14007c3ae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r12d, eax
test eax, eax
je 0x14007c439
mov ecx, r12d
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.1400605f0
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14007c541
Function at 0x14007cc30
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 0x14007cc9d
cmp r12d, 0x10
je 0x14007ce20
cmp r12d, 0x1c
jne 0x14007ce40
mov rdx, qword [0x140234290]
mov rcx, rbx
xor r9d, r9d
mov r8d, r12d
call fcn.14007b780
mov ecx, eax
test eax, eax
jne 0x14007cde1
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 0x14007cdc0
mov eax, dword [rbx + 0x58]
test eax, 0x20000
jne 0x14007cd70
mov edx, ebp
mov rcx, rdi
call fcn.140084580
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 0x14007cd50
mov eax, dword [rbx + 0x58]
test al, 4
jne 0x14007cd50
mov edx, eax
or edx, 4
mov dword [rbx + 0x58], edx
test al, 8
je 0x14007cd50
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 0x14007ce00
mov rax, qword [r13 + 0x48]
add dword [r13 + 0x20], 1
mov qword [rsi + 0x68], 0
test rax, rax
je 0x14007ce30
mov rdx, qword [rax + 0x68]
mov qword [rsi + 0x68], rdx
mov qword [rax + 0x68], rsi
mov qword [r13 + 0x48], rsi
jmp 0x14007cd55
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14007cd07
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
test eax, eax
je 0x14007cd55
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400605f0
mov edx, eax
or edx, 4
mov dword [rbx + 0x58], edx
test al, 8
je 0x14007cd93
mov rax, qword [rbx + 8]
add dword [rax + 8], 1
jmp 0x14007cd93
mov rdx, qword [0x140234280]
jmp 0x14007cc85
mov qword [rsi + 0x68], rsi
mov qword [r13 + 0x48], rsi
jmp 0x14007cd55
mov eax, 0xfffff019
jmp 0x14007cd57