joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140180e20
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x140180e38
add rcx, 0x18
add rsp, 0x28
jmp 0x1401a9230
lea rcx, [0x140288150]
call fcn.1401f7230
int3
jmp 0x1401c9990
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rbp - 4], eax
mov dword [rsp + 0x20], 4
lea r9, [rbp - 4]
mov edx, 6
mov r8d, 1
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401c99cd
xor eax, eax
add rsp, 0x30
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbp
ret

Function at 0x140193030
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
nop word [rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140193040
test al, 1
je 0x14019305f
test al, 2
jne 0x140193077
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1402856b0]
mov edx, 0x23
call fcn.1401f7370
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1402856f0]
mov edx, 0x25
call fcn.1401f7370
int3

Function at 0x1401a1440
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp + 8], rcx
mov rax, qword [rcx]
nop word cs:[rax + rax]
mov rcx, rax
xor rcx, 3
lock cmpxchg qword [rsi], rcx
jne 0x1401a1470
test al, 1
je 0x1401a154d
test al, 2
jne 0x1401a1565
xor rax, 3
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
lea rdx, [rbp + 8]
call fcn.1401a2c90
mov qword [rbp + 0x18], rax
test rax, rax
je 0x1401a14d8
mov qword [rbp + 0x10], rdx
mov rax, qword [rdx]
test rax, rax
je 0x1401a14be
mov rcx, qword [rbp + 0x18]
call rax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1401a14d8
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp + 0x18]
call fcn.140039da0
mov qword [rbp], 1
mov rax, 0xffffffffffffffc0
lock xadd qword [rsi], rax
shr rax, 6
cmp rax, qword [rbp]
jb 0x1401a157d
jne 0x1401a1542
mov rax, qword [rbp + 8]
mov qword [rbp + 0x18], rax
lea rcx, [rax + 0x28]
call fcn.14019cd20
mov rax, qword [rbp + 0x18]
mov rax, qword [rax + 0x58]
test rax, rax
je 0x1401a1525
mov rcx, qword [rbp + 0x18]
mov rcx, qword [rcx + 0x60]
call qword [rax + 0x18]
mov edx, 0x80
mov r8d, 0x80
mov rcx, qword [rbp + 0x18]
add rsp, 0xa8
pop rsi
pop rbp
jmp fcn.140039da0
nop
add rsp, 0xa8
pop rsi
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1402856b0]
mov edx, 0x23
call fcn.1401f7370
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1402856f0]
mov edx, 0x25
call fcn.1401f7370
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.1401ea030]
mov qword [rbp - 0x28], rax
mov rcx, rbp
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rax
lea rax, str.current:___sub:__bW__
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 2
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 2
lea rdx, [0x140285738]
lea rcx, [rbp - 0x60]
call fcn.1401f72b0
int3
Function at 0x1401a2340
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1401a3dd0
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401a3e08
xor eax, eax
add rsp, 0x38
ret
call fcn.1401cfef0
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x1401a2350
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x1401a3e20
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401a3e55
xor eax, eax
add rsp, 0x38
ret
call fcn.1401cfef0
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x1401a2360
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x1401a3d80
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1002
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401a3db5
xor eax, eax
add rsp, 0x38
ret
call fcn.1401cfef0
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x1401a3c60
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x1401a3d40
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
mov r8d, dword [rdx + 0x80]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1401a3d6a
call fcn.1401cfef0
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x1401a3d80
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x1401a3d80
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1002
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401a3db5
xor eax, eax
add rsp, 0x38
ret
call fcn.1401cfef0
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x1401a3dd0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1401a3dd0
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401a3e08
xor eax, eax
add rsp, 0x38
ret
call fcn.1401cfef0
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x1401a3e20
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x1401a3e20
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401a3e55
xor eax, eax
add rsp, 0x38
ret
call fcn.1401cfef0
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x1401bfb60
Capabilities:
Manipulate console buffer

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rsi, rcx
cmp byte [rcx + 8], 0
je 0x1401bfc21
inc r8
mov qword [rbp + 0x10], r8
inc rdx
mov qword [rbp + 8], rdx
lea rax, [rbp + 0x10]
mov qword [rbp - 0x60], rax
lea rax, [fcn.1401ea030]
mov qword [rbp - 0x58], rax
lea rcx, [rbp + 8]
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], rax
lea rax, str.e__H
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 3
mov qword [rbp - 0x20], 0
lea rax, [rbp - 0x60]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 2
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.1401db100
mov rdx, qword [rbp - 8]
mov r8, qword [rbp]
mov rcx, rsi
mov qword [rbp + 0x18], rdx
call fcn.1401bd360
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x1401bfc72
mov r8d, 1
mov rcx, qword [rbp + 0x18]
mov rsi, rax
call fcn.140039da0
mov rax, rsi
jmp 0x1401bfc72
mov rbx, r8
mov rdi, rdx
mov rax, qword [rsi]
xor ecx, ecx
cmp byte [rax + 0x38], 0
sete cl
or ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rsi, rax
xorps xmm0, xmm0
movaps xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x32], 0
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1401bfc70
shl ebx, 0x10
movzx edx, di
or edx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
xor eax, eax
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401bfdc0
Capabilities:
Manipulate console buffer

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
cmp byte [rcx + 8], 0
je 0x1401bfdec
lea rdx, [0x1402904bc]
mov r8d, 5
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp fcn.1401bd360
mov rax, qword [rcx]
xor ecx, ecx
cmp byte [rax + 0x38], 0
sete cl
or ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rsi, rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x3e], 0
lea rdi, [rsp + 0x30]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1401bfe84
movzx ebx, word [rsp + 0x38]
movzx eax, word [rsp + 0x3e]
movzx ebp, word [rsp + 0x36]
shl ebp, 0x10
sub ax, word [rsp + 0x3a]
mov dword [rsp + 0x30], 0
movsx r14d, ax
mov qword [rsp + 0x20], rdi
mov rcx, rsi
mov dl, 0x20
mov r8d, r14d
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
mov qword [rsp + 0x20], rdi
mov rcx, rsi
mov edx, ebx
mov r8d, r14d
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
mov rcx, rsi
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
xor eax, eax
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x1401c5060
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x1401c5100
jmp 0x1401c50ef
jae 0x1401c51bf
cmp r8, 0x201
jae 0x1401c5100
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x1401c5157
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x1401c512f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.1401f5b40
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x1401c5180
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401c522b
mov r8d, r13d
cmp r12, r8
jne 0x1401c50e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1401c525f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1401c50ef
jmp 0x1401c5100
cmp r14, r8
jb 0x1401c5279
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.1401c9bd0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x1401c5214
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140039da0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x1401c51ff
jmp 0x1401c5214
lea rcx, str.internal_error:_entered_unreachable_code_rustc_3f5fd8dd41153bc5fdca9427e9e05be2c767ba23library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1401f7370
jmp 0x1401c528e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.1401f7800
ud2
Function at 0x1401c9990
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x140180e38
add rcx, 0x18
add rsp, 0x28
jmp 0x1401a9230
lea rcx, [0x140288150]
call fcn.1401f7230
int3
jmp 0x1401c9990
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rbp - 4], eax
mov dword [rsp + 0x20], 4
lea r9, [rbp - 4]
mov edx, 6
mov r8d, 1
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401c99cd
xor eax, eax
add rsp, 0x30
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbp
ret

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

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, qword [rcx]
mov rcx, qword [rax]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1401c9a25
movsxd rdx, eax
xor ecx, ecx
jmp 0x1401c9a49
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x1401c9a49
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, qword [rcx]
mov rcx, qword [rax]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1401c9a99
movsxd rdx, eax
xor eax, eax
add rsp, 0x20
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
push rsi
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov rax, qword [rcx]
mov rcx, qword [rax]
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rbp + 4], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rbp + 4]
call qword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1401c9b13
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
xor ecx, ecx
cmp esi, 0xffffffff
sete cl
mov edx, dword [rbp + 4]
cmove rdx, rax
mov rax, rcx
add rsp, 0x48
pop rsi
pop rbp
ret
Function at 0x1401cfbb0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140294908]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1401cfbe8
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1401cfc3f
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x1401cfc4c
xor edx, edx
xor eax, eax
jmp 0x1401cfc76
cmp eax, 0x103
je 0x1401cfc80
test eax, eax
js 0x1401cfc5f
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1401cfc76
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x140294970]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1401c8d80
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1401c3240
mov ecx, 7
int 0x29
ud2

Function at 0x1401cfcd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140294908]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1401cfd08
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1401cfd66
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x1401cfd93
test eax, eax
js 0x1401cfd72
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1401cfd89
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x140294970]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1401c8d80
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1401c3240
mov ecx, 7
int 0x29
ud2
Function at 0x1401cfdf0
Capabilities:
Create udp socket

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov edi, edx
cmp word [rcx], 0
mov eax, 2
mov r14d, 0x17
cmove r14d, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor ebx, ebx
mov ecx, r14d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1401cfed1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x1401cfe58
mov esi, eax
cmp eax, 0x2726
jne 0x1401cfec4
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r14d
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1401cfebc
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x1401cfed1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, 1
mov rsi, rdi
jmp 0x1401cfed1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov ebx, 1
mov rax, rbx
mov rdx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x1401d10b0
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 [0x14030a0c1]
mov ecx, reloc.WS2_32.dll_recv
mov edx, 8
call fcn.140039d90
test rax, rax
je 0x1401d119b
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1401d1250]
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 case.0x1401cc8c3.496
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 0x1401d114a
mov rcx, qword [rbp - 0x18]
call rax
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
call 0x1401d1a60
invalid
Function at 0x1401d2ec0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x208
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x186], ax
mov rax, qword [0x14030a258]
cmp rax, 3
jne 0x1401d2ff2
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
ja 0x1401d3018
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
inc rdi
lea rcx, [rbp + 0x158]
mov rdx, rbx
mov r8, rdi
call fcn.1401dfce0
cmp qword [rbp + 0x158], 0
je 0x1401d2f61
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1401d2fe3
mov rcx, qword [rbp + 0x160]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x120], xmm0
movaps xmmword [rbp + 0x140], xmm0
movaps xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x178], 0
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x178]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1401d2fc4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1401d2fdc
mov rax, qword [rbp + 0x178]
movzx ecx, word [rbp + 0x186]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x208
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdx
call fcn.1401f5f50
mov rdx, rbx
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
jbe 0x1401d2f17
lea r9, [rbp + 0x170]
mov rcx, rsi
mov r8, rdi
call fcn.1401f6030
jmp 0x1401d2fe3
Function at 0x1401d3160
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x60], xmm0
mov dword [rbp + 0x34], 0x80
lea rdx, [rbp - 0x60]
lea r8, [rbp + 0x34]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1401d31ea
mov eax, dword [rbp + 0x34]
movzx ecx, word [rbp - 0x60]
cmp ecx, 0x17
je 0x1401d31fa
cmp ecx, 2
jne 0x1401d3238
cmp eax, 0xf
jbe 0x1401d3252
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
jmp 0x1401d3248
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x1401d323f
cmp eax, 0x1b
jbe 0x1401d326a
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov edx, dword [rbp - 0x48]
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rbp + 0x24], xmm0
mov word [rsi], 1
movups xmm0, xmmword [rbp + 0x22]
movups xmmword [rsi + 2], xmm0
movzx r8d, word [rbp + 0x32]
mov word [rsi + 0x12], r8w
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
jmp 0x1401d3248
lea rax, str.invalid_argument
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb8
pop rsi
pop rbp
ret
lea rcx, [0x1402953ea]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x39
call fcn.1401f7370
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x3a
call fcn.1401f7370
int3