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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], 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 + 0x2f], rax
mov r13, rdx
mov rsi, rcx
mov qword [rbp - 0x21], rcx
xor r14d, r14d
mov r15d, r14d
mov dword [rbp - 0x19], r14d
lea r9, [rbp - 0x19]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140015f76
nop
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x19]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
lea r9, [rbp - 0x19]
mov r8d, dword [rbp - 0x19]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140015f30
test eax, eax
js 0x140016290
mov r12d, r14d
cmp dword [r15], r14d
jbe 0x140016290
movzx ebx, byte [rbp - 0x49]
nop
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 + 0xf], r14
mov qword [rbp + 0x1f], r14
mov qword [rbp + 0x27], send
mov byte [rbp + 0xf], 0
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140015fd0
lea rcx, [rbp + 0xf]
call fcn.140003990
nop
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rcx, qword [rbp + 0xf]
mov rdx, rsi
call fcn.140031110
test eax, eax
jne 0x140016249
lea rdx, [rdi + 0x30]
mov qword [rbp - 0x11], r14
mov qword [rbp - 1], r14
mov qword [rbp + 7], send
mov byte [rbp - 0x11], al
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140016020
lea rcx, [rbp - 0x11]
call fcn.140003990
nop
lea rcx, str.SYSTEMROOT
call fcn.140031b48
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], send
mov byte [rbp - 0x41], 0
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140016060
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 0x1400160ac
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 0x1400160d1
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 - 0x11]
cmp qword [rbp + 7], 0x10
cmovae rcx, qword [rbp - 0x11]
mov qword [rsp + 0x20], send
lea r9, str.SystemRoot_
xor r8d, r8d
mov rdx, qword [rbp - 1]
call fcn.140009d70
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x140016109
mov rdi, qword [rdi]
mov qword [rsp + 0x20], rcx
mov r9, rdi
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.140016c30
nop
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x140016159
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016154
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016395
call fcn.140062a94
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 0x10
cmovae rcx, qword [rbp - 0x11]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r11, rax
mov eax, 0x5a4d
cmp word [r11], ax
jne 0x140016300
movsxd rcx, dword [r11 + 0x3c]
cmp dword [rcx + r11], 0x4550
jne 0x140016300
mov edx, dword [rcx + r11 + 0x88]
test edx, edx
je 0x140016300
mov edi, dword [rdx + r11 + 0x1c]
lea rsi, [r11 + rdi]
mov r9d, dword [rdx + r11 + 0x20]
add r9, r11
mov r14d, dword [rdx + r11 + 0x24]
add r14, r11
xor r10d, r10d
test edi, edi
je 0x140016207
nop word [rax + rax]
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 0x1400161f3
inc rax
test ecx, ecx
jne 0x1400161e0
test edx, edx
je 0x1400162d0
inc r10d
add r9, 4
cmp r10d, edi
jb 0x1400161d0
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x140016242
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001623d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001639b
call fcn.140062a94
xor r14d, r14d
mov rsi, qword [rbp - 0x21]
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x140016284
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001627f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001638f
call fcn.140062a94
inc r12d
cmp r12d, dword [r15]
jb 0x140015f90
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140062540
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
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 r14d, r14d
jmp 0x140016303
mov rbx, r14
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x14001633a
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016335
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001639b
call fcn.140062a94
mov qword [rbp - 1], r14
mov qword [rbp + 7], send
mov byte [rbp - 0x11], 0
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x140016381
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001637c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016389
call fcn.140062a94
mov rax, rbx
jmp 0x1400162a3
call fcn.14002de94
int3
call fcn.14002de94
nop
call fcn.14002de94
nop
call fcn.14002de94
int3