Function at 0x140040a40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1400bc060]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
lea rcx, [rsp + 0x50]
call fcn.140043fc0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
lea rcx, [rbp - 0x30]
call fcn.140043fc0
nop
lea rdx, [rbx + 0xf8]
mov r8, qword [rbx + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400444d0
mov ebx, eax
xor r14d, r14d
cmp byte [rsi], r14b
jne 0x140040b41
test eax, eax
js 0x140041320
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movzx eax, byte [rsi + 1]
mov qword [rsp + 0x40], r14
mov byte [rsp + 0x48], al
test al, al
je 0x140040b19
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
nop
lea rdx, [rdi + 0xf8]
mov r8, qword [rdi + 0x30]
lea rcx, [rbp - 0x30]
call fcn.1400444d0
mov ebx, eax
cmp byte [rsp + 0x48], 0
je 0x140040b41
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
test ebx, ebx
js 0x140041320
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 7
mov r8d, 0x11
lea rdx, str.LdrpHandleTlsData
lea rcx, [rsp + 0x20]
call fcn.140007120
lea rdx, [rsp + 0x20]
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x38]
cmp rsi, 8
cmovae rdx, rbx
movabs rdi, 0xcbf29ce484222325
mov r9, rdi
mov rax, qword [rsp + 0x30]
lea r8, [rax + rax]
mov rcx, r14
movabs r15, 0x100000001b3
test r8, r8
je 0x140040bc5
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r15
inc rcx
cmp rcx, r8
jb 0x140040bb2
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140016480
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140040bf6
cmp rcx, qword [rbp - 0x68]
je 0x140040bf6
mov eax, dword [rcx + 0x30]
add rax, qword [rsp + 0x68]
mov qword [0x1400bfb80], rax
cmp rsi, 8
jb 0x140040c31
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140040c29
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041360
mov rcx, rbx
call fcn.14004afd0
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 7
mov r8d, 0x11
lea rdx, str.LdrpHandleTlsData
lea rcx, [rsp + 0x20]
call fcn.140007120
lea rdx, [rsp + 0x20]
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x38]
cmp rsi, 8
cmovae rdx, rbx
mov r9, rdi
mov rax, qword [rsp + 0x30]
lea r8, [rax + rax]
mov rcx, r14
test r8, r8
je 0x140040ca3
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r15
inc rcx
cmp rcx, r8
jb 0x140040c90
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x10]
call fcn.140016480
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140040cd3
cmp rcx, qword [rbp + 0x18]
je 0x140040cd3
mov eax, dword [rcx + 0x30]
add rax, qword [rbp - 0x18]
mov qword [0x1400bfb88], rax
cmp rsi, 8
jb 0x140040d0e
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140040d06
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041360
mov rcx, rbx
call fcn.14004afd0
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 7
mov r8d, 0x19
lea rdx, str.LdrpInvertedFunctionTable
lea rcx, [rsp + 0x20]
call fcn.140007120
lea rdx, [rsp + 0x20]
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x38]
cmp rsi, 8
cmovae rdx, rbx
mov r9, rdi
mov rax, qword [rsp + 0x30]
lea r8, [rax + rax]
mov rcx, r14
test r8, r8
je 0x140040d83
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r15
inc rcx
cmp rcx, r8
jb 0x140040d70
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140016480
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140040db4
cmp rcx, qword [rbp - 0x68]
je 0x140040db4
mov eax, dword [rcx + 0x30]
add rax, qword [rsp + 0x68]
mov qword [0x1400bfb90], rax
cmp rsi, 8
jb 0x140040def
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140040de7
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041360
mov rcx, rbx
call fcn.14004afd0
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 7
mov r8d, 0x19
lea rdx, str.LdrpInvertedFunctionTable
lea rcx, [rsp + 0x20]
call fcn.140007120
lea rdx, [rsp + 0x20]
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x38]
cmp rsi, 8
cmovae rdx, rbx
mov r9, rdi
mov rax, qword [rsp + 0x30]
lea r8, [rax + rax]
mov rcx, r14
test r8, r8
je 0x140040e63
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r15
inc rcx
cmp rcx, r8
jb 0x140040e50
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x10]
call fcn.140016480
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140040e93
cmp rcx, qword [rbp + 0x18]
je 0x140040e93
mov eax, dword [rcx + 0x30]
add rax, qword [rbp - 0x18]
mov qword [0x1400bfb98], rax
cmp rsi, 8
jb 0x140040ece
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140040ec6
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041360
mov rcx, rbx
call fcn.14004afd0
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 7
mov r8d, 0x1e
lea rdx, str.RtlInsertInvertedFunctionTable
lea rcx, [rsp + 0x20]
call fcn.140007120
lea rdx, [rsp + 0x20]
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x38]
cmp rsi, 8
cmovae rdx, rbx
mov r9, rdi
mov rax, qword [rsp + 0x30]
lea r8, [rax + rax]
mov rcx, r14
test r8, r8
je 0x140040f43
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r15
inc rcx
cmp rcx, r8
jb 0x140040f30
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140016480
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140040f74
cmp rcx, qword [rbp - 0x68]
je 0x140040f74
mov eax, dword [rcx + 0x30]
add rax, qword [rsp + 0x68]
mov qword [0x1400bfba0], rax
cmp rsi, 8
jb 0x140040faf
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140040fa7
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041360
mov rcx, rbx
call fcn.14004afd0
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 7
mov r8d, 0x1e
lea rdx, str.RtlInsertInvertedFunctionTable
lea rcx, [rsp + 0x20]
call fcn.140007120
lea rdx, [rsp + 0x20]
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x38]
cmp rsi, 8
cmovae rdx, rbx
mov r9, rdi
mov rax, qword [rsp + 0x30]
lea r8, [rax + rax]
mov rcx, r14
test r8, r8
je 0x140041023
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r15
inc rcx
cmp rcx, r8
jb 0x140041010
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x10]
call fcn.140016480
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140041053
cmp rcx, qword [rbp + 0x18]
je 0x140041053
mov eax, dword [rcx + 0x30]
add rax, qword [rbp - 0x18]
mov qword [0x1400bfba8], rax
cmp rsi, 8
jb 0x14004108e
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140041086
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041360
mov rcx, rbx
call fcn.14004afd0
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 7
mov r8d, 0x13
lea rdx, str.LdrpReleaseTlsEntry
lea rcx, [rsp + 0x20]
call fcn.140007120
lea rdx, [rsp + 0x20]
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x38]
cmp rsi, 8
cmovae rdx, rbx
mov r9, rdi
mov rax, qword [rsp + 0x30]
lea r8, [rax + rax]
mov rcx, r14
test r8, r8
je 0x140041103
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r15
inc rcx
cmp rcx, r8
jb 0x1400410f0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140016480
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140041134
cmp rcx, qword [rbp - 0x68]
je 0x140041134
mov eax, dword [rcx + 0x30]
add rax, qword [rsp + 0x68]
mov qword [0x1400bfbb0], rax
cmp rsi, 8
jb 0x14004116f
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140041167
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041360
mov rcx, rbx
call fcn.14004afd0
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 7
mov r8d, 0x13
lea rdx, str.LdrpReleaseTlsEntry
lea rcx, [rsp + 0x20]
call fcn.140007120
lea rdx, [rsp + 0x20]
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x38]
cmp rsi, 8
cmovae rdx, rbx
mov r9, rdi
mov rax, qword [rsp + 0x30]
lea r8, [rax + rax]
mov rcx, r14
test r8, r8
je 0x1400411e3
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r15
inc rcx
cmp rcx, r8
jb 0x1400411d0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x10]
call fcn.140016480
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140041213
cmp rcx, qword [rbp + 0x18]
je 0x140041213
mov eax, dword [rcx + 0x30]
add rax, qword [rbp - 0x18]
mov qword [0x1400bfbb8], rax
cmp rsi, 8
jb 0x14004124e
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140041246
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041360
mov rcx, rbx
call fcn.14004afd0
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 7
mov r8d, 0x10
lea rdx, str.LdrProtectMrdata
lea rcx, [rsp + 0x20]
call fcn.140007120
lea rdx, [rsp + 0x20]
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x38]
cmp rsi, 8
cmovae rdx, rbx
mov rax, qword [rsp + 0x30]
lea r8, [rax + rax]
mov rcx, r14
test r8, r8
je 0x1400412b3
movzx eax, byte [rcx + rdx]
xor rdi, rax
imul rdi, r15
inc rcx
cmp rcx, r8
jb 0x1400412a0
mov r9, rdi
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140016480
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400412e7
cmp rcx, qword [rbp - 0x68]
je 0x1400412e7
mov eax, dword [rcx + 0x30]
add rax, qword [rsp + 0x68]
mov qword [0x1400bfbc0], rax
cmp rsi, 8
jb 0x140041326
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140041316
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041360
mov rcx, rbx
call fcn.14004afd0
jmp 0x140041326
mov r14d, 0xc0000001
lea rcx, [rbp - 0x30]
call fcn.1400443e0
nop
lea rcx, [rsp + 0x50]
call fcn.1400443e0
mov eax, r14d
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14004afb0
mov rbx, qword [rsp + 0x190]
add rsp, 0x160
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140058230
nop
int3