Function at 0x14008b480
Capabilities:
Get system information on windows

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 - 0x110]
sub rsp, 0x210
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov r14, qword [rcx + 0x18]
mov rdi, rcx
mov rcx, qword [r14 + 0x58]
mov r13, qword [r14 + 0x20]
mov rbx, qword [r14 + 0x48]
test rcx, rcx
je 0x14008b50b
cmp qword [rcx], 0
je 0x14008b50b
test dword [r14 + 0xd0], 0x10000
jne 0x14008b50b
call sym.ProcessHacker.exe_PhDoesFileExists
test al, al
je 0x14008b50b
mov rcx, qword [r14 + 0x58]
mov dl, 1
call sym.ProcessHacker.exe_PhImageListExtractIcon
mov qword [rdi + 0x28], rax
lea rcx, [rdi + 0x30]
mov rdx, qword [r14 + 0x58]
xor r8d, r8d
call fcn.1400f2f40
xor esi, esi
lea eax, [rsi + 4]
lea r12, [rsi - 1]
lea r15d, [rsi + 8]
test rbx, rbx
je 0x14008b8f0
test dword [r14 + 0xd0], 0x10000
jne 0x14008b71d
cmp dword [0x140237d34], 0x3f
mov r15d, esi
mov byte [rsp + 0x50], sil
mov qword [rbp + 0x68], rsi
jb 0x14008b55f
mov rcx, rbx
mov qword [rbp + 0x68], rbx
lea r15d, [rsi + 1]
jmp 0x14008b677
cmp byte [0x140240e3f], sil
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], rsi
je 0x14008b5bc
lea rax, [rbp + 0x68]
mov dword [rbp - 0x80], 0x1010
mov qword [rsp + 0x78], rax
lea rcx, [rbp - 0x70]
lea rax, [rsp + 0x60]
mov dword [rbp - 0x70], esi
mov qword [rbp - 0x78], rax
call fcn.14011f9e0
mov dword [rsp + 0x48], esi
mov eax, 0x20
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rbp]
jmp 0x14008b649
xorps xmm0, xmm0
mov dword [rbp - 0x30], 0x30
lea r9, [rsp + 0x60]
mov qword [rbp - 0x28], rsi
lea r8, [rbp - 0x30]
mov dword [rbp - 0x18], esi
mov edx, 0x1010
mov qword [rbp - 0x20], rsi
lea rcx, [rbp + 0x68]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
cmp eax, 0xc0000022
jne 0x14008b66b
cmp byte [0x140240e3f], sil
nop dword [rax]
je 0x14008b705
lea rax, [rbp + 0x68]
mov dword [rbp - 0x60], 0x1010
mov qword [rbp - 0x68], rax
lea rcx, [rbp - 0x50]
lea rax, [rsp + 0x60]
mov dword [rbp - 0x50], esi
mov qword [rbp - 0x58], rax
call fcn.14011f9e0
mov dword [rsp + 0x48], esi
mov eax, 0x20
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], eax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x10]
mov rcx, qword [0x140241b70]
xor r9d, r9d
mov dword [rsp + 0x28], 0x999920cb
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
js 0x14008b705
mov rcx, qword [rbp + 0x68]
lea rdx, ds:[rsp + 0x70]
call sym.ProcessHacker.exe_PhGetProcessCommandLine
test eax, eax
js 0x14008b6c0
mov r8, qword [rsp + 0x70]
mov edx, esi
test dword [r8], 0xfffffffe
jbe 0x14008b6bc
mov r9d, 0x20
nop
mov rax, qword [r8 + 8]
mov ecx, edx
cmp word [rax + rcx*2], si
jne 0x14008b6b1
mov word [rax + rcx*2], r9w
mov eax, dword [r8]
inc edx
shr eax, 1
cmp edx, eax
jb 0x14008b6a0
mov qword [rdi + 0x20], r8
mov r8d, dword [r14 + 0xd0]
lea r9, [rsp + 0x50]
mov rdx, qword [rbp + 0x68]
and r8d, 0x200
bts r8d, 8
mov qword [rsp + 0x20], rsi
shr r8d, 7
mov rcx, r13
or r8d, r15d
call sym.ProcessHacker.exe_PhGetProcessIsDotNetEx
and dword ds:[rdi + 0x68], 0xfffffffe
movzx eax, byte [rsp + 0x50]
and eax, 1
or dword [rdi + 0x68], eax
test r15d, r15d
jne 0x14008b714
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x14008b714
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, 4
lea r15d, [rax + 4]
mov rcx, qword [0x140241b70]
xor edx, edx
test rcx, rcx
je 0x14008b8c2
mov dword [rsp + 0x48], esi
xor r9d, r9d
mov dword [rbp - 0x40], eax
xor r8d, r8d
mov qword [rsp + 0x40], rsi
lea rax, [rbp + 0x70]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x48]
mov dword [rsp + 0x38], 0x18
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], 0x999920d3
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x70], rsi
mov qword [rbp - 0x48], rbx
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
js 0x14008b7c6
nop dword [rax]
cmp eax, 0x123
je 0x14008b7c6
mov rcx, qword [rbp + 0x70]
lea r8, [rbp + 0xc0]
or dword [rdi + 0x68], 4
mov r9d, 0x40
mov qword [rsp + 0x20], rsi
lea edx, [r9 - 0x3e]
call qword [sym.imp.ntdll.dll_NtQueryInformationJobObject]
test eax, eax
js 0x14008b7c6
and dword [rdi + 0x68], 0xfffffff7
mov eax, esi
cmp dword [rbp + 0xd0], 0x1000
cmovne eax, r15d
or dword [rdi + 0x68], eax
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x14008b7d5
call qword [sym.imp.ntdll.dll_NtClose]
mov r13d, 4
mov r9d, r15d
mov qword [rsp + 0x20], rsi
lea r8, [rbp + 0x78]
mov edx, 0x31
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x14008b801
mov rax, qword [rbp + 0x78]
mov qword [rdi + 0x50], rax
cmp dword [0x140237d34], 0x3e
jb 0x14008b849
mov rax, qword [0x140241ac0]
test rax, rax
je 0x14008b83a
test dword [r14 + 0xd0], 0x10000
jne 0x14008b83a
mov rcx, rbx
call qword [case.0x1400f654f.0]
neg eax
sbb ecx, ecx
and dword [rdi + 0x68], 0xffffffdf
and ecx, 0x20
or dword [rdi + 0x68], ecx
cmp dword [0x140237d34], 0x3e
jb 0x14008b849
test byte [rdi + 0x68], 0x20
jne 0x14008b852
cmp dword [0x140237d34], 0x64
jb 0x14008b85e
mov rcx, rbx
call fcn.140129160
mov qword [rdi + 0x58], rax
test byte [r14 + 0xd0], 0x80
je 0x14008b8f3
mov qword [rsp + 0x48], rsi
lea rax, [rbp + 0x80]
mov qword [rsp + 0x40], rsi
xor r9d, r9d
mov qword [rsp + 0x38], rsi
mov r8d, 0xffffffff
mov qword [rsp + 0x30], rsi
mov rdx, rbx
mov qword [rsp + 0x28], rax
mov rcx, r12
mov qword [rsp + 0x20], rsi
call sym.ProcessHacker.exe_PhGetHandleInformationEx
test eax, eax
js 0x14008b8ba
mov eax, dword [rbp + 0x84]
not eax
shr eax, 0xa
not al
test al, 1
jne 0x14008b8f3
or dword ds:[rdi + 0x68], 0x40
jmp 0x14008b8f3
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtIsProcessInJob]
test eax, eax
js 0x14008b7d5
and dword [rdi + 0x68], 0xfffffffb
mov ecx, esi
cmp eax, 0x124
mov r13d, 4
cmove ecx, r13d
or dword [rdi + 0x68], ecx
jmp 0x14008b7db
mov r13d, eax
cmp qword [r14 + 0x48], rsi
je 0x14008b93b
test dword [r14 + 0xd0], 0x10000
jne 0x14008b93b
test byte [rdi + 0x68], 0x40
jne 0x14008b93b
cmp qword [r14 + 0x20], 4
je 0x14008b93b
lea rdx, ds:[rsp + 0x51]
mov rcx, rbx
call fcn.140111a80
test eax, eax
js 0x14008b93b
movzx eax, byte [rsp + 0x51]
and dword [rdi + 0x68], 0xffffffef
and eax, 1
shl eax, 4
or dword [rdi + 0x68], eax
nop dword [rax + rax]
cmp qword [r14 + 0x20], rsi
jle 0x14008ba96
cmp dword [0x140237d34], 0x70
jb 0x14008ba4a
mov rax, qword ds:[r14 + 0x48]
test rax, rax
je 0x14008ba4a
mov rcx, qword [0x140241998]
mov r8d, 0x14
mov edx, r13d
mov qword [rsp + 0x58], rax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, 8
lea rdx, [rsp + 0x58]
mov r15, rax
mov ecx, 0xe6
lea rax, [rsp + 0x54]
mov r9, r15
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x14
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
cmp eax, 0xc0000023
jne 0x14008ba10
mov rcx, qword [0x140241998]
mov r8, r15
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword ds:[rsp + 0x54]
mov edx, r13d
mov rcx, qword [0x140241998]
mov r8d, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, 8
lea rdx, [rsp + 0x58]
mov r15, rax
mov ecx, 0xe6
lea rax, [rsp + 0x54]
mov r9, r15
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
test eax, eax
js 0x14008ba38
mov ecx, dword [rsp + 0x54]
shr ecx, 2
test ecx, ecx
je 0x14008ba38
mov rax, r15
test dword [rax], 0x80000
jne 0x14008bafc
inc esi
add rax, 4
cmp esi, ecx
jb 0x14008ba22
mov rcx, qword [0x140241998]
mov r8, r15
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [r14 + 0x58]
test rcx, rcx
je 0x14008ba96
test dword ds:[r14 + 0xd0], 0x10000
jne 0x14008ba96
lea r8, [rbp + 0x30]
xor edx, edx
call sym.ProcessHacker.exe_PhLoadMappedImageEx
test eax, eax
js 0x14008ba96
mov rax, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x38]
movzx ecx, word [rax + 4]
mov eax, dword [rdi + 0x68]
shl ecx, 7
and eax, 0xff80007f
or ecx, eax
mov dword [rdi + 0x68], ecx
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov rcx, qword ds:[r14 + 0x98]
test rcx, rcx
je 0x14008bacc
call fcn.14008b2c0
mov rcx, qword [rdi + 0x60]
mov qword [rdi + 0x60], rax
test rcx, rcx
je 0x14008bacc
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], r12d
cmp r12d, 1
jne 0x14008bacc
call fcn.1400fbcc0
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1401848a0
lea r11, [rsp + 0x210]
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
mov rcx, qword [0x140241998]
mov r8, r15
mov eax, esi
xor edx, edx
movzx ebx, word [r15 + rax*4]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [rdi + 0x68], 0xff80007f
shl ebx, 7
or dword [rdi + 0x68], ebx
jmp 0x14008ba96