joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011a8d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi

Function at 0x14011b1c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
sub esp, 0xa8
in al, dx
test al, 0
add byte [rax], al

Function at 0x14011c260
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x500
lea rbp, [rsp + 0x80]
add byte [rax - 0x77], cl
invalid
mov rbx, qword [rdx + 8]
pop rdx
or byte [rax - 0x7d], cl
cmp ebx, 0xffffffff

Function at 0x14011d4c0
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
lea rbp, [rsp + 0x70]

Function at 0x14011fe40
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x1e8
lea rbp, [rsp + 0x80]
and al, 0x80
add byte [rax], al
add byte [rax - 0x77], cl
ror byte [rax - 0x77], 1
invalid
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x166], ax
mov eax, dword [0x14042b9f0]
cmp eax, 3
jne 0x14012002e
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
add byte [rax], al
mov rbx, rdx
call fcn.1402ec620
mov rdx, rbx
jmp 0x14011fe7a

Function at 0x140120e20
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14042baa8]
mov edx, 0x10
xor ecx, ecx
call fcn.140121850
test rax, rax
je 0x140120eff
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140120fa0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140120ef1
mov rax, qword [rbx]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rax]
test rax, rax
je 0x140120eb7
mov rcx, qword [rbp - 0x18]
call rax
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
je 0x140120ecf
mov rdx, qword [rax + 0x10]
call fcn.140074820
mov edx, 8
mov rcx, qword [rbp - 0x20]
call fcn.140074820
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1402e7ea0
ud2
Function at 0x140126730
Capabilities:
Copy file

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rsi, r9
mov rdi, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x30]
call fcn.140119470
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov rcx, rax
neg rcx
jo 0x14012679d
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rdx
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x18]
call fcn.14011b410
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x40]
mov rax, rcx
neg rax
jno 0x1401267ae
mov eax, 1
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp + 8], rcx
mov qword [rbp], rdx
lea rcx, [rbp - 0x30]
mov rdx, rdi
mov r8, rsi
call fcn.140119470
mov rax, qword [rbp - 0x30]
mov rsi, qword [rbp - 0x28]
mov rcx, rax
neg rcx
jo 0x140126802
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x18]
call fcn.14011b410
mov rdi, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x40]
mov rax, rdi
neg rax
jno 0x140126831
mov rcx, qword [rbp]
mov rdx, rsi
mov r8, qword [rbp + 8]
mov eax, 1
test r8, r8
je 0x1401267a2
mov rsi, rdx
mov edx, 2
call fcn.140074820
mov eax, 1
mov rdx, rsi
jmp 0x1401267a2
mov qword [rbp - 0x18], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x140126920]
lea r9, [rbp - 0x18]
mov rcx, qword [rbp]
mov rbx, rcx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x1401268a6
mov rdx, qword [rbp - 0x18]
test rdi, rdi
je 0x140126885
mov rdi, rdx
mov edx, 2
mov rcx, rsi
call fcn.140074820
mov rdx, rdi
cmp qword [rbp + 8], 0
je 0x14012689f
mov rsi, rdx
mov edx, 2
mov rcx, rbx
call fcn.140074820
mov rdx, rsi
xor eax, eax
jmp 0x1401267a2
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
test rdi, rdi
je 0x1401268cd
mov rdi, rdx
mov edx, 2
mov rcx, rsi
call fcn.140074820
mov rdx, rdi
mov rcx, rbx
jmp 0x140126809
Function at 0x140126b90
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov rbx, rdx
mov esi, 1
test cl, 1
jne 0x140126cf5
mov eax, dword [0x14042b9f0]
cmp eax, 3
jne 0x140126d1b
cmp byte [rbx], 0
mov eax, 0x17
mov r14d, 2
cmovne r14d, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, r14d
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x140126c24
mov rdi, rax
test byte [rbx], 1
je 0x140126c9a
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x140126caf
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x140126c3e
mov edi, eax
cmp eax, 0x2726
jne 0x140126d11
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r14d
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x140126d09
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
jne 0x140126bfd
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
mov edi, ebx
jmp 0x140126d11
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
xorps xmm0, xmm0
mov r8d, 0x10
mov r9w, 2
rol cx, 8
mov word [rbp - 0x1c], r9w
mov word [rbp - 0x1a], cx
mov dword [rbp - 0x18], eax
movups xmmword [rbp - 0x14], xmm0
mov dword [rbp - 4], edx
lea rdx, [rbp - 0x1c]
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140126cdc
xor esi, esi
jmp 0x140126cf8
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rdi, rbx
mov rax, rsi
mov rdx, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
jmp 0x140126cf8
call fcn.1402ec620
jmp 0x140126bbf

Function at 0x14012a860
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 + 0x24]
mov rcx, rax
call qword [sym.imp.shell32.dll_CommandLineToArgvW]
test rax, rax
je 0x14012a8fe
mov rdi, rax
lea rbx, [rsp + 0x28]
and qword [rbx], 0
mov qword [rbx + 8], 8
and qword [rbx + 0x10], 0
movsxd r12, dword [rsp + 0x24]
shl r12, 3
xor r13d, r13d
lea r14, [rsp + 0x40]
cmp r12, r13
je 0x14012a8e2
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.140117060
mov rcx, rbx
mov rdx, r14
call fcn.14012abb7
add r13, 8
jmp 0x14012a8b2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi], xmm0
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0x10], rax
jmp 0x14012a90f
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 0x14012afbc
Capabilities:
Check os version

Disassembly:
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [rcx]
mov rdi, qword [rax]
and qword [rax], 0
test rdi, rdi
je 0x14012b028
lea rsi, [rsp + 0x30]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rsi - 4], 0x11c
lea rcx, [rsp + 0x2c]
call qword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x14012b016
mov ecx, dword [rsp + 0x30]
mov al, 1
cmp ecx, 6
ja 0x14012b01c
jne 0x14012b01a
cmp dword [rsp + 0x34], 3
setae al
jmp 0x14012b01c
mov al, 1
jmp 0x14012b01c
xor eax, eax
mov byte [rdi], al
add rsp, 0x148
pop rdi
pop rsi
ret
lea rcx, str._rustc_f6e511eec7342f59a25f7c0534f1dbea00d01b14library_std_src_synconce.rs
call fcn.1402e8800
int3

Function at 0x14012b6b5
Capabilities:
Enumerate processes via ntquerysysteminformation
Get memory capacity
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x3c8
movaps xmmword [rsp + 0x3b0], xmm6
mov r12, rdx
mov rdi, rcx
mov edi, ecx
mov al, byte [rdx + 9]
cmp al, 2
je 0x14012b7d7
add byte [rax], al
invalid
mov bl, byte [r12 + 0xa]

Function at 0x14012c299
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x188
cmp qword [rcx + 0x10], 0
Function at 0x140130bb2
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]
mov rcx, qword [rdx + 0x190]
mov rdx, qword [rdx + 0x198]
lea r9, [0x1403b8b00]
call fcn.140130ae2
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
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 0x140130d22
test eax, eax
je 0x140130c9a
cmp eax, 0x90317
je 0x140130d1c
cmp eax, 0x90321
jne 0x140130d40
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.140130b53
and qword [rdi + 0x238], 0
mov byte [rsi + 1], bl
jmp 0x140130d4e
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.140130d62
lea r8, [rdx + rax]
mov rcx, rbx
mov rdx, rax
call fcn.140062db1
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.140130b53
xor eax, eax
cmp qword [rdi + 0x1a0], rbx
sete al
mov qword [rdi + 0x238], rax
mov byte [rsi + 1], 0
jmp 0x140130d4e
mov byte [rsi + 1], 1
jmp 0x140130d3c
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x238], rax
mov byte [rsi + 1], 0
xor ebx, ebx
jmp 0x140130d4e
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 0x140130e17
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp dword [rcx], 2
jne fcn.140130e29
add rcx, 8
jmp fcn.14017101f

Function at 0x140131c87
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]
lea r9, [0x1403b8b00]
call fcn.140130ae2
xor ecx, ecx
test rax, rax
invalid
Function at 0x140135ced
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258

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

Disassembly:
cmp dword [rcx], 2
jne fcn.140137088
add byte [rax], al
add rcx, 8
jmp fcn.140130e17

Function at 0x140143c47
Capabilities:
Encrypt data via sspi

Disassembly:
cmp dword [rcx], 2
jne fcn.14014389a
add rcx, 8
jmp fcn.140131fee

Function at 0x14014aa5d
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.1402e62b0
sub rsp, rax
movaps xmmword [rsp + 0x1af0], xmm7
movaps xmmword [rsp + 0x1ae0], xmm6
mov rbx, rcx
retf
mov rsi, qword [rdx + 8]
test rsi, rsi
je 0x14014b7f6
add byte [rax], al
mov qword [rbx], 3
jmp 0x14014b91f

Function at 0x14016a7a8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rcx
add rcx, 8
test byte [rax], 1
jne fcn.14016b8dc
jmp 0x14016a7f4
Function at 0x140170620
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 0x140170627
test al, 1
je 0x140170646
test al, 2
jne 0x14017065e
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1403bd768]
mov edx, 0x23
call fcn.1402e8420
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1403bd7a8]
mov edx, 0x25
call fcn.1402e8420
int3
Function at 0x14017307b
Capabilities:
Parse credit card information

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x248
movaps xmmword [rsp + 0x230], xmm6
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, rdx
mov rdx, r8
mov r8d, 0x5b
mov eax, 0x5b
call fcn.1400aaa9f
test al, al
je 0x140173115
mov rcx, rdi
mov rdx, rsi
mov r8d, 0x5d
call fcn.1400aaad4
test al, al
je 0x1401732a5
lea rdx, [rsi - 1]
lea rax, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001furl_2.2.2_srchost.rs
invalid
invalid
mov qword [rsp + 0x20], rax
mov ecx, 1
mov r8, rdi
mov r9, rsi
int1
call fcn.140175b3f
mov r8, rdx
lea rsi, [rsp + 0x70]
mov rcx, rsi
mov rdx, rax
call fcn.140175b9c
add byte [rax], al
cmp byte [rsi], 0
je 0x1401732b5
mov al, byte [rsp + 0x71]
mov byte [rbx + 8], al
jmp 0x1401732a9
add dword [rax], eax
invalid
mov qword [rsp + 0x170], rbx
lea rax, [rdi + rsi]
lea eax, [rdi + rsi]
lea rbx, [rsp + 0x188]
mov qword [rbx], rdi
mov qword [rbx + 8], rax
mov rcx, qword [rsp + 0x188]
mov rax, qword [rsp + 0x190]
cmp rcx, rax
cmp ecx, eax
je 0x1401732e7
lea rdx, [rcx + 1]
cmp byte [rcx], 0x25
and eax, 0x75d18948
invalid
mov byte [rbx + 8], 4
movabs rax, 0x8000000000000002
jmp 0x1401732cb
invalid
lea rax, [rsp + 0x71]
movups xmm0, xmmword [rax]
movups xmmword [rbx + 8], xmm0
movabs rax, 0x8000000000000001
mov qword [rbx], rax
jmp 0x140175525
lea rcx, [rsp + 0x210]
mov rdx, rdi
mov r8, rsi
call fcn.140061420
and qword [rsp + 0x118], 0
mov eax, 1
mov qword [rsp + 0x120], rax
and qword [rsp + 0x128], 0
lea rcx, [rsp + 0x1a0]
and al, 0xa0
add dword [rax], eax
add byte [rbx - 0x39ffe79f], al
sbb al, 0
and qword [rcx - 0x18], 0
invalid
call 0x181a07b31
add byte [rax - 0x77], cl
invalid
invalid
xorps xmm0, xmm0
movups xmmword [rcx - 8], xmm0
mov qword [rcx + 8], rax
and qword [rcx + 0x10], 0
invalid
mov rbx, qword [rsp + 0x218]
mov rsi, qword [rsp + 0x220]
add al, byte [rax]
add byte [rbp + rcx*4 + 0x34], cl
invalid
lea rdi, [rsp + 0x1c8]
mov qword [rdi], rbx
mov qword [rdi + 8], r14
or byte [rcx], dh
leave
movaps xmm6, xmmword [0x1402effe0]
mov r15, rcx
mov rcx, rdi
stc
call fcn.1400cdc1d
mov ecx, 0
cmp eax, 0x2e
je 0x14017336e
invalid
cmp eax, 0x110000
je 0x1401733df
movaps xmm6, xmmword [rsp + 0x230]
add rsp, 0x248
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14019f9a4
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x288], 0
je 0x14019f9be
call fcn.14018d2e8
test eax, eax
je 0x14019f9e7
mov al, 1
jmp 0x14019f9e9
mov rcx, qword [rcx + 0x1f0]
cmp rcx, 0xffffffffffffffff
je 0x14019f9e7
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 0x14019f9e9
xor al, al
add rsp, 0x28
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x1c8
mov rax, qword [0x14042b840]
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 0x14019fc75
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1401840d8
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x14019fcbd
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rbp
mov r8, rdi
call fcn.14019f80c
test al, al
jne 0x14019fcc8
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.1401840d8
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1401a225c
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1402e63c0
add rsp, 0x1c8
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1401a0430
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov rbx, rcx
mov eax, dword [0x14042bd20]
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1401a048c
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.1401b7f58
test al, al
je 0x1401a0481
mov dword [0x14042bd20], 2
jmp 0x1401a04e3
mov eax, 1
mov dword [0x14042bd20], eax
cmp eax, 2
je 0x1401a04e3
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 0x1401a04c2
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1401a04e3
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 0x1401a11e8
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14042b840]
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 0x1401a1252
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, rbx
call fcn.1401a2328
jmp 0x1401a12e5
mov ecx, dword [rbx + 0xa84]
mov dword [rsp + 0x58], 1
call fcn.1401a2fd4
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xa88]
call fcn.1401a2fd4
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9d, 0xc
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 0x1401a12e5
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.1401a2328
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1402e63c0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x1401a2184
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 0x1401a223f
cmp qword [rcx + 0x278], rbx
je 0x1401a21f2
mov dl, 1
call fcn.140185414
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.140185414
jmp 0x1401a223f
mov ecx, esi
test edx, edx
je 0x1401a2202
sub ecx, 1
je 0x1401a2202
cmp ecx, 1
jne 0x1401a223f
mov r9, qword [rdi + 0x1d0]
lea rax, [0x1403ed360]
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 0x1401a2438
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 0x1401a2471
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 0x1401a2476
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1401a2628
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 [0x14042b840]
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 0x1401a2757
lea rax, [0x1401a24b0]
cmp qword [rbx + rcx*8 + 0x218], rax
jne 0x1401a2757
cmp qword [rdi + rbx + 0x238], 0
je 0x1401a26c6
test rbp, rbp
je 0x1401a2757
xor r9d, r9d
mov r8, rdx
mov rcx, r15
call fcn.1401a2e14
cmp eax, 0xffffffff
je 0x1401a2757
test al, 1
je 0x1401a2757
mov rcx, qword [rdi + rbx + 0x238]
test rcx, rcx
jne 0x1401a272e
mov eax, dword [r14 + 0x71c]
add eax, eax
movsxd rcx, eax
mov qword [rdi + rbx + 0x240], rcx
call qword [0x1404255b8]
mov qword [rdi + rbx + 0x238], rax
mov rcx, rax
test rax, rax
je 0x1401a278e
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 0x1401a2757
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 0x1401a27cb
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1401a279a
xor edi, edi
mov dword [rsi], 0x51
jmp 0x1401a27cb
mov dword [rsi], 0x1b
or rax, 0xffffffffffffffff
jmp 0x1401a27ce
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.1401840d8
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, r14
call fcn.1401a225c
mov dword [r14 + 0xdd4], ebx
mov dword [rsi], 0x37
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1402e63c0
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret