Function at 0x140116160
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.1400fdb20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
jne 0x1400fda5e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x1400fda6b
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 0x1400fda84
test rcx, rcx
jle 0x1400fda81
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
cmp dword [0x14071a72c], 0xa
jb 0x1400fdac0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
jne 0x1400fdac0
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 0x1400fdac0
test rcx, rcx
jle 0x1400fdabd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
mov rdi, qword [rbx]
test rdi, rdi
jg 0x1400fdafd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rdi, rax
je 0x1400fdafd
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
je 0x1400fdafd
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 0x140116160
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 [0x140713740]
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 0x140116247
mov ecx, 0x20
call fcn.1403e515c
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 0x1401162e5
jmp 0x1401162d8
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 0x1401162a4
call fcn.1403e515c
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.140129720
lea rax, vtable.blackbone::NativeWow64.0
mov qword [rbx], rax
mov rcx, qword [rdi]
mov qword [rdi], rbx
jmp 0x1401162cc
call fcn.1403e515c
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.140129720
mov rcx, qword [rdi]
mov qword [rdi], rax
test rcx, rcx
je 0x1401162e5
lea r14, vtable.blackbone::Native.0
mov qword [rcx], r14
mov edx, 0x20
call fcn.1403e5198
mov rax, qword [rdi]
cmp byte [rax + 0x15], sil
jne 0x1401162f9
mov byte [r12 + 0x18], 1
jmp 0x140116480
mov dword [rbp - 0x41], esi
mov dword [rbp - 0x3d], esi
call fcn.1400fd420
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], rsi
mov qword [rbp - 0x49], rsi
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.GetProcessDEPPolicy
lea rcx, [rbp - 0x61]
call fcn.1400fe440
nop
call fcn.14010e720
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 0x140116394
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rcx + r8]
xor rdx, rax
imul rdx, r10
inc rcx
cmp rcx, r14
jb 0x140116380
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 0x1401163fe
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 0x1401163d2
mov rdx, qword [rdx]
lea rcx, [rbp - 0x61]
cmp r9, 0xf
cmova rcx, r15
cmp r14, rax
jne 0x1401163f3
mov r8, r14
call fcn.14041c7a0
test eax, eax
je 0x140116401
mov r9, qword [rbp - 0x49]
cmp rdi, r13
je 0x1401163fe
mov rdi, qword [rdi + 8]
jmp 0x1401163c0
mov rdi, rsi
test rdi, rdi
je 0x140116430
cmp rdi, rbx
je 0x140116430
mov rbx, qword [rdi + 0x30]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x14011643b
lea r8, [rbp - 0x3d]
lea rdx, [rbp - 0x41]
mov rcx, qword [r12]
call rbx
mov esi, eax
jmp 0x14011643b
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 0xf
jbe 0x140116471
inc rdx
mov rax, r15
cmp rdx, 0x1000
jb 0x140116469
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401164af
mov rcx, r15
call fcn.1403e5198
test esi, esi
je 0x140116480
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.1403e5550
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
call fcn.1403eb834
int3