Function at 0x14013c020
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x78]
sub rsp, 0x178
mov rax, qword [0x1402a0480]
xor rax, rsp
mov qword [rbp + 0x60], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x5c], 0x20
xor r13d, r13d
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r13d
mov rsi, r8
mov r14, rdx
mov rdi, rcx
nop word [rax + rax]
movzx ebx, byte [rdi + 0x220]
mov rdx, rsi
movzx eax, bl
mov rcx, rdi
or al, 0x20
mov byte [rdi + 0x220], al
call fcn.1401293b0
movzx eax, byte [rdi + 0x220]
xor bl, al
and bl, 0x20
xor bl, al
mov byte [rdi + 0x220], bl
movzx eax, word [rsi + 0x10]
cmp ax, 4
je 0x14013c070
cmp ax, 2
je 0x14013c679
cmp ax, 0x16
je 0x14013c659
cmp ax, 0x1a
je 0x14013c51f
mov rcx, rsi
call fcn.14013fd50
mov qword [rsp + 0x40], rax
mov rbx, rax
test rax, rax
je 0x14013c50a
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140132110
test al, al
jne 0x14013c316
mov ecx, dword [rsp + 0x58]
mov eax, dword [rsp + 0x5c]
lea r8, [rcx + 1]
cmp r8, rax
jbe 0x14013c123
mov r9d, 8
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140022a30
mov ecx, dword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov qword [rax + rcx*8], rbx
inc dword [rsp + 0x58]
movzx ebx, byte [rdi + 0x220]
mov rdx, rsi
movzx eax, bl
mov rcx, rdi
or al, 0x20
mov byte [rdi + 0x220], al
call fcn.1401293b0
movzx eax, byte [rdi + 0x220]
xor bl, al
and bl, 0x20
xor bl, al
mov byte [rdi + 0x220], bl
movzx eax, word [rsi + 0x10]
cmp ax, 4
je 0x14013c130
cmp ax, 0x16
je 0x14013c2cd
cmp ax, 0x1a
je 0x14013c19a
cmp ax, 0x41
je 0x14013c070
mov rbx, qword [rdi + 0x30]
mov eax, dword [rsi]
mov dword [rbx + 0x14c], 0x429
jmp 0x14013c689
mov rbx, qword [rdi + 0x30]
mov eax, dword [rsi]
mov dword [rbx + 0x148], eax
lea rcx, [rbx + 0x128]
mov dword [rbx + 0x14c], 0x491
cmp qword [rbx + 0x140], 0xf
jbe 0x14013c1c8
mov rcx, qword [rbx + 0x128]
mov qword [rbx + 0x138], r13
mov byte [rcx], r13b
lea rcx, [rbx + 0x360]
mov byte [rbx + 0x150], r13b
mov dword [rbx + 0x2f8], r13d
call fcn.140066b90
xor edx, edx
mov rcx, rbx
call fcn.1400648f0
mov rdx, rsi
mov rcx, rdi
call fcn.14013a1b0
cmp word [rsi + 0x10], 0x16
je 0x14013c28f
mov rbx, qword [rdi + 0x30]
mov eax, dword [rsi]
mov dword [rbx + 0x14c], 0x44d
mov dword [rbx + 0x148], eax
lea rcx, [rbx + 0x128]
cmp qword [rbx + 0x140], 0xf
jbe 0x14013c23a
mov rcx, qword [rbx + 0x128]
mov qword [rbx + 0x138], r13
mov byte [rcx], r13b
lea rcx, [rbx + 0x150]
mov byte [rcx], r13b
mov dword [rcx + 0x1a8], r13d
mov qword [rsp + 0x20], rcx
add rcx, 0x210
mov qword [rsp + 0x28], r13
call fcn.140066b90
xor edx, edx
mov rcx, rbx
call fcn.1400648f0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], r13
mov word [rsp + 0x38], r13w
call fcn.14006dd10
jmp 0x14013c6d5
or byte [r14 + 0x24], 8
mov rax, qword [rsp + 0x50]
lea r8, [rdi + 0x80]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
mov eax, dword [rsp + 0x58]
mov rcx, r14
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
call fcn.140140d40
xor bl, bl
jmp 0x14013c6d7
mov ebx, dword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
test rbx, rbx
je 0x14013c30f
mov dword [r14 + 0x18], ebx
lea rcx, [rdi + 0x80]
lea rbx, [rbx*8]
mov r8d, 8
mov rdx, rbx
call fcn.140009940
lea rdx, [rsi + rbx]
mov qword [r14 + 8], rax
mov r8, rax
mov rcx, rsi
call fcn.140131e20
xor bl, bl
jmp 0x14013c6d7
mov r14, qword [rdi + 0x30]
mov eax, dword [rsi]
mov qword [rsp + 0x1c8], r12
mov qword [rsp + 0x170], r15
mov dword [r14 + 0x148], eax
lea rcx, [r14 + 0x128]
mov dword [r14 + 0x14c], 0x422
cmp qword [r14 + 0x140], 0xf
jbe 0x14013c356
mov rcx, qword [r14 + 0x128]
mov qword [r14 + 0x138], r13
lea rdi, [r14 + 0x150]
mov byte [rcx], r13b
mov rsi, r13
mov byte [rdi], sil
lea rcx, [rdi + 0x210]
mov dword [rdi + 0x1a8], r13d
mov r12b, 1
mov qword [rsp + 0x20], rdi
xor r15b, r15b
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r14
mov word [rsp + 0x38], 1
call fcn.140066b90
test rdi, rdi
jne 0x14013c3c4
lea rcx, [rsp + 0x20]
call fcn.140067180
movzx r15d, byte [rsp + 0x39]
mov rdi, rax
movzx r12d, byte [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
movzx r8d, byte [rdi]
mov byte [r8 + rdi + 1], 5
movzx r8d, byte [rdi]
mov qword [rdi + r8*8 + 0x10], rbx
inc byte [rdi]
test r12b, r12b
mov r12, qword [rsp + 0x1c8]
je 0x14013c3f2
movzx edx, r15b
mov rcx, r14
call fcn.1400648f0
mov r15, qword [rsp + 0x170]
test rsi, rsi
je 0x14013c6d5
cmp rdi, rsi
jb 0x14013c42d
lea rax, [rsi + 0x3a00]
cmp rdi, rax
ja 0x14013c42d
mov eax, dword [rsi + 0x3a80]
mov qword [rsi + rax*8 + 0x3a00], rdi
inc dword [rsi + 0x3a80]
jmp 0x14013c6d5
mov rsi, qword [rdi + 0x210]
mov ebx, dword [rdi + 0x218]
shl rbx, 6
add rbx, rsi
cmp rbx, rsi
je 0x14013c461
nop word [rax + rax]
sub rbx, 0x40
mov rcx, rbx
call fcn.1400645a0
cmp rbx, rsi
jne 0x14013c450
mov rcx, qword [rdi + 0x210]
lea rax, [rdi + 0x220]
cmp rcx, rax
je 0x14013c47a
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 0x14013c493
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, 0xa
nop dword [rax + rax]
mov rdx, qword [rbx - 8]
lea rbx, [rbx - 0x20]
dec rsi
cmp rdx, 0xf
jbe 0x14013c4dd
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14013c4d8
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14013c503
mov rcx, r8
call fcn.140183f7c
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 0xf
mov byte [rbx], r13b
test rsi, rsi
jne 0x14013c4a0
mov edx, 0x3a0
mov rcx, rdi
call fcn.140183f7c
jmp 0x14013c6d5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rbx, qword [rdi + 0x30]
mov eax, dword [rsi]
mov dword [rbx + 0x14c], 0x440
jmp 0x14013c21c
mov rax, qword [rdi + 0x38]
mov ecx, dword [rax]
test cl, 1
jne 0x14013c593
mov rbx, qword [rdi + 0x30]
bt ecx, 0xa
mov eax, dword [rsi]
mov ecx, 0x4fe
mov dword [rbx + 0x148], eax
mov eax, 0x4af
cmovb eax, ecx
lea rcx, [rbx + 0x128]
mov dword [rbx + 0x14c], eax
cmp qword [rbx + 0x140], 0xf
jbe 0x14013c565
mov rcx, qword [rbx + 0x128]
mov qword [rbx + 0x138], r13
mov byte [rcx], r13b
lea rcx, [rbx + 0x360]
mov byte [rbx + 0x150], r13b
mov dword [rbx + 0x2f8], r13d
call fcn.140066b90
xor edx, edx
mov rcx, rbx
call fcn.1400648f0
mov rax, qword [rdi + 0x38]
test dword [rax + 0x28], 0x40000000
je 0x14013c628
test byte [rax + 0x30], 1
jne 0x14013c628
mov rbx, qword [rdi + 0x30]
mov eax, dword [rsi]
mov dword [rbx + 0x148], eax
lea rcx, [rbx + 0x128]
mov dword [rbx + 0x14c], 0x4a3
cmp qword [rbx + 0x140], 0xf
jbe 0x14013c5d8
mov rcx, qword [rbx + 0x128]
mov qword [rbx + 0x138], r13
mov byte [rcx], r13b
lea rcx, [rbx + 0x150]
mov byte [rcx], r13b
mov dword [rcx + 0x1a8], r13d
mov qword [rsp + 0x20], rcx
add rcx, 0x210
mov qword [rsp + 0x28], r13
call fcn.140066b90
xor edx, edx
mov rcx, rbx
call fcn.1400648f0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], r13
mov word [rsp + 0x38], r13w
call fcn.14006dd10
mov rdx, rsi
mov rcx, rdi
call fcn.14013a1b0
cmp word [rsi + 0x10], 0x16
jne 0x14013c20c
mov rdx, qword [rdi + 0x148]
lea rcx, [rsp + 0x50]
call fcn.140140c50
or byte [r14 + 0x24], 4
jmp 0x14013c294
cmp dword [rsp + 0x58], r13d
jne 0x14013c664
xor bl, bl
jmp 0x14013c6d7
mov rbx, qword [rdi + 0x30]
mov eax, dword [rsi]
mov dword [rbx + 0x14c], 0x42b
jmp 0x14013c21c
mov rbx, qword [rdi + 0x30]
mov eax, dword [rsi]
mov dword [rbx + 0x14c], 0x44d
mov dword [rbx + 0x148], eax
lea rcx, [rbx + 0x128]
cmp qword [rbx + 0x140], 0xf
jbe 0x14013c6a7
mov rcx, qword [rbx + 0x128]
mov qword [rbx + 0x138], r13
mov byte [rcx], r13b
lea rcx, [rbx + 0x360]
mov byte [rbx + 0x150], r13b
mov dword [rbx + 0x2f8], r13d
call fcn.140066b90
xor edx, edx
mov rcx, rbx
call fcn.1400648f0
mov bl, 1
mov rsi, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
cmp rsi, rax
je 0x14013c6ef
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movzx eax, bl
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1401842c0
add rsp, 0x178
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret