Function at 0x140005200
Capabilities:
Get disk information
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x14001a040]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1400136e8]
mov qword [rbp - 0x50], rax
lea rax, [0x1400137c8]
mov qword [rbp - 0x40], rax
lea rcx, [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
mov dword [rsp + 0x40], 8
xor r8d, r8d
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64____ptr64]
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x50], r15
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 0x38], rax
mov qword [rbp + 0x30], r14
mov dword [rbp + 0x38], r14d
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
lea rcx, [rbp - 0x40]
test eax, eax
jne 0x1400052ec
lea rdx, str.Failed_to_get_drives.
call fcn.140008020
jmp 0x14000533b
lea rdx, str.Available_drives:_r_n
call fcn.140008020
mov ebx, 0x41
nop dword [rax]
test dil, 1
je 0x140005330
lea rdx, [0x14001336c]
lea rcx, [rbp - 0x40]
call fcn.140008020
mov rcx, rax
movzx edx, bx
call fcn.140008200
mov rcx, rax
lea rdx, str.:_r_n
call fcn.140008020
shr edi, 1
inc bx
cmp bx, 0x5a
jbe 0x140005300
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov r8, r14
mov qword [rsp + 0x58], r14
mov r9d, 7
mov qword [rsp + 0x60], r9
mov word [rsp + 0x48], r14w
mov dword [rsp + 0x40], 0xa
xor eax, eax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
mov ecx, dword [rbp + 0x38]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140005399
mov rax, qword [rbp + 8]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005399
mov rax, qword [rbp - 0x18]
mov r10, qword [rax]
cmp rdx, qword [rbp + 0x30]
cmovb rdx, qword [rbp + 0x30]
jmp 0x1400053bc
test cl, 4
jne 0x140005402
mov rax, qword [rbp]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005402
mov rax, qword [rbp - 0x20]
mov r10, qword [rax]
mov rax, qword [rbp + 0x18]
movsxd rcx, dword [rax]
lea rdx, [rdx + rcx*2]
sub rdx, r10
mov rax, r10
sar rdx, 1
test rax, rax
je 0x140005402
lea rcx, [rsp + 0x48]
cmp rdx, r9
ja 0x1400053f0
mov qword [rsp + 0x58], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r10
call sub.VCRUNTIME140.dll_memmove
mov word [rsp + rbx + 0x48], r14w
jmp 0x1400053f8
mov r9, r10
call fcn.140008910
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x60]
test r8, r8
je 0x1400055cc
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x48]
cmp r9, 7
cmova rax, rcx
lea rdx, [r8 - 1]
cmp word [rax + rdx*2], 0xa
jne 0x140005495
mov qword [rsp + 0x58], rdx
lea rax, [rsp + 0x48]
cmp r9, 7
cmova rax, rcx
mov word [rax + rdx*2], r14w
mov r8, qword [rsp + 0x58]
test r8, r8
je 0x1400055cc
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x48]
mov r9, qword [rsp + 0x60]
cmp r9, 7
cmova rax, rcx
lea rdx, [r8 - 1]
cmp word [rax + rdx*2], 0xd
jne 0x140005495
mov qword [rsp + 0x58], rdx
lea rax, [rsp + 0x48]
cmp r9, 7
cmova rax, rcx
mov word [rax + rdx*2], r14w
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
test r8, r8
je 0x1400055cc
lea r8, [rsp + 0x48]
cmp r9, 7
cmova r8, rcx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140007710
nop
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova r8, qword [rsp + 0x48]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rbx - 1]
mov rdx, qword [rsp + 0x78]
cmp rcx, rdx
ja 0x14000554f
mov qword [rsp + 0x78], rcx
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova rax, qword [rsp + 0x68]
mov byte [rax + rcx], 0
jmp 0x14000559e
mov rdi, rcx
sub rdi, rdx
mov r8, qword [rbp - 0x80]
mov rax, r8
sub rax, rdx
cmp rdi, rax
ja 0x14000558e
mov qword [rsp + 0x78], rcx
lea rbx, [rsp + 0x68]
cmp r8, 0xf
cmova rbx, qword [rsp + 0x68]
add rbx, rdx
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov byte [rbx + rdi], 0
jmp 0x14000559e
mov r9, rdi
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.140009500
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rbp - 0x78], xmm1
movups xmm0, xmmword [rsp + 0x78]
movdqu xmmword [rbp - 0x68], xmm0
lea rdx, [rbp - 0x78]
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
jbe 0x1400055e8
movq rdx, xmm1
jmp 0x1400055e8
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
movdqa xmm1, xmmword [0x140014580]
movdqu xmmword [rbp - 0x68], xmm1
mov byte [rbp - 0x78], 0
lea rdx, [rbp - 0x78]
xor r9d, r9d
mov r8d, dword [rbp - 0x68]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_send]
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140005636
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005631
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005631
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140010020
movdqa xmm0, xmmword [0x140014580]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14000568c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005687
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005687
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140010020
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r14w
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r15
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x38]
call fcn.1400072b0
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14000fa10
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret