joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bca50
Capabilities:
Connect socket

Disassembly:
cmp dword [rcx + 0x10], 0xf
jne 0x1400a96a0
test rdx, rdx
jne 0x1400a966f
test dword [rcx + 0x58], 0x2000000
jne 0x1400a966a
mov eax, 0xfffff02b
ret
jmp 0x1400bcb10
movzx eax, word [rdx]
cmp ax, 2
jne 0x1400a9680
mov r8d, select
jmp 0x1400a968c
cmp ax, 0x17
jne 0x1400a96a0
mov r8d, 0x1c
test dword [rcx + 0x58], 0x2000000
je 0x1400a969b
mov eax, 0xfffff01b
ret
jmp 0x1400bca50
mov eax, 0xfffff019
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
test dword [rcx + 0x58], 0x2000
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
jne 0x1400bcac3
cmp r8d, 0x10
jne 0x1400bca80
lea rdx, [0x1403c19e0]
jmp 0x1400bca8c
cmp edi, 0x1c
jne 0x1400bcaae
lea rdx, [0x1403c19c0]
xor r9d, r9d
call fcn.1400bcd20
test eax, eax
je 0x1400bcac3
mov ecx, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400b5700
mov eax, 0xfffff019
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x70]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1400bcaf3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400b5700
or dword [rbx + 0x58], 0x2000000
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0xb0
mov rax, qword [0x140136348]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov rbx, rcx
mov r8d, 0x80
mov rcx, qword [rcx + 0x70]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1400bcb87
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400b5700
jmp 0x1400bcb90
and dword [rbx + 0x58], 0xfdffffff
xor eax, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400cb6d0
add rsp, 0xb0
pop rbx
ret
Function at 0x1400bcb10
Capabilities:
Connect socket

