joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400776b0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor esi, esi
mov r14d, 0xffffffff
xor edi, edi
xor r15d, r15d
cmp r8, 0x201
jae 0x140077730
jmp 0x14007771f
jae 0x1400777d4
cmp r8, 0x201
jae 0x140077730
mov r12d, 0x200
lea r13, [rsp + 0x68]
mov rbp, r8
jmp 0x140077777
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x140077757
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.1400659c0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rsi, qword [rsp + 0x38]
cmp rsi, r14
mov r15d, 0xffffffff
cmovb r15, rsi
mov qword [rsp + 0x40], r15
mov rdi, rsi
mov r12, r15
mov r13, qword [rsp + 0x20]
mov rbp, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, ebp
mov rdx, r13
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebx, eax
test eax, eax
jne 0x14007779b
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14007782f
mov r8d, ebx
cmp rbp, r8
jne 0x140077710
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14007784f
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x14007771f
jmp 0x140077730
cmp r12, r8
jb 0x140077869
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.14007a790
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rdi, qword [rsp + 0x28]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
test rsi, rsi
je 0x140077818
mov rcx, qword [0x14018e150]
xor edx, edx
mov r8, qword [rsp + 0x20]
call sub.KERNEL32.dll_HeapFree
mov rax, rdi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rdi, qword [rsp + 0x28]
mov qword [rdi], rax
mov byte [rdi + 0x18], 2
test rsi, rsi
jne 0x140077805
jmp 0x140077818
lea rcx, str.internal_error:_entered_unreachable_codeu
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140008cb0
jmp 0x14007787e
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.14000ba50
ud2
Function at 0x14007a010
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14007a071
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14007a071
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14007a071
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14007a071
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14007a0ae
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14007a09c
xor eax, eax
jmp 0x14007a0a9
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
jmp 0x14007a0a9

Function at 0x14007a0c0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14007a121
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14007a121
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14007a121
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14007a121
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14007a15e
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14007a14c
xor eax, eax
jmp 0x14007a159
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
jmp 0x14007a159

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
mov r9d, 2
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x14007a1a6
cdqe
jmp 0x14007a1b4
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14007a1bc
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14007a1cd
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x14007a1e0
Capabilities:
Set socket configuration

Disassembly:
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, 6
mov r8d, 1
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14007a214
xor eax, eax
jmp 0x14007a221
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x14007a230
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rdx, qword [rdx + 8]
mov rsi, qword [rdi + 0x10]
mov rax, rdx
sub rax, rsi
jb 0x14007a2aa
mov rcx, qword [rcx]
cmp rax, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rax
mov rdx, qword [rdi]
add rdx, rsi
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x14007a28b
cdqe
add rsi, rax
mov qword [rdi + 0x10], rsi
mov rax, qword [rdi + 0x18]
cmp rax, rsi
cmova rsi, rax
mov qword [rdi + 0x18], rsi
xor eax, eax
jmp 0x14007a2a3
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14007a29b
xor eax, eax
jmp 0x14007a2a3
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, rsi
call fcn.14000b9d0
ud2

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

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x3c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rdx, rax
call sub.WS2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x14007a3a1
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14007a3b7
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x40
pop rsi
ret

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rdx, qword [rdx + 8]
mov rsi, qword [rdi + 0x10]
mov rax, rdx
sub rax, rsi
jb 0x14007a44d
mov rcx, qword [rcx]
mov rcx, qword [rcx]
cmp rax, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rax
mov rdx, qword [rdi]
add rdx, rsi
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x14007a42e
cdqe
add rsi, rax
mov qword [rdi + 0x10], rsi
mov rax, qword [rdi + 0x18]
cmp rax, rsi
cmova rsi, rax
mov qword [rdi + 0x18], rsi
xor eax, eax
jmp 0x14007a446
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14007a43e
xor eax, eax
jmp 0x14007a446
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, rsi
call fcn.14000b9d0
ud2

Function at 0x14007a640
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x14007a666
xor eax, eax
jmp 0x14007a673
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x14007a6f9
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14007a70f
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret
Function at 0x14007a720
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x14007a753
cdqe
jmp 0x14007a761
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14007a769
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14007a77a
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret
Function at 0x14007c480
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
and al, 0x30
call fcn.140004290
mov r8, qword [rsp + 0x30]
test r8, r8
test eax, eax
je 0x14007c4de
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
cmp qword [rsp + 0x38], 0
je 0x14007c56a
mov rcx, qword [0x14018e150]
xor edx, edx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp sub.KERNEL32.dll_HeapFree
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
xorps xmm0, xmm0
push rdi
ror byte [rdi], 0x29
and al, 0x50

Function at 0x14007ffe0
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x140080034
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400800ca
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x140080047
cmp eax, 0x2739
jne 0x140080095
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x140080090
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x1400800aa
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1400800ca
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400800ca
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call sub.WS2_32.dll_closesocket
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140080de0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140080e16
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [fcn.1400781d0]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.140008c20
ud2
Function at 0x140081530
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140147858]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.14007de60
test rax, rax
je 0x1400815ee
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140081640]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400815e1
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1400815bc
mov r8, qword [rbx + 0x10]
mov rcx, rdi
call fcn.14007def0
mov rcx, qword [0x14018e150]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.1400041b0
ud2
Function at 0x140082ce0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x14018e158]
cmp rax, 3
jne 0x140082dd4
cmp rbx, 0x17f
ja 0x140082de6
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, rbx
call fcn.140006620
cmp qword [rsp + 0x28], 0
je 0x140082d64
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140082df7
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x140082dbc
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x140082df7
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
jmp 0x140082df7
call fcn.14007bfd0
cmp rbx, 0x17f
jbe 0x140082d1a
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
call fcn.14007c480
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140082e10
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x140082e32
mov qword [rsi + 8], rbx
mov qword [rsi], 1
jmp 0x140082f04
mov rax, qword [0x14018e158]
cmp rax, 3
jne 0x140082f0f
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8d, 1
call fcn.14007ffe0
cmp qword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x28]
je 0x140082e73
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x140082f04
cmp word [rbx], 0
je 0x140082e94
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 0x140082ea9
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, 0x10
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x20], r9w
mov word [rsp + 0x22], cx
mov dword [rsp + 0x24], eax
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x140082ee4
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x140082f04
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call sub.WS2_32.dll_closesocket
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call fcn.14007bfd0
jmp 0x140082e43
Function at 0x140083360
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x2c], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
mov rcx, rax
call sub.WS2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x140083404
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp ecx, 2
je 0x140083413
cmp ecx, 0x17
jne 0x140083433
cmp eax, 0x1b
jbe 0x14008344c
movzx eax, word [rsp + 0x32]
rol ax, 8
movups xmm0, xmmword [rsp + 0x38]
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x48]
mov word [rsi], 1
movups xmmword [rsi + 4], xmm0
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
jmp 0x140083443
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x14008343a
cmp eax, 0xf
jbe 0x140083466
movzx eax, word [rsp + 0x32]
rol ax, 8
mov ecx, dword [rsp + 0x34]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
jmp 0x140083443
lea rax, str.invalid_argument
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x14010a880]
mov edx, 0x43
call fcn.140008cb0
ud2
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x14010a820]
mov edx, 0x42
call fcn.140008cb0
ud2
Function at 0x14008a0b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1400de070]
test ecx, ecx
je 0x14008a196
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14008a0e4
cmp qword [rax + 8], 0
je 0x14008a0e4
add rax, 0x10
jmp 0x14008a18f
mov ecx, dword [0x1400de070]
test ecx, ecx
je 0x14008a1a9
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14008a18d
mov rdi, rax
test rax, rax
jne 0x14008a156
mov rax, qword [0x140147858]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call fcn.14007de60
test rax, rax
je 0x14008a1cc
mov rdi, rax
lea rax, [0x1400de058]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1400de070]
test ecx, ecx
je 0x14008a1bc
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
xor ecx, ecx
test rsi, rsi
je 0x14008a176
mov rax, qword [rsi]
mov qword [rsi], 0
cmp rax, 1
jne 0x14008a176
mov rdx, qword [rsi + 8]
mov ecx, dword [rsi + 0x10]
jmp 0x14008a178
xor edx, edx
mov qword [rdi + 8], 1
lea rax, [rdi + 0x10]
mov qword [rdi + 0x10], rdx
mov byte [rdi + 0x18], cl
jmp 0x14008a18f
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400de058]
call fcn.1400817a0
mov ecx, eax
jmp 0x14008a0c9
lea rcx, [0x1400de058]
call fcn.1400817a0
mov ecx, eax
jmp 0x14008a0f4
lea rcx, [0x1400de058]
call fcn.1400817a0
mov ecx, eax
jmp 0x14008a14e
mov ecx, 8
mov edx, 0x20
call fcn.1400041b0
ud2
Function at 0x14008a1e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400de090]
test ecx, ecx
je 0x14008a302
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14008a212
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14008a2f4
mov ecx, dword [0x1400de090]
test ecx, ecx
je 0x14008a315
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14008a2b6
mov rdi, rax
test rax, rax
jne 0x14008a29c
mov qword [rsp + 0x28], 0
lea rax, [0x1400de078]
mov qword [rsp + 0x20], rax
mov rax, qword [0x140147858]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.14007de60
test rax, rax
je 0x14008a33b
mov rdi, rax
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov ecx, dword [0x1400de090]
test ecx, ecx
je 0x14008a328
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x14008a2ba
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x14008a2bc
mov rax, qword [rsi + 8]
jmp 0x14008a2bc
xor edi, edi
jmp 0x14008a2f8
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14008a2f4
test rcx, rcx
je 0x14008a2f4
lock dec qword [rcx]
jne 0x14008a2f4
lea rcx, [rsp + 0x28]
call fcn.140064dc0
add rdi, 0x10
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1400de078]
call fcn.1400817a0
mov ecx, eax
jmp 0x14008a1f9
lea rcx, [0x1400de078]
call fcn.1400817a0
mov ecx, eax
jmp 0x14008a222
lea rcx, [0x1400de078]
call fcn.1400817a0
mov ecx, eax
jmp 0x14008a294
mov ecx, 8
mov edx, 0x18
call fcn.1400041b0
ud2

Function at 0x14008a370
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400de0b0]
test ecx, ecx
je 0x14008a416
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14008a399
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x14008a405
mov ecx, dword [0x1400de0b0]
test ecx, ecx
je 0x14008a429
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14008a40b
mov rsi, rax
test rax, rax
jne 0x14008a3ff
mov rax, qword [0x140147858]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.14007de60
test rax, rax
je 0x14008a44c
mov rsi, rax
lea rax, [0x1400de098]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400de0b0]
test ecx, ecx
je 0x14008a43c
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x14008a40d
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400de098]
call fcn.1400817a0
mov ecx, eax
jmp 0x14008a385
lea rcx, [0x1400de098]
call fcn.1400817a0
mov ecx, eax
jmp 0x14008a3a9
lea rcx, [0x1400de098]
call fcn.1400817a0
mov ecx, eax
jmp 0x14008a3f7
mov ecx, 8
mov edx, 0x10
call fcn.1400041b0
ud2
Function at 0x14008a460
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400de0d0]
test ecx, ecx
je 0x14008a582
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14008a492
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14008a574
mov ecx, dword [0x1400de0d0]
test ecx, ecx
je 0x14008a595
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14008a536
mov rdi, rax
test rax, rax
jne 0x14008a51c
mov qword [rsp + 0x28], 0
lea rax, [0x1400de0b8]
mov qword [rsp + 0x20], rax
mov rax, qword [0x140147858]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.14007de60
test rax, rax
je 0x14008a5bb
mov rdi, rax
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov ecx, dword [0x1400de0d0]
test ecx, ecx
je 0x14008a5a8
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x14008a53a
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x14008a53c
mov rax, qword [rsi + 8]
jmp 0x14008a53c
xor edi, edi
jmp 0x14008a578
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14008a574
test rcx, rcx
je 0x14008a574
lock dec qword [rcx]
jne 0x14008a574
lea rcx, [rsp + 0x28]
call fcn.140064ec0
add rdi, 0x10
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1400de0b8]
call fcn.1400817a0
mov ecx, eax
jmp 0x14008a479
lea rcx, [0x1400de0b8]
call fcn.1400817a0
mov ecx, eax
jmp 0x14008a4a2
lea rcx, [0x1400de0b8]
call fcn.1400817a0
mov ecx, eax
jmp 0x14008a514
mov ecx, 8
mov edx, 0x18
call fcn.1400041b0
ud2
Function at 0x14008a5f0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400de0f0]
test ecx, ecx
je 0x14008a711
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14008a627
mov rcx, rax
cmp qword [rax + 8], 0
je 0x14008a627
add rcx, 0x10
jmp 0x14008a707
mov ecx, dword [0x1400de0f0]
test ecx, ecx
je 0x14008a724
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14008a6ea
mov rdi, rax
test rax, rax
jne 0x14008a69d
mov rax, qword [0x140147858]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call fcn.14007de60
test rax, rax
je 0x14008a74a
mov rdi, rax
lea rax, [0x1400de0d8]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1400de0f0]
test ecx, ecx
je 0x14008a737
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x14008a6ba
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x14008a6f3
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x14008a6ee
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14008a6f3
xor ecx, ecx
jmp 0x14008a707
call fcn.140080de0
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1400de0d8]
call fcn.1400817a0
mov ecx, eax
jmp 0x14008a609
lea rcx, [0x1400de0d8]
call fcn.1400817a0
mov ecx, eax
jmp 0x14008a637
lea rcx, [0x1400de0d8]
call fcn.1400817a0
mov ecx, eax
jmp 0x14008a695
mov ecx, 8
mov edx, 0x20
call fcn.1400041b0
ud2