Function at 0x1003c9ec0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x100404bb0]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rcx + 0x10]
lea r8, section..data
mov qword [rsp + 0x80], rcx
lea r15, [0x100000000]
mov r14d, 0xfffffff
lea r9, [rax + 0xd]
mov ebp, dword [rax + 5]
and rbp, r14
lea rdi, [r9 - 1]
mov ecx, dword [rax + 9]
mov r12d, dword [rax + 1]
shr r12, 1
and rcx, r14
and r12, r14
add rbp, r15
xor r13d, r13d
cmp rdi, r8
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x88], rcx
jb 0x1003c9f82
mov ecx, dword [0x10028bf00]
mov eax, dword [0x100015964]
imul ecx, eax
mov eax, ecx
add rax, r8
cmp rdi, rax
jae 0x1003c9f82
mov rax, rdi
sub rax, r8
mov ecx, dword [0x100015964]
cqo
idiv rcx
mov edx, dword [0x100015964]
imul rdx, rax
add r8, rdx
jmp 0x1003c9f85
mov r8, r13
cmp r8, r13
jne 0x1003c9f94
mov r8, rdi
and r8, 0xffffffffffff0000
sub r9, r8
lea rax, [r9 - 0x40]
mov esi, ebp
cmp rax, r13
mov r9d, dword [0x100015964]
cmovl rax, r13
lea rdi, [r8 + rax]
sub r9, r12
sub esi, r15d
xor eax, eax
lea ecx, [rax + 0x40]
mov dword [rsp + 0x24], esi
rep stosb byte [rdi], al
inc r9
cmp r9, r13
mov rdi, r9
je 0x1003ca001
mov rcx, qword [0x1003fe198]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr rdi, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
cmp rdi, r13
jne 0x1003c9fd2
mov qword [0x1003fe198], rcx
xor edx, edx
div r9
mov ecx, esi
lea rbx, [rdx + r8]
mov qword [rsp + 0x50], rbx
mov r8, rbx
mov rdx, r12
mov eax, 0x3e89b3fa
mov rdx, qword [r12 + rbp]
mov dil, r13b
mov qword [rsp + 0x60], rdx
lea rcx, [rsp + 0x60]
mov eax, 0x6bddd0d5
mov r9d, dword [rsp + 0x64]
mov r10, qword [rsp + 0x60]
mov rcx, r15
and r10, r14
mov rax, qword [0x10014dad0]
mov qword [rsp + 0x30], r13
and r9, r14
add r10, r15
mov r14d, 4
sub rcx, rax
mov qword [rsp + 0x68], rcx
jne 0x1003ca0cd
mov r8, r13
cmp r9, r13
jbe 0x1003ca3ae
mov edx, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
movzx eax, byte [r8 + r10]
inc r8
sub eax, 0x1279a1d2
add edx, eax
add eax, ecx
mov ecx, eax
imul ecx, ecx, 0x2a75
rol ecx, 0xe
ror eax, 0xe
xor ecx, eax
mov eax, ecx
imul eax, eax, 0x2a75
rol eax, 0xe
ror ecx, 0xe
xor eax, ecx
mov ecx, eax
imul ecx, ecx, 0x2a75
rol ecx, 0xe
ror eax, 0xe
xor ecx, eax
add edx, ecx
cmp r8, r9
jb 0x1003ca078
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x30], edx
jmp 0x1003ca3ae
mov rbx, 0xfffffffffffff000
movsxd rcx, dword [0x10000003c]
lea rax, [r10 + r9]
mov r8d, dword [rcx + r15 + 0xb0]
mov ecx, dword [rcx + r15 + 0xb4]
mov qword [rsp + 0x28], rax
mov eax, r10d
add r8, r15
sub eax, r15d
mov r13d, eax
mov r11d, eax
add rax, r9
and r11, rbx
mov r15, rax
and r15, rbx
sub r13, r11
sub rax, r15
add rcx, r8
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rax
jmp 0x1003ca133
mov eax, dword [r8]
cmp rax, r11
jae 0x1003ca138
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x1003ca124
xor ebx, ebx
cmp r8, rcx
je 0x1003ca176
mov eax, dword [r8]
cmp rax, r11
jne 0x1003ca176
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x1003ca171
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, r13
jae 0x1003ca171
inc rbx
add rdx, 2
cmp rbx, rcx
jne 0x1003ca158
mov rcx, qword [rsp + 0x38]
mov edx, dword [rsp + 0x34]
mov r9d, dword [rsp + 0x30]
mov r12, qword [rsp + 0x68]
lea rbp, [0x100000000]
cmp r8, rcx
je 0x1003ca335
mov eax, dword [r8]
cmp rax, r15
ja 0x1003ca335
mov edi, dword [r8 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rbx, rax
jne 0x1003ca1cc
add r8, rdi
cmp r8, rcx
je 0x1003ca335
mov eax, dword [r8]
cmp rax, r15
ja 0x1003ca335
xor ebx, ebx
jmp 0x1003ca1a0
mov eax, dword [r8]
cmp rax, r15
jne 0x1003ca1ea
movzx eax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, qword [rsp + 0x40]
jae 0x1003ca335
mov edi, 0xf000
mov rax, rbx
inc rbx
test word [r8 + rax*2 + 8], di
je 0x1003ca18b
xor esi, esi
movzx r11d, word [r8 + rax*2 + 8]
mov r13d, r11d
and r13d, 0xfff
add r13d, dword [r8]
add r13, rbp
mov rax, r13
sub rax, r10
je 0x1003ca273
mov rdi, rax
movzx eax, byte [rsi + r10]
inc rsi
sub eax, 0x1279a1d2
add r9d, eax
add eax, edx
mov ecx, eax
imul ecx, ecx, 0x2a75
rol ecx, 0xe
ror eax, 0xe
xor ecx, eax
mov eax, ecx
imul eax, eax, 0x2a75
rol eax, 0xe
ror ecx, 0xe
xor eax, ecx
mov edx, eax
imul edx, edx, 0x2a75
rol edx, 0xe
ror eax, 0xe
xor edx, eax
add r9d, edx
cmp rsi, rdi
jb 0x1003ca220
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
shr r11d, 0xc
cmp r11d, 3
mov rax, qword [r13]
mov qword [rsp + 0x48], rax
je 0x1003ca296
sub r11d, 0xa
neg r11d
sbb r10d, r10d
add r10d, 3
jmp 0x1003ca29c
mov r10d, 2
mov r11, r12
neg r11
sub r10d, 2
je 0x1003ca2c4
cmp r10d, 1
je 0x1003ca2b4
or r10, 0xffffffffffffffff
jmp 0x1003ca2cc
mov r10d, 8
add rax, r11
mov qword [rsp + 0x48], rax
jmp 0x1003ca2cc
add dword [rsp + 0x48], r11d
mov r10, r14
xor r11d, r11d
test r10, r10
je 0x1003ca328
movzx eax, byte [rsp + r11 + 0x48]
inc r11
sub eax, 0x1279a1d2
add r9d, eax
add eax, edx
mov ecx, eax
imul ecx, ecx, 0x2a75
rol ecx, 0xe
ror eax, 0xe
xor ecx, eax
mov eax, ecx
imul eax, eax, 0x2a75
rol eax, 0xe
ror ecx, 0xe
xor eax, ecx
mov edx, eax
imul edx, edx, 0x2a75
rol edx, 0xe
ror eax, 0xe
xor edx, eax
add r9d, edx
cmp r11, r10
jb 0x1003ca2d4
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
mov rcx, qword [rsp + 0x38]
add r10, r13
jmp 0x1003ca18b
mov r11, qword [rsp + 0x28]
xor r13d, r13d
sub r11, r10
mov rbp, qword [rsp + 0x70]
mov r8, r13
mov dil, r8b
mov esi, dword [rsp + 0x24]
mov r12, qword [rsp + 0x78]
je 0x1003ca3a9
movzx eax, byte [r8 + r10]
inc r8
sub eax, 0x1279a1d2
add r9d, eax
add eax, edx
mov ecx, eax
imul ecx, ecx, 0x2a75
rol ecx, 0xe
ror eax, 0xe
xor ecx, eax
mov eax, ecx
imul eax, eax, 0x2a75
rol eax, 0xe
ror ecx, 0xe
xor eax, ecx
mov edx, eax
imul edx, edx, 0x2a75
rol edx, 0xe
ror eax, 0xe
xor edx, eax
add r9d, edx
cmp r8, r11
jb 0x1003ca356
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
mov rbx, qword [rsp + 0x50]
mov rcx, r13
mov rax, rcx
inc rcx
and eax, 7
mov al, byte [rsp + rax + 0x30]
mov byte [rsp + rcx + 0x8f], al
cmp rcx, 8
jb 0x1003ca3b1
mov eax, 0x14623957
mov rax, qword [rsp + 0x90]
mov r13, r12
and r13d, 7
mov r15, rbp
mov r10, rbx
mov qword [rsp + 0x38], rbx
je 0x1003ca895
mov ebx, esi
not ebx
xor r8d, r8d
xor r11d, r11d
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r11d
xor r10d, r10d
test r13d, r13d
jle 0x1003ca445
lea r9d, [r8 + 0x38]
cmp r10d, r14d
movzx edx, byte [r15]
jge 0x1003ca424
lea ecx, [r9 - 0x20]
shl edx, cl
or r11d, edx
jmp 0x1003ca42c
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r10d
inc r15
sub r9d, 8
cmp r10d, r13d
jl 0x1003ca410
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x40], r8d
mov ecx, esi
mov r8d, dword [rsp + 0x94]
movzx r11d, r8w
movzx r10d, word [rsp + 0x96]
mov edx, r11d
xor edx, esi
rol edx, 3
rol ecx, 8
movzx r9d, ax
imul edx, r10d
sub edx, ecx
xor ebx, edx
mov ecx, ebx
mov esi, ebx
shr ecx, 7
xor esi, r10d
imul esi, r11d
add esi, ecx
xor esi, dword [rsp + 0x24]
mov ecx, esi
lea edx, [r8 + rsi]
movzx r8d, word [rsp + 0x92]
ror edx, 1
rol ecx, 7
imul edx, r8d
add ecx, edx
mov edx, dword [rsp + 0x94]
xor ebx, ecx
mov ecx, ebx
ror ecx, 8
sub ecx, r9d
imul ecx, r11d
xor esi, ecx
xor edx, esi
mov ecx, eax
sub ecx, edx
mov edx, eax
xor ebx, ecx
mov ecx, ebx
sub edx, ebx
rol edx, 3
ror ecx, 0xf
imul edx, r11d
xor ecx, edx
xor esi, ecx
mov ecx, esi
sub ecx, dword [rsp + 0x94]
sub ecx, r8d
xor ebx, ecx
mov edx, ebx
mov ecx, ebx
ror edx, 9
xor ecx, r10d
imul ecx, r9d
xor edx, ecx
xor esi, edx
mov edx, esi
mov ecx, esi
xor edx, r8d
rol edx, 3
rol ecx, 0xb
imul edx, r10d
xor ecx, edx
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
xor edx, r9d
shr ecx, 7
imul edx, r11d
xor edx, ecx
xor esi, edx
mov ecx, esi
mov edx, esi
sub edx, r10d
shr ecx, 9
rol edx, 6
imul edx, r8d
xor edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, ebx
xor edx, r11d
mov r11d, dword [rsp + 0x40]
rol edx, 4
shr ecx, 7
xor ebx, r11d
imul edx, r9d
add edx, ecx
xor r9d, r9d
xor edx, dword [rsp + 0x28]
xor esi, edx
mov edx, ebx
test r13d, r13d
mov ecx, esi
jle 0x1003ca58e
mov r8, qword [rsp + 0x38]
cmp r9d, r14d
jge 0x1003ca575
rol ecx, 8
mov byte [r8], cl
inc r8
xor dil, cl
jmp 0x1003ca581
rol edx, 8
mov byte [r8], dl
inc r8
xor dil, dl
inc r9d
cmp r9d, r13d
jl 0x1003ca562
mov qword [rsp + 0x38], r8
lea ecx, [r13 - 4]
test ecx, ecx
jle 0x1003ca87d
sub r14d, ecx
shl r14d, 3
mov ecx, r14d
shr ebx, cl
shl ebx, cl
mov r14d, dword [rsp + 0x28]
mov r10, qword [rsp + 0x38]
mov r13, r12
shr r13, 3
test r13, r13
je 0x1003ca7c2
mov r12d, dword [rsp + 0x94]
movzx ecx, word [rsp + 0x96]
mov dword [rsp + 0x40], ecx
neg ecx
mov dword [rsp + 0x68], ecx
movzx ecx, word [rsp + 0x92]
mov ebp, dword [rsp + 0x68]
mov dword [rsp + 0x38], ecx
movzx ecx, r12w
mov dword [rsp + 0x28], ecx
movzx ecx, ax
mov dword [rsp + 0x24], ecx
movzx r9d, byte [r15]
movzx r8d, byte [r15 + 4]
shl r9d, 8
movzx ecx, byte [r15 + 1]
shl r8d, 8
add r15, 8
or r9d, ecx
movzx ecx, byte [r15 - 6]
shl r9d, 8
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r15 - 5]
or r9d, ecx
movzx ecx, byte [r15 - 3]
or r8d, ecx
movzx ecx, byte [r15 - 2]
xor esi, r9d
shl r8d, 8
mov edx, esi
xor edx, dword [rsp + 0x28]
or r8d, ecx
shl r8d, 8
movzx ecx, byte [r15 - 1]
or r8d, ecx
rol edx, 3
mov ecx, esi
rol ecx, 8
imul edx, dword [rsp + 0x40]
sub edx, ecx
xor edx, r8d
xor ebx, edx
mov edx, ebx
xor edx, dword [rsp + 0x40]
mov ecx, ebx
shr ecx, 7
imul edx, dword [rsp + 0x28]
add edx, ecx
xor esi, edx
lea edx, [r12 + rsi]
mov ecx, esi
ror edx, 1
rol ecx, 7
imul edx, dword [rsp + 0x38]
add ecx, edx
xor ebx, ecx
mov edx, r12d
mov ecx, ebx
ror ecx, 8
sub ecx, dword [rsp + 0x24]
imul ecx, dword [rsp + 0x28]
xor esi, ecx
xor edx, esi
mov ecx, eax
sub ecx, edx
mov edx, eax
xor ebx, ecx
mov ecx, ebx
sub edx, ebx
rol edx, 3
ror ecx, 0xf
imul edx, dword [rsp + 0x28]
xor ecx, edx
xor esi, ecx
movzx edx, word [rsp + 0x92]
mov ecx, esi
sub ecx, r12d
sub ecx, edx
xor ebx, ecx
mov edx, ebx
mov ecx, ebx
xor ecx, dword [rsp + 0x40]
ror edx, 9
imul ecx, dword [rsp + 0x24]
xor edx, ecx
movzx ecx, word [rsp + 0x92]
xor esi, edx
mov edx, esi
xor edx, ecx
rol edx, 3
mov ecx, esi
rol ecx, 0xb
imul edx, dword [rsp + 0x40]
xor ecx, edx
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
xor edx, dword [rsp + 0x24]
shr ecx, 7
imul edx, dword [rsp + 0x28]
xor edx, ecx
movzx ecx, word [rsp + 0x92]
xor esi, edx
lea edx, [rbp + rsi]
rol edx, 6
imul edx, ecx
mov ecx, esi
shr ecx, 9
xor edx, ecx
xor ebx, edx
mov edx, ebx
mov ecx, ebx
xor ebx, r11d
mov r11d, r8d
xor edx, dword [rsp + 0x28]
shr ecx, 7
mov byte [r10 + 7], bl
rol edx, 4
imul edx, dword [rsp + 0x24]
add edx, ecx
xor edx, r14d
xor esi, edx
xor dil, sil
mov byte [r10 + 3], sil
mov r14d, r9d
ror esi, 8
mov byte [r10 + 2], sil
xor dil, bl
ror ebx, 8
xor dil, sil
mov byte [r10 + 6], bl
ror esi, 8
mov byte [r10 + 1], sil
xor dil, bl
ror ebx, 8
xor dil, sil
mov byte [r10 + 5], bl
ror esi, 8
xor dil, bl
ror ebx, 8
mov cl, bl
mov byte [r10], sil
mov byte [r10 + 4], bl
add r10, 8
xor cl, sil
xor dil, cl
ror esi, 8
ror ebx, 8
sub r13, 1
jne 0x1003ca5fb
mov rbp, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov al, byte [r12 + rbp + 8]
xor al, dil
je 0x1003ca8bd
call fcn.10000228c
lea r10, [0x10006d7ac]
mov rbx, rax
mov rax, 0xfffffffffffff000
mov r11d, 0xffff
mov rsi, qword [rsp + 0x80]
mov qword [rsi + 0x10], r10
mov rcx, qword [0x1003fe198]
lea r8, [rsi + 0x18]
and r8, 0xfffffffffffffff8
and rbx, rax
lea r9, [r8 + 0xfff]
and r9, rax
xor edi, edi
imul rcx, rcx, 0x343fd
shl rdi, 0x10
shr r11, 0x10
add rcx, 0x269ec3
mov rax, rcx
shr rax, 0x10
movzx edx, ax
or rdi, rdx
test r11, r11
jne 0x1003ca816
movabs rax, 0x8000800080008001
mul rdi
mov qword [0x1003fe198], rcx
shr rdx, 0xf
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x98], rbx
imul rdx, rdx, 0xffff
sub rdi, rdx
inc rdi
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x58], r11
jmp 0x1003ca8b3
xor ebx, ebx
test ecx, ecx
jns 0x1003ca5a8
neg ecx
shl ecx, 3
shr esi, cl
shl esi, cl
jmp 0x1003ca5a8
mov r14d, esi
mov r11d, esi
not r11d
xor ebx, ebx
xor esi, esi
jmp 0x1003ca5b2
mov rax, qword [rsp + 0x58]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x1003ca8a7
jmp 0x1003ca9d9
mov r13, qword [rsp + 0x50]
mov rax, qword [0x10014dad0]
mov rbx, rbp
lea r14, [0x100000000]
sub rbx, r13
mov rsi, r14
sub rsi, rax
jne 0x1003ca8e7
test rbx, rbx
je 0x1003ca9b9
mov rcx, qword [0x100019a28]
lea r8d, [rcx - 1]
lea r15, [0x100019a28]
xor edi, edi
mov r11, r13
sub r11, rbp
sub ebp, r14d
add r12d, ebp
test r8d, r8d
js 0x1003ca939
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r15 + rdx*4 + 4]
and r9d, 0xfffffff
cmp ebp, r9d
jae 0x1003ca92f
lea r8d, [rax - 1]
jmp 0x1003ca934
jbe 0x1003ca93e
lea edi, [rax + 1]
cmp r8d, edi
jge 0x1003ca90c
movsxd r10, edi
jmp 0x1003ca9b2
movsxd r10, eax
jmp 0x1003ca9b2
mov edx, dword [r15 + r10*4 + 4]
mov eax, edx
and eax, 0xfffffff
cmp eax, r12d
jae 0x1003ca9b9
mov r8, rdx
mov edi, edx
sar edx, 0x1e
shl edi, 2
and r8d, 0xfffffff
and edx, 3
sar edi, 0x1e
add r8, r14
xor r9d, r9d
and edi, 3
sub edi, 1
je 0x1003ca98e
sub edi, 1
je 0x1003ca989
cmp edi, 1
jne 0x1003ca994
mov r9, rsi
jmp 0x1003ca994
mov r9, rbx
jmp 0x1003ca994
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x1003ca9a4
cmp edx, 1
jne 0x1003ca9af
add qword [r8 + r11], r9
jmp 0x1003ca9a8
add dword [r8 + r11], r9d
mov rcx, qword [0x100019a28]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x1003ca943
mov eax, dword [0x100015964]
mov eax, 0xc612171d
mov rdx, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
lea r10, [r13 + rdx]
mov qword [rsi + 0x10], r10
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1003005f0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret