joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a3360
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov ecx, 1
call fcn.14010bac0
mov qword [rsp + 0x48], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400b0100]
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 0x1400a33bc
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
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 0x1400a33d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
xor esi, esi
lea ecx, [rsi + 0x20]
call fcn.14010bac0
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
movups xmm0, xmmword [rbx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rax + 0x10], xmm1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], sil
mov qword [rsp + 0x40], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x1400b0180]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x1400a345b
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov dword [rbx], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400b8240
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
movss dword [rcx + 8], xmm1
movss dword [rcx + 0xc], xmm1
xorps xmm0, xmm0
ucomiss xmm1, xmm0
jp 0x1400b825d
je 0x1400b8264
divss xmm1, xmm1
movaps xmm0, xmm1
movss dword [rcx + 4], xmm0
cmp byte [rcx], 0
jne 0x1400b82d4
mov byte [rcx], 1
mov ecx, 8
call fcn.14010bac0
mov qword [rax], rbx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400b8340]
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 0x1400b82e6
cmp dword [rsp + 0x38], 0
je 0x1400b82da
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 0x1400b82da
add rsp, 0x50
pop rbx
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400b8870
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
lea r15d, [rbp - 6]
mov r13d, ebp
cmp qword [rdx + 0x10], r13
jbe 0x1400b89d3
mov r12d, ebp
nop dword [rax + rax]
mov rax, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x1400b88dd
mov rax, qword [r14]
movsx eax, byte [r12 + rax]
shl ebp, 8
add eax, ebp
movsxd rbp, eax
add r15d, 8
js 0x1400b896a
mov r8, rbp
movsxd rdi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov rax, r8
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r14]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400b8950
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400b8945
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400b895b
mov rcx, rbx
call fcn.1400a58e0
mov r8, rbp
sub rdi, 6
sub rsi, 1
jne 0x1400b8913
mov r14, qword [rsp + 0x78]
inc r13d
inc r12
movsxd rax, r13d
cmp rax, qword [r14 + 0x10]
jb 0x1400b88d0
cmp r15d, 0xfffffffa
jle 0x1400b89d3
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rax, ebp
sar rax, cl
and eax, 0x3f
lea r9, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx r9d, byte [rax + r9]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400b89cb
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400b89c0
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400b89d3
mov rcx, rbx
call fcn.1400a58e0
mov rax, qword [rbx + 0x10]
test al, 3
je 0x1400b8a18
nop dword [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rax, rdx
jae 0x1400b8a05
lea rcx, [rax + 1]
mov qword [rbx + 0x10], rcx
mov rcx, rbx
cmp rdx, 0xf
jbe 0x1400b89fd
mov rcx, qword [rbx]
mov word [rcx + rax], 0x3d
jmp 0x1400b8a10
mov r9b, 0x3d
mov rcx, rbx
call fcn.1400a58e0
mov rax, qword [rbx + 0x10]
test al, 3
jne 0x1400b89e0
mov rax, rbx
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400b9e30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rbx, rcx
xor edi, edi
cmp qword [rcx + 0x18], 0xf
jbe 0x1400b9e4c
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400ba009
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400b9e68
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1400b9f49
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400b9f49
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0xc
jb 0x1400ba026
cmp qword [rbx + 0x18], 0xf
jbe 0x1400b9eae
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], recv
lea r9, str.Folder_path
lea rcx, [rsp + 0x60]
call fcn.1400a72c0
nop
mov r8d, 0x23
lea rdx, str._not_found_and_couldnt_be_created.
lea rcx, [rsp + 0x60]
call fcn.1400a1a60
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, [rsp + 0x40]
mov ecx, recv
call fcn.1400c9fe0
nop
lea rcx, [rsp + 0x60]
call fcn.1400672c0
xor al, al
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0xc
jb 0x1400ba020
cmp qword [rbx + 0x18], 0xf
jbe 0x1400b9f6e
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], recv
lea r9, str.Folder_path
lea rcx, [rsp + 0x60]
call fcn.1400a72c0
nop
mov r8d, reloc.WS2_32.dll_select
lea rdx, str._found_or_created.
lea rcx, [rsp + 0x60]
call fcn.1400a1a60
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, [rsp + 0x40]
mov ecx, recv
call fcn.1400c9fe0
nop
lea rcx, [rsp + 0x60]
call fcn.1400672c0
mov al, 1
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
test al, 0x10
je 0x1400ba00f
mov al, 1
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
call fcn.1400668f0
int3
call fcn.1400668f0
int3
Function at 0x1400ba030
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 0x1400ba05c
mov rcx, qword [rcx]
lea rsi, [rbx + 0x18]
jmp 0x1400ba060
lea rsi, [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400ba16c
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400ba07c
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 0x1400ba0b2
xor al, al
jmp 0x1400ba21a
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 9
jb 0x1400ba239
cmp qword [rsi], 0xf
jbe 0x1400ba0d6
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.1400a72c0
nop
mov r8d, shutdown
lea rdx, str._not_found__created.
lea rcx, [rsp + 0x60]
call fcn.1400a1a60
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.1400c9fe0
nop
lea rcx, [rsp + 0x60]
call fcn.1400672c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400ba218
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 9
jb 0x1400ba233
cmp qword [rsi], 0xf
jbe 0x1400ba190
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.1400a72c0
nop
mov r8d, 7
lea rdx, str._found.
lea rcx, [rsp + 0x60]
call fcn.1400a1a60
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.1400c9fe0
nop
lea rcx, [rsp + 0x60]
call fcn.1400672c0
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.1400668f0
int3
call fcn.1400668f0
int3
Function at 0x1400bda90
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x18], 0xf
mov rbx, rcx
mov r8, rcx
jbe 0x1400bdaa6
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.1400672c0
Function at 0x1400c0670
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400c06a4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400c0690
ret
Function at 0x1400c7cd0
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 0x1400c7d9c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400c7d9c
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 0x1400c7db5
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 0x1400c7d8c
cmp byte [rax], 0x5c
jne 0x1400c7d86
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x1400c7d86
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400c7d72
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x1400c7d83
test r8b, 0x10
jne 0x1400c7d86
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x1400c7d86
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400c3a80
test edi, edi
jne 0x1400c7cf0
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.1400c3a70
int3
Function at 0x1400cdab0
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 0x1400cdbe0
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400cdad6
call fcn.140107270
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 [0x140131600]
mov dword [rsp + 0x48], eax
movzx eax, byte [0x140131604]
mov byte [rsp + 0x4c], al
mov byte [rsp + 0x4d], dil
lea rdx, [rsp + 0x40]
xor ecx, ecx
call fcn.1400c9fe0
xor r8d, r8d
lea rdx, [0x140119222]
lea rcx, [0x140154c08]
call fcn.140067390
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, [0x140119222]
call fcn.140067390
movabs rax, 0xc08f380000000000
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov ecx, 8
call fcn.14010bac0
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, [0x1400ce0e0]
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 0x1400cdbf7
cmp dword [rsp + 0x38], 0
je 0x1400cdbeb
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 0x1400cdbeb
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 0x1400ce110
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 0x1400ce18f
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 0x1400ce160
lea rcx, [rbp - 0x20]
call fcn.1400a5790
lea rdx, [rbp - 0x20]
mov ecx, reloc.WS2_32.dll_ntohs
call fcn.1400c9fe0
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 0x1400ce21e
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 0x1400ce1e6
lea rcx, [rbp - 0x20]
call fcn.1400a5790
lea rdx, [rbp - 0x20]
mov ecx, reloc.WS2_32.dll_ntohs
call fcn.1400c9fe0
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 rcx, qword [0x140157ab0]
mov word [rbp - 0x30], di
call fcn.1400f88a0
mov ecx, eax
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 0x1400ce2be
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
nop
inc r8
cmp byte [rdx + r8], al
jne 0x1400ce2b0
jmp 0x1400ce1ef
mov rax, rbx
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400cf4e0
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 [0x140131600]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x140131604]
mov byte [rsp + 0x3c], al
mov byte [rsp + 0x3d], dil
lea rdx, [rsp + 0x30]
lea ecx, [rdi + 0xf]
call fcn.1400c9fe0
mov ecx, 0x202
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400cf5ce
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.14010bac0
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 [0x140131618]
mov byte [rax + 0x10], dl
mov byte [rax + 0x11], dil
lea rdx, [rsp + 0x30]
lea ecx, [rdi + 0xf]
call fcn.1400c9fe0
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.14010bac0
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, [0x1400cf8d0]
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 0x1400cf662
cmp dword [rbx + 8], 0
jne 0x1400cf65b
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rbx], xmm1
cmp dword [rbx + 8], 0
je 0x1400cf64f
movaps xmmword [rsp + 0x30], xmm1
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400cf64f
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
jmp 0x1400cf5b9
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 0x1400deaa0
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 0x1400deb6b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1400deb71
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 0x1400deb41
test ebx, ebx
je 0x1400deb91
jmp 0x1400deb78
cmp ebx, 0xffffffff
je 0x1400debb4
jmp 0x1400deb6b
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.1400de930
lea rdx, [0x14014eeb0]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.1400de8d0
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.1400de5e0
lea rdx, [0x14014ed78]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400e2960
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [0x140157a38]
mov edx, dword [rcx + 0x10]
test edx, edx
je 0x1400e2a6f
sub edx, 1
je 0x1400e29a3
cmp edx, 1
jne 0x1400e2a69
mov rcx, qword [0x140157ad0]
call fcn.1400cf680
mov rcx, qword [0x140157ad0]
add rsp, 0x30
pop rbx
jmp fcn.1400cf4e0
mov rbx, qword [0x140157ae0]
lea rdx, [0x140119222]
xor r8d, r8d
lea rcx, [rbx + 0x80]
call fcn.140067390
mov rcx, qword [0x140157ae0]
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.140100cf0
mov rbx, qword [0x140157ad0]
mov eax, 1
xchg byte [rbx + 0x10], al
cmp dword [rbx + 8], 0
je 0x1400e2a56
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x1400e2abf
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 0x1400e2ae8
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov rcx, qword [0x140157ee0]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.WS2_32.dll_closesocket]
add rsp, 0x30
pop rbx
ret
mov rcx, qword [0x140157ad8]
cmp byte [rcx + 0x4d], 0
jne 0x1400e2a83
call fcn.1400cdab0
jmp 0x1400e2a9f
mov rcx, qword [rcx]
lea r8, str.AircraftLoaded
xor edx, edx
call fcn.1401077f0
mov rax, qword [0x140157ad8]
mov byte [rax + 0x4c], 1
mov rbx, qword [0x140157ad0]
mov eax, 1
xchg byte [rbx + 0x10], al
cmp dword [rbx + 8], 0
je 0x1400e2a56
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
jne 0x1400e2acb
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 0x1400e2a50
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
add byte [rax + rax], 0
add al, 0
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al