joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b8660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rbx, rcx
xor ebp, ebp
cmp qword [rcx + 0x18], 0xf
jbe 0x1400b868c
mov rcx, qword [rcx]
lea rsi, [rbx + 0x18]
jmp 0x1400b8690
lea rsi, [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400b879c
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400b86ac
mov rcx, qword [rbx]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400b86e2
xor al, al
jmp 0x1400b884a
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 9
jb 0x1400b8869
cmp qword [rsi], 0xf
jbe 0x1400b8706
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 9
lea r9, str.Lua_file
lea rcx, [rsp + 0x60]
call fcn.1400a5810
nop
mov r8d, shutdown
lea rdx, str._not_found__created.
lea rcx, [rsp + 0x60]
call fcn.1400a0230
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, [rsp + 0x40]
mov ecx, recv
call fcn.1400c9320
nop
lea rcx, [rsp + 0x60]
call fcn.1400672b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400b8848
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 9
jb 0x1400b8863
cmp qword [rsi], 0xf
jbe 0x1400b87c0
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 9
lea r9, str.Lua_file
lea rcx, [rsp + 0x60]
call fcn.1400a5810
nop
mov r8d, 7
lea rdx, str._found.
lea rcx, [rsp + 0x60]
call fcn.1400a0230
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, [rsp + 0x40]
mov ecx, recv
call fcn.1400c9320
nop
lea rcx, [rsp + 0x60]
call fcn.1400672b0
mov al, 1
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1400668e0
int3
call fcn.1400668e0
int3
Function at 0x1400bbab0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x18], 0xf
mov rbx, rcx
mov r8, rcx
jbe 0x1400bbac6
mov r8, qword [rcx]
mov dword [rsp + 0x28], 5
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.1400672b0
Function at 0x1400be9c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400be9e8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400bea0e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400bea10
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400bea69
test ecx, ecx
jle 0x1400bea49
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400bea69
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400bea69
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x1400bea90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400beac1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x1400beadf
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400beafb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400beafd
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400beb39
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400bebce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400beb74
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400bebae
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400bebce
cmp rbx, rax
ja 0x1400beb80
test rbx, rbx
je 0x1400bebce
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400befe0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400bf004
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400bf047
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x1400bf047
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x1400bf178
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400bf08a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x1400bf0b5
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
cmove edi, ecx
mov eax, edi
jmp 0x1400bf17d
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
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 0x1400bf12a
sub eax, 1
je 0x1400bf12a
cmp eax, 2
jne 0x1400bf178
movsx ecx, byte [rsp + 0x40]
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
cmove edi, ecx
mov eax, edi
jmp 0x1400bf17d
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x1400bf15b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400bf178
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400bf17d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret

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

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

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400bf9d9
cmp byte [rcx + 0x71], 0
je 0x1400bf9d9
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400bf9cc
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x1400bf988
sub eax, 1
je 0x1400bf98c
cmp eax, 2
jne 0x1400bf9cc
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x1400bf9ba
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400bf9cc
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x1400c7010
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400c70dc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400c70dc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x1400c70f5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x1400c70cc
cmp byte [rax], 0x5c
jne 0x1400c70c6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x1400c70c6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400c70b2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x1400c70c3
test r8b, 0x10
jne 0x1400c70c6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x1400c70c6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400c2dc0
test edi, edi
jne 0x1400c7030
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.1400c2db0
int3
Function at 0x1400ccdf0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rbx, rcx
xor edi, edi
cmp byte [rcx + 0x4d], dil
jne 0x1400ccf20
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400cce16
call fcn.140106320
mov word [rsp + 0x4e], di
mov qword [rsp + 0x50], recv
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [str.Connecting...]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x140130438]
mov dword [rsp + 0x48], eax
movzx eax, byte [0x14013043c]
mov byte [rsp + 0x4c], al
mov byte [rsp + 0x4d], dil
lea rdx, [rsp + 0x40]
xor ecx, ecx
call fcn.1400c9320
xor r8d, r8d
lea rdx, [0x1401181e2]
lea rcx, [0x140153c08]
call fcn.140067380
mov dword [rbx + 0x30], edi
mov qword [rbx + 8], rdi
mov qword [rbx], rdi
mov dword [rbx + 0x4d], 0x1000000
mov dword [rbx + 0x24], edi
mov dword [rbx + 0x28], 0xbf800000
mov word [rbx + 0x51], 1
mov byte [rbx + 0x4c], dil
lea rcx, [rbx + 0x58]
xor r8d, r8d
lea rdx, [0x1401181e2]
call fcn.140067380
movabs rax, 0xc08f380000000000
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov ecx, 8
call fcn.14010ab80
mov qword [rax], rbx
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x1400cd420]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400ccf37
cmp dword [rsp + 0x38], 0
je 0x1400ccf2b
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400ccf2b
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400cd450
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x60
mov edi, 2
mov edx, edi
mov ecx, edi
lea r8d, [rdi + 0xf]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400cd4cf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movsxd rdx, eax
xorps xmm0, xmm0
lea rax, str.socket_failed:
mov r8, rbx
add rdx, rax
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
movups xmmword [rbp - 0x20], xmm0
nop
inc r8
cmp byte [rdx + r8], al
jne 0x1400cd4a0
lea rcx, [rbp - 0x20]
call fcn.1400a3d30
lea rdx, [rbp - 0x20]
mov ecx, reloc.WS2_32.dll_ntohs
call fcn.1400c9320
mov rax, 0xffffffffffffffff
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret
lea r9, [rbp + 0x20]
mov dword [rbp + 0x20], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400cd55e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movsxd rdx, eax
xorps xmm0, xmm0
lea rax, str.setsockopt_failed:
mov r8, 0xffffffffffffffff
add rdx, rax
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
movups xmmword [rbp - 0x20], xmm0
inc r8
cmp byte [rdx + r8], al
jne 0x1400cd526
lea rcx, [rbp - 0x20]
call fcn.1400a3d30
lea rdx, [rbp - 0x20]
mov ecx, reloc.WS2_32.dll_ntohs
call fcn.1400c9320
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret
lea r9, [rbp + 0x28]
mov dword [rbp + 0x28], 0x3e8
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1006
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, 0xc000
mov word [rbp - 0x30], di
call qword [sym.imp.WS2_32.dll_htons]
xor ecx, ecx
mov word [rbp - 0x2e], ax
call qword [sym.imp.WS2_32.dll_htonl]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x30]
mov rcx, rbx
mov dword [rbp - 0x2c], eax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1400cd5f4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movsxd rdx, eax
xorps xmm0, xmm0
lea rax, str.bind_failed:
mov r8, 0xffffffffffffffff
add rdx, rax
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
movups xmmword [rbp - 0x20], xmm0
inc r8
cmp byte [rdx + r8], al
jne 0x1400cd5e6
jmp 0x1400cd52f
mov rax, rbx
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400ce800
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rbx, rcx
xor edi, edi
mov word [rsp + 0x3e], di
mov qword [rsp + 0x40], recv
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [str.Connecting...]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x140130438]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x14013043c]
mov byte [rsp + 0x3c], al
mov byte [rsp + 0x3d], dil
lea rdx, [rsp + 0x30]
lea ecx, [rdi + 0xf]
call fcn.1400c9320
mov ecx, 0x202
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400ce8ee
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
lea ecx, [rdi + 0x20]
call fcn.14010ab80
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], reloc.WS2_32.dll_recvfrom
mov qword [rsp + 0x48], 0x1f
movups xmm0, xmmword [str.WSAStartup_failed]
movups xmmword [rax], xmm0
movzx edx, byte [0x140130450]
mov byte [rax + 0x10], dl
mov byte [rax + 0x11], dil
lea rdx, [rsp + 0x30]
lea ecx, [rdi + 0xf]
call fcn.1400c9320
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov eax, edi
xchg byte [rbx + 0x10], al
mov ecx, 8
call fcn.14010ab80
mov qword [rax], rbx
mov qword [rbp + 0x108], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x1400cebf0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400ce982
cmp dword [rbx + 8], 0
jne 0x1400ce97b
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rbx], xmm1
cmp dword [rbx + 8], 0
je 0x1400ce96f
movaps xmmword [rsp + 0x30], xmm1
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400ce96f
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
jmp 0x1400ce8d9
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400dddc0
Capabilities:
Get socket status

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [rcx]
lea rdi, [r11 + 0x18]
mov qword [rsp + 0x68], rax
lea rsi, [rsp + 0x60]
mov r9d, edx
mov dword [rsp + 0x60], 1
mov ecx, r8d
lea rbp, [rsp + 0x60]
movabs rax, 0x20c49ba5e353f7cf
imul r8
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0x3e8
mov dword [r11 + 0x18], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [r11 + 0x1c], eax
xor eax, eax
test r8, r8
cmovs rdi, rax
cmp r9d, 1
mov qword [rsp + 0x20], rdi
cmovne rsi, rax
test r9d, r9d
mov r8, rsi
cmovne rbp, rax
xor r9d, r9d
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400dde8b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1400dde91
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400dde61
test ebx, ebx
je 0x1400ddeb1
jmp 0x1400dde98
cmp ebx, 0xffffffff
je 0x1400dded4
jmp 0x1400dde8b
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rdx, str.Request_timed_out
lea rcx, [rsp + 0x30]
call fcn.1400ddc50
lea rdx, [0x14014db40]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.1400ddbf0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, str.Failed_to_select_socket
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.1400dd900
lea rdx, [0x14014da08]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400e1c80
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [0x140156a58]
mov edx, dword [rcx + 0x10]
test edx, edx
je 0x1400e1d95
sub edx, 1
je 0x1400e1cc3
cmp edx, 1
jne 0x1400e1d8f
mov rcx, qword [0x140156ae8]
call fcn.1400ce9a0
mov rcx, qword [0x140156ae8]
add rsp, 0x30
pop rbx
jmp fcn.1400ce800
mov rbx, qword [0x140156af8]
lea rdx, [0x1401181e2]
xor r8d, r8d
lea rcx, [rbx + 0x80]
call fcn.140067380
mov rcx, qword [0x140156af8]
xor eax, eax
mov dword [rbx + 8], eax
mov qword [rbx + 0xd], rax
mov dword [rbx + 0x15], eax
mov qword [rbx + 0x1c], rax
mov qword [rbx + 0x24], rax
mov qword [rbx + 0x2c], rax
mov qword [rbx + 0x34], rax
mov qword [rbx + 0x3c], rax
mov qword [rbx + 0x44], rax
mov qword [rbx + 0x4c], rax
mov qword [rbx + 0x54], rax
mov qword [rbx + 0x5c], rax
mov qword [rbx + 0x64], rax
mov qword [rbx + 0x6c], rax
mov qword [rbx + 0x74], rax
mov qword [rbx], 4
call fcn.1400ffda0
mov rbx, qword [0x140156ae8]
mov eax, 1
xchg byte [rbx + 0x10], al
cmp dword [rbx + 8], 0
je 0x1400e1d76
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x1400e1de5
movups xmm0, xmmword [rbx]
xor edx, edx
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x1400e1e0e
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov rcx, qword [0x140156e80]
call qword [sym.imp.WS2_32.dll_closesocket]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.WS2_32.dll_WSACleanup]
add rsp, 0x30
pop rbx
ret
mov rcx, qword [0x140156af0]
cmp byte [rcx + 0x4d], 0
jne 0x1400e1da9
call fcn.1400ccdf0
jmp 0x1400e1dc5
mov rcx, qword [rcx]
lea r8, str.AircraftLoaded
xor edx, edx
call fcn.1401068a0
mov rax, qword [0x140156af0]
mov byte [rax + 0x4c], 1
mov rbx, qword [0x140156ae8]
mov eax, 1
xchg byte [rbx + 0x10], al
cmp dword [rbx + 8], 0
je 0x1400e1d76
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
jne 0x1400e1df1
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movups xmm0, xmmword [rbx]
xor edx, edx
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x1400e1d70
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
add byte [rax], al
add byte [rax], al