Function at 0x1400da820
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 [0x1402a15c0]
xor rax, rsp
mov qword [rsp + 0x4d8], rax
call fcn.1400d7440
mov dword [rsp + 0x4c], 0
movzx eax, word [rsp + 0x500]
test eax, eax
je 0x1400da91e
lea rcx, [rsp + 0x1a8]
call fcn.140002db0
nop
movzx r8d, word [rsp + 0x500]
lea rdx, [0x1402152c8]
lea rcx, [rsp + 0x1a8]
call fcn.140002c40
lea rcx, [rsp + 0x1a8]
call fcn.140023510
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 0x1400da911
mov dword [rsp + 0x43c], 0
lea rcx, [rsp + 0x1a8]
call fcn.140001490
mov eax, dword [rsp + 0x43c]
jmp 0x1400dae3a
lea rcx, [rsp + 0x1a8]
call fcn.140001490
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 0x1400da977
cmp dword [rsp + 0x88], 0
jne 0x1400da977
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 0x1400da9bc
lea rcx, str.Getting_proc_of_NtQuerySystemInformation_failed
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x1400dae3a
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 0x1400daaa9
cmp dword [rsp + 0x68], 0
jne 0x1400daa20
xor eax, eax
jmp 0x1400dae3a
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x448], rax
mov rcx, qword [rsp + 0x448]
call fcn.140071aa8
mov eax, dword [rsp + 0x68]
add eax, 0x400
mov dword [rsp + 0x48], eax
mov ecx, dword [rsp + 0x48]
call fcn.140071ab0
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 0x1400daaa9
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x458], rax
mov rcx, qword [rsp + 0x458]
call fcn.140071aa8
xor eax, eax
jmp 0x1400dae3a
mov dword [rsp + 0x1b0], 0
jmp 0x1400daac7
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 0x1400dae1b
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 0x1400dab0c
jmp 0x1400daab6
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 0x1400dab91
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 0x1400dac32
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 0x1400dac24
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, [0x1400d6ce0]
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 0x1400dadbc
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x1e4], eax
je 0x1400dacd6
movzx eax, word [rsp + 0x500]
test eax, eax
jne 0x1400dadbc
movzx eax, word [rsp + 0x210]
test eax, eax
je 0x1400dadbc
lea rdx, [rsp + 0x460]
mov rcx, qword [rsp + 0x508]
call fcn.140008ad0
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.14001e460
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.140008ad0
mov rdi, rax
lea r9, [rsp + 0x210]
lea r8, [rsp + 0x4c0]
lea rdx, [rsp + 0x4b0]
lea rcx, [rsp + 0x480]
call fcn.14004fd40
mov rdx, rdi
mov rcx, rax
call fcn.14000cc90
movzx eax, al
test eax, eax
je 0x1400dadbc
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x4a0]
call fcn.1400020d0
nop
lea rdx, [rsp + 0x4a0]
mov rcx, qword [rsp + 0x508]
call fcn.140012650
nop
lea rcx, [rsp + 0x4a0]
call fcn.140001490
cmp dword [rsp + 0x200], 0x102
jne 0x1400dadd9
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 0x1400dae16
mov rax, qword [rsp + 0x420]
movzx eax, word [rax + 6]
cmp qword [rsp + 0x430], rax
je 0x1400dae16
mov rcx, qword [rsp + 0x430]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400daab6
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x4a8], rax
mov rcx, qword [rsp + 0x4a8]
call fcn.140071aa8
mov eax, 1
mov rcx, qword [rsp + 0x4d8]
xor rcx, rsp
call fcn.1400a8050
add rsp, 0x4e8
pop rdi
pop rsi
ret