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

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
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x1400b7c40]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r13, rdx
xor esi, esi
mov r15d, esi
mov dword [rbp - 0x21], esi
lea r9, [rbp - 0x21]
xor r8d, r8d
xor edx, edx
lea ecx, [rsi + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140017956
nop word [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x21]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
lea r9, [rbp - 0x21]
mov r8d, dword [rbp - 0x21]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140017910
test eax, eax
js 0x140017c71
mov r12d, esi
cmp dword [r15], esi
jbe 0x140017c71
mov r14d, 0x5a4d
movzx ebx, byte [rbp - 0x49]
nop dword [rax]
nop dword [rax + rax]
mov eax, r12d
imul rcx, rax, 0x128
lea rdi, [rcx + r15]
movzx eax, word [rdi + 0x2e]
add rax, rcx
lea rdx, [r15 + 0x30]
add rdx, rax
mov qword [rbp + 7], rsi
mov qword [rbp + 0x17], rsi
mov qword [rbp + 0x1f], send
mov byte [rbp + 7], 0
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x1400179c0
lea rcx, [rbp + 7]
call fcn.140003990
nop
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rcx, qword [rbp + 7]
lea rdx, [0x1400a4598]
call fcn.140031110
test eax, eax
jne 0x140017c2a
lea rdx, [rdi + 0x30]
mov qword [rbp - 0x19], rsi
mov qword [rbp - 9], rsi
mov qword [rbp - 1], send
mov byte [rbp - 0x19], al
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140017a14
lea rcx, [rbp - 0x19]
call fcn.140003990
nop
lea rcx, str.SYSTEMROOT
call fcn.140031b48
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x29], send
mov byte [rbp - 0x41], 0
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140017a50
mov rdx, rax
lea rcx, [rbp - 0x41]
call fcn.140003990
nop
mov rcx, qword [rbp - 0x31]
mov rdx, qword [rbp - 0x29]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140017a9c
lea rax, [rcx + 1]
mov qword [rbp - 0x31], rax
lea rax, [rbp - 0x41]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x41]
mov word [rax + rcx], 0x5c
lea rdi, [rbp - 0x41]
jmp 0x140017ac1
mov qword [rsp + 0x20], 1
lea r9, [0x1400a476c]
movzx r8d, bl
mov edx, 1
lea rcx, [rbp - 0x41]
call fcn.14000a120
mov rdi, rax
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rcx, qword [rbp - 0x19]
mov qword [rsp + 0x20], send
lea r9, str.SystemRoot_
xor r8d, r8d
mov rdx, qword [rbp - 9]
call fcn.140009d70
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x140017af9
mov rdi, qword [rdi]
mov qword [rsp + 0x20], rcx
mov r9, rdi
mov rdx, rax
lea rcx, [rbp - 0x19]
call fcn.140016c30
nop
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x140017b49
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017b44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017d75
call fcn.140062a94
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rcx, qword [rbp - 0x19]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r11, rax
cmp word [rax], r14w
jne 0x140017ce0
movsxd rcx, dword [rax + 0x3c]
cmp dword [rcx + rax], 0x4550
jne 0x140017ce0
mov edx, dword [rcx + rax + 0x88]
test edx, edx
je 0x140017ce0
mov edi, dword [rdx + rax + 0x1c]
lea rsi, [rax + rdi]
mov r9d, dword [rdx + rax + 0x20]
add r9, rax
mov r14d, dword [rdx + rax + 0x24]
add r14, rax
xor r10d, r10d
test edi, edi
je 0x140017be7
nop
mov r8d, dword [r9]
add r8, r11
mov rax, r13
sub r8, r13
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140017bd3
inc rax
test ecx, ecx
jne 0x140017bc0
test edx, edx
je 0x140017cb1
inc r10d
add r9, 4
cmp r10d, edi
jb 0x140017bb0
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x140017c22
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017c1d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017d7b
call fcn.140062a94
mov r14d, 0x5a4d
xor esi, esi
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x140017c65
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017c60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017d6f
call fcn.140062a94
inc r12d
cmp r12d, dword [r15]
jb 0x140017980
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140062540
lea r11, [rsp + 0xb0]
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
movsxd rax, r10d
movzx ecx, word [r14 + rax*2]
mov ebx, dword [rsi + rcx*4]
mov eax, r12d
imul rcx, rax, 0x128
add rbx, qword [rcx + r15 + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
jmp 0x140017ce3
mov rbx, rsi
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x140017d1a
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017d15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017d7b
call fcn.140062a94
mov qword [rbp - 9], rsi
mov qword [rbp - 1], send
mov byte [rbp - 0x19], 0
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x140017d61
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017d5c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017d69
call fcn.140062a94
mov rax, rbx
jmp 0x140017c84
call fcn.14002de94
int3
call fcn.14002de94
nop
call fcn.14002de94
nop
call fcn.14002de94
int3