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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x1400c5080]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rsi, r9
mov qword [rbp - 0x69], r9
mov rdi, r8
mov qword [rbp - 0x39], r8
mov r13, rdx
mov r12d, 4
mov rax, qword gs:[0x58]
add r12, qword [rax]
mov eax, dword [r12]
cmp dword [0x1400c6d1c], eax
jle 0x140030eda
lea rcx, [0x1400c6d1c]
call fcn.1400978e0
cmp dword [0x1400c6d1c], 0xffffffff
jne 0x140030eda
xor edi, edi
mov r14d, edi
mov dword [rbp - 0x29], edi
lea r9, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
lea ecx, [rdi + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140030ae6
nop word [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x29]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
lea r9, [rbp - 0x29]
mov r8d, dword [rbp - 0x29]
mov rdx, rax
mov ecx, ntohl
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140030aa0
test eax, eax
js 0x140030eae
mov r15d, edi
cmp dword [r14], edi
jbe 0x140030eae
mov esi, 0x5a4d
nop
mov eax, r15d
imul rcx, rax, 0x128
lea rbx, [rcx + r14]
movzx eax, word [rbx + 0x2e]
add rax, rcx
lea rdx, [r14 + 0x30]
add rdx, rax
mov qword [rbp - 1], rdi
mov qword [rbp + 0xf], rdi
mov qword [rbp + 0x17], reloc.WS2_32.dll_ntohs
mov byte [rbp - 1], 0
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140030b40
lea rcx, [rbp - 1]
call fcn.140020980
nop
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 0x10
cmovae rcx, qword [rbp - 1]
lea rdx, [0x1400aa820]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140030e67
lea rdx, [rbx + 0x30]
mov qword [rbp - 0x21], rdi
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x21], al
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140030b95
lea rcx, [rbp - 0x21]
call fcn.140020980
nop
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rbp - 0x59], rdi
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x41], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x59], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140030bd1
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.140020980
nop
mov rcx, qword [rbp - 0x49]
mov rdx, qword [rbp - 0x41]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140030c1d
lea rax, [rcx + 1]
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x59]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x59]
mov word [rax + rcx], 0x5c
lea rbx, [rbp - 0x59]
jmp 0x140030c3e
mov qword [rsp + 0x20], 1
lea r9, [0x1400b8104]
mov edx, 1
lea rcx, [rbp - 0x59]
call fcn.14002b630
mov rbx, rax
lea rcx, [rbp - 0x21]
call fcn.14002e3c0
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140030c55
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov r9, rbx
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.14002e570
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 0x10
jb 0x140030ca5
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030ca0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030f9b
call fcn.140097750
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x41], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x59], 0
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rcx, qword [rbp - 0x21]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r10, rax
cmp word [rax], si
jne 0x14003102d
movsxd rcx, dword [rax + 0x3c]
cmp dword [rcx + rax], 0x4550
jne 0x140030fa2
mov edx, dword [rcx + rax + 0x88]
test edx, edx
je 0x140030fa2
mov r11d, dword [rdx + rax + 0x1c]
lea rbx, [rax + r11]
mov r8d, dword [rdx + rax + 0x20]
add r8, rax
mov esi, dword [rdx + rax + 0x24]
add rsi, rax
mov r9d, edi
test r11d, r11d
je 0x140030e17
nop
mov edx, dword [r8]
add rdx, r10
mov rax, rdi
nop dword [rax]
lea rcx, [0x1400b81c0]
movzx ecx, byte [rcx + rax]
inc rax
cmp cl, byte [rdx + rax - 1]
jne 0x140030e07
cmp rax, 7
jne 0x140030d30
movsxd rax, r9d
movzx ecx, word [rsi + rax*2]
mov ebx, dword [rbx + rcx*4]
mov eax, r15d
imul rcx, rax, 0x128
add rbx, qword [rcx + r14 + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x140030db4
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030daf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031063
call fcn.140097750
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x21], 0
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x140030dff
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030dfa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003106a
call fcn.140097750
mov rdi, rbx
jmp 0x140030ebf
inc r9d
add r8, 4
cmp r9d, r11d
jb 0x140030d20
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x140030e52
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030e4d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031063
call fcn.140097750
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x21], 0
mov esi, 0x5a4d
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x140030ea2
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030e9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003106a
call fcn.140097750
inc r15d
cmp r15d, dword [r14]
jb 0x140030b00
mov r8d, 0x8000
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [0x1400c7028], rdi
lea rcx, [0x1400c6d1c]
call fcn.140097880
mov rdi, qword [rbp - 0x39]
mov rsi, qword [rbp - 0x69]
mov rbx, qword [0x1400c7028]
mov eax, dword [r12]
cmp dword [0x1400c6df0], eax
jle 0x140030f32
lea rcx, [0x1400c6df0]
call fcn.1400978e0
cmp dword [0x1400c6df0], 0xffffffff
jne 0x140030f32
lea rcx, [0x1400aaa18]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c7008], rax
lea rcx, [0x1400c6df0]
call fcn.140097880
mov eax, dword [r12]
cmp dword [0x1400c6d68], eax
jle 0x140030f7d
lea rcx, [0x1400c6d68]
call fcn.1400978e0
cmp dword [0x1400c6d68], 0xffffffff
jne 0x140030f7d
mov edx, 2
lea rcx, [0x1400c7050]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14009a9e0]
call fcn.140097c64
lea rcx, [0x1400c6d68]
call fcn.140097880
lea rcx, [0x1400c7050]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140031071
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x140030fdd
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030fd8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031063
call fcn.140097750
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x21], 0
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x140030ebf
mov rcx, qword [rbp - 1]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031023
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003106a
call fcn.140097750
jmp 0x140030ebf
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x140030fdd
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030fd8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140030fd8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [rbp - 0x69], 0x25ff
mov word [rbp - 0x65], 0
mov qword [rbp - 0x63], rbx
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp - 0x39]
call fcn.1400212f0
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp - 0x69]
call fcn.140021490
mov rax, qword [0x1400c7008]
mov r8, rsi
mov rdx, rdi
mov rcx, r13
call rax
mov rbx, rax
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp - 0x39]
call fcn.140021490
lea rcx, [0x1400c7050]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rbx, rbx
setne al
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140097730
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret