Function at 0x140048420
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call
Parse pe header
Query environment variable
Resolve function by parsing pe exports

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x518
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xde
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x538]
mov rax, qword [0x1400ca380]
xor rax, rbp
mov qword [rbp + 0x4e0], rax
lea rcx, [0x1400d8115]
call fcn.140034dd8
nop
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, 0xb
call fcn.1400345ea
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0xc0000004
jne 0x1400484f0
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov eax, dword [rbp + 0x24]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, 0xb
call fcn.1400345ea
mov dword [rbp + 0x44], eax
jmp 0x14004849c
cmp dword [rbp + 0x44], 0
jge 0x140048510
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
xor eax, eax
jmp 0x1400489aa
mov rax, qword [rbp + 8]
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x84], 0
jmp 0x140048532
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
cmp dword [rbp + 0x84], eax
jae 0x140048995
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x128
mov rcx, qword [rbp + 0x68]
lea rax, [rcx + rax + 8]
mov ecx, dword [rbp + 0x84]
imul rcx, rcx, 0x128
mov rdx, qword [rbp + 0x68]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rbp + 0xa8]
call fcn.140033d43
nop
lea rcx, [rbp + 0xa8]
call fcn.1400332f8
mov rdx, qword [rbp + 0x510]
mov rcx, rax
call qword [sym.imp.ucrtbased.dll__stricmp]
test eax, eax
jne 0x140048983
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x128
mov rcx, qword [rbp + 0x68]
lea rax, [rcx + rax + 0x30]
mov rdx, rax
lea rcx, [rbp + 0xe8]
call fcn.140033d43
nop
lea rcx, str.SYSTEMROOT
call qword [sym.imp.ucrtbased.dll_getenv]
mov rdx, rax
lea rcx, [rbp + 0x3e8]
call fcn.140033d43
mov qword [rbp + 0x4b8], rax
mov rax, qword [rbp + 0x4b8]
mov qword [rbp + 0x4c0], rax
mov rax, qword [rbp + 0x4c0]
mov qword [rbp + 0x4c8], rax
lea rdx, [0x1400a4de8]
mov rcx, qword [rbp + 0x4c8]
call fcn.140033c30
mov qword [rbp + 0x4d0], rax
xor r8d, r8d
lea rdx, str.SystemRoot_
lea rcx, [rbp + 0xe8]
call fcn.140033ad2
mov qword [rbp + 0x4d8], rax
mov r9, qword [rbp + 0x4d0]
mov r8d, 0xc
mov rdx, qword [rbp + 0x4d8]
lea rcx, [rbp + 0xe8]
call fcn.1400346c6
nop
lea rcx, [rbp + 0x3e8]
call fcn.1400335a0
nop
lea rcx, [rbp + 0xe8]
call fcn.1400332f8
mov r8d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x128]
mov qword [rbp + 0x148], rax
mov rax, qword [rbp + 0x148]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400486e6
mov qword [rbp + 0x428], 0
lea rcx, [rbp + 0xe8]
call fcn.1400335a0
nop
lea rcx, [rbp + 0xa8]
call fcn.1400335a0
mov rax, qword [rbp + 0x428]
jmp 0x1400489aa
mov rax, qword [rbp + 0x148]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x168], rax
mov rax, qword [rbp + 0x168]
cmp dword [rax], 0x4550
je 0x140048744
mov qword [rbp + 0x448], 0
lea rcx, [rbp + 0xe8]
call fcn.1400335a0
nop
lea rcx, [rbp + 0xa8]
call fcn.1400335a0
mov rax, qword [rbp + 0x448]
jmp 0x1400489aa
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x168]
cmp dword [rcx + rax + 0x88], 0
jne 0x14004878e
mov qword [rbp + 0x468], 0
lea rcx, [rbp + 0xe8]
call fcn.1400335a0
nop
lea rcx, [rbp + 0xa8]
call fcn.1400335a0
mov rax, qword [rbp + 0x468]
jmp 0x1400489aa
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x168]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x188], rax
mov rax, qword [rbp + 0x188]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0x188]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1c8], rax
mov rax, qword [rbp + 0x188]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1e8], rax
mov dword [rbp + 0x204], 0
jmp 0x14004882d
mov eax, dword [rbp + 0x204]
inc eax
mov dword [rbp + 0x204], eax
mov rax, qword [rbp + 0x188]
mov eax, dword [rax + 0x1c]
cmp dword [rbp + 0x204], eax
jae 0x140048976
movsxd rax, dword [rbp + 0x204]
mov rcx, qword [rbp + 0x1c8]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rbp + 0x518]
call fcn.140035080
test eax, eax
jne 0x140048971
movzx eax, byte [rbp + 0x520]
test eax, eax
jne 0x14004890b
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x128
movsxd rcx, dword [rbp + 0x204]
mov rdx, qword [rbp + 0x1e8]
movzx ecx, word [rdx + rcx*2]
mov rdx, qword [rbp + 0x1a8]
mov ecx, dword [rdx + rcx*4]
mov rdx, qword [rbp + 0x68]
add rcx, qword [rdx + rax + 0x18]
mov rax, rcx
mov qword [rbp + 0x228], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rax, qword [rbp + 0x228]
mov qword [rbp + 0x488], rax
lea rcx, [rbp + 0xe8]
call fcn.1400335a0
nop
lea rcx, [rbp + 0xa8]
call fcn.1400335a0
mov rax, qword [rbp + 0x488]
jmp 0x1400489aa
movsxd rax, dword [rbp + 0x204]
mov rcx, qword [rbp + 0x1e8]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rbp + 0x1a8]
mov eax, dword [rcx + rax*4]
mov qword [rbp + 0x248], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rax, qword [rbp + 0x248]
mov qword [rbp + 0x4a8], rax
lea rcx, [rbp + 0xe8]
call fcn.1400335a0
nop
lea rcx, [rbp + 0xa8]
call fcn.1400335a0
mov rax, qword [rbp + 0x4a8]
jmp 0x1400489aa
jmp 0x14004881f
lea rcx, [rbp + 0xe8]
call fcn.1400335a0
nop
lea rcx, [rbp + 0xa8]
call fcn.1400335a0
nop
jmp 0x140048524
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400a34a0]
call fcn.140034856
mov rax, rdi
mov rcx, qword [rbp + 0x4e0]
xor rcx, rbp
call fcn.140033e3d
lea rsp, [rbp + 0x4f8]
pop rdi
pop rbp
ret