Function at 0x140130cb0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push r13
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x14026f088]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0xe8]
xor r13d, r13d
mov rbx, qword [rbp + 0xe0]
mov r11d, edx
mov qword [rsp + 0x38], rax
mov r10, rcx
mov rax, qword [rbp + 0xf0]
mov qword [rsp + 0x50], r9
mov r9, qword [rbp + 0xf8]
mov dword [rsp + 0x1c], r8d
mov r8, qword [rbp + 0xd8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r9
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], r13
mov qword [rbp], r13
mov qword [rbp + 8], r13
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], r13
nop dword [rax]
mov eax, dword [rcx]
lea rcx, [rcx + 4]
inc dword [rbp + rax*4 - 0x20]
add edx, 0xffffffff
jne 0x140130d40
cmp dword [rbp - 0x20], r11d
jne 0x140130d62
mov qword [r8], r13
xor eax, eax
mov dword [rbx], r13d
jmp 0x140131135
mov qword [rsp + 0x1c0], rsi
mov ecx, 1
mov esi, dword [rbx]
mov qword [rsp + 0x180], r12
mov qword [rsp + 0x178], r14
mov eax, ecx
cmp dword [rbp + rax*4 - 0x20], r13d
jne 0x140130d91
inc ecx
cmp ecx, 0xf
jbe 0x140130d81
cmp esi, ecx
mov r14d, ecx
mov edx, InitCommonControls
cmovb esi, ecx
nop
mov eax, edx
cmp dword [rbp + rax*4 - 0x20], r13d
jne 0x140130dae
add edx, 0xffffffff
jne 0x140130da0
cmp esi, edx
movsxd r12, edx
mov r8d, 1
mov dword [rsp + 0xc], r12d
cmova esi, edx
shl r8d, cl
mov dword [rbx], esi
cmp ecx, edx
jae 0x140130de2
nop word [rax + rax]
mov eax, ecx
sub r8d, dword [rbp + rax*4 - 0x20]
js 0x140130df8
inc ecx
add r8d, r8d
cmp ecx, edx
jb 0x140130dd0
mov eax, edx
lea rcx, [rbp - 0x20]
lea rcx, [rcx + rax*4]
mov eax, dword [rcx]
sub r8d, eax
mov dword [rsp + 0x20], r8d
jns 0x140130e02
mov eax, 0xfffffffd
jmp 0x14013111d
add eax, r8d
mov qword [rsp + 0x188], rdi
mov dword [rcx], eax
mov ecx, r13d
mov qword [rsp + 0x170], r15
mov dword [rbp + 0x24], r13d
add edx, 0xffffffff
je 0x140130e41
mov rax, r13
nop word [rax + rax]
add ecx, dword [rbp + rax - 0x1c]
mov dword [rbp + rax + 0x28], ecx
lea rax, [rax + 4]
add edx, 0xffffffff
jne 0x140130e30
mov edx, r13d
mov eax, dword [r10]
lea r10, [r10 + 4]
test eax, eax
je 0x140130e61
lea rcx, [rbp + 0x20]
lea rcx, [rcx + rax*4]
mov eax, dword [rcx]
mov dword [r9 + rax*4], edx
inc eax
mov dword [rcx], eax
inc edx
cmp edx, r11d
jb 0x140130e44
mov eax, dword [rbp + r12*4 + 0x20]
mov rdx, r9
mov r11d, esi
mov dword [rsp + 0x18], eax
neg r11d
mov dword [rbp + 0x20], r13d
or r15, 0xffffffffffffffff
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x60], r13
mov edi, r13d
mov r9, r13
mov r10d, r13d
cmp r14d, r12d
jg 0x1401310f9
mov rbx, r15
movsxd rax, r14d
mov r13d, dword [rbp + rax*4 - 0x20]
lea rax, [rbp + rax*4 - 0x20]
mov qword [rsp + 0x28], rax
test r13d, r13d
je 0x1401310e5
lea r8d, [r13 + 1]
dec r8d
lea ecx, [r11 + rsi]
dec r13d
mov dword [rsp + 8], r8d
cmp r14d, ecx
jle 0x140130fd7
mov eax, esi
neg eax
lea r12d, [rax + rax]
mov r9d, dword [rsp + 0xc]
inc r15d
sub r9d, ecx
inc rbx
cmp r9d, esi
mov edx, r14d
mov r11d, ecx
mov eax, 1
cmova r9d, esi
sub edx, ecx
mov ecx, edx
shl eax, cl
cmp eax, r8d
jbe 0x140130f47
mov r8, qword [rsp + 0x28]
or ecx, 0xffffffff
sub ecx, r13d
add eax, ecx
cmp edx, r9d
jae 0x140130f47
inc edx
cmp edx, r9d
jae 0x140130f47
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [r8 + 4]
lea r8, [r8 + 4]
add eax, eax
cmp eax, ecx
jbe 0x140130f47
sub eax, ecx
inc edx
cmp edx, r9d
jb 0x140130f30
mov r8, qword [rsp + 0x30]
mov ecx, edx
mov r10d, 1
shl r10d, cl
mov eax, dword [r8]
lea ecx, [rax + r10]
cmp ecx, 0x5a0
ja 0x14013114d
mov r9, qword [rsp + 0x38]
mov dword [r8], ecx
lea r9, [r9 + rax*8]
mov qword [rsp + rbx*8 + 0x60], r9
test rbx, rbx
je 0x140130fb8
mov byte [rsp], dl
lea ecx, [r12 + r11]
mov rdx, qword [rsp + rbx*8 + 0x58]
add ecx, esi
mov r8d, edi
mov byte [rsp + 1], sil
shr r8d, cl
mov rax, r9
sub rax, rdx
mov dword [rbp + rbx*4 + 0x20], edi
sar rax, 3
sub eax, r8d
mov dword [rsp + 4], eax
mov rax, qword [rsp]
mov qword [rdx + r8*8], rax
jmp 0x140130fc0
mov rax, qword [rsp + 0x40]
mov qword [rax], r9
mov r8d, dword [rsp + 8]
lea ecx, [r11 + rsi]
cmp r14d, ecx
jg 0x140130ee0
mov rdx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x48]
movzx eax, r14b
sub al, r11b
mov byte [rsp + 1], al
mov eax, dword [rsp + 0x18]
lea rcx, [rcx + rax*4]
cmp rdx, rcx
jb 0x140130ffa
mov byte [rsp], 0xc0
jmp 0x140131051
mov ecx, dword [rdx]
mov eax, dword [rsp + 0x1c]
cmp ecx, eax
jae 0x140131022
cmp ecx, 0x100
mov dword [rsp + 4], ecx
mov eax, 0x60
mov r8d, 0
cmovb eax, r8d
mov byte [rsp], al
jmp 0x140131048
sub ecx, eax
mov rax, qword [rbp + 0xd0]
lea rcx, [rcx*4]
movzx eax, byte [rcx + rax]
add al, 0x50
mov byte [rsp], al
mov rax, qword [rsp + 0x50]
mov eax, dword [rcx + rax]
mov dword [rsp + 4], eax
add rdx, 4
mov qword [rsp + 0x10], rdx
mov ecx, r14d
mov r8d, 1
sub ecx, r11d
mov edx, edi
shl r8d, cl
mov ecx, r11d
shr edx, cl
cmp edx, r10d
jae 0x14013107c
mov rax, qword [rsp]
mov qword [r9 + rdx*8], rax
add edx, r8d
cmp edx, r10d
jb 0x140131070
lea ecx, [r14 - 1]
mov eax, 1
shl eax, cl
test edi, eax
je 0x140131098
nop dword [rax + rax]
xor edi, eax
shr eax, 1
test edi, eax
jne 0x140131090
xor edi, eax
mov ecx, r11d
mov eax, 1
shl eax, cl
dec eax
and eax, edi
cmp eax, dword [rbp + rbx*4 + 0x20]
je 0x1401310cd
nop
sub r11d, esi
mov eax, 1
mov ecx, r11d
dec rbx
shl eax, cl
dec r15d
dec eax
and eax, edi
cmp eax, dword [rbp + rbx*4 + 0x20]
jne 0x1401310b0
mov rdx, qword [rsp + 0x10]
mov r8d, dword [rsp + 8]
test r13d, r13d
jne 0x140130ec0
mov r12d, dword [rsp + 0xc]
inc r14d
cmp r14d, r12d
jle 0x140130ea1
mov r8d, dword [rsp + 0x20]
xor r13d, r13d
test r8d, r8d
je 0x14013110a
cmp r12d, 1
je 0x14013110a
mov r13d, 0xfffffffb
mov eax, r13d
mov rdi, qword [rsp + 0x188]
mov r15, qword [rsp + 0x170]
mov r12, qword [rsp + 0x180]
mov rsi, qword [rsp + 0x1c0]
mov r14, qword [rsp + 0x178]
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140185a60
add rsp, 0x190
pop r13
pop rbx
pop rbp
ret
mov eax, 0xfffffffc
jmp 0x14013110d