joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140092bd0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x14013e880]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x140143f20], eax
inc eax
cmp eax, 1
jne 0x140092c1f
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
xchg dword [0x140143f24], eax
test dil, dil
je 0x140092c32
xor eax, eax
lock xadd dword [0x140143f24], eax
test eax, eax
jne 0x140092c56
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140104220
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov dword [rsp + 0x20], eax
call fcn.1400ae900
lea rdx, str.winsock
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call fcn.1400a99a0
int3
Function at 0x14009fd80
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14013e880]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14009fe53
cmp byte [rcx + 0x71], 0
je 0x14009fe53
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14009fe4f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14009fe14
sub eax, 1
je 0x14009fe18
cmp eax, 2
jne 0x14009fe4f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140104220
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14009fe46
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14009fe4f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14009fdfc
xor al, al
jmp 0x14009fdfc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140104220
add rsp, 0x60
pop rbx
ret
Function at 0x1400a45a0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], reloc.WSOCK32.dll_ntohs
mov byte [rcx], r14b
mov dword [rsp + 0x20], 1
lea r13d, [r14 - 6]
mov rcx, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x1400a45f7
mov rcx, qword [rdx]
mov r8, rcx
jmp 0x1400a45fa
mov r8, rdx
mov r15, rcx
mov rax, qword [rdx + 0x10]
add rax, r8
mov qword [rsp + 0x78], rax
cmp rcx, rax
je 0x1400a4718
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx ebx, byte [rsp + 0x70]
nop
shl r14d, 8
movzx eax, byte [r15]
add r14d, eax
add r13d, 8
js 0x1400a46af
movsxd r12, r14d
movsxd rsi, r13d
lea ecx, [r13 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov ebp, edx
imul eax, edx, 0xfffffffa
add r13d, eax
nop dword [rax]
mov rax, r12
mov rcx, rsi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400a468d
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x1400a4682
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400a46a5
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140085a30
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rsi, 6
sub rbp, 1
jne 0x1400a4650
inc r15
cmp r15, qword [rsp + 0x78]
jne 0x1400a4620
cmp r13d, 0xfffffffa
jle 0x1400a4718
lea ecx, [r13 + 8]
shl r14d, 8
movsxd rax, r14d
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400a4705
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x1400a46fa
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400a4718
movzx r8d, byte [rsp + 0x70]
mov edx, 1
mov rcx, rdi
call fcn.140085a30
mov rcx, qword [rdi + 0x10]
test cl, 3
je 0x1400a4768
movzx ebx, byte [rsp + 0x70]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400a474b
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x1400a4743
mov rax, qword [rdi]
mov word [rax + rcx], 0x3d
jmp 0x1400a475f
mov r9b, 0x3d
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140085a30
mov rcx, qword [rdi + 0x10]
test cl, 3
jne 0x1400a4726
mov rax, rdi
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a4e30
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x70
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x140143f10]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a4f65
cmp qword [rax], rbx
je 0x1400a4e6c
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400a4e58
add rsp, 0x70
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x1400a4f65
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x1400a4f29
cmp ecx, 1
jne 0x1400a4f65
xorps xmm0, xmm0
mov dword [rbx + 0x50], 2
lea rdx, [rbx + 0x58]
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x30], xmm0
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_
xorps xmm0, xmm0
lea rax, vtable.asio::multiple_exceptions.0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
movups xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm0
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_
lea rcx, [rsp + 0x30]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea r8, [0x140139050]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCopyException_void____ptr64__void_const____ptr64__void_const____ptr64_
lea rcx, [rsp + 0x58]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call sub.VCRUNTIME140.dll___std_exception_destroy
jmp 0x1400a4f4d
xorps xmm0, xmm0
mov dword [rbx + 0x50], 1
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea rcx, [rsp + 0x20]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCurrentException_void____ptr64_
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x58]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrAssign_void____ptr64__void_const____ptr64_
lea rcx, [rsp + 0x20]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
add rsp, 0x70
pop rbx
ret
Function at 0x1400a54f0
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rbp
push rdi
push r12
push r15
sub rsp, 0x48
xor r12d, r12d
mov rdi, r9
mov r15, rdx
mov rbp, rcx
cmp rcx, 0xffffffffffffffff
je 0x1400a563c
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x28], r14
test r8b, r8b
je 0x1400a555b
movzx eax, byte [rdx]
test al, 8
je 0x1400a555b
or al, 8
mov dword [r11 + 8], r12d
mov byte [rdx], al
lea r9, [r11 + 8]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
je 0x1400a555b
call fcn.1400ae900
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov rcx, rbp
call qword [sym.imp.WSOCK32.dll_closesocket]
lea r14, [rdi + 8]
mov esi, eax
test eax, eax
jne 0x1400a5576
mov dword [rdi], r12d
jmp 0x1400a5601
mov qword [rsp + 0x78], rbx
call fcn.1400ae900
mov rbx, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
call fcn.1400ae900
mov rcx, qword [r14]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x1400a55b4
cmp dword [rdi], 0x2733
je 0x1400a55ce
call fcn.1400ae900
mov rcx, qword [r14]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x1400a5638
cmp dword [rdi], 0x4d5
jne 0x1400a5638
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], r12d
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WSOCK32.dll_ioctlsocket]
and byte [r15], 0xfc
mov rcx, rbp
call qword [sym.imp.WSOCK32.dll_closesocket]
mov esi, eax
test eax, eax
jne 0x1400a5619
mov dword [rdi], r12d
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop r15
pop r12
pop rdi
pop rbp
ret
call fcn.1400ae900
mov rbx, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov eax, esi
jmp 0x1400a55fc
mov eax, r12d
add rsp, 0x48
pop r15
pop r12
pop rdi
pop rbp
ret
Function at 0x1400a9250
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x14013e880]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
mov qword [rsp + 0x20], rbx
lea r8, str.asio_58CCDC44_6264_4842_90C2_F3C545CB8AA7__u__p
mov edx, 0x80
lea rcx, [rsp + 0x40]
call fcn.1400c2a70
lea r8, [rsp + 0x40]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
jne 0x1400a92c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400a9342
cmp eax, 0xb7
jne 0x1400a92d8
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rbx], 0
jne 0x1400a9311
lea rcx, [rbx + 8]
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x1400a930e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1400a9342
mov byte [rbx], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400a9342
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140104220
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret
Function at 0x1400ae280
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x120
mov rdi, rdx
mov rsi, rcx
mov rbp, qword [rdx + 0x10]
mov r8, rdx
mov r15, qword [rdx + 0x18]
cmp r15, 0xf
jbe 0x1400ae2b5
mov r8, qword [rdx]
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
test rbp, rbp
je 0x1400ae2e4
movabs r9, 0x100000001b3
movzx eax, byte [r8 + rcx]
xor rdx, rax
imul rdx, r9
inc rcx
cmp rcx, rbp
jb 0x1400ae2d0
mov rcx, qword [0x140143ee0]
and rcx, rdx
add rcx, rcx
mov rax, qword [0x140143ec8]
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [0x140143eb8]
je 0x1400ae34a
mov r14, qword [rax + rcx*8]
nop word [rax + rax]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x1400ae322
mov rdx, qword [rdx]
mov rcx, rdi
cmp r15, 0xf
jbe 0x1400ae32e
mov rcx, qword [rdi]
cmp rbp, rax
jne 0x1400ae33f
mov r8, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400ae34c
cmp rbx, r14
je 0x1400ae34a
mov rbx, qword [rbx + 8]
jmp 0x1400ae310
xor ebx, ebx
test rbx, rbx
je 0x1400ae36b
cmp rbx, qword [0x140143eb8]
je 0x1400ae36b
lea rdx, [rbx + 0x30]
mov rcx, rsi
call fcn.140091cc0
jmp 0x1400ae464
mov rcx, rdi
call fcn.1400c21e0
test al, al
je 0x1400ae387
mov rdx, rdi
mov rcx, rsi
call fcn.140091cc0
jmp 0x1400ae464
cmp dword [0x14013e580], 2
jg 0x1400ae423
mov edx, 1
lea rcx, [rsp + 0x28]
call fcn.140091c10
mov eax, 2
mov dword [rsp + 0x110], eax
mov ecx, dword [0x14013e580]
cmp ecx, eax
jg 0x1400ae3d7
lea rdx, str.Unable_to_interpret_mime_type_for_content_type_
lea rcx, [rsp + 0x28]
call fcn.14007acc0
mov eax, dword [rsp + 0x110]
mov ecx, dword [0x14013e580]
cmp eax, ecx
jl 0x1400ae419
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x1400ae3e9
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.140084d10
mov eax, dword [rsp + 0x110]
mov ecx, dword [0x14013e580]
cmp eax, ecx
jl 0x1400ae419
lea rdx, str.._Defaulting_to_text_plain.
lea rcx, [rsp + 0x28]
call fcn.14007acc0
nop
lea rcx, [rsp + 0x28]
call fcn.140097dc0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], 0
mov qword [rsi + 0x10], 0xa
mov qword [rsi + 0x18], reloc.WSOCK32.dll_ntohs
movsd xmm0, qword [str.text_plain]
movsd qword [rsi], xmm0
movzx eax, word [0x14010d610]
mov word [rsi + 8], ax
mov byte [rsi + 0xa], 0
mov rax, rsi
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400b3660
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x58
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x68]
xor eax, eax
mov byte [rsp + 0x60], 0
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x40], 1
lea r8d, [rax + 1]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
call fcn.1400ae900
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x1400b36be
cmp eax, 0x4d2
jne 0x1400b36c3
call fcn.1400ae900
add rsp, 0x58
ret

Function at 0x1400b3940
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x140143f14], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x1400b399d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x30
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.140088f30]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret
Function at 0x1400b3b10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x14013e880]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [rcx + 8]
xor ebp, ebp
mov dword [rsp + 0x50], ebp
xorps xmm0, xmm0
mov qword [rsp + 0x38], 2
mov rdi, rdx
movdqu xmmword [rsp + 0x40], xmm0
cmp rcx, 0xffffffffffffffff
jne 0x1400b3b69
mov esi, 0x2719
mov dword [rsp + 0x20], esi
call fcn.1400ae900
mov qword [rsp + 0x28], rax
jmp 0x1400b3c0b
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 0x1c
lea rdx, [rsp + 0x38]
call qword [sym.imp.WSOCK32.dll_getsockname]
movsxd rcx, dword [rsp + 0x30]
test eax, eax
jne 0x1400b3be2
mov dword [rsp + 0x20], ebp
lea rax, [0x14013e5e8]
mov qword [rsp + 0x28], rax
cmp rcx, 0x80
ja 0x1400b3c2e
movups xmm0, xmmword [rsp + 0x38]
mov eax, dword [rsp + 0x50]
movsd xmm1, qword [rsp + 0x48]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
mov dword [rdi + 0x18], eax
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140104220
mov rbp, qword [rsp + 0x98]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x90], rbx
call fcn.1400ae900
mov rbx, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov qword [rsp + 0x28], rbx
mov esi, eax
mov rbx, qword [rsp + 0x90]
mov dword [rsp + 0x20], eax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], rbp
mov dword [rdi + 0x18], ebp
mov qword [rdi], 2
test esi, esi
jne 0x1400b3c56
jmp 0x1400b3bc1
mov dword [rsp + 0x20], 0x2726
call fcn.1400ae900
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call fcn.1400a9970
int3
lea rdx, str.local_endpoint
lea rcx, [rsp + 0x20]
call fcn.1400a99a0
int3
Function at 0x1400b53c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rdi, rcx
mov rcx, qword [rcx + 0x320]
test rcx, rcx
je 0x1400b5507
mov rax, qword [rcx]
call qword [rax + select]
imul rax, qword [rdi + 0x2e0], 0xf4240
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x70]
lea rcx, [rdi + 0x1f8]
call fcn.1400ac840
mov qword [rsp + 0x70], rdi
mov rsi, qword [rdi + 0x1f8]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x140143f10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r14d, r14d
test rax, rax
je 0x1400b543c
mov rdx, qword [rax + 8]
jmp 0x1400b543f
mov rdx, r14
mov r9d, 8
mov r8d, 0x90
movzx ecx, byte [rsp + 0x70]
call fcn.1400874a0
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rax + 0x20], r14
lea rax, [0x1400a8310]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
mov dword [rbx + 0x38], r14d
lea rax, [0x14013e5e8]
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], r14
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x50], rax
lea rcx, [rbx + 0x58]
lea r9, [rdi + 0x238]
xor r8d, r8d
xor edx, edx
call fcn.140092660
mov qword [rsp + 0x40], rbx
mov byte [rdi + 0x208], 1
lea r9, [rdi + 0x210]
lea rdx, [rsi + 0x28]
mov qword [rsp + 0x20], rbx
lea r8, [rdi + 0x200]
mov rcx, qword [rsi + 0x58]
call fcn.14008f980
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x30]
call fcn.1400ba260
nop
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
int3
Function at 0x1400b5cf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14013e880]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x1400b5d1d
xor eax, eax
jmp 0x1400b5e86
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x1400b5d5d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x1400b5d5d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x1400b5e7e
cmp qword [rdi + 0x80], 0
je 0x1400b5e79
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x1400b5d97
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1400b5dc2
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1400b5e7e
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400b5e31
sub eax, 1
je 0x1400b5e31
cmp eax, 2
jne 0x1400b5e79
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1400b5e7e
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x1400b5e5f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1400b5e79
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x1400b5e7e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140104220
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400b9bc0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rsi, rcx
test rbx, rbx
je 0x1400b9c1d
mov rbx, qword [rbx + 0x40]
test rbx, rbx
je 0x1400b9c15
mov qword [rsp + 0x30], rdi
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400b9c10
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400b9c10
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WSOCK32.dll_htonl]
mov rdi, qword [rsp + 0x30]
mov qword [rsi + 0x10], 0
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x1400b9c67
mov ecx, dword [0x140143f10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400b9c56
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400b9c56
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x1400b9c72
inc ecx
inc rax
cmp rax, 2
jl 0x1400b9c44
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rsi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
movzx eax, byte [rbx + 0x50]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x38]
mov qword [rsi + 8], 0
add rsp, 0x20
pop rsi
ret

Function at 0x1400b9ca0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400b9ccf
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x1400b9cc7
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400b9d19
mov ecx, dword [0x140143f10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400b9d08
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400b9d08
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x1400b9d24
inc ecx
inc rax
cmp rax, 2
jl 0x1400b9cf6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret