joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f59a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r15
sub rsp, 0x30
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
or r15d, 0xffffffff
mov edi, eax
cmp eax, r15d
jne 0x1400f5a77
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0x2733
jne 0x1400f59f0
call fcn.140150770
mov dword [rax], reloc.WS2_32.dll_inet_addr
jmp 0x1400f5a77
add eax, 0xffffd8be
cmp eax, 0xb
ja 0x1400f5a04
mov ecx, 0xcbd
bt ecx, eax
jb 0x1400f5a66
call fcn.1400ce5d0
mov rbp, rax
test rax, rax
je 0x1400f5a66
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call fcn.14014b850
mov rcx, rax
mov dword [rsp + 0x28], 0x107
lea rax, str.C:UsersUserDocumentsGitHubp2poolexternal_srclibzmq_src_tcp.cpp
mov r9d, ebx
mov r8, rbp
mov qword [rsp + 0x20], rax
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140024ee0
mov ecx, 2
call fcn.14014b850
mov rcx, rax
call fcn.14014bc20
mov rcx, rbp
call fcn.1400cec20
call fcn.140150770
mov ecx, esi
mov rbx, rax
call fcn.1400ce920
mov dword [rbx], eax
mov rbx, qword [rsp + 0x40]
cmp edi, r15d
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
cmove edi, r15d
mov eax, edi
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret

Function at 0x1400f5b70
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, 0xffffffff
jne 0x1400f5c26
cmp eax, 0x2733
je 0x1400f5c38
lea ecx, [rax - 0x2742]
cmp ecx, 0xf
ja 0x1400f5bbd
mov edx, 0x841d
bt edx, ecx
jae 0x1400f5bbd
or eax, esi
jmp 0x1400f5c28
cmp eax, 0x2747
je 0x1400f5c38
call fcn.1400ce5d0
mov rdi, rax
test rax, rax
je 0x1400f5c26
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call fcn.14014b850
mov rcx, rax
mov dword [rsp + 0x28], 0xd3
lea rax, str.C:UsersUserDocumentsGitHubp2poolexternal_srclibzmq_src_tcp.cpp
mov r9d, ebx
mov r8, rdi
mov qword [rsp + 0x20], rax
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140024ee0
mov ecx, 2
call fcn.14014b850
mov rcx, rax
call fcn.14014bc20
mov rcx, rdi
call fcn.1400cec20
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
xor eax, eax
jmp 0x1400f5c28

Function at 0x1400f5d00
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
test edx, edx
jg 0x1400f5d15
xor eax, eax
jmp 0x1400f5d54
mov eax, 0x10624dd3
mov dword [rsp + 0x20], 4
imul edx
lea r9, [rsp + 0x48]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x48], edx
mov edx, 6
lea r8d, [rdx - 1]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400dc600
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400f5d60
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x30
mov r8d, 1
mov dword [rax - 0x18], 4
lea r9, [rax + 0x10]
mov dword [rax + 0x10], r8d
mov rdi, rcx
lea edx, [r8 + 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400dc600
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400f6860
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, [0x140187af0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x1400f694f
lea rdx, str.NtCancelIoFileEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400f694f
lea rdx, str.NtCreateFile
mov qword [0x1401da5c8], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400f694f
lea rdx, str.NtCreateKeyedEvent
mov qword [0x1401da5d0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400f694f
lea rdx, str.NtDeviceIoControlFile
mov qword [0x1401da5d8], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400f694f
lea rdx, str.NtReleaseKeyedEvent
mov qword [0x1401da5e0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400f694f
lea rdx, str.NtWaitForKeyedEvent
mov qword [0x1401da5e8], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400f694f
lea rdx, str.RtlNtStatusToDosError
mov qword [0x1401da5f0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400f694f
mov qword [0x1401da5f8], rax
xor eax, eax
jmp 0x1400f6952
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
Function at 0x1400f8f20
Capabilities:
Get local ipv4 addresses

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor sil, sil
mov eax, 0x1c0
xor edi, edi
mov dword [r11 + 0x20], eax
mov r15, r8
mov r12, rdx
mov r14, rcx
lea r13d, [rdi + 2]
mov ecx, eax
call fcn.1401515b0
mov rbx, rax
test rax, rax
jne 0x1400f8fa6
mov ecx, r13d
call fcn.14014b850
mov rcx, rax
lea r8, str.C:UsersUserDocumentsGitHubp2poolexternal_srclibzmq_srcip_resolver.cpp
mov r9d, 0x27a
lea rdx, str.FATAL_ERROR:_OUT_OF_MEMORY___s:_d__n
call fcn.140024ee0
mov ecx, r13d
call fcn.14014b850
mov rcx, rax
call fcn.14014bc20
lea rcx, str.FATAL_ERROR:_OUT_OF_MEMORY
call fcn.1400cec20
xor r8d, r8d
lea rax, [rsp + 0x88]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r8 + 0xe]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov ebp, eax
cmp eax, 0x6f
jne 0x1400f8fe9
mov rcx, rbx
call fcn.1401509a0
xor ebx, ebx
inc edi
cmp edi, 0xa
jge 0x1400f8fe9
mov eax, dword [rsp + 0x88]
jmp 0x1400f8f57
test ebp, ebp
jne 0x1400f90e2
mov rdi, rbx
test rbx, rbx
je 0x1400f90d1
mov edx, dword [rdi + 4]
lea r8, [rsp + 0x30]
and qword [rsp + 0x30], 0
mov rcx, r14
and qword [rsp + 0x38], 0
call fcn.1400f8380
mov rdx, qword [rdi + 0x48]
lea r8, [rsp + 0x38]
mov rcx, r14
mov ebp, eax
call fcn.1400f9140
mov esi, eax
test ebp, ebp
jne 0x1400f9043
mov rdx, qword [rsp + 0x30]
mov rcx, r15
call fcn.140156100
test eax, eax
je 0x1400f9058
test esi, esi
jne 0x1400f9087
mov rdx, qword [rsp + 0x38]
mov rcx, r15
call fcn.140156100
test eax, eax
jne 0x1400f9087
mov rdx, qword [rdi + 0x18]
test rdx, rdx
je 0x1400f9087
mov al, byte [r14 + 0xa]
neg al
sbb r8d, r8d
and r8d, 0x15
add r8d, r13d
mov r9, qword [rdx + 0x10]
movzx eax, word [r9]
cmp eax, r8d
je 0x1400f90b2
mov rdx, qword [rdx + 8]
test rdx, rdx
jne 0x1400f9071
test ebp, ebp
jne 0x1400f9095
mov rcx, qword [rsp + 0x30]
call fcn.1401509a0
test esi, esi
jne 0x1400f90a3
mov rcx, qword [rsp + 0x38]
call fcn.1401509a0
mov rdi, qword [rdi + 8]
xor sil, sil
test rdi, rdi
jmp 0x1400f8ff7
cmp word [r9], r13w
mov eax, reloc.WS2_32.dll_recv
mov rdx, r9
mov rcx, r12
lea r8d, [rax + 0xc]
cmove r8d, eax
call fcn.140145200
mov sil, 1
mov rcx, rbx
call fcn.1401509a0
test sil, sil
je 0x1400f90e2
xor eax, eax
jmp 0x1400f90f0
call fcn.140150770
mov dword [rax], reloc.WS2_32.dll_send
or eax, 0xffffffff
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400fd320
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1401d4770]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rcx, r8
mov rbp, r8
mov rsi, rdx
call fcn.1400e9fc0
mov rcx, rax
mov rdi, rax
xor ebx, ebx
call fcn.1400f8370
cmp eax, 2
jne 0x1400fd385
mov eax, dword [rdi + 4]
mov rcx, rbp
mov dword [rsp + 0x30], eax
call fcn.1400e9bf0
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0x30]
xor edx, edx
mov ecx, dword [rax + 4]
mov dword [rsp + 0x34], ecx
jmp 0x1400fd412
mov rcx, rdi
call fcn.1400f8370
cmp eax, 0x17
jne 0x1400fd423
mov rcx, rbp
call fcn.1400e9c00
mov ebx, eax
cmp eax, 0xffffffff
jge 0x1400fd3f2
mov ecx, 2
call fcn.14014b850
mov rcx, rax
mov dword [rsp + 0x20], 0x130
lea r9, str.C:UsersUserDocumentsGitHubp2poolexternal_srclibzmq_srcudp_engine.cpp
lea r8, str.iface____1
lea rdx, str.Assertion_failed:__s___s:_d__n
call fcn.140024ee0
mov ecx, 2
call fcn.14014b850
mov rcx, rax
call fcn.14014bc20
lea rcx, str.iface____1
call fcn.1400cec20
movups xmm0, xmmword [rdi + 8]
mov dword [rsp + 0x48], ebx
lea r9, [rsp + 0x38]
mov dword [rsp + 0x20], reloc.WS2_32.dll_sendto
mov edx, 0x29
movdqu xmmword [rsp + 0x38], xmm0
mov r8d, reloc.WS2_32.dll_inet_ntoa
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
mov edx, ebx
mov rcx, rsi
call fcn.1400dc600
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140140c60
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400fe480
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov rcx, r9
test r8b, r8b
je 0x1400fe4a9
call fcn.1400e9c00
mov dword [rsp + 0x50], eax
test eax, eax
jle 0x1400fe4d9
lea edx, [rbx + 0x29]
jmp 0x1400fe4bb
call fcn.1400e9bf0
mov ecx, dword [rax + 4]
mov dword [rsp + 0x50], ecx
test ecx, ecx
je 0x1400fe4d9
xor edx, edx
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov r8d, 9
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
mov edx, ebx
mov rcx, rdi
call fcn.1400dc600
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400fe4f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
neg dl
movzx eax, r8b
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], eax
sbb edx, edx
mov dword [rsp + 0x20], 4
and edx, 0x29
mov r8d, reloc.WS2_32.dll_inet_addr
mov rdi, rcx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400dc600
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400fe540
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x18], r8d
push rdi
sub rsp, 0x30
neg dl
mov dword [rax - 0x18], 4
lea r9, [rax + 0x18]
mov r8d, 0xa
sbb edx, edx
mov rdi, rcx
and edx, 0x29
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400dc600
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400fe590
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
movzx eax, dl
lea r9, [rsp + 0x48]
mov r8d, 4
mov dword [rsp + 0x48], eax
mov edx, 0xffff
mov dword [rsp + 0x20], r8d
mov rdi, rcx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400dc600
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140103d40
Capabilities:
Send data
Send data on socket

