joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006bff0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword gs:[0x58]
mov rbx, rcx
mov ecx, 4
mov ebp, r8d
mov r14, rdx
mov r9, qword [rax]
mov eax, dword [rcx + r9]
cmp dword [0x1400cf6f0], eax
jg 0x14006c16d
test ebp, ebp
sete dil
test ebp, ebp
je 0x14006c0a2
lea rsi, [rbx + 0x348]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
nop dword [rax + rax]
mov edi, dword [rbx + 0x338]
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_profile_l1_1_0.dll_QueryPerformanceCounter]
nop dword [rax + rax]
mov rax, qword [rsp + 0x50]
sub rax, qword [rbx + 0x350]
cmp rax, qword [0x1400cf6e8]
jle 0x14006c08b
sub edi, dword [rbx + 0x358]
cmp edi, 0x7d0
jbe 0x14006c08b
mov dil, 1
jmp 0x14006c08e
xor dil, dil
test rsi, rsi
je 0x14006c0a2
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
test dil, dil
je 0x14006c159
lea rdi, [rbx + 0x348]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
nop dword [rax + rax]
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_profile_l1_1_0.dll_QueryPerformanceCounter]
nop dword [rax + rax]
mov esi, dword [rbx + 0x338]
mov rax, qword [rsp + 0x68]
test ebp, ebp
je 0x14006c104
mov rcx, rax
sub rcx, qword [rbx + 0x350]
cmp rcx, qword [0x1400cf6e8]
jle 0x14006c145
mov ecx, esi
sub ecx, dword [rbx + 0x358]
cmp ecx, 0x7d0
jbe 0x14006c145
mov qword [rbx + 0x350], rax
mov dword [rbx + 0x358], esi
call fcn.14001043c
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14006c145
cmp dword [rcx], 0
jbe 0x14006c145
call fcn.14001043c
mov eax, dword [rbx + 0x340]
mov r9d, dword [rbx + 0x33c]
mov r8d, esi
mov dword [rsp + 0x20], eax
mov rdx, r14
call fcn.140070264
test rdi, rdi
je 0x14006c159
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
lea rcx, [0x1400cf6f0]
call fcn.1400986a0
cmp dword [0x1400cf6f0], 0xffffffff
jne 0x14006c02c
xorps xmm0, xmm0
lea rcx, [0x1400cf6f0]
cvtsi2sd xmm0, qword [0x1400cf300]
mulsd xmm0, qword [0x1400b69e0]
cvttsd2si rax, xmm0
mov qword [0x1400cf6e8], rax
call fcn.140098638
jmp 0x14006c02c
Function at 0x140073f58
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1400ce2e8]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rdi, r8
mov r14b, dl
mov qword [rsp + 0x48], r8
movdqa xmm0, xmmword [0x1400b6a80]
movdqu xmmword [rsp + 0x68], xmm0
xor r15d, r15d
mov word [rsp + 0x58], r15w
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.140006ec8
nop
xor r8d, r8d
lea rdx, [0x1400b12e4]
lea rcx, [rsp + 0x58]
call fcn.140073e58
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileExW]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
jne 0x140074023
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140074026
mov ebx, r15d
test ebx, ebx
js 0x140074103
mov byte [rsp + 0x30], 1
mov eax, dword [rbp - 0x80]
shr eax, 4
and al, 1
test r14b, r14b
je 0x14007406a
test al, al
je 0x1400740a3
movzx eax, word [rbp - 0x52]
cmp word [rbp - 0x54], 0x2e
jne 0x14007406e
test ax, ax
je 0x1400740a3
cmp word [rbp - 0x54], 0x2e
jne 0x14007406e
cmp ax, 0x2e
jne 0x14007406e
cmp word [rbp - 0x50], r15w
jne 0x14007406e
jmp 0x1400740a3
test al, al
jne 0x1400740a3
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x54]
mov qword [rsp + 0x40], rax
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400740e6
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov rax, qword [rax + 0x10]
call qword [case.0x14007be6b.0]
mov ebx, eax
test ebx, ebx
js 0x14007410d
cmp byte [rsp + 0x30], r15b
je 0x14007410d
lea rdx, [rbp - 0x80]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140074033
cmp byte [rsp + 0x30], r15b
je 0x14007410d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x12
jne 0x1400740f3
mov ebx, r15d
jmp 0x14007410d
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xbad_function_call_void_]
nop dword [rax + rax]
int3
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14007410d
cmp ebx, 0x80070003
cmove ebx, r15d
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140074127
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x58]
call fcn.140006c64
nop
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140074152
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x14007be6b.0]
mov qword [rdi + 0x38], r15
mov eax, ebx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140097e50
mov rbx, qword [rsp + 0x318]
add rsp, 0x2e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007ecf0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x1400ce2e8]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov edi, edx
mov rbx, rcx
call qword [sym.imp.ext_ms_win_resourcemanager_gamemode_l1_2_0.dll_RmGameModeInitializeResourceRequest]
nop dword [rax + rax]
mov eax, dword [rbx + 0x20]
lea rcx, [rsp + 0x38]
and eax, 0xfffffffb
or eax, 3
mov dword [rbx + 0x20], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
nop dword [rax + rax]
mov eax, dword [rsp + 0x58]
cmp eax, 4
jb 0x14007ed61
mov eax, dword [rbx + 0x1c]
and dword [rbx + 4], 0
and eax, 0xffffffef
and qword [rbx + 8], 0
or eax, 0x8f
mov dword [rbx + 0x1c], eax
mov eax, edi
jmp 0x14007edbe
cmp dword [0x1400cc150], 5
jbe 0x14007edb9
and dword [rsp + 0x94], 0
lea rdx, [0x1400bd6db]
mov dword [rsp + 0x30], eax
lea rcx, [0x1400cc150]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x90], 4
mov qword [rsp + 0x88], rax
xor r9d, r9d
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
call fcn.1400017d8
mov eax, 0xc000009a
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140097e50
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
Function at 0x140003070
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004af0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004af0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400030e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140003210
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000312b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400031b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003110
mov rcx, rbx
call fcn.140003b30
mov rdi, rax
test rax, rax
je 0x140003232
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003c70
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003217
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400031ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400031c0
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400031ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140003070
nop dword [rax]
xor esi, esi
jmp 0x140003138
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140003070
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140003070
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400037a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x1400037fc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400037f3
test rsi, rsi
je 0x1400037f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400037d8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003b30
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006b00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003b50
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003b58
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003b50
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003bad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003ba4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003b50
add rax, 0x28
cmp rax, r9
jne 0x140003b90
xor eax, eax
ret

Function at 0x140003bb0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b00]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003bcf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003bd8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003bcf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003c70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b00]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003c8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003c98
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x180001070
Capabilities:
Initialize winsock library

Disassembly:
push rsi
sub rsp, 0x1c0
mov rsi, rcx
mov rax, qword [0x1802a3900]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
mov byte [rcx], 0
lea rdx, [rsp + 0x20]
mov cx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1800010a6
mov byte [rsi], 1
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.18008fc60
mov rax, rsi
add rsp, 0x1c0
pop rsi
ret

Function at 0x180001e70
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rax, qword [0x1802a3900]
xor rax, rsp
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov rdx, rax
call sym.BLRevive.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__const___ptr64____ptr64
lea rdx, str._server
mov rcx, rsi
xor r8d, r8d
call sym.BLRevive.dll_public:_unsigned_long_long_unsigned___int64____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const__const___ptr64__unsigned_long_long_unsigned___int64__const___ptr64
cmp rax, 0xffffffffffffffff
setne bl
mov rcx, rsi
call sym.BLRevive.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18008fc60
mov eax, ebx
add rsp, 0x48
pop rbx
pop rsi
ret

Function at 0x180002900
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
call sym.BLRevive.dll_public:_static_class_BLRE::BLRevive____ptr64___cdecl_BLRE::BLRevive::Create_void_
mov rcx, rax
add rsp, 0x28
jmp sym.BLRevive.dll_public:_void___cdecl_BLRE::BLRevive::Initialize_void____ptr64

Function at 0x180002920
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x18000294e
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [sym.BLRevive.dll_InitializeThread]
xor ecx, ecx
xor edx, edx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180003750
Capabilities:
Hash data using fnv

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
call sym.BLRevive.dll_public:_void___cdecl_std::allocator_class_BLRE::Detours::FunctionDetour____ptr64____ptr64_::constructor_class_BLRE::Detours::FunctionDetour____ptr64__class_std::allocator_class_BLRE::Detours::FunctionDetour____ptr64__const____ptr64____ptr64
mov rcx, rax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp sym.BLRevive.dll_public:_unsigned_long_long_unsigned___int64____cdecl_std::_Conditionally_enabled_hash_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____1_::operator___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64_const___ptr64
Function at 0x180003780
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
call sym.BLRevive.dll_public:_unsigned_long_long_unsigned___int64____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const___ptr64
mov rdi, rax
mov rcx, rsi
call sym.BLRevive.dll_public:_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const___ptr64
mov rcx, rax
mov rdx, rdi
add rsp, 0x28
pop rdi
pop rsi
jmp sym.BLRevive.dll_unsigned_long_long_unsigned___int64____cdecl_std::_Hash_array_representation_char__char_const__const___ptr64__unsigned_long_long_unsigned___int64__

Function at 0x1800037b0
Capabilities:
Hash data using fnv

Disassembly:
mov r8, rdx
mov rdx, rcx
movabs rcx, 0xcbf29ce484222325
jmp sym.BLRevive.dll_unsigned_long_long_unsigned___int64____cdecl_std::_Fnv1a_append_bytes_unsigned_long_long_unsigned___int64___unsigned_char_const__const___ptr64__unsigned_long_long_unsigned___int64__

Function at 0x1800037f0
Capabilities:
Hash data using fnv

Disassembly:
test r8, r8
je 0x180003811
movabs r9, 0x100000001b3
mov r10d, r8d
and r10d, 3
cmp r8, 4
jae 0x180003815
xor r11d, r11d
jmp 0x18000385c
mov rax, rcx
ret
and r8, 0xfffffffffffffffc
xor r11d, r11d
nop dword [rax]
movzx eax, byte [rdx + r11]
xor rax, rcx
imul rax, r9
movzx ecx, byte [rdx + r11 + 1]
xor rcx, rax
imul rcx, r9
movzx eax, byte [rdx + r11 + 2]
xor rax, rcx
imul rax, r9
movzx ecx, byte [rdx + r11 + 3]
xor rcx, rax
imul rcx, r9
add r11, 4
cmp r8, r11
jne 0x180003820
mov rax, rcx
test r10, r10
je 0x180003887
add rdx, r11
xor r8d, r8d
nop word [rax + rax]
movzx eax, byte [rdx + r8]
xor rax, rcx
imul rax, r9
inc r8
mov rcx, rax
cmp r10, r8
jne 0x180003870
ret
Function at 0x18002e570
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1802a3900]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rcx, qword [rcx]
call sym.BLRevive.dll_public:_bool___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::empty_void_const___ptr64
mov sil, 1
mov rcx, rbx
mov dl, 1
call sym.BLRevive.dll_void___cdecl_httplib::detail::set_nonblocking_unsigned_long_long_unsigned___int64___bool_
mov r8d, dword [r14 + 0x10]
mov rdx, qword [r14 + 0x20]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x18002e66f
xor ebp, ebp
mov rcx, rbx
xor edx, edx
call sym.BLRevive.dll_void___cdecl_httplib::detail::set_nonblocking_unsigned_long_long_unsigned___int64___bool_
mov rax, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x28]
imul r8d, dword [rax], 0x3e8
movabs r14, 0x20c49ba5e353f7cf
mov rax, r14
imul qword [rcx]
mov rax, rdx
shr rax, 0x3f
shr rdx, 7
add edx, eax
add edx, r8d
mov dword [rsp + 0x2c], edx
mov dword [rsp + 0x20], 4
mov r15, qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x2c]
mov rcx, rbx
mov edx, 0xffff
mov r8d, 0x1006
call r15
mov rax, qword [rdi + 0x30]
mov rcx, qword [rdi + 0x38]
imul r8d, dword [rax], 0x3e8
mov rax, r14
imul qword [rcx]
mov rax, rdx
shr rax, 0x3f
shr rdx, 7
add edx, eax
add edx, r8d
mov dword [rsp + 0x2c], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rbx
mov edx, 0xffff
mov r8d, 0x1005
call r15
jmp 0x18002e67f
call sym.BLRevive.dll_bool___cdecl_httplib::detail::is_connection_error_void_
test al, al
je 0x18002e6a1
mov ebp, 2
xor esi, esi
mov rax, qword [rdi + 8]
mov dword [rax], ebp
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18008fc60
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
mov r8, qword [rcx]
mov rdx, qword [rax]
mov rcx, rbx
call sym.BLRevive.dll_enum_httplib::Error___cdecl_httplib::detail::wait_until_socket_is_ready_unsigned_long_long_unsigned___int64___long_long___int64___long_long___int64__
mov rcx, qword [rdi + 8]
mov dword [rcx], eax
mov rax, qword [rdi + 8]
cmp dword [rax], 0
je 0x18002e5c2
xor esi, esi
jmp 0x18002e685

Function at 0x18002e6d0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1802a3900]
xor rax, rsp
mov qword [rsp + 0x30], rax
movzx eax, dl
mov dword [rsp + 0x2c], eax
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18008fc60
nop
add rsp, 0x38
ret

Function at 0x18002e8d0
Capabilities:
Get socket status

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx + 0x20]
mov r9, qword [rcx + 0x18]
mov r8, qword [rcx + 0x10]
mov r10, qword [rcx]
mov rdx, qword [rcx + 8]
mov ecx, dword [r10]
inc ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
nop
add rsp, 0x28
ret
Function at 0x18002edc0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rcx, qword [rcx + 8]
jmp sym.BLRevive.dll_void___cdecl_httplib::detail::get_local_ip_and_port_unsigned_long_long_unsigned___int64___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64__int____ptr64_

Function at 0x18002eff0
Capabilities:
Get socket status

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx + 0x10]
mov r8, qword [rcx]
mov rdx, qword [rcx + 8]
mov ecx, dword [r8]
inc ecx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_select]
nop
add rsp, 0x28
ret

Function at 0x18002f160
Capabilities:
Get socket status

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx + 0x10]
mov rdx, qword [rcx]
mov r8, qword [rcx + 8]
mov ecx, dword [rdx]
inc ecx
mov qword [rsp + 0x20], rax
xor edx, edx
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_select]
nop
add rsp, 0x28
ret

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

Disassembly:
mov rax, qword [rcx + 0x18]
mov r9d, dword [rax]
mov rax, qword [rcx + 0x10]
mov r8d, dword [rax]
mov rax, qword [rcx]
mov rcx, qword [rcx + 8]
mov rdx, qword [rcx]
mov rcx, qword [rax]
jmp qword [sym.imp.WS2_32.dll_recv]

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

Disassembly:
mov rax, qword [rcx + 0x18]
mov r9d, dword [rax]
mov rax, qword [rcx + 0x10]
mov r8d, dword [rax]
mov rax, qword [rcx]
mov rcx, qword [rcx + 8]
mov rdx, qword [rcx]
mov rcx, qword [rax]
jmp qword [sym.imp.WS2_32.dll_send]
Function at 0x18002f3f0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x450
mov r14, r9
mov rsi, r8
mov edi, edx
mov rbx, rcx
mov rax, qword [0x1802a3900]
xor rax, rsp
mov qword [rsp + 0x448], rax
movzx eax, word [rcx]
cmp eax, 0x17
je 0x18002f42c
cmp eax, 2
jne 0x18002f4ad
movzx ecx, word [rbx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [r14], eax
lea r14, [rsp + 0x47]
mov r8d, 0x401
mov rcx, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, r14
call sym.BLRevive.dll_public:_unsigned_long_long_unsigned___int64____cdecl_std::array_char__1025_::size_void_const___ptr64
mov r15, rax
mov rcx, r14
call sym.BLRevive.dll_public:_void___cdecl_std::allocator_class_BLRE::Detours::FunctionDetour____ptr64____ptr64_::constructor_class_BLRE::Detours::FunctionDetour____ptr64__class_std::allocator_class_BLRE::Detours::FunctionDetour____ptr64__const____ptr64____ptr64
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov edx, edi
mov r8, rax
mov r9d, r15d
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
sete dil
jne 0x18002f4af
lea rcx, [rsp + 0x47]
call sym.BLRevive.dll_public:_void___cdecl_std::allocator_class_BLRE::Detours::FunctionDetour____ptr64____ptr64_::constructor_class_BLRE::Detours::FunctionDetour____ptr64__class_std::allocator_class_BLRE::Detours::FunctionDetour____ptr64__const____ptr64____ptr64
mov rcx, rsi
mov rdx, rax
call fcn.18002f4e0
jmp 0x18002f4af
xor edi, edi
mov rcx, qword [rsp + 0x448]
xor rcx, rsp
call fcn.18008fc60
mov eax, edi
add rsp, 0x450
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x18002f520
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
push rdi
sub rsp, 0xb8
mov rsi, r8
mov rdi, rdx
mov rax, qword [0x1802a3900]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x2c], 0x80
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x18002f571
mov edx, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov r9, rsi
call sym.BLRevive.dll_bool___cdecl_httplib::detail::get_ip_and_port_struct_sockaddr_storage_const____ptr64__int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64__int____ptr64_
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18008fc60
nop
add rsp, 0xb8
pop rdi
pop rsi
ret