joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003b680
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1800fd750]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18003b6ad
xor eax, eax
jmp 0x18003b802
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x18003b6d8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x18003b6d8
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], dil
mov eax, edi
jmp 0x18003b802
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18003b7f5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x18003b71b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x18003b746
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18003b7fa
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
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 0x18003b7b5
sub eax, 1
je 0x18003b7b5
cmp eax, 2
jne 0x18003b7f5
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18003b7fa
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18003b7e3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18003b7f5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x18003b7fa
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800c52c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x18003bfd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x18003c004
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x18003bff0
ret
Function at 0x18003d830
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800fd750]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18003d903
cmp byte [rcx + 0x71], 0
je 0x18003d903
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18003d8ff
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 0x18003d8c4
sub eax, 1
je 0x18003d8c8
cmp eax, 2
jne 0x18003d8ff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800c52c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18003d8f6
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 0x18003d8ff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18003d8ac
xor al, al
jmp 0x18003d8ac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800c52c0
add rsp, 0x60
pop rbx
ret

Function at 0x18003f5d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1800fd750]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, 1
call fcn.1800c59fc
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x18004baa0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x18003f643
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800c52c0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1800565b0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1800fd750]
xor rax, rsp
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1800565fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
lea rcx, [0x1800e6c50]
movups xmmword [rsp + 0x20], xmm0
test eax, eax
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], rcx
setne byte [rsp + 0x24]
test eax, eax
jne 0x180056610
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800c52c0
add rsp, 0x40
pop rbx
ret
lea rdx, [0x1800e6a50]
lea rcx, [rsp + 0x20]
call fcn.180056480
int3

