Function at 0x140058540
Capabilities:
Encode data using xor
Get system information on windows
Hash data using fnv

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.140033d40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
jne 0x140033c7e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x140033c8b
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 0x140033ca4
test rcx, rcx
jle 0x140033ca1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
cmp dword [0x1400cb15c], 0xa
jb 0x140033ce0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
jne 0x140033ce0
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 0x140033ce0
test rcx, rcx
jle 0x140033cdd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
mov rdi, qword [rbx]
test rdi, rdi
jg 0x140033d1d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rdi, rax
je 0x140033d1d
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
je 0x140033d1d
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 0x140058540
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x1400c7100]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r14, rcx
xor esi, esi
mov dword [rbp + 7], esi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xb], xmm0
movups xmmword [rbp + 0x1b], xmm0
mov qword [rbp + 0x2b], rax
mov dword [rbp + 0x33], eax
lea rcx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rbp + 7], si
jne 0x14005861f
lea ecx, [rsi + 0x20]
call fcn.14006c698
mov rbx, rax
mov qword [rbp - 0x31], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rax, qword [r14]
lea r15, vtable.blackbone::Native.0
mov qword [rbx], r15
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rsi
mov dword [rbp - 0x29], esi
xor eax, eax
movups xmmword [rbp - 0x25], xmm0
movups xmmword [rbp - 0x15], xmm0
mov qword [rbp - 5], rax
mov dword [rbp + 3], eax
lea rcx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rbp - 0x25]
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, [r14 + 0x10]
mov rcx, qword [rdi]
mov qword [rdi], rbx
test rcx, rcx
je 0x1400586ba
jmp 0x1400586ad
mov dword [rbp - 0x39], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
lea rdi, [r14 + 0x10]
mov ecx, 0x20
cmp dword [rbp - 0x39], 1
jne 0x14005867a
call fcn.14006c698
mov rbx, rax
mov qword [rbp - 0x31], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rax
call fcn.140059080
lea rax, vtable.blackbone::NativeWow64.0
mov qword [rbx], rax
mov rcx, qword [rdi]
mov qword [rdi], rbx
jmp 0x1400586a1
call fcn.14006c698
mov qword [rbp - 0x31], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rax
call fcn.140059080
mov rcx, qword [rdi]
mov qword [rdi], rax
test rcx, rcx
je 0x1400586ba
lea r15, vtable.blackbone::Native.0
mov qword [rcx], r15
mov edx, 0x20
call fcn.14006c690
mov rax, qword [rdi]
cmp byte [rax + 0x15], sil
jne 0x1400586cd
mov byte [r14 + 0x18], 1
jmp 0x1400587cb
mov dword [rbp - 0x39], esi
mov dword [rbp - 0x31], esi
call fcn.140027440
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov ecx, 0x20
call fcn.14006c698
mov rbx, rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x19], 0x13
mov qword [rbp - 0x11], 0x1f
movups xmm0, xmmword [str.GetProcessDEPPolicy]
movups xmmword [rax], xmm0
movzx eax, word [0x1400b57a8]
mov word [rbx + 0x10], ax
movzx eax, byte [0x1400b57aa]
mov byte [rbx + 0x12], al
mov byte [rbx + 0x13], sil
call fcn.140048a20
lea r15, [rdi + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movabs r9, 0xcbf29ce484222325
mov rcx, rsi
movabs rdx, 0x100000001b3
nop
movzx eax, byte [rcx + rbx]
xor r9, rax
imul r9, rdx
inc rcx
cmp rcx, 0x13
jb 0x140058750
lea r8, [rbp - 0x29]
lea rdx, [rbp - 0x49]
mov rcx, rdi
call fcn.1400288c0
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400587a6
cmp rdx, qword [rdi + 8]
je 0x1400587a6
mov rdi, qword [rdx + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rdi, rdi
je 0x1400587b0
lea r8, [rbp - 0x31]
lea rdx, [rbp - 0x39]
mov rcx, qword [r14]
call rdi
mov esi, eax
jmp 0x1400587b0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov edx, 0x20
mov rcx, rbx
call fcn.14006c690
test esi, esi
je 0x1400587cb
movzx eax, byte [rbp - 0x39]
and al, 1
mov byte [r14 + 0x18], al
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14006c670
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret