Function at 0x4013f7
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov r14, rcx
mov r8, qword [0x00448168]
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x29], 0x12
mov al, 0x56
mov byte [rsp + 0x2a], al
mov byte [rsp + 0x2b], 0x74
mov byte [rsp + 0x2c], 0x3c
mov byte [rsp + 0x2d], 0x78
mov byte [rsp + 0x2e], 0x42
mov byte [rsp + 0x2f], 0x5a
mov byte [rsp + 0x30], al
mov cl, 0x7a
mov byte [rsp + 0x31], cl
mov byte [rsp + 0x32], cl
mov byte [rsp + 0x33], 0xc
mov byte [rsp + 0x34], al
mov byte [rsp + 0x35], 0x5e
mov byte [rsp + 0x36], 0x7c
mov byte [rsp + 0x37], 0x9c
mov eax, dword [0x004482cc]
mov ebx, dword [0x004482c8]
lea ecx, [rax - 1]
imul ecx, eax
not ecx
or ecx, 0xfffffffe
cmp ecx, 0xffffffff
setne cl
sete al
cmp ebx, 9
setg dl
cmp ebx, 0xa
setl bl
xor bl, al
jne 0x401490
or dl, cl
xor dl, 1
je 0x4014cc
mov r9b, byte [rsp + 0x28]
mov eax, dword [0x004482cc]
mov edx, dword [0x004482c8]
lea ebx, [rax - 1]
imul ebx, eax
not ebx
or ebx, 0xfffffffe
cmp ebx, 0xffffffff
sete bl
setne al
cmp edx, 0xa
setl cl
cmp edx, 9
setg dl
cmp cl, bl
jne 0x4014d2
or dl, al
xor dl, 1
jne 0x4014d2
mov al, byte [rsp + 0x28]
jmp 0x401490
not r9b
or r9b, 0xfe
cmp r9b, 0xff
je 0x401540
lea rbx, [rsp + 0x29]
mov rcx, qword [0x00448158]
mov rdx, rbx
call r8
mov rdi, rax
mov r8, qword [0x00448168]
mov byte [rbx - 1], 0
mov eax, dword [0x004482c4]
mov ecx, dword [0x004482c0]
lea edx, [rax - 1]
imul edx, eax
not edx
or edx, 0xfffffffe
cmp edx, 0xffffffff
sete dl
setne al
cmp ecx, 0xa
setl bl
cmp ecx, 9
setg cl
cmp bl, dl
jne 0x4015da
or cl, al
xor cl, 1
jne 0x4015da
jmp 0x40153e
mov edi, 1
xor r10d, r10d
cmp rdi, 0x10
je 0x4014df
mov bl, byte [rsp + rdi + 0x28]
mov eax, dword [0x004482bc]
mov edx, dword [0x004482b8]
lea esi, [rax - 1]
imul esi, eax
not esi
or esi, 0xfffffffe
cmp esi, 0xffffffff
sete al
setne r9b
cmp edx, 0xa
setl cl
cmp edx, 9
setg dl
cmp cl, al
jne 0x40158b
or dl, r9b
xor dl, 1
je 0x4015d8
ror bl, 1
mov eax, ebx
not al
and al, 0xb5
and bl, 0x4a
or bl, al
xor bl, 0xfb
mov byte [rsp + rdi + 0x28], bl
inc r10
mov eax, dword [0x004482cc]
lea ecx, [rax - 1]
imul ecx, eax
not ecx
or ecx, 0xfffffffe
cmp ecx, 0xffffffff
sete bl
cmp dword [0x004482c8], 0xa
setl al
inc rdi
test al, bl
jne 0x401548
xor al, bl
jne 0x401548
jmp 0x4015d6
jmp 0x4015d8
mov byte [rsp + 0x29], 0xb2
mov byte [rsp + 0x2a], 0xe8
mov byte [rsp + 0x2b], 0xe0
mov byte [rsp + 0x2c], 0xc2
mov byte [rsp + 0x2d], 0xa0
mov al, 0xfa
mov byte [rsp + 0x2e], al
mov byte [rsp + 0x2f], al
mov byte [rsp + 0x30], 0xfc
mov byte [rsp + 0x31], 0xe4
mov byte [rsp + 0x32], 0x22
mov eax, dword [0x004482b4]
mov ecx, dword [0x004482b0]
lea edx, [rax - 1]
imul edx, eax
not edx
or edx, 0xfffffffe
cmp edx, 0xffffffff
sete dl
setne al
cmp ecx, 0xa
setl bl
cmp ecx, 9
setg cl
cmp bl, dl
jne 0x401643
or cl, al
xor cl, 1
je 0x401680
mov r9b, byte [rsp + 0x28]
mov ecx, dword [0x004482b4]
mov esi, dword [0x004482b0]
lea edx, [rcx - 1]
imul edx, ecx
mov ecx, edx
xor ecx, 0xfffffffe
and ecx, edx
sete al
setne r10b
cmp esi, 0xa
setl bl
cmp esi, 9
setg dl
cmp bl, al
jne 0x401686
or dl, r10b
xor dl, 1
jne 0x401686
mov al, byte [rsp + 0x28]
jmp 0x401643
not r9b
or r9b, 0xfe
cmp r9b, 0xff
je 0x401722
test ecx, ecx
sete cl
cmp esi, 0xa
setl al
test cl, al
jne 0x4016ac
xor cl, al
jne 0x4016ac
jmp 0x4016aa
lea rdx, [rsp + 0x29]
mov rcx, qword [0x00448158]
call r8
mov rbx, rax
xor eax, eax
test rdi, rdi
je 0x4017eb
test rbx, rbx
je 0x4017eb
mov cl, 1
test cl, cl
je 0x4017eb
mov eax, dword [0x004482ac]
mov edx, dword [0x004482a8]
lea ecx, [rax - 1]
imul ecx, eax
not ecx
or ecx, 0xfffffffe
cmp ecx, 0xffffffff
setne r8b
sete al
cmp edx, 9
setg cl
cmp edx, 0xa
setl dl
xor dl, al
jne 0x4017a3
or cl, r8b
xor cl, 1
je 0x4017da
jmp 0x4017a3
mov eax, 1
xor esi, esi
mov dl, byte [rsp + rax + 0x28]
mov ebx, edx
shr bl, 1
shl dl, 7
mov ecx, ebx
not cl
not dl
mov r9d, ecx
and r9b, 0x8e
and bl, 0x60
or bl, r9b
and dl, 0x8e
xor dl, bl
and cl, 0x11
or cl, dl
mov byte [rsp + rax + 0x28], cl
inc rsi
inc rax
cmp rax, 0xb
jne 0x401729
mov eax, dword [0x004482b4]
mov esi, dword [0x004482b0]
lea edx, [rax - 1]
imul edx, eax
mov ecx, edx
xor ecx, 0xfffffffe
and ecx, edx
sete al
setne r9b
cmp esi, 0xa
setl dl
cmp esi, 9
setg bl
cmp dl, al
jne 0x401697
or bl, r9b
xor bl, 1
jne 0x401697
jmp 0x4017a1
call rdi
mov rcx, rax
mov edx, 8
mov r8, r14
call rbx
mov ecx, dword [0x004482ac]
lea edx, [rcx - 1]
imul edx, ecx
mov ecx, edx
xor ecx, 0xfffffffe
test ecx, edx
sete cl
cmp dword [0x004482a8], 0xa
setl dl
test dl, cl
jne 0x4017eb
xor dl, cl
jne 0x4017eb
call rdi
mov rcx, rax
mov edx, 8
mov r8, r14
call rbx
jmp 0x4017a3
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret