Function at 0x1400da810
Capabilities:
Check os version
Create thread
Get disk information
Print debug messages
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov word [rsp + 8], cx
push rsi
push rdi
sub rsp, 0x4e8
mov qword [rsp + 0x4d0], 0xfffffffffffffffe
mov rax, qword [0x1402a25c0]
xor rax, rsp
mov qword [rsp + 0x4d8], rax
call fcn.1400d7430
mov dword [rsp + 0x4c], 0
movzx eax, word [rsp + 0x500]
test eax, eax
je 0x1400da90e
lea rcx, [rsp + 0x1a8]
call fcn.140002d50
nop
movzx r8d, word [rsp + 0x500]
lea rdx, [0x1402162c8]
lea rcx, [rsp + 0x1a8]
call fcn.140002be0
lea rcx, [rsp + 0x1a8]
call fcn.1400012c0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov dword [rsp + 0x1a0], eax
cmp dword [rsp + 0x1a0], 0
jne 0x1400da901
mov dword [rsp + 0x43c], 0
lea rcx, [rsp + 0x1a8]
call fcn.140001470
mov eax, dword [rsp + 0x43c]
jmp 0x1400dae2a
lea rcx, [rsp + 0x1a8]
call fcn.140001470
mov dword [rsp + 0x64], 0x1c
mov dword [rsp + 0x80], 0
lea rdi, [rsp + 0x84]
xor eax, eax
mov ecx, pe_nt_image_headers64
rep stosb byte [rdi], al
mov dword [rsp + 0x80], 0x114
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x84], 6
jne 0x1400da967
cmp dword [rsp + 0x88], 0
jne 0x1400da967
mov dword [rsp + 0x64], 0x19
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x58], rax
lea rdx, str.NtQuerySystemInformation
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400da9ac
lea rcx, str.Getting_proc_of_NtQuerySystemInformation_failed
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x1400dae2a
mov ecx, 0x20
call fcn.140071a64
mov qword [rsp + 0x440], rax
mov rax, qword [rsp + 0x440]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0x20
mov dword [rsp + 0x68], 0
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [rsp + 0x40]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x1400daa99
cmp dword [rsp + 0x68], 0
jne 0x1400daa10
xor eax, eax
jmp 0x1400dae2a
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x448], rax
mov rcx, qword [rsp + 0x448]
call fcn.140071ab0
mov eax, dword [rsp + 0x68]
add eax, 0x400
mov dword [rsp + 0x48], eax
mov ecx, dword [rsp + 0x48]
call fcn.140071aa8
mov qword [rsp + 0x450], rax
mov rax, qword [rsp + 0x450]
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [rsp + 0x40]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x1400daa99
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x458], rax
mov rcx, qword [rsp + 0x458]
call fcn.140071ab0
xor eax, eax
jmp 0x1400dae2a
mov dword [rsp + 0x1b0], 0
jmp 0x1400daab7
mov eax, dword [rsp + 0x1b0]
add eax, 1
mov dword [rsp + 0x1b0], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
cmp dword [rsp + 0x1b0], eax
jae 0x1400dae0b
mov ecx, dword [rsp + 0x1b0]
imul rcx, rcx, 0x18
mov rax, qword [rsp + 0x50]
lea rax, [rax + rcx + 8]
mov qword [rsp + 0x420], rax
mov rax, qword [rsp + 0x420]
movzx eax, byte [rax + 4]
cmp eax, dword [rsp + 0x64]
je 0x1400daafc
jmp 0x1400daaa6
xor eax, eax
mov word [rsp + 0x210], ax
lea rdi, [rsp + 0x212]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x420]
movzx eax, word [rax + 6]
mov qword [rsp + 0x430], rax
mov rax, qword [rsp + 0x420]
mov r8d, dword [rax]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x208], rax
cmp qword [rsp + 0x208], 0
je 0x1400dab81
mov r9d, 0x104
lea r8, [rsp + 0x210]
xor edx, edx
mov rcx, qword [rsp + 0x208]
call sub.PSAPI.DLL_GetModuleFileNameExW
mov rcx, qword [rsp + 0x208]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x420]
mov r8d, dword [rax]
xor edx, edx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x208], rax
cmp qword [rsp + 0x208], 0
je 0x1400dac22
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rax
mov rax, qword [rsp + 0x420]
movzx edx, word [rax + 6]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x430]
mov rcx, qword [rsp + 0x208]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dword [rsp + 0x438], eax
cmp dword [rsp + 0x438], 0
jne 0x1400dac14
mov rax, qword [rsp + 0x420]
movzx eax, word [rax + 6]
mov qword [rsp + 0x430], rax
mov rcx, qword [rsp + 0x208]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x1c0], 0
lea rdi, [rsp + 0x1c8]
xor eax, eax
mov ecx, 0x38
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x430]
mov qword [rsp + 0x1c0], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x1c0]
lea r8, [0x1400d6cd0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x428], rax
mov edx, 0x64
mov rcx, qword [rsp + 0x428]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x200], eax
cmp dword [rsp + 0x200], 0
jne 0x1400dadac
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x1e4], eax
je 0x1400dacc6
movzx eax, word [rsp + 0x500]
test eax, eax
jne 0x1400dadac
movzx eax, word [rsp + 0x210]
test eax, eax
je 0x1400dadac
lea rdx, [rsp + 0x460]
mov rcx, qword [rsp + 0x508]
call fcn.14001ee10
lea rdi, [rsp + 0x4c0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x470]
mov rcx, qword [rsp + 0x508]
call fcn.140009440
lea rdi, [rsp + 0x4b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x490]
mov rcx, qword [rsp + 0x508]
call fcn.14001ee10
mov rdi, rax
lea r9, [rsp + 0x210]
lea r8, [rsp + 0x4c0]
lea rdx, [rsp + 0x4b0]
lea rcx, [rsp + 0x480]
call fcn.14004fe00
mov rdx, rdi
mov rcx, rax
call fcn.140023a80
movzx eax, al
test eax, eax
je 0x1400dadac
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x4a0]
call fcn.140002090
nop
lea rdx, [rsp + 0x4a0]
mov rcx, qword [rsp + 0x508]
call fcn.140012fe0
nop
lea rcx, [rsp + 0x4a0]
call fcn.140001470
cmp dword [rsp + 0x200], 0x102
jne 0x1400dadc9
xor edx, edx
mov rcx, qword [rsp + 0x428]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x428]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x430], 0
je 0x1400dae06
mov rax, qword [rsp + 0x420]
movzx eax, word [rax + 6]
cmp qword [rsp + 0x430], rax
je 0x1400dae06
mov rcx, qword [rsp + 0x430]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400daaa6
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x4a8], rax
mov rcx, qword [rsp + 0x4a8]
call fcn.140071ab0
mov eax, 1
mov rcx, qword [rsp + 0x4d8]
xor rcx, rsp
call fcn.1400a8040
add rsp, 0x4e8
pop rdi
pop rsi
ret