Function at 0x180056990
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1800fd750]
xor rax, rsp
mov qword [rsp + 0x30], rax
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 [0x1802b3680], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x180056a09
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800c52c0
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.180001750]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800c52c0
add rsp, 0x40
pop rbx
ret
Function at 0x180056a40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1800fd750]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov rsi, rdx
mov rbp, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 8], rax
mov rdi, rax
lea r14, [0x1800e6c50]
test rax, rax
jne 0x180056ac0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
lea edx, [rdi + 1]
mov rcx, rsi
mov ebx, eax
call qword [r8]
test ebx, ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x30], ebx
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], r14
test ebx, ebx
jne 0x180056be5
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x180056b17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test ebx, ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x30], ebx
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], r14
test ebx, ebx
jne 0x180056bf7
xor ecx, ecx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x180056c10]
mov r9, rsi
mov dword [rsp + 0x20], ecx
xor edx, edx
mov dword [rsp + 0x40], ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 8], rax
test rax, rax
jne 0x180056b95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test rdi, rdi
je 0x180056b6a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x180056b79
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x30], ebx
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], r14
test ebx, ebx
jne 0x180056bd3
test rdi, rdi
je 0x180056bb1
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800c52c0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.180056480
int3
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.180056480
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.180056480
int3
Function at 0x1800573f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1800fd750]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x1800574a0
mov ecx, 1
mov eax, ecx
xchg dword [rdi + 0x34], eax
lea rbp, [0x1800e6c50]
test eax, eax
jne 0x18005747a
xchg dword [rdi + 0x38], ecx
test ecx, ecx
jne 0x18005747a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x18005747a
call qword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x20], eax
test eax, eax
setne byte [rsp + 0x24]
mov qword [rsp + 0x28], rbp
test eax, eax
jne 0x180057587
mov dword [rsp + 0x20], ebx
mov byte [rsp + 0x24], bl
mov qword [rsp + 0x28], rbp
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xor eax, eax
jmp 0x18005756a
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rbx
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
lea rax, [rcx + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov ecx, dword [0x1802b36a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x30]
mov ecx, dword [0x1802b36a4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r8, rsi
mov rcx, rdi
call fcn.1800576c0
test rax, rax
je 0x18005752f
nop word [rax + rax]
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
mov r8, rsi
mov rcx, rdi
call fcn.1800576c0
test rax, rax
jne 0x180057510
mov rdx, qword [rsp + 0x40]
mov ecx, dword [0x1802b36a4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rdi, [rsp + 0x48]
mov esi, 3
nop dword [rax + rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x18005755d
call fcn.1800c5a64
add rdi, 8
sub rsi, 1
jne 0x180057550
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800c52c0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.pqcs
lea rcx, [rsp + 0x20]
call fcn.180056480
int3
Function at 0x180057a10
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x1800fd750]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov r15, rcx
mov qword [rsp + 0x20], rcx
mov ecx, gethostname
call fcn.1800c59fc
mov rdi, rax
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
mov qword [rdi + 0x30], rax
mov rcx, rdi
call fcn.180056640
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov dword [rsp + 0x68], eax
test eax, eax
setne byte [rsp + 0x6c]
lea rsi, [0x1800e6c50]
mov qword [rsp + 0x70], rsi
test eax, eax
jne 0x180057c2b
mov qword [rdi + 0x28], r15
xor ebx, ebx
mov qword [rdi + 0x30], rbx
mov qword [r15], rdi
mov eax, 1
lock xadd dword [0x1802b3698], eax
inc eax
cmp eax, 1
jne 0x180057ad3
lea ecx, [rbx + 2]
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1802b369c], eax
lock xadd dword [0x1802b369c], ebx
test ebx, ebx
jne 0x180057c3d
mov ecx, 0xb0
call fcn.1800c59fc
mov rbx, rax
mov qword [rsp + 0x78], rax
xor edx, edx
mov r8d, 0xb0
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov rdx, r15
mov rcx, rbx
call fcn.180056dd0
mov r13, rax
mov qword [rsp + 0x78], rax
mov r14, qword [r15]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.18005b3a0
mov rcx, qword [r13 + 0x18]
cmp qword [r14 + 0x28], rcx
jne 0x180057c03
mov qword [rsp + 0x28], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x30], 1
mov rbx, qword [r14 + 0x30]
test rbx, rbx
je 0x180057bb1
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x180057b7e
test rdi, rdi
je 0x180057b7e
cmp rax, rdi
jne 0x180057b7e
mov al, 1
jmp 0x180057ba4
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180057ba2
test rsi, rsi
je 0x180057ba2
lea rdx, [rsi + 8]
add rcx, 8
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
jne 0x180057ba2
mov al, 1
jmp 0x180057ba4
xor al, al
test al, al
jne 0x180057c17
mov rbx, qword [rbx + 0x20]
test rbx, rbx
jne 0x180057b67
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [r13 + 8], xmm0
mov rdx, qword [r14 + 0x30]
mov qword [r13 + 0x20], rdx
mov qword [r14 + 0x30], r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov qword [r15 + 0x10], r13
mov rax, r15
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1800c52c0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
lea rcx, [rsp + 0x38]
call fcn.1800568f0
nop
mov rcx, rax
call fcn.18005ac30
nop
lea rcx, [rsp + 0x50]
call fcn.180056880
nop
mov rcx, rax
call fcn.18005ac60
nop
lea rdx, str.mutex
lea rcx, [rsp + 0x68]
call fcn.180056480
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov dword [rsp + 0x68], ebx
mov byte [rsp + 0x6c], 1
mov qword [rsp + 0x70], rsi
lea rdx, str.winsock
lea rcx, [rsp + 0x68]
call fcn.180056480
int3
Function at 0x180057cf0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1800fd750]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
lea r15, [0x1800e6c50]
mov rdi, r9
mov r14, rdx
mov rsi, rcx
mov ebx, ebp
cmp rcx, 0xffffffffffffffff
je 0x180057e36
test r8b, r8b
je 0x180057d70
movzx eax, byte [rdx]
test al, 8
je 0x180057d70
or al, 8
mov dword [rsp + 0x40], ebp
xor ecx, ecx
mov byte [rdx], al
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x80
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test ebx, ebx
je 0x180057e36
mov eax, dword [rdi]
cmp eax, 0x2733
jne 0x180057dcb
mov rcx, qword [rdi + 8]
movabs rdx, 0x8fafd21e25c5e09b
cmp qword [rcx + 8], rdx
je 0x180057de6
jmp 0x180057e4c
cmp eax, 0x4d5
jne 0x180057e4c
mov rax, qword [rdi + 8]
movabs rdx, 0x8fafd21e25c5e09b
cmp qword [rax + 8], rdx
jne 0x180057e4c
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test ebx, ebx
jne 0x180057e4c
mov dword [rsp + 0x30], ebp
mov byte [rsp + 0x34], bpl
mov qword [rsp + 0x38], r15
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800c52c0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180057e70
Capabilities:
Connect socket
Get socket status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x388]
sub rsp, 0x488
mov rax, qword [0x1800fd750]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor r15d, r15d
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov r14, rcx
cmp rcx, 0xffffffffffffffff
jne 0x180057ed2
lea rsi, [0x1800e6c50]
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rsi
mov byte [rsp + 0x34], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r9], xmm0
jmp 0x180057f2b
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, esi
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
lea rsi, [0x1800e6c50]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rsi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test ebx, ebx
jne 0x180057f2b
mov dword [rsp + 0x30], r15d
mov byte [rsp + 0x34], r15b
mov qword [rsp + 0x38], rsi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov eax, dword [rdi]
cmp eax, 0x2734
je 0x180057f3f
cmp eax, 0x2733
jne 0x18005806a
mov rax, qword [rdi + 8]
movabs rcx, 0x8fafd21e25c5e09b
cmp qword [rax + 8], rcx
jne 0x18005806a
cmp r14, 0xffffffffffffffff
jne 0x180057f6f
mov dword [rsp + 0x30], 0x2719
mov byte [rsp + 0x34], 1
jmp 0x18005805d
xor ecx, ecx
mov qword [rbp + 0x168], r14
mov dword [rbp + 0x160], 1
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [r14 + 1]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
xor edx, edx
lea r8, [rbp + 0x160]
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rsi
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test ebx, ebx
js 0x18005806a
mov dword [rsp + 0x30], r15d
xor ecx, ecx
mov byte [rsp + 0x34], r15b
mov qword [rsp + 0x38], rsi
movups xmm0, xmmword [rsp + 0x30]
mov dword [rsp + 0x40], r15d
movups xmmword [rdi], xmm0
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x44], 4
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, r14
call qword [sym.imp.WS2_32.dll_getsockopt]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rsi
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
cmp ebx, 0xffffffff
je 0x18005806a
mov eax, dword [rsp + 0x40]
test eax, eax
mov dword [rsp + 0x30], eax
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rsi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.1800c52c0
add rsp, 0x488
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180058380
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1800fd750]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0xb0]
mov rbx, rcx
xor ecx, ecx
mov rsi, r8
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor ebp, ebp
lea r9, [rsp + 0x50]
mov qword [rsp + 0x30], rbp
mov r8d, esi
mov qword [rsp + 0x28], rbp
mov rdx, rdi
mov rcx, rbx
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x50], ebp
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x40], eax
lea rax, [0x1800e6c50]
setne byte [rsp + 0x44]
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
mov ecx, dword [r14]
cmp ecx, 0x40
jne 0x180058415
mov dword [rsp + 0x40], 0x2746
jmp 0x180058425
cmp ecx, 0x4d2
jne 0x180058438
mov dword [rsp + 0x40], 0x274d
mov byte [rsp + 0x44], 1
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
test ebx, ebx
je 0x180058443
mov eax, 0xffffffff
jmp 0x18005845e
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x40], ebp
mov byte [rsp + 0x44], bpl
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800c52c0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180058480
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x198]
sub rsp, 0x298
mov rax, qword [0x1800fd750]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, qword [rbp + 0x200]
mov rax, r9
mov qword [rsp + 0x30], rax
mov r13, r8
movzx r12d, dl
mov r15, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1800584f1
lea rdi, [0x1800e6c50]
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rdi
xor eax, eax
mov byte [rsp + 0x34], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x18005864c
cmp byte [rbp + 0x1f8], 0
mov qword [rsp + 0x290], r14
je 0x180058530
test r12b, 0x10
je 0x180058530
xor r14d, r14d
lea rdi, [0x1800e6c50]
mov dword [rsp + 0x30], r14d
xor eax, eax
mov byte [rsp + 0x34], r14b
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x180058644
mov r8, rax
mov qword [rsp + 0x2d8], rsi
mov rdx, r13
mov qword [rsp + 0x20], rbx
call fcn.180058380
test eax, eax
jns 0x18005863a
and r12b, 1
lea rdi, [0x1800e6c50]
xor r14d, r14d
movabs rcx, 0x8fafd21e25c5e09b
test r12b, r12b
jne 0x18005866c
mov eax, dword [rbx]
cmp eax, 0x2733
je 0x180058585
cmp eax, 0x4d5
jne 0x18005866c
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rcx
jne 0x18005866c
xor ecx, ecx
mov qword [rsp + 0x78], r15
mov dword [rsp + 0x70], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [r15 + 1]
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rdi
setne byte [rsp + 0x44]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
test esi, esi
jne 0x1800585fe
mov dword [rsp + 0x50], r14d
mov byte [rsp + 0x54], r14b
mov qword [rsp + 0x58], rdi
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
jmp 0x18005861d
jle 0x180058619
mov dword [rsp + 0x60], r14d
mov byte [rsp + 0x64], r14b
mov qword [rsp + 0x68], rdi
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx], xmm0
jmp 0x18005861d
test esi, esi
js 0x18005866c
mov r8, qword [rsp + 0x30]
mov rdx, r13
mov rcx, r15
mov qword [rsp + 0x20], rbx
call fcn.180058380
test eax, eax
js 0x18005855e
mov eax, eax
mov rsi, qword [rsp + 0x2d8]
mov r14, qword [rsp + 0x290]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1800c52c0
add rsp, 0x298
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
xor eax, eax
jmp 0x18005863c