Disassembly:
mov rcx, qword [rcx + 0x578]
jmp fcn.1400f5b70
Function at 0x1401089c0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
cmp qword [rdx + 0x18], 0xff
mov rdi, rdx
mov r14, rcx
jbe 0x140108a2f
mov ecx, 2
call fcn.14014b850
mov rcx, rax
mov dword [rsp + 0x20], 0xd0
lea r9, str.C:UsersUserDocumentsGitHubp2poolexternal_srclibzmq_src_socks.cpp
lea r8, str.req_.hostname.size______UINT8_MAX
lea rdx, str.Assertion_failed:__s___s:_d__n
call fcn.140024ee0
mov ecx, 2
call fcn.14014b850
mov rcx, rax
call fcn.14014bc20
lea rcx, str.req_.hostname.size______UINT8_MAX
call fcn.1400cec20
and qword [rsp + 0x80], 0
lea rbx, [r14 + 0x10]
xor edx, edx
mov byte [rbx], 5
mov al, byte [rdi]
lea rcx, [rsp + 0x30]
mov byte [rbx + 1], al
mov byte [rbx + 2], 0
lea r8d, [rdx + 0x30]
call fcn.140145ba0
lea rsi, [rdi + 8]
mov dword [rsp + 0x30], 4
cmp qword [rsi + 0x18], 0x10
mov rcx, rsi
jb 0x140108a71
mov rcx, qword [rsi]
lea r9, [rsp + 0x80]
xor edx, edx
lea r8, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
jne 0x140108ae0
mov rdx, qword [rsp + 0x80]
cmp dword [rdx + 4], 2
jne 0x140108ab9
mov rdx, qword [rdx + 0x20]
lea r8d, [rax + 4]
add rdx, 4
mov byte [rbx + 3], 1
lea rcx, [rbx + 4]
call fcn.140145200
add rbx, 8
jmp 0x140108b0f
cmp dword [rdx + 4], 0x17
jne 0x140108ae0
mov rdx, qword [rdx + 0x20]
lea rcx, [rbx + 4]
add rdx, 8
mov byte [rbx + 3], 4
mov r8d, reloc.WS2_32.dll_recv
call fcn.140145200
add rbx, 0x14
jmp 0x140108b0f
mov byte [rbx + 3], 3
mov al, byte [rdi + 0x18]
mov byte [rbx + 4], al
add rbx, 5
cmp qword [rsi + 0x18], 0x10
jb 0x140108af8
mov rsi, qword [rsi]
mov r8, qword [rdi + 0x18]
mov rdx, rsi
mov rcx, rbx
call fcn.140145200
add rbx, qword [rdi + 0x18]
test ebp, ebp
jne 0x140108b1d
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov al, byte [rdi + 0x29]
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x30]
mov byte [rbx], al
inc rbx
mov al, byte [rdi + 0x28]
mov byte [rbx], al
sub rbx, r14
sub rbx, 0xf
and qword [r14 + 8], 0
mov qword [r14], rbx
mov rbx, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14010bc10
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
mov edx, 0xfffff027
cmp eax, 0xffffffff
mov dword [rbx], eax
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x14010be50
Capabilities:
Create thread
Get system information on windows
Resume thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x60
test byte [rdx], 1
mov rbp, r9
mov r14, r8
mov rsi, rcx
je 0x14010beae
mov rbx, qword [rdx + 8]
test rbx, rbx
je 0x14010beb0
lea rcx, [rax - 0x38]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rsp + 0x34]
dec rbx
add rbx, rax
dec rax
not rax
and rbx, rax
mov eax, ebx
cmp rax, rbx
je 0x14010beb0
mov eax, 0xfffff019
jmp 0x14010bf3f
xor ebx, ebx
mov ecx, 0x18
call fcn.14010c380
mov rdi, rax
test rax, rax
jne 0x14010bec9
mov eax, 0xfffff027
jmp 0x14010bf3f
and qword [rsp + 0x28], 0
lea r8, [0x14010bb50]
mov r9, rdi
mov dword [rsp + 0x20], 4
mov edx, ebx
mov qword [rax], r14
xor ecx, ecx
mov qword [rax + 8], rbp
call fcn.140151410
test rax, rax
jne 0x14010bf2d
call fcn.140150770
mov rcx, rdi
mov ebx, dword [rax]
call fcn.14010c1f0
test ebx, ebx
je 0x14010bf3d
cmp ebx, 0xb
je 0x14010bf26
cmp ebx, 0xd
je 0x14010bf1f
cmp ebx, 0x16
je 0x14010bea4
mov eax, 0xfffff01a
jmp 0x14010bf3f
mov eax, 0xfffff004
jmp 0x14010bf3f
mov eax, 0xfffff008
jmp 0x14010bf3f
mov qword [rsi], rax
mov rcx, rax
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14010da70
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1401d4770]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rcx
xor ebx, ebx
lea rcx, [0x1401da970]
call fcn.14010be10
lea eax, [rbx + 2]
xchg dword [0x1401da928], eax
lea r14d, [rbx + 1]
cmp eax, r14d
je 0x14010dac7
lea rcx, [0x1401da970]
call fcn.14010bde0
xor eax, eax
jmp 0x14010db80
mov qword [rsp + 0x30], rbx
lea rcx, str.conout_
mov r8d, 3
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14010db19
lea rdx, [0x1401da930]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14010db19
lock or dword [0x1401da92c], r14d
mov ebp, reloc.WS2_32.dll_listen
mov word [rsp + 0x48], r14w
mov ecx, ebp
mov dword [rsp + 0x4c], r14d
xor edx, edx
mov dword [rsp + 0x50], 0xd0001
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rsi + 0x110]
lea r9, [rsp + 0x40]
mov r8d, r14d
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x56], bp
mov dword [rsp + 0x58], ebx
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x14010db6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rdi, 0xffffffffffffffff
je 0x14010db7e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140140c60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14010e430
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x1401d4770]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, qword [rsp + 0xb8]
mov r15d, r9d
mov r14b, r8b
mov ebp, edx
mov rdi, rcx
cmp dword [rbx], 0
je 0x14010e469
or eax, 0xffffffff
jmp 0x14010e4d6
mov sil, byte [rsp + 0xb0]
mov rcx, qword [rdi + 0x110]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14010e48f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov byte [rsp + 0x28], sil
lea rdx, [rsp + 0x30]
mov r9b, r14b
mov dword [rsp + 0x20], r15d
mov r8d, ebp
mov rcx, rdi
call fcn.14010e390
mov rcx, qword [rdi + 0x110]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x14010e4d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x14010e471
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
jmp 0x14010e464
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140140c60
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14010e7e0
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401d4770]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov edx, dword [rcx + 0x58]
mov rbx, rcx
btr edx, 0xc
sub dword [rcx + 0x7c], 1
mov dword [rcx + 0x58], edx
mov ecx, edx
jne 0x14010e827
mov eax, edx
and al, 5
cmp al, 4
jne 0x14010e827
and ecx, 0xfffffffb
mov dword [rbx + 0x58], ecx
test cl, 8
je 0x14010e827
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov ecx, dword [rbx + 0x58]
bt ecx, 0x10
jae 0x14010e88b
bt ecx, 0x19
jae 0x14010e874
xor edx, edx
lea rcx, [rsp + 0x28]
lea r8d, [rdx + 0x14]
call fcn.140145ba0
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x20]
mov eax, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
mov word [rsp + 0x28], ax
lea r8d, [rax - 0xf]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x14010e88b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14010e88d
bt ecx, 0x15
jb 0x14010e88b
mov rcx, rbx
call fcn.14010da70
test eax, eax
jne 0x14010e88d
bts dword [rbx + 0x58], 0x15
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140140c60
add rsp, 0x50
pop rbx
ret

Function at 0x14010e8a0
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1401d4770]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx ebp, word [reloc.WS2_32.dll_getsockopt]
xor r14d, r14d
mov rdi, rdx
mov rsi, rcx
mov dword [rsp + 0x30], r14d
cmp dword [rdx], r14d
jne 0x14010e98b
mov rcx, qword [rcx + 0x110]
movzx edx, bp
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
je 0x14010e983
mov rcx, qword [rsi + 0x110]
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
je 0x14010e983
mov rcx, qword [rsi + 0x110]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14010e983
movsx eax, word [rsp + 0x38]
mov edx, 0x20
movsx r8d, word [rsp + 0x3a]
mov r9d, dword [rsp + 0x30]
mov rcx, qword [rsi + 0x110]
imul r8d, eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
je 0x14010e978
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
movzx edx, bp
mov rcx, qword [rsi + 0x110]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x14010e9ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x14010e906
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
or eax, 0xffffffff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140140c60
mov rbp, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x38]
mov dword [0x1401d4190], r14d
call fcn.14010ef50
mov rcx, qword [rsi + 0x110]
lea rdx, [0x1401da980]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
test eax, eax
je 0x14010e983
xor eax, eax
jmp 0x14010e98e
Function at 0x140110830
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
neg r9d
mov rdi, r8
mov rsi, rcx
sbb edx, edx
mov r9d, 0xff
and qword [rax - 0x10], 0
and edx, 0x80000
and dword [rax - 0x18], 0
add edx, 0x40040003
mov rcx, qword [rbx + 0x120]
mov eax, 0x10000
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rdi + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x140110894
xor eax, eax
jmp 0x1401108bc
mov rdx, qword [rsi + 0x38]
xor r9d, r9d
mov r8, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x1401108cc
mov rax, qword [rdi + 0x70]
mov qword [rbx + 0x118], rax
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [0x14018a948]
call fcn.14011bf20
int3

Function at 0x1401110b0
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
test r9d, r9d
jne 0x140111104
call fcn.140110830
test eax, eax
jne 0x140111104
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1401110ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1401110fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
jmp 0x140111179
xor edx, edx
lea r14, [rbx + 0x40]
mov rcx, r14
lea r8d, [rdx + 0x20]
call fcn.140145ba0
mov rcx, qword [rbx + 0x70]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1401111a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1401111a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x140111145
xor eax, eax
jmp 0x140111176
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rbx + 0x70], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140111166
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140111174
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [r14], rax
and qword [rbx + 0x68], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x140111199
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x14011119d
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret