Function at 0x140013610
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rbx
push rsi
push r13
push r14
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0xc8
xor eax, eax
mov qword [r11 - 0x40], r12
mov qword [rbp + 0xf], rax
mov r13d, 1
lea rax, [0x1400139a0]
mov dword [rbp - 0x29], r13d
mov qword [rbp - 0x39], rax
xorps xmm0, xmm0
lea rax, [rbp - 1]
mov qword [r11 - 0x38], rdi
mov qword [rbp - 0x31], rax
mov rsi, rdx
mov r15, rcx
mov ebx, 0x1000
movups xmmword [rbp - 1], xmm0
mov r14d, 0xc0000004
mov edx, ebx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp - 9], rax
mov r12, rax
test rax, rax
je 0x1400138f6
lea r9, [rbp - 0x21]
mov r8d, ebx
mov rdx, rax
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov r14d, eax
mov edi, eax
test eax, eax
jns 0x1400136b6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
add ebx, ebx
cmp r14d, 0xc0000004
je 0x140013672
test edi, edi
js 0x1400138f6
mov rsi, r12
mov qword [rbp - 0x59], r12
lea r12, [0x1400139a0]
nop word [rax + rax]
mov r8d, dword [rsi + 0x50]
xor edx, edx
mov ecx, 0x400
mov ebx, r13d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp - 0x11], rax
mov rdi, rax
test rax, rax
je 0x1400138cb
lea r8, [rbp - 0x41]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400138c2
mov rax, qword [rbp - 0x39]
mov ebx, dword [rsi + 0x50]
mov r15, qword [rbp - 0x41]
mov dword [rbp - 0x49], ebx
cmp rax, r12
jne 0x1400138ab
mov rdi, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp qword [rdi], 0
mov qword [rbp - 0x19], rax
je 0x14001385f
nop dword [rax]
mov rsi, qword [rdi]
lea r8, [rbp + 0x77]
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtCompareTokens]
test eax, eax
js 0x1400137d6
movzx ebx, byte [rbp + 0x77]
test ebx, ebx
je 0x1400137e4
mov r9d, 4
lea rax, [rbp + 0x7f]
lea r8, [rbp - 0x4d]
mov qword [rsp + 0x20], rax
mov rcx, r15
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400137c2
mov r9d, 4
lea rax, [rbp + 0x7f]
lea r8, [rbp - 0x51]
mov qword [rsp + 0x20], rax
mov rcx, rsi
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400137c2
mov eax, dword [rbp - 0x51]
xor ebx, ebx
cmp dword [rbp - 0x4d], eax
sete bl
test ebx, ebx
je 0x1400137e4
mov rsi, qword [rbp - 0x59]
mov rdi, qword [rbp - 0x11]
mov ebx, r13d
jmp 0x1400138b8
mov edx, eax
lea rcx, str.ERROR_kull_m_token_equal___NtCompareTokens:__08x_n
call fcn.14000afb0
mov rbx, rdi
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x140013750
test rbx, rbx
je 0x1400137c6
lea edx, [rdi + 0x18]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1400137c6
mov ecx, dword [rbp - 0x49]
mov rdx, r15
mov dword [rax + 8], ecx
xor eax, eax
mov rcx, qword [rbp - 0x19]
mov r9, qword [rbx + 0x10]
mov r8, rcx
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1400137c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_token_getTokensUnique_callback___DuplicateHandle__0x_08x__n
call fcn.14000afb0
mov rsi, qword [rbp - 0x59]
mov ebx, r13d
mov rdi, qword [rbp - 0x11]
jmp 0x1400138b8
xor ecx, ecx
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], ecx
mov r9, rdi
mov dword [rsp + 0x20], ecx
mov r8, rax
mov rcx, rax
mov dword [rdi + 8], ebx
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1400137ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_token_getTokensUnique_callback___DuplicateHandle__0x_08x__n
call fcn.14000afb0
mov rdi, qword [rbp - 0x11]
mov ebx, r13d
jmp 0x1400138b8
mov r8, qword [rbp - 0x31]
mov edx, ebx
mov rcx, r15
call rax
mov ebx, eax
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp - 0x29], ebx
test ebx, ebx
je 0x1400138e4
mov eax, dword [rsi]
test eax, eax
je 0x1400138e4
add rsi, rax
mov qword [rbp - 0x59], rsi
jmp 0x1400136e0
mov rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rbp + 0x6f]
mov r15, qword [rbp + 0x67]
mov r12, qword [rsp + 0xb8]
not r14d
shr r14d, 0x1f
test r14d, r14d
je 0x14001397d
cmp dword [rbp - 0x29], 0
je 0x14001392c
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
call fcn.1400091a0
xor r14d, r14d
test eax, eax
setns r14b
test r14d, r14d
je 0x14001397d
lea rbx, [rbp - 1]
test r13d, r13d
je 0x14001394d
mov edx, dword [rbx + 8]
mov r8, rsi
mov rcx, qword [rbx]
call r15
mov rbx, qword [rbx + 0x10]
mov r13d, eax
test rbx, rbx
jne 0x140013930
lea rbx, [rbp - 1]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001395f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rbx + 0x10]
lea rax, [rbp - 1]
cmp rbx, rax
je 0x140013975
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, rdi
test rdi, rdi
jne 0x140013951
mov rdi, qword [rsp + 0xc0]
mov eax, r14d
add rsp, 0xc8
pop r15
pop r14
pop r13
pop rsi
pop rbx
pop rbp
ret