joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401243e0
Capabilities:
Copy file

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov rsi, r9
mov rdi, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x38]
call fcn.140117d00
mov rax, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x140124453
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x20]
call fcn.140119c00
mov rax, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
cmp rax, rbx
jne 0x140124466
mov eax, 1
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 8], rax
mov qword [rbp], rdx
lea rcx, [rbp - 0x38]
mov rdx, rdi
mov r8, rsi
call fcn.140117d00
mov rax, qword [rbp - 0x38]
mov rsi, qword [rbp - 0x30]
cmp rax, rbx
je 0x1401244b4
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x20]
call fcn.140119c00
mov rdi, qword [rbp - 0x50]
mov rsi, qword [rbp - 0x48]
cmp rdi, rbx
jne 0x1401244e3
mov rcx, qword [rbp]
mov r14, qword [rbp - 8]
mov rdx, rsi
mov eax, 1
test r14, r14
je 0x140124458
mov rsi, rdx
mov edx, 2
call fcn.140055da0
mov eax, 1
mov rdx, rsi
jmp 0x140124458
mov qword [rbp - 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x1401245d0]
lea r9, [rbp - 0x20]
mov rcx, qword [rbp]
mov rbx, rcx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
mov r14, qword [rbp - 8]
je 0x14012455a
mov rdx, qword [rbp - 0x20]
test rdi, rdi
je 0x14012453b
mov rdi, rdx
mov edx, 2
mov rcx, rsi
call fcn.140055da0
mov rdx, rdi
test r14, r14
je 0x140124553
mov rsi, rdx
mov edx, 2
mov rcx, rbx
call fcn.140055da0
mov rdx, rsi
xor eax, eax
jmp 0x140124458
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
test rdi, rdi
je 0x140124581
mov rdi, rdx
mov edx, 2
mov rcx, rsi
call fcn.140055da0
mov rdx, rdi
mov rcx, rbx
jmp 0x1401244bf
Function at 0x140124920
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov eax, 1
test rcx, rcx
jne 0x140124aba
mov rax, qword [0x14041fa10]
cmp rax, 3
jne 0x140124a8b
mov rdi, rdx
cmp word [rdx], 0
mov eax, 2
mov esi, reloc.WS2_32.dll_socket
cmove esi, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, esi
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x1401249b0
cmp word [rdi], 0
je 0x140124a1d
movups xmm0, xmmword [rdi + 4]
mov ecx, dword [rdi + 0x14]
mov r9d, dword [rdi + 0x18]
movzx edx, word [rdi + 0x1c]
mov r8d, 0x1c
mov r10w, reloc.WS2_32.dll_socket
jmp 0x140124a32
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x1401249c9
mov edx, eax
cmp eax, 0x2726
jne 0x140124aad
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, esi
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x140124a82
mov rsi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x140124a9b
mov rax, rsi
cmp word [rdi], 0
jne 0x140124991
mov ecx, dword [rdi + 2]
movzx edx, word [rdi + 6]
xorps xmm0, xmm0
mov r8d, reloc.WS2_32.dll_recv
mov r10w, 2
rol dx, 8
mov word [rbp - 0x1c], r10w
mov word [rbp - 0x1a], dx
mov dword [rbp - 0x18], ecx
movups xmmword [rbp - 0x14], xmm0
mov dword [rbp - 4], r9d
lea rdx, [rbp - 0x1c]
mov rsi, rax
mov rcx, rax
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
je 0x140124a65
xor eax, eax
mov rdx, rsi
jmp 0x140124aba
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdx, rdi
jmp 0x140124ab5
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
jmp 0x140124aad
mov rsi, rdx
call fcn.1402e37d0
mov rdx, rsi
jmp 0x14012494b
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov edx, edi
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140127527
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x1401275c4
mov rdi, rax
lea rbx, [rsp + 0x30]
and qword [rbx], 0
mov qword [rbx + 8], 8
and qword [rbx + 0x10], 0
movsxd r12, dword [rsp + 0x2c]
shl r12, 3
xor r13d, r13d
lea r14, [rsp + 0x48]
cmp r12, r13
je 0x1401275a8
mov r15, qword [rdi + r13]
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.1400161e5
mov rcx, rbx
mov rdx, r14
call fcn.140015bae
add r13, 8
jmp 0x140127578
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
jmp 0x1401275d5
and qword [rsi], 0
mov qword [rsi + 8], 8
and qword [rsi + 0x10], 0
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14012a831
Capabilities:
Get memory capacity

