Function at 0x140132be0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x1402a0480]
xor rax, rsp
mov qword [rbp], rax
mov qword [rsp + 0x50], rdx
mov rsi, rdx
mov qword [rsp + 0x30], r8
lea rdx, [rsp + 0x38]
lea rdi, [rcx + 0x220]
mov r15, rcx
test r9b, r9b
je 0x140132c29
call fcn.1401293b0
jmp 0x140132c3f
movzx ebx, byte [rdi]
movzx eax, bl
or al, 0x20
mov byte [rdi], al
call fcn.1401293b0
xor bl, byte [rdi]
and bl, 0x20
xor byte [rdi], bl
movzx eax, word [rsp + 0x48]
cmp ax, 4
jne 0x140132c79
nop word [rax + rax]
movzx ebx, byte [rdi]
lea rdx, [rsp + 0x38]
movzx eax, bl
mov rcx, r15
or al, 0x20
mov byte [rdi], al
call fcn.1401293b0
xor bl, byte [rdi]
movzx eax, word [rsp + 0x48]
and bl, 0x20
xor byte [rdi], bl
cmp ax, 4
je 0x140132c50
cmp ax, 2
jne 0x140132c8d
mov ecx, dword [rsp + 0x38]
mov rax, rsi
mov dword [rsi], ecx
jmp 0x14013307b
mov rax, qword [r15 + 0x38]
xor edx, edx
mov qword [rsp + 0x160], r12
xorps xmm0, xmm0
mov qword [rsp + 0x118], r13
mov r12d, 0xf
mov qword [rsp + 0x110], r14
mov ebx, edx
test byte [rax + 4], 1
mov r14d, edx
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x80], rdx
mov byte [rbp - 0x78], dl
mov qword [rbp - 0x74], rdx
mov byte [rbp - 0x6c], dl
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x50], r12
mov byte [rbp - 0x68], dl
mov byte [rbp - 0x48], dl
jne 0x140132ceb
test dword [rax], 0x201
je 0x140132d85
cmp qword [r15 + 0x450], rdx
jne 0x140132d85
mov eax, dword [rsp + 0x38]
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x20], eax
xorps xmm1, xmm1
mov dword [rsp + 0x24], eax
mov r8d, 2
mov rax, qword [rsp + 0x20]
mov qword [rbp - 0x34], rdx
mov byte [rbp - 0x2c], dl
mov byte [rsp + 0x28], dl
lea rdx, [0x14024e8bc]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x58], xmm0
movdqu xmmword [rsp + 0x68], xmm1
call fcn.140004900
movups xmm2, xmmword [rsp + 0x68]
xor edx, edx
mov eax, dword [rsp + 0x28]
movsd xmm0, qword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x58]
mov dword [rbp - 0x78], eax
mov eax, dword [rbp - 0x2c]
movsd qword [rbp - 0x80], xmm0
movsd xmm0, qword [rbp - 0x34]
mov ebx, dword [rbp - 0x7c]
mov r14d, dword [rbp - 0x80]
movups xmmword [rbp - 0x58], xmm2
mov dword [rbp - 0x6c], eax
psrldq xmm2, 8
movq r12, xmm2
movsd qword [rbp - 0x74], xmm0
movups xmmword [rbp - 0x68], xmm1
mov r13, qword [r15 + 0x30]
mov eax, dword [rsp + 0x38]
mov dword [r13 + 0x148], eax
lea rcx, [r13 + 0x128]
mov dword [r13 + 0x14c], 0x49a
cmp qword [r13 + 0x140], 0xf
jbe 0x140132db7
mov rcx, qword [r13 + 0x128]
mov qword [r13 + 0x138], rdx
lea rdi, [r13 + 0x150]
mov byte [rcx], 0
mov rsi, rdx
mov byte [rdi], 0
lea rcx, [rdi + 0x210]
mov dword [rdi + 0x1a8], edx
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], r13
mov word [rsp + 0x70], 1
call fcn.140066b90
mov rcx, rdi
test rdi, rdi
jne 0x140132e18
lea rcx, [rsp + 0x58]
call fcn.140067180
mov r13, qword [rsp + 0x68]
mov rdi, rax
mov rsi, qword [rsp + 0x60]
mov rcx, rax
movzx eax, byte [rcx]
mov rdx, qword [rsp + 0x30]
mov byte [rax + rcx + 1], 1
movzx eax, byte [rcx]
mov qword [rcx + rax*8 + 0x10], rdx
inc byte [rcx]
test r14d, r14d
je 0x140132ee9
test ebx, ebx
je 0x140132ee9
lea r12, [rcx + 0x210]
mov ecx, dword [r12 + 8]
mov eax, dword [r12 + 0xc]
lea rdx, [rcx + 1]
cmp rdx, rax
jbe 0x140132e98
mov rax, qword [r12]
lea r8, [rbp - 0x80]
cmp r8, rax
jb 0x140132e90
shl rcx, 6
lea r8, [rbp - 0x80]
add rcx, rax
cmp r8, rcx
jae 0x140132e90
lea r14, [rbp - 0x80]
mov rcx, r12
sub r14, rax
call fcn.1400673d0
and r14, 0xffffffffffffffc0
add r14, qword [r12]
jmp 0x140132e9c
mov rcx, r12
call fcn.1400673d0
lea r14, [rbp - 0x80]
mov ebx, dword [r12 + 8]
lea rdx, [r14 + 0x18]
movsd xmm0, qword [r14]
shl rbx, 6
add rbx, qword [r12]
movsd qword [rbx], xmm0
lea rcx, [rbx + 0x18]
mov eax, dword [r14 + 8]
mov dword [rbx + 8], eax
movsd xmm0, qword [r14 + 0xc]
movsd qword [rbx + 0xc], xmm0
mov eax, dword [r14 + 0x14]
mov dword [rbx + 0x14], eax
call fcn.1400079b0
movzx eax, byte [r14 + 0x38]
mov byte [rbx + 0x38], al
inc dword [r12 + 8]
mov r12, qword [rbp - 0x50]
cmp byte [rsp + 0x70], 0
je 0x140132efd
movzx edx, byte [rsp + 0x71]
mov rcx, r13
call fcn.1400648f0
mov r13, qword [rsp + 0x118]
test rdi, rdi
je 0x14013300e
test rsi, rsi
je 0x14013300e
cmp rdi, rsi
jb 0x140132f41
lea rax, [rsi + 0x3a00]
cmp rdi, rax
ja 0x140132f41
mov eax, dword [rsi + 0x3a80]
mov qword [rsi + rax*8 + 0x3a00], rdi
inc dword [rsi + 0x3a80]
jmp 0x14013300e
mov rsi, qword [rdi + 0x210]
mov ebx, dword [rdi + 0x218]
shl rbx, 6
add rbx, rsi
cmp rbx, rsi
je 0x140132f71
nop word [rax + rax]
sub rbx, 0x40
mov rcx, rbx
call fcn.1400645a0
cmp rbx, rsi
jne 0x140132f60
mov rcx, qword [rdi + 0x210]
lea rax, [rdi + 0x220]
cmp rcx, rax
je 0x140132f8a
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rbx, [rdi + 0x1a0]
mov rcx, qword [rbx]
lea rax, [rbx + 0x10]
cmp rcx, rax
je 0x140132fa3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, 0xa
xor r14d, r14d
nop dword [rax + rax]
mov rdx, qword [rbx - 8]
lea rbx, [rbx - 0x20]
dec rsi
cmp rdx, 0xf
jbe 0x140132fed
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140132fe8
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14013305c
mov rcx, r8
call fcn.140183f7c
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 0xf
mov byte [rbx], r14b
test rsi, rsi
jne 0x140132fb0
mov edx, 0x3a0
mov rcx, rdi
call fcn.140183f7c
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.1401335a0
mov rbx, qword [rsp + 0x50]
mov ecx, dword [rax + 4]
mov dword [rbx], ecx
cmp r12, 0xf
jbe 0x140133068
mov rcx, qword [rbp - 0x68]
lea rdx, [r12 + 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140133063
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140133063
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140183f7c
mov r12, qword [rsp + 0x160]
mov rax, rbx
mov r14, qword [rsp + 0x110]
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1401842c0
add rsp, 0x120
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret