Function at 0x18002ac90
Capabilities:
Encode data using xor

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.18000b7a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
jne 0x18000b6de
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x18000b6eb
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 0x18000b704
test rcx, rcx
jle 0x18000b701
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
cmp dword [0x18017d1ac], 0xa
jb 0x18000b740
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
jne 0x18000b740
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 0x18000b740
test rcx, rcx
jle 0x18000b73d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
mov rdi, qword [rbx]
test rdi, rdi
jg 0x18000b77d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rdi, rax
je 0x18000b77d
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
je 0x18000b77d
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 0x18002ac90
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, 0xc0
mov rax, qword [0x180178b40]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r12, rcx
xor esi, esi
mov dword [rbp - 0x39], esi
xorps xmm0, xmm0
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]
cmp word [rbp - 0x39], si
jne 0x18002ad77
mov ecx, 0x20
call fcn.1800e5708
mov rbx, rax
mov qword [rbp - 0x69], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rax, qword [r12]
lea r14, vtable.blackbone::Native.0
mov qword [rbx], r14
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rsi
mov dword [rbp - 9], esi
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]
mov eax, dword [rbp - 5]
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, [r12 + 0x10]
mov rcx, qword [rdi]
mov qword [rdi], rbx
test rcx, rcx
je 0x18002ae15
jmp 0x18002ae08
mov dword [rbp - 0x41], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
lea rdi, [r12 + 0x10]
mov ecx, 0x20
cmp dword [rbp - 0x41], 1
jne 0x18002add4
call fcn.1800e5708
mov rbx, rax
mov qword [rbp - 0x69], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
xor r8d, r8d
mov rdx, qword [r12]
mov rcx, rax
call fcn.18002aff0
lea rax, vtable.blackbone::NativeWow64.0
mov qword [rbx], rax
mov rcx, qword [rdi]
mov qword [rdi], rbx
jmp 0x18002adfc
call fcn.1800e5708
mov qword [rbp - 0x69], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
xor r8d, r8d
mov rdx, qword [r12]
mov rcx, rax
call fcn.18002aff0
mov rcx, qword [rdi]
mov qword [rdi], rax
test rcx, rcx
je 0x18002ae15
lea r14, vtable.blackbone::Native.0
mov qword [rcx], r14
mov edx, 0x20
call fcn.1800e5744
mov rax, qword [rdi]
cmp byte [rax + 0x15], sil
jne 0x18002ae29
mov byte [r12 + 0x18], 1
jmp 0x18002afb7
mov dword [rbp - 0x41], esi
mov dword [rbp - 0x3d], esi
call fcn.18000b090
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], rsi
mov qword [rbp - 0x49], rsi
mov r8d, 0x13
lea rdx, str.GetProcessDEPPolicy
lea rcx, [rbp - 0x61]
call fcn.18000b890
nop
call fcn.1800274b0
lea rax, [rbx + 0x40]
mov qword [rbp - 0x69], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8, [rbp - 0x61]
mov r15, qword [rbp - 0x61]
mov r9, qword [rbp - 0x49]
cmp r9, 0xf
cmova r8, r15
movabs rdx, 0xcbf29ce484222325
mov rcx, rsi
mov r14, qword [rbp - 0x51]
test r14, r14
je 0x18002aec4
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rcx + r8]
xor rdx, rax
imul rdx, r10
inc rcx
cmp rcx, r14
jb 0x18002aeb0
mov rcx, qword [rbx + 0x30]
and rcx, rdx
mov r13, qword [rbx + 0x18]
mov rax, rcx
add rax, rax
mov rdi, qword [r13 + rax*8 + 8]
mov rbx, qword [rbx + 8]
cmp rdi, rbx
je 0x18002af2e
add rcx, rcx
mov r13, qword [r13 + rcx*8]
nop dword [rax + rax]
lea rdx, [rdi + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x18002af02
mov rdx, qword [rdx]
lea rcx, [rbp - 0x61]
cmp r9, 0xf
cmova rcx, r15
cmp r14, rax
jne 0x18002af23
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18002af31
mov r9, qword [rbp - 0x49]
cmp rdi, r13
je 0x18002af2e
mov rdi, qword [rdi + 8]
jmp 0x18002aef0
mov rdi, rsi
test rdi, rdi
je 0x18002af60
cmp rdi, rbx
je 0x18002af60
mov rbx, qword [rdi + 0x30]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x18002af6b
lea r8, [rbp - 0x3d]
lea rdx, [rbp - 0x41]
mov rcx, qword [r12]
call rbx
mov esi, eax
jmp 0x18002af6b
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 0xf
jbe 0x18002afa8
inc rdx
mov rax, r15
cmp rdx, 0x1000
jb 0x18002afa0
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002afa0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.1800e5744
test esi, esi
je 0x18002afb7
movzx eax, byte [rbp - 0x41]
and al, 1
mov byte [r12 + 0x18], al
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800e5bd0
lea r11, [rsp + 0xc0]
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