Disassembly:
push rsi
push rdi
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rsi, rcx
xorps xmm6, xmm6
lea rdi, [rsp + 0x90]
movaps xmmword [rdi], xmm6
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
mov dword [rdi], 0x40
mov rcx, rdi
call sub.KERNEL32.dll_GlobalMemoryStatusEx
mov rax, qword [rdi + 8]
mov qword [rsi + 0x138], rax
mov rax, qword [rdi + 0x10]
mov qword [rsi + 0x140], rax
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x50], xmm6
movaps xmmword [rcx + 0x40], xmm6
movaps xmmword [rcx + 0x30], xmm6
movaps xmmword [rcx + 0x20], xmm6
movaps xmmword [rcx + 0x10], xmm6
movaps xmmword [rcx], xmm6
and qword [rcx + 0x60], 0
mov edx, 0x68
call sub.PSAPI.DLL_GetPerformanceInfo
cmp eax, 1
jne 0x14012a904
mov rdx, qword [rsp + 0x30]
mov r9, qword [rsp + 0x40]
xor r10d, r10d
sub rdx, r9
cmovb rdx, r10
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul rdx
mov r8, rax
mov r11, 0xffffffffffffffff
cmovo r8, r11
mov rdx, qword [rsp + 0x28]
sub rdx, r9
cmovb rdx, r10
mov rax, rcx
mul rdx
cmovo rax, r11
mov qword [rsi + 0x148], r8
mov qword [rsi + 0x150], rax
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rdi
pop rsi
ret
Function at 0x14012c638
Capabilities:
Reference wmi statements

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
and qword [rsp + 0x38], 0
mov rsi, rdx
mov rdi, rcx
cmp qword [rdx + 0x10], 0
je 0x14012c6fc
lea rcx, [0x1403aa228]
call sub.oleaut32.dll_SysAllocString
mov rbx, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.oleaut32.dll_SysAllocString
mov r14, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
and qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r14
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebp, eax
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
test ebp, ebp
js 0x14012c6fc
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x20]
mov rdx, qword [rsi + 0x28]
call fcn.14012a1f5
mov qword [rsi + 0x20], 1
mov qword [rsi + 0x28], rbx
mov rax, qword [rsi + 0x30]
mov qword [rdi + 0x30], rax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x28], rax
jmp 0x14012c70b
mov qword [rdi], 2
mov rcx, rsi
call fcn.14012a179
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x14012d0b2
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x34]
and dword [rax], 0
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9, rax
call sub.ADVAPI32.dll_RegQueryValueExW
nop
add rsp, 0x38
ret
Function at 0x140131024
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
mov r8, qword [rdx + 0x1a0]
add byte [rax], al
add byte [rax - 0x75], cl
mov dl, byte [rax + 0x48000001]
mov edx, dword [rdx + 0x198]
lea r9, [0x1403af3c8]
invalid
add al, ch
add bh, bh
invalid
push qword [rcx]
leave
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rcx + 0x30], xmm0
mov dword [rcx], edx
mov dword [rcx + 4], 1
mov qword [rcx + 8], rax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
lea rcx, [rdi + 0x218]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.Secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x140131194
test eax, eax
je 0x14013110c
cmp eax, 0x90317
je 0x14013118e
cmp eax, 0x90321
jne 0x1401311b2
mov dword [rdi + 0x1f8], 0x10000
xor ebx, ebx
mov byte [rdi + 0x1fc], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x1a0]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.140130fc5
and qword [rdi + 0x238], 0
mov byte [rsi + 1], bl
jmp 0x1401311c0
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x190]
mov rdx, qword [rdi + 0x198]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 0x168]
and qword [rdi + 0x178], 0
call fcn.1401311d4
lea r8, [rdx + rax]
mov rcx, rbx
mov rdx, rax
call fcn.1400c9b6f
and qword [rdi + 0x180], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x1a0]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.140130fc5
xor eax, eax
cmp qword [rdi + 0x1a0], rbx
sete al
mov qword [rdi + 0x238], rax
mov byte [rsi + 1], 0
jmp 0x1401311c0
mov byte [rsi + 1], 1
jmp 0x1401311ae
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x238], rax
add al, byte [rax]
add dh, al
add dword [rax], r8d
xor ebx, ebx
jmp 0x1401311c0
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0x70
add esp, 0x70
pop rbx
pop rdi
pop rsi
ret

Function at 0x14013123e
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp dword [rcx], 2
jne fcn.140131250
add rcx, 8
jmp fcn.14016c381
Function at 0x1401320d7
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
mov r8, qword [rdx + 0xa0]
mov rcx, qword [rdx + 0x90]
mov rdx, qword [rdx + 0x98]
mov edx, dword [rdx + 0x98]
lea r9, [0x1403af3c8]
call fcn.140130f54
xor ecx, ecx
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rcx + 0x30], xmm0
mov dword [rcx], edx
mov dword [rcx + 4], 1
add al, 1
add byte [rax], al
add byte [rax - 0x77], cl
or byte [r15], cl
adc dword [rcx + 0x10], eax
movups xmmword [rcx + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
mov dword [rdx + 8], ecx
lea rcx, [rdi + 0x118]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.Secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x140132241
test eax, eax
je 0x1401321bf
cmp eax, 0x90317
je 0x14013223b
cmp eax, 0x90321
jne 0x14013225f
test ebx, esp
add byte [rax], al
invalid
mov dword [rdi + 0xf8], 0x10000
xor ebx, ebx
fisttp dword [rax + 0xfc9f]
add byte [rbx + 0x554247c], al
mov rdx, qword [rdi + 0xa0]
mov eax, 0
add byte [rdi], cl
and al, 0x50
sub rdx, rax
mov rcx, rdi
call fcn.140132277
enter 0, 0
and qword [rdi + 0x138], 0
mov byte [rsi + 1], bl
jmp 0x14013226d
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x90]
mov rdx, qword [rdi + 0x98]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 0x68]
and qword [rdi + 0x78], 0
call fcn.1401311d4
lea r8, [rdx + rax]
mov rcx, rbx
mov rdx, rax
call fcn.1400c9b6f
and qword [rdi + 0x80], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0xa0]
mov eax, dword [rsp + 0x50]
and al, 0x50
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.140132277
add byte [rax], al
xor eax, eax
cmp qword [rdi + 0xa0], rbx
sete al
mov qword [rdi + 0x138], rax
mov byte [rsi + 1], 0
jmp 0x14013226d
mov byte [rsi + 1], 1
jmp 0x14013225b
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x138], rax
mov byte [rsi + 1], 0
xor ebx, ebx
jmp 0x14013226d
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
Function at 0x140137584
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp dword [rcx], 2
jne fcn.140137596
add rcx, 8
jmp fcn.14013123e

Function at 0x1401406de
Capabilities:
Encrypt data via sspi

Disassembly:
cmp dword [rcx], 2
jne fcn.140140205
add rcx, 8
jmp fcn.14013243e

Function at 0x14014832b
Capabilities:
Check for software breakpoints

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1b08
call fcn.1402dd6c0
sub rsp, rax
movaps xmmword [rsp + 0x1af0], xmm7
movaps xmmword [rsp + 0x1ae0], xmm6
mov rbx, rcx
mov rsi, qword [rdx + 8]
test rsi, rsi
je 0x1401490ca
mov r14, r8
mov r12, rdx
mov qword [rsp + 0x148], r9
mov rax, qword [0x140419468]
lea rdi, [rsp + 0x1e0]
and qword [rdi], 0
mov qword [rdi + 0x18], rax
add rax, 0x30
lea r15, [rsp + 0xe60]
mov qword [r15], 8
and qword [r15 + 8], 0
mov qword [r15 + 0x10], rax
mov rcx, rdi
mov rdx, r15
call fcn.14016d8fa
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rsp + 0x170], xmm0
movaps xmmword [rsp + 0x180], xmm1
xor eax, eax
cmp qword [rsp + 0x170], rax
je 0x1401483e8
lea r8, [rsp + 0x170]
mov rcx, qword [r8 + 8]
mov rdx, qword [r8 + 0x10]
call fcn.14016dab8
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x158], r14
lea rax, [r14 + 8]
mov qword [rsp + 0x150], rax
lea rbx, [rsp + 0x1e0]
xorps xmm6, xmm6
mov qword [rbx], 3
jmp 0x1401491f3
Function at 0x14016b130
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14016b137
test al, 1
je 0x14016b156
test al, 2
jne 0x14016b16e
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1403b1b18]
mov edx, 0x23
call fcn.1402df840
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1403b1b58]
mov edx, 0x25
call fcn.1402df840
int3
Function at 0x14017983a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsp
Function at 0x140196940
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x288], 0
je 0x14019695a
call fcn.140184278
test eax, eax
je 0x140196983
mov al, 1
jmp 0x140196985
mov rcx, qword [rcx + 0x1f0]
cmp rcx, 0xffffffffffffffff
je 0x140196983
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
jmp 0x140196985
xor al, al
add rsp, 0x28
ret