Disassembly:
cmp dword [rcx + 0x10], 0xf
jne 0x1400a96a0
test rdx, rdx
jne 0x1400a966f
test dword [rcx + 0x58], 0x2000000
jne 0x1400a966a
mov eax, 0xfffff02b
ret
jmp 0x1400bcb10
movzx eax, word [rdx]
cmp ax, 2
jne 0x1400a9680
mov r8d, select
jmp 0x1400a968c
cmp ax, 0x17
jne 0x1400a96a0
mov r8d, 0x1c
test dword [rcx + 0x58], 0x2000000
je 0x1400a969b
mov eax, 0xfffff01b
ret
jmp 0x1400bca50
mov eax, 0xfffff019
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
test dword [rcx + 0x58], 0x2000
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
jne 0x1400bcac3
cmp r8d, 0x10
jne 0x1400bca80
lea rdx, [0x1403c19e0]
jmp 0x1400bca8c
cmp edi, 0x1c
jne 0x1400bcaae
lea rdx, [0x1403c19c0]
xor r9d, r9d
call fcn.1400bcd20
test eax, eax
je 0x1400bcac3
mov ecx, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400b5700
mov eax, 0xfffff019
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x70]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1400bcaf3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400b5700
or dword [rbx + 0x58], 0x2000000
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0xb0
mov rax, qword [0x140136348]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov rbx, rcx
mov r8d, 0x80
mov rcx, qword [rcx + 0x70]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1400bcb87
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400b5700
jmp 0x1400bcb90
and dword [rbx + 0x58], 0xfdffffff
xor eax, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400cb6d0
add rsp, 0xb0
pop rbx
ret
Function at 0x1400bcd20
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rdi
push r12
push r15
sub rsp, 0x48
test dword [rcx + 0x58], 0x2000
mov r15d, r9d
mov r12d, r8d
mov dword [rsp + 0x30], 0
mov rdi, rdx
mov rbx, rcx
je 0x1400bcd55
xor eax, eax
add rsp, 0x48
pop r15
pop r12
pop rdi
pop rbx
ret
mov qword [rsp + 0x80], rsi
mov esi, r15d
and esi, 1
je 0x1400bcd75
cmp word [rdx], 0x17
je 0x1400bcd75
mov eax, 0x57
jmp 0x1400bce6e
cmp qword [rcx + 0x70], 0xffffffffffffffff
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x40], r14
jne 0x1400bcdce
movzx ecx, word [rdx]
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.WS2_32.dll_socket]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400bce53
movzx r9d, word [rdi]
mov r8, rax
mov rcx, qword [rbx + 8]
mov rdx, rbx
call fcn.1400bd1a0
mov r14d, eax
test eax, eax
je 0x1400bcdce
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, r14d
jmp 0x1400bce64
test r15b, 4
je 0x1400bce03
mov rcx, qword [rbx + 0x70]
lea r9, [rsp + 0x70]
mov edx, 0xffff
mov dword [rsp + 0x70], 1
mov r8d, 4
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400bce53
movzx eax, word [rdi]
cmp ax, 0x17
jne 0x1400bce3e
or dword [rbx + 0x58], 0x400000
movzx eax, word [rdi]
cmp ax, 0x17
jne 0x1400bce3e
test esi, esi
jne 0x1400bce3e
mov rcx, qword [rbx + 0x70]
lea r9, [rsp + 0x30]
lea edx, [rsi + 0x29]
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 0x1b]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x70]
mov r8d, r12d
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1400bce5b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400bce64
or dword [rbx + 0x58], 0x2000
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x80]
add rsp, 0x48
pop r15
pop r12
pop rdi
pop rbx
ret
Function at 0x1400bd1a0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x2d0
mov rax, qword [0x140136348]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
cmp qword [rdx + 0x70], 0xffffffffffffffff
mov esi, r9d
mov rdi, r8
mov dword [rsp + 0x30], 1
mov rbx, rdx
mov rbp, rcx
je 0x1400bd1e6
mov eax, 0xfffff00e
jmp 0x1400bd2cc
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x1400bd209
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400bd2cc
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x1400bd228
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400bd2cc
mov rdx, qword [rbp + 0x38]
xor r9d, r9d
mov r8, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x1400bd21d
lea rax, [rsp + 0x34]
mov dword [rsp + 0x34], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1400bd21d
cmp dword [rsp + 0x68], 1
jne 0x1400bd2ba
mov dl, 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x1400bd2ab
or dword [rbx + 0x58], 0x20000
lea rax, [0x1400cacd0]
mov qword [rbx + 0x198], rax
lea rax, [0x1400cae70]
mov qword [rbx + 0x1a0], rax
jmp 0x1400bd2ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
jne 0x1400bd21d
mov qword [rbx + 0x70], rdi
cmp esi, 0x17
jne 0x1400bd2ca
or dword [rbx + 0x58], 0x400000
xor eax, eax
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.1400cb6d0
mov rbx, qword [rsp + 0x308]
add rsp, 0x2d0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400bd2f0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0xf8
mov rax, qword [0x140136348]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rsi, r9
mov r14d, r8d
mov rbp, rdx
mov rdi, rcx
test r9, r9
je 0x1400bd33a
lea rdx, [rsp + 0x60]
mov rcx, r9
call fcn.1400ca480
test eax, eax
jne 0x1400bd3ec
lea rsi, [rsp + 0x60]
cmp qword [rdi + 0x68], 0
je 0x1400bd34b
mov eax, 0xfffff008
jmp 0x1400bd3ec
test dword [rdi + 0x58], 0x2000
mov qword [rsp + 0xf0], rbx
mov ebx, dword [rsp + 0x140]
jne 0x1400bd39f
cmp ebx, 0x10
jne 0x1400bd371
lea rdx, [0x1403c19e0]
jmp 0x1400bd37d
cmp ebx, 0x1c
jne 0x1400bd398
lea rdx, [0x1403c19c0]
xor r9d, r9d
mov r8d, ebx
mov rcx, rdi
call fcn.1400bcd20
test eax, eax
je 0x1400bd39f
mov ecx, eax
call fcn.1400b5700
jmp 0x1400bd3e4
mov eax, 0xfffff019
jmp 0x1400bd3e4
mov rcx, qword [rdi + 0x70]
lea r9, [rsp + 0x50]
xor eax, eax
mov r8d, r14d
mov qword [rsp + 0x40], rax
mov rdx, rbp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
je 0x1400bd3e0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400b5700
jmp 0x1400bd3e4
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400cb6d0
add rsp, 0xf8
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400bd560
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0x70]
mov dword [rsp + 0x48], edx
cmp rcx, 0xffffffffffffffff
jne 0x1400bd57c
mov eax, 0xfffff00d
add rsp, 0x38
ret
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x20
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400bd5b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400b5700
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400bd5c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x140136348]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbp, rdx
mov rsi, r8
mov rdi, rcx
lea r8, [rsp + 0x50]
mov rcx, rbp
xor edx, edx
mov ebx, r9d
call fcn.1400a8c60
test eax, eax
jne 0x1400bd6b7
test dword [rdi + 0x58], 0x400000
jne 0x1400bd764
lea r9d, [rax + 4]
mov rcx, rdi
lea r8d, [rax + 0x10]
lea rdx, [0x1403c19e0]
call fcn.1400bcd20
test eax, eax
jne 0x1400bd6a4
mov qword [rsp + 0x30], 0
test rsi, rsi
je 0x1400bd653
lea r8, [rsp + 0x34]
mov rdx, rsi
lea ecx, [rax + 2]
call fcn.1400c9150
test eax, eax
je 0x1400bd65f
jmp 0x1400bd769
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x30], eax
test ebx, ebx
je 0x1400bd67a
cmp ebx, 1
jne 0x1400bd764
lea r8d, [rbx + 0xb]
jmp 0x1400bd680
mov r8d, reloc.WS2_32.dll_listen
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0x30]
xor edx, edx
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400bd6b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400b5700
jmp 0x1400bd769
xor eax, eax
jmp 0x1400bd769
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, rbp
call fcn.1400a8cd0
test eax, eax
jne 0x1400bd764
mov eax, dword [rdi + 0x58]
and eax, 0x402000
cmp eax, 0x2000
je 0x1400bd764
mov r9d, 4
lea rdx, [0x1403c19c0]
mov rcx, rdi
lea r8d, [r9 + 0x18]
call fcn.1400bcd20
test eax, eax
jne 0x1400bd6a4
test rsi, rsi
je 0x1400bd723
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, rsi
call fcn.1400a8cd0
test eax, eax
jne 0x1400bd764
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x48], eax
jmp 0x1400bd72b
mov dword [rsp + 0x48], 0
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rsp + 0x38], xmm0
test ebx, ebx
je 0x1400bd747
cmp ebx, 1
jne 0x1400bd764
lea r8d, [rbx + 0xb]
jmp 0x1400bd74d
mov r8d, reloc.WS2_32.dll_listen
mov dword [rsp + 0x20], shutdown
lea r9, [rsp + 0x38]
mov edx, 0x29
jmp 0x1400bd68f
mov eax, 0xfffff019
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400cb6d0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400bd790
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140136348]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0x1400bd859
xorps xmm0, xmm0
xor eax, eax
test dword [rcx + 0x58], 0x400000
movups xmmword [rsp + 0x32], xmm0
movups xmmword [rsp + 0x42], xmm0
movups xmmword [rsp + 0x52], xmm0
movups xmmword [rsp + 0x62], xmm0
movups xmmword [rsp + 0x72], xmm0
mov qword [r11 - 0x26], rax
movups xmmword [r11 - 0x46], xmm0
mov dword [r11 - 0x1e], eax
movups xmmword [r11 - 0x36], xmm0
mov word [r11 - 0x1a], ax
je 0x1400bd80e
mov eax, reloc.WS2_32.dll_socket
mov dword [rsp + 0x48], edx
mov word [rsp + 0x30], ax
jmp 0x1400bd829
mov eax, 2
xor ecx, ecx
mov word [rsp + 0x30], ax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x34], eax
movzx eax, word [rsp + 0x30]
mov rcx, qword [rdi + 0x70]
cmp rcx, 0xffffffffffffffff
jne 0x1400bd886
mov eax, 0xfffff00d
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400cb6d0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop rdi
ret
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rbx
call fcn.1400a8c60
test eax, eax
je 0x1400bd824
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rbx
call fcn.1400a8cd0
test eax, eax
je 0x1400bd824
mov eax, 0xfffff019
jmp 0x1400bd838
cmp ax, 2
jne 0x1400bd8be
lea r9, [rsp + 0x34]
xor edx, edx
mov r8d, 9
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400bd8d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400b5700
jmp 0x1400bd838
cmp ax, 0x17
jne 0x1400bd8d7
lea r9, [rsp + 0x48]
mov edx, 0x29
jmp 0x1400bd893
xor eax, eax
jmp 0x1400bd838
call fcn.1400d7068
int3

Function at 0x1400bd8e0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x70]
mov dword [rsp + 0x48], edx
cmp rax, 0xffffffffffffffff
jne 0x1400bd8fc
mov eax, 0xfffff00d
add rsp, 0x38
ret
test dword [rcx + 0x58], 0x400000
lea r9, [rsp + 0x48]
mov rcx, rax
mov dword [rsp + 0x20], 4
mov r8d, listen
jne 0x1400bd939
xor edx, edx
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400bd95a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400b5700
add rsp, 0x38
ret
mov edx, 0x29
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400bd95a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400b5700
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400bd970
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
lea eax, [rdx + 1]
mov dword [rsp + 0x48], edx
mov r8, rcx
cmp eax, 0x100
ja 0x1400bd9fc
mov rcx, qword [rcx + 0x70]
cmp rcx, 0xffffffffffffffff
jne 0x1400bd999
mov eax, 0xfffff00d
add rsp, 0x38
ret
test dword [r8 + 0x58], 0x400000
lea r9, [rsp + 0x48]
mov r8d, 0xa
mov dword [rsp + 0x20], 4
jne 0x1400bd9d4
xor edx, edx
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400bd9f5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400b5700
add rsp, 0x38
ret
mov edx, 0x29
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400bd9f5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400b5700
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret
mov eax, 0xfffff019
add rsp, 0x38
ret
Function at 0x1400bdc90
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
lea eax, [rdx - 1]
mov dword [rsp + 0x48], edx
mov r8, rcx
cmp eax, 0xfe
ja 0x1400bdd1e
mov rcx, qword [rcx + 0x70]
cmp rcx, 0xffffffffffffffff
jne 0x1400bdcb9
mov eax, 0xfffff00d
add rsp, 0x38
ret
test dword [r8 + 0x58], 0x400000
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
jne 0x1400bdcf2
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400bdd17
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400b5700
add rsp, 0x38
ret
mov edx, 0x29
lea r8d, [rdx - 0x14]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400bdd17
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400b5700
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret
mov eax, 0xfffff019
add rsp, 0x38
ret

Function at 0x1400beec0
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140136348]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0xb8]
mov esi, r9d
movzx ebp, r8b
mov edi, edx
mov rbx, rcx
cmp dword [r14], 0
je 0x1400beefe
mov eax, 0xffffffff
jmp 0x1400bf027
mov qword [rsp + 0x58], r12
xor r12d, r12d
mov qword [rsp + 0x50], r15
movzx r15d, byte [rsp + 0xb0]
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x1400bef33
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
movsx eax, word [rsp + 0x34]
mov edx, edi
movsx r8d, word [rsp + 0x38]
movsx r11d, word [rsp + 0x28]
sub r8d, eax
mov eax, dword [0x140136308]
inc r8d
movsx r9d, word [rsp + 0x2e]
mov dword [0x140136310], r11d
mov dword [0x14013630c], r8d
cmp eax, 0xffffffff
jne 0x1400bef70
mov eax, r9d
jmp 0x1400bef7d
mov ecx, r9d
sub ecx, r8d
inc ecx
cmp eax, ecx
cmovl eax, ecx
movsx r10d, word [rsp + 0x2a]
lea ecx, [r8 + rax]
cmp ecx, r10d
jle 0x1400bef92
mov eax, r10d
sub eax, r8d
test eax, eax
lea ecx, [r9 + rsi]
cmovs eax, r12d
mov dword [0x140136308], eax
test r15b, r15b
jne 0x1400befaa
lea ecx, [rax + rsi]
cmp ecx, eax
jge 0x1400befb2
mov ecx, eax
jmp 0x1400befbf
lea r9d, [r8 + rax]
cmp ecx, r9d
jl 0x1400befbf
lea ecx, [r9 - 1]
test bpl, bpl
je 0x1400befcb
movsx edx, word [rsp + 0x2c]
add edx, edi
test edx, edx
jns 0x1400befd4
mov edx, r12d
jmp 0x1400befdd
cmp edx, r11d
jl 0x1400befdd
lea edx, [r11 - 1]
mov word [rsp + 0x22], cx
mov rcx, qword [rbx + 0x110]
mov word [rsp + 0x20], dx
mov edx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x1400bf01b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x1400bef14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov eax, 0xffffffff
jmp 0x1400bf01d
xor eax, eax
mov r12, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400cb6d0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400bf310
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x140136348]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov ecx, dword [rcx + 0x58]
btr ecx, 0xc
mov eax, ecx
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], ecx
jne 0x1400bf35b
test cl, 1
jne 0x1400bf35b
test cl, 4
je 0x1400bf35b
and eax, 0xfffffffb
mov dword [rbx + 0x58], eax
test al, 8
je 0x1400bf35b
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov eax, dword [rbx + 0x58]
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0x88], rdi
bt eax, 0x10
jae 0x1400bf3ed
bt eax, 0x19
jae 0x1400bf3b6
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x40]
xor eax, eax
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x70], eax
xorps xmm0, xmm0
mov eax, select
movups xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x60], ax
lea r8d, [rax - 0xf]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x1400bf3ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400bf3ef
bt eax, 0x15
jb 0x1400bf3ed
lea rcx, [0x1403c0458]
xor edi, edi
call fcn.1400c9c80
mov eax, 2
xchg dword [0x1403c0410], eax
cmp eax, 1
je 0x1400bf415
lea rcx, [0x1403c0458]
call fcn.1400c9c50
or dword [rbx + 0x58], 0x200000
xor eax, eax
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400cb6d0
add rsp, 0x90
pop rbx
ret
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0xb0], rsi
lea rcx, str.conout_
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov qword [rsp + 0x80], r14
lea r8d, [r9 + 3]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400bf478
lea rdx, [0x1403c0418]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1400bf478
lock or dword [0x1403c0414], 1
mov ebp, 1
mov dword [rsp + 0x50], 0xd0001
mov r14d, reloc.WS2_32.dll_listen
mov word [rsp + 0x48], bp
mov ecx, r14d
mov dword [rsp + 0x4c], ebp
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x44]
mov r8d, ebp
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x56], r14w
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov r14, qword [rsp + 0x80]
test eax, eax
jne 0x1400bf4dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rsi, 0xffffffffffffffff
je 0x1400bf4eb
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0xb0]
test edi, edi
je 0x1400bf3e6
mov eax, edi
jmp 0x1400bf3ef
Function at 0x1400c2d70
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov ecx, r8d
call fcn.1400e7c40
mov r8, rax
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400c2da0