Function at 0x1400f4f70
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov esi, edx
mov rbx, rcx
call fcn.1400f5310
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
jne 0x1400f4f9e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x1400f4fab
mov r8d, esi
xor edx, edx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, qword [rbx]
mov rdi, rax
cmp rax, rcx
je 0x1400f4fc4
test rcx, rcx
jle 0x1400f4fc1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
cmp dword [0x140380abc], 0xa
jb 0x1400f5000
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
jne 0x1400f5000
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, qword [rbx]
mov rdi, rax
cmp rax, rcx
je 0x1400f5000
test rcx, rcx
jle 0x1400f4ffd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
mov rdi, qword [rbx]
test rdi, rdi
jg 0x1400f503d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rdi, rax
je 0x1400f503d
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
je 0x1400f503d
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
mov dword [rbx + 8], esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1401465e0
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 [0x1402ea100]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rcx
xor esi, esi
mov dword [rbp - 9], esi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 5], xmm0
movups xmmword [rbp + 0xb], xmm0
mov qword [rbp + 0x1b], rax
mov dword [rbp + 0x23], eax
lea rcx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rbp - 9], si
jne 0x1401466c3
lea ecx, [rsi + 0x20]
call fcn.1401e3a74
mov rbx, rax
mov qword [rbp - 0x59], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rax, qword [r15]
lea r14, vtable.blackbone::Native.0
mov qword [rbx], r14
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rsi
mov dword [rbp - 0x39], esi
xor eax, eax
movups xmmword [rbp - 0x35], xmm0
movups xmmword [rbp - 0x25], xmm0
mov qword [rbp - 0x15], rax
mov dword [rbp - 0xd], eax
lea rcx, [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rbp - 0x35]
mov dword [rbx + 0x18], eax
mov word [rbx + 0x14], 0x101
mov dword [rbx + 0x10], esi
mov byte [rbx + 0x16], 1
lea rax, vtable.blackbone::x86Native.0
mov qword [rbx], rax
lea rdi, [r15 + 0x10]
mov rcx, qword [rdi]
mov qword [rdi], rbx
test rcx, rcx
je 0x14014675e
jmp 0x140146751
mov dword [rbp - 0x49], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
lea rdi, [r15 + 0x10]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
cmp dword [rbp - 0x49], 1
jne 0x14014671e
call fcn.1401e3a74
mov rbx, rax
mov qword [rbp - 0x59], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, rax
call fcn.140147250
lea rax, vtable.blackbone::NativeWow64.0
mov qword [rbx], rax
mov rcx, qword [rdi]
mov qword [rdi], rbx
jmp 0x140146745
call fcn.1401e3a74
mov qword [rbp - 0x59], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, rax
call fcn.140147250
mov rcx, qword [rdi]
mov qword [rdi], rax
test rcx, rcx
je 0x14014675e
lea r14, vtable.blackbone::Native.0
mov qword [rcx], r14
mov edx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1401e39f4
mov rax, qword [rdi]
cmp byte [rax + 0x15], sil
jne 0x140146771
mov byte [r15 + 0x18], 1
jmp 0x1401468ca
mov dword [rbp - 0x49], esi
mov dword [rbp - 0x45], esi
call fcn.1400f47a0
mov rdi, rax
lea rdx, str.GetProcessDEPPolicy
lea rcx, [rbp - 0x39]
call fcn.1400ca900
nop
call fcn.140137950
lea r12, [rdi + 0x40]
mov qword [rbp - 0x59], r12
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rbp - 0x41], rsi
lea r14, [rdi + 8]
mov qword [rbp - 0x51], r14
lea rcx, [rbp - 0x39]
call fcn.1400ddef0
mov rbx, rax
lea rcx, [rbp - 0x39]
call fcn.1400ca730
mov r8, rbx
mov rdx, rax
movabs rcx, 0xcbf29ce484222325
call fcn.1400721a0
mov r13, qword [rdi + 0x30]
and r13, rax
mov rcx, qword [rdi + 0x18]
mov rax, r13
add rax, rax
mov rdi, qword [rcx + rax*8 + 8]
cmp rdi, qword [r14]
je 0x140146851
add r13, r13
mov r13, qword [rcx + r13*8]
nop
lea rcx, [rdi + 0x10]
mov rbx, qword [rcx + 0x10]
call fcn.1400cddb0
mov r12, rax
mov r14, qword [rbp - 0x29]
lea rcx, [rbp - 0x39]
call fcn.1400cddb0
cmp r14, rbx
jne 0x140146834
mov r8, r14
mov rdx, r12
mov rcx, rax
call fcn.14026c5a0
test eax, eax
je 0x14014683f
cmp rdi, r13
je 0x140146849
mov rdi, qword [rdi + 8]
jmp 0x140146800
mov r14, qword [rbp - 0x51]
mov r12, qword [rbp - 0x59]
jmp 0x140146854
mov r14, qword [rbp - 0x51]
mov r12, qword [rbp - 0x59]
mov rdi, rsi
test rdi, rdi
jne 0x14014685c
mov rdi, qword [r14]
mov qword [rbp - 0x41], rdi
mov rdx, r14
lea rcx, [rbp - 0x41]
call fcn.140072660
mov rax, qword [r14]
mov qword [rbp - 0x59], rax
mov rdx, r14
lea rcx, [rbp - 0x59]
call fcn.140072660
mov rax, qword [rbp - 0x41]
mov rcx, r12
cmp rax, qword [rbp - 0x59]
je 0x1401468ac
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1401468b3
lea r8, [rbp - 0x45]
lea rdx, [rbp - 0x49]
mov rcx, qword [r15]
call rbx
mov esi, eax
jmp 0x1401468b3
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rcx, [rbp - 0x39]
call fcn.1400ca810
test esi, esi
je 0x1401468ca
movzx eax, byte [rbp - 0x49]
and al, 1
mov byte [r15 + 0x18], al
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1401e3750
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