Function at 0x140196b90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x1c8
mov rax, qword [0x14041f880]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rdi, r8
mov rbx, rdx
mov r8d, 0x80
mov rsi, rcx
xor edx, edx
mov dword [rsp + 0x20], r8d
lea rcx, [rsp + 0x30]
mov rbp, r9
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140196c11
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.14017b068
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x140196c59
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rbp
mov r8, rdi
call fcn.1401967a8
test al, al
jne 0x140196c64
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.14017b068
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1401991f8
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1402dd7d0
add rsp, 0x1c8
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1401973cc
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov rbx, rcx
mov eax, dword [0x14041fd40]
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x140197428
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.1401aef28
test al, al
je 0x14019741d
mov dword [0x14041fd40], 2
jmp 0x14019747f
mov eax, 1
mov dword [0x14041fd40], eax
cmp eax, 2
je 0x14019747f
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14019745e
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14019747f
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x140198184
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14041f880]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x20], 4
cmp byte [rcx + 0xb1f], al
lea r9, [rsp + 0x50]
mov rdi, rdx
mov rbx, rcx
setne al
mov edx, 0xffff
mov r8d, 8
mov dword [rsp + 0x50], eax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1401981ee
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, rbx
call fcn.1401992c4
jmp 0x140198281
mov ecx, dword [rbx + 0xa84]
mov dword [rsp + 0x58], 1
call fcn.140199f6c
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xa88]
call fcn.140199f6c
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9d, listen
imul ecx, eax, 0x3e8
mov edx, 0x98000004
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140198281
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov r9d, eax
mov rcx, rbx
call fcn.1401992c4
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1402dd7d0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x140199120
Capabilities:
Write file on windows

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, 0x30
xor ebx, ebx
movsxd rsi, edx
mov rbp, r9
mov r14, r8
mov rdi, rcx
cmp byte [rcx + 0xb11], bl
je 0x1401991db
cmp qword [rcx + 0x278], rbx
je 0x14019918e
mov dl, 1
call fcn.14017c3a4
mov rax, qword [rdi + 0x1d8]
mov r9, rbp
mov r8, r14
mov qword [rsp + 0x20], rax
mov edx, esi
mov rcx, rdi
call qword [rdi + 0x278]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14017c3a4
jmp 0x1401991db
mov ecx, esi
test edx, edx
je 0x14019919e
sub ecx, 1
je 0x14019919e
cmp ecx, 1
jne 0x1401991db
mov r9, qword [rdi + 0x1d0]
lea rax, [0x1403e1a70]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1401993d4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x14019940d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
and qword [rbx], 0
mov ecx, 0x38
cmp eax, 0x2733
lea edx, [rcx + 0x19]
cmove ecx, edx
mov eax, ecx
jmp 0x140199412
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1401995c4
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x138
mov rax, qword [0x14041f880]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, qword [rcx + 0x18]
mov r14, rcx
mov rsi, qword [rsp + 0x1a0]
mov r13, r9
movsxd rcx, edx
mov r12, r8
mov rdi, rcx
or rdx, 0xffffffffffffffff
mov rax, qword [rbx + 0x428]
shl rdi, 5
mov r15, qword [rbx + rcx*8 + 0x1f0]
mov rbp, qword [rdi + rbx + 0x240]
sub rbp, qword [rdi + rbx + 0x248]
test byte [rax + 0x84], 3
je 0x1401996f3
lea rax, [0x14019944c]
cmp qword [rbx + rcx*8 + 0x218], rax
jne 0x1401996f3
cmp qword [rdi + rbx + 0x238], 0
je 0x140199662
test rbp, rbp
je 0x1401996f3
xor r9d, r9d
mov r8, rdx
mov rcx, r15
call fcn.140199db0
cmp eax, 0xffffffff
je 0x1401996f3
test al, 1
je 0x1401996f3
mov rcx, qword [rdi + rbx + 0x238]
test rcx, rcx
jne 0x1401996ca
mov eax, dword [r14 + 0x71c]
add eax, eax
movsxd rcx, eax
mov qword [rdi + rbx + 0x240], rcx
call qword [0x1404195d8]
mov qword [rdi + rbx + 0x238], rax
mov rcx, rax
test rax, rax
je 0x14019972a
and qword [rdi + rbx + 0x248], 0
and qword [rdi + rbx + 0x250], 0
mov rbp, qword [rdi + rbx + 0x240]
mov rdx, qword [rdi + rbx + 0x248]
xor r9d, r9d
add rdx, rcx
mov r8d, ebp
mov rcx, r15
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1401996f3
add qword [rdi + rbx + 0x248], rcx
xor r9d, r9d
mov r8d, r13d
mov rdx, r12
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
and dword [rsi], 0
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
jne 0x140199767
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140199736
xor edi, edi
mov dword [rsi], 0x51
jmp 0x140199767
mov dword [rsi], 0x1b
or rax, 0xffffffffffffffff
jmp 0x14019976a
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.14017b068
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, r14
call fcn.1401991f8
mov dword [r14 + 0xdd4], ebx
mov dword [rsi], 0x37
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1402dd7d0
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret