Function at 0x10005204c
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, 0xb0
mov rax, qword [0x1004c4740]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea r15, [0x100000000]
mov qword [rsp + 0x80], rcx
lea r8, section..data
lea rax, [rcx + 0x18]
mov qword [rsp + 0x70], rax
mov rax, qword [rax]
mov ecx, dword [rax + 5]
mov ebp, dword [rax + 9]
mov r13d, 0xfffffff
lea r9, [rax + 0xd]
mov r14d, dword [rax + 1]
and rbp, r13
lea rdi, [r9 - 1]
and rcx, r13
mov qword [rsp + 0x60], rdx
and r14, r13
add rbp, r15
xor r12d, r12d
cmp rdi, r8
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x88], r14
jb 0x100052116
mov ecx, dword [0x1002a02b4]
mov eax, dword [0x1002f8888]
imul ecx, eax
mov eax, ecx
add rax, r8
cmp rdi, rax
jae 0x100052116
mov rax, rdi
mov ecx, dword [0x1002f8888]
sub rax, r8
cqo
idiv rcx
mov edx, dword [0x1002f8888]
imul rdx, rax
add r8, rdx
jmp 0x100052119
mov r8, r12
cmp r8, r12
jne 0x100052128
mov r8, rdi
and r8, 0xffffffffffff0000
mov esi, ebp
sub r9, r8
lea rax, [r9 - 0x40]
cmp rax, r12
mov r9d, dword [0x1002f8888]
cmovl rax, r12
lea rdi, [rax + r8]
sub r9, r14
sub esi, r15d
mov dword [rsp + 0x20], esi
xor eax, eax
lea ecx, [rax + 0x40]
rep stosb byte [rdi], al
inc r9
cmp r9, r12
mov rdi, r9
je 0x100052195
mov rcx, qword [0x1004c43a0]
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, r12
jne 0x100052166
mov qword [0x1004c43a0], rcx
xor edx, edx
mov ecx, esi
div r9
lea rbx, [rdx + r8]
mov qword [rsp + 0x58], rbx
mov r8, rbx
mov rdx, r14
mov eax, 0xfd2092c1
mov rdx, qword [r14 + rbp]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rdx
mov dil, r12b
mov eax, 0x381e19ca
mov r11, 0xfffffffffffff000
mov rax, qword [0x1000487b8]
mov r10, qword [rsp + 0x50]
mov r9d, dword [rsp + 0x54]
and r10, r13
mov qword [rsp + 0x28], r12
and r9, r13
mov r13d, 4
add r10, r15
mov rcx, r15
sub rcx, rax
mov qword [rsp + 0x38], rcx
jne 0x100052267
cmp r9, r12
mov r8, r12
jbe 0x100052525
mov ecx, dword [rsp + 0x2c]
mov edx, dword [rsp + 0x28]
mov r15d, 0x1c8c8ff2
mov r11d, 0xe373700e
movzx eax, byte [r8 + r10]
inc r8
sub eax, r15d
add edx, eax
add eax, ecx
imul rax, r11
mov qword [rsp + 0x30], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x30]
add ecx, eax
imul ecx, ecx, 0xe373700e
ror ecx, 0x11
imul ecx, ecx, 0xe373700e
ror ecx, 0x11
add edx, ecx
cmp r8, r9
jb 0x10005221f
mov dword [rsp + 0x2c], ecx
mov dword [rsp + 0x28], edx
jmp 0x100052525
lea rax, [r10 + r9]
movsxd rcx, dword [0x10000003c]
mov r8d, dword [rcx + r15 + 0xb0]
mov ecx, dword [rcx + r15 + 0xb4]
add r8, r15
mov qword [rsp + 0x68], rax
mov eax, r10d
sub eax, r15d
mov esi, eax
mov ebx, eax
add rax, r9
mov r12, rax
and rbx, r11
and r12, r11
sub rsi, rbx
sub rax, r12
add rcx, r8
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x48], rax
jmp 0x1000522c4
mov eax, dword [r8]
cmp rax, rbx
jae 0x1000522c9
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x1000522b5
xor r11d, r11d
cmp r8, rcx
je 0x100052308
mov eax, dword [r8]
cmp rax, rbx
jne 0x100052308
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x100052303
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, rsi
jae 0x100052303
inc r11
add rdx, 2
cmp r11, rcx
jne 0x1000522ea
mov rcx, qword [rsp + 0x30]
mov r9d, dword [rsp + 0x28]
mov r15d, 0x1c8c8ff2
mov rbp, qword [rsp + 0x38]
mov edx, dword [rsp + 0x2c]
mov esi, 0xe373700e
cmp r8, rcx
je 0x1000524b6
mov eax, dword [r8]
cmp rax, r12
ja 0x1000524b6
mov edi, dword [r8 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp r11, rax
jne 0x100052363
add r8, rdi
cmp r8, rcx
je 0x1000524b6
mov eax, dword [r8]
cmp rax, r12
ja 0x1000524b6
xor r11d, r11d
jmp 0x100052336
mov eax, dword [r8]
cmp rax, r12
jne 0x100052381
movzx eax, word [r8 + r11*2 + 8]
and eax, 0xfff
cmp rax, qword [rsp + 0x48]
jae 0x1000524b6
mov rax, r11
inc r11
mov edi, 0xf000
test word [r8 + rax*2 + 8], di
je 0x100052321
xor edi, edi
movzx ecx, word [r8 + rax*2 + 8]
mov ebx, ecx
and ebx, 0xfff
add ebx, dword [r8]
lea rax, [0x100000000]
add rbx, rax
mov rax, rbx
sub rax, r10
je 0x100052402
mov r14, rax
movzx eax, byte [r10 + rdi]
inc rdi
sub eax, r15d
add r9d, eax
add eax, edx
imul rax, rsi
mov qword [rsp + 0x40], rax
shr rax, 0x20
mov edx, dword [rsp + 0x40]
add edx, eax
imul edx, edx, 0xe373700e
ror edx, 0x11
imul edx, edx, 0xe373700e
ror edx, 0x11
add r9d, edx
cmp rdi, r14
jb 0x1000523bc
mov dword [rsp + 0x2c], edx
mov dword [rsp + 0x28], r9d
shr ecx, 0xc
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
cmp ecx, 3
je 0x100052420
sub ecx, 0xa
neg ecx
sbb r10d, r10d
add r10d, 3
jmp 0x100052426
mov r10d, 2
mov rsi, rbp
neg rsi
sub r10d, 2
je 0x10005244d
cmp r10d, 1
je 0x10005243e
or rcx, 0xffffffffffffffff
jmp 0x100052454
mov ecx, 8
add rax, rsi
mov qword [rsp + 0x40], rax
jmp 0x100052454
add dword [rsp + 0x40], esi
mov rcx, r13
mov esi, 0xe373700e
xor r10d, r10d
test rcx, rcx
je 0x1000524a8
movzx eax, byte [rsp + r10 + 0x40]
inc r10
sub eax, r15d
add r9d, eax
add eax, edx
imul rax, rsi
mov qword [rsp + 0x38], rax
mov edx, dword [rsp + 0x38]
shr rax, 0x20
add edx, eax
imul edx, edx, 0xe373700e
ror edx, 0x11
imul edx, edx, 0xe373700e
ror edx, 0x11
add r9d, edx
cmp r10, rcx
jb 0x100052461
mov dword [rsp + 0x2c], edx
mov dword [rsp + 0x28], r9d
lea r10, [rcx + rbx]
mov rcx, qword [rsp + 0x30]
jmp 0x100052321
mov r8, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
xor r12d, r12d
sub r8, r10
mov rcx, r12
mov r14, qword [rsp + 0x88]
mov dil, cl
je 0x10005251c
movzx eax, byte [rcx + r10]
inc rcx
sub eax, r15d
add r9d, eax
add eax, edx
imul rax, rsi
mov qword [rsp + 0x68], rax
mov edx, dword [rsp + 0x68]
shr rax, 0x20
add edx, eax
imul edx, edx, 0xe373700e
ror edx, 0x11
imul edx, edx, 0xe373700e
ror edx, 0x11
add r9d, edx
cmp rcx, r8
jb 0x1000524d6
mov dword [rsp + 0x2c], edx
mov dword [rsp + 0x28], r9d
mov rbx, qword [rsp + 0x58]
mov esi, dword [rsp + 0x20]
mov rcx, r12
mov rax, rcx
inc rcx
and eax, 7
mov al, byte [rsp + rax + 0x28]
cmp rcx, 8
mov byte [rsp + rcx + 0x97], al
jb 0x100052528
mov eax, 0xdb579242
mov rax, qword [rsp + 0x98]
mov r15, rbp
mov qword [rsp + 0x30], rbx
mov r12, r14
and r12d, 7
mov r11, rbx
je 0x100052a29
mov ebx, esi
xor r8d, r8d
not ebx
xor r11d, r11d
xor r10d, r10d
test r12d, r12d
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x38], r11d
jle 0x1000525bc
lea r9d, [r8 + 0x38]
cmp r10d, r13d
movzx edx, byte [r15]
jge 0x10005259b
lea ecx, [r9 - 0x20]
shl edx, cl
or r11d, edx
jmp 0x1000525a3
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r10d
inc r15
sub r9d, 8
cmp r10d, r12d
jl 0x100052587
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x48], r8d
movzx r9d, word [rsp + 0x9a]
mov ecx, esi
movzx r11d, word [rsp + 0x9c]
mov r8d, r11d
movzx r10d, word [rsp + 0x9e]
sub ecx, r10d
xor ecx, eax
xor ebx, ecx
mov ecx, r10d
mov esi, ebx
xor ecx, ebx
ror esi, 0xc
imul ecx, r11d
xor esi, ecx
xor esi, dword [rsp + 0x20]
xor r8d, esi
mov ecx, r9d
rol r8d, 2
mov edx, esi
rol edx, 9
imul ecx, r8d
movzx r8d, ax
sub ecx, edx
mov edx, r9d
xor ebx, ecx
mov ecx, ebx
xor edx, ebx
rol edx, 7
ror ecx, 4
imul edx, r8d
xor ecx, edx
mov edx, r9d
xor esi, ecx
xor edx, esi
mov ecx, esi
shr ecx, 7
imul edx, r10d
add edx, ecx
xor ebx, edx
mov ecx, dword [rsp + 0x9c]
mov edx, eax
xor edx, ebx
sub ecx, edx
xor esi, ecx
mov ecx, r11d
mov edx, r9d
xor ecx, esi
rol ecx, 4
imul edx, ecx
mov ecx, esi
shr ecx, 6
add edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, dword [rsp + 0x9c]
xor edx, ebx
ror edx, 0xa
rol ecx, 8
imul edx, r8d
add ecx, edx
xor esi, ecx
mov edx, esi
sub edx, eax
rol edx, 2
mov ecx, esi
ror ecx, 9
imul r10d, edx
xor ecx, r10d
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
ror edx, 2
xor ecx, r8d
imul ecx, r11d
add edx, ecx
xor esi, edx
mov edx, esi
sub edx, r11d
mov ecx, esi
imul edx, r9d
shr ecx, 4
sub edx, ecx
xor r9d, r9d
xor ebx, edx
mov edx, dword [rsp + 0x9c]
mov ecx, ebx
xor edx, ebx
xor ebx, dword [rsp + 0x48]
rol edx, 0xd
ror ecx, 5
imul edx, r8d
mov r8d, ebx
sub edx, ecx
mov ecx, dword [rsp + 0x38]
xor edx, ecx
xor esi, edx
test r12d, r12d
mov edx, esi
jle 0x100052712
mov rcx, qword [rsp + 0x30]
cmp r9d, r13d
jge 0x1000526f8
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x100052705
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r12d
jl 0x1000526e6
mov qword [rsp + 0x30], rcx
lea ecx, [r12 - 4]
test ecx, ecx
jle 0x100052a11
sub r13d, ecx
shl r13d, 3
mov ecx, r13d
shr ebx, cl
shl ebx, cl
mov r12d, dword [rsp + 0x48]
mov r11, qword [rsp + 0x30]
mov r13, r14
shr r13, 3
test r13, r13
je 0x100052956
movzx ebp, word [rsp + 0x9c]
movzx ecx, ax
mov r14d, dword [rsp + 0x38]
movzx r8d, word [rsp + 0x9e]
mov dword [rsp + 0x20], ecx
movzx r9d, byte [r15 + 4]
movzx ecx, byte [r15 + 1]
movzx r10d, byte [r15]
shl r10d, 8
shl r9d, 8
add r15, 8
or r10d, ecx
shl r10d, 8
movzx ecx, byte [r15 - 6]
or r10d, ecx
movzx ecx, byte [r15 - 5]
shl r10d, 8
or r10d, ecx
movzx ecx, byte [r15 - 3]
or r9d, ecx
movzx ecx, byte [r15 - 2]
xor esi, r10d
shl r9d, 8
or r9d, ecx
movzx ecx, byte [r15 - 1]
shl r9d, 8
or r9d, ecx
mov ecx, esi
sub ecx, r8d
xor ecx, eax
xor ecx, r9d
xor ebx, ecx
mov ecx, r8d
mov edx, ebx
xor ecx, ebx
mov r8d, ebp
ror edx, 0xc
imul ecx, ebp
xor edx, ecx
movzx ecx, word [rsp + 0x9a]
xor esi, edx
xor r8d, esi
mov edx, esi
rol r8d, 2
rol edx, 9
imul ecx, r8d
movzx r8d, word [rsp + 0x9a]
sub ecx, edx
mov edx, r8d
xor ebx, ecx
mov ecx, ebx
xor edx, ebx
rol edx, 7
ror ecx, 4
imul edx, dword [rsp + 0x20]
xor ecx, edx
xor esi, ecx
mov edx, r8d
movzx ecx, word [rsp + 0x9e]
xor edx, esi
imul edx, ecx
mov ecx, esi
shr ecx, 7
add edx, ecx
xor ebx, edx
mov ecx, dword [rsp + 0x9c]
mov edx, eax
xor edx, ebx
sub ecx, edx
mov edx, r8d
xor esi, ecx
mov ecx, ebp
xor ecx, esi
rol ecx, 4
imul edx, ecx
mov ecx, esi
shr ecx, 6
add edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, dword [rsp + 0x9c]
xor edx, ebx
ror edx, 0xa
rol ecx, 8
imul edx, dword [rsp + 0x20]
add ecx, edx
xor esi, ecx
movzx ecx, word [rsp + 0x9e]
mov edx, esi
mov r8d, esi
sub r8d, eax
rol r8d, 2
ror edx, 9
imul ecx, r8d
xor edx, ecx
xor ebx, edx
mov ecx, ebx
mov r8d, dword [rsp + 0x20]
mov edx, ebx
ror edx, 2
xor ecx, r8d
imul ecx, ebp
add edx, ecx
movzx ecx, word [rsp + 0x9a]
xor esi, edx
mov edx, esi
sub edx, ebp
imul edx, ecx
mov ecx, esi
shr ecx, 4
sub edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, dword [rsp + 0x9c]
xor edx, ebx
xor ebx, r12d
rol edx, 0xd
mov byte [r11 + 7], bl
mov r12d, r9d
ror ecx, 5
imul edx, r8d
sub edx, ecx
movzx r8d, word [rsp + 0x9e]
xor edx, r14d
mov r14d, r10d
xor esi, edx
mov byte [r11 + 3], sil
xor dil, sil
ror esi, 8
mov byte [r11 + 2], sil
xor dil, bl
ror ebx, 8
xor dil, sil
mov byte [r11 + 6], bl
ror esi, 8
xor dil, bl
ror ebx, 8
mov byte [r11 + 1], sil
mov byte [r11 + 5], bl
xor dil, sil
ror esi, 8
xor dil, bl
ror ebx, 8
mov byte [r11], sil
mov cl, bl
mov byte [r11 + 4], bl
add r11, 8
xor cl, sil
xor dil, cl
ror esi, 8
ror ebx, 8
sub r13, 1
jne 0x100052764
mov r14, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x78]
cmp dil, byte [r14 + rbp + 8]
je 0x100052a52
call fcn.100058248
mov rsi, qword [rsp + 0x70]
mov ebx, 0xffff
mov rbp, qword [rsp + 0x80]
mov r11, rax
mov r8, rsi
lea r10, [0x1001094ec]
mov qword [rbp + 0x10], r10
mov rcx, qword [0x1004c43a0]
mov rax, 0xfffffffffffff000
and r8, 0xfffffffffffffff8
and r11, rax
lea r9, [r8 + 0xfff]
and r9, rax
xor edi, edi
imul rcx, rcx, 0x343fd
shl rdi, 0x10
shr rbx, 0x10
add rcx, 0x269ec3
mov rax, rcx
shr rax, 0x10
movzx edx, ax
or rdi, rdx
test rbx, rbx
jne 0x1000529aa
movabs rax, 0x8000800080008001
mov qword [0x1004c43a0], rcx
mul rdi
shr rdx, 0xf
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x98], r11
imul rdx, rdx, 0xffff
sub rdi, rdx
inc rdi
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x60], rbx
jmp 0x100052a48
xor ebx, ebx
test ecx, ecx
jns 0x10005272d
neg ecx
shl ecx, 3
shr esi, cl
shl esi, cl
jmp 0x10005272d
xor ebx, ebx
mov r12d, esi
mov dword [rsp + 0x38], esi
not r12d
xor esi, esi
jmp 0x100052737
mov rax, qword [rsp + 0x60]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x100052a3c
jmp 0x100052b73
mov r12, qword [rsp + 0x58]
mov rbx, rbp
lea r15, [0x100000000]
mov rax, qword [0x1000487b8]
sub rbx, r12
mov rsi, r15
sub rsi, rax
jne 0x100052a7c
test rbx, rbx
je 0x100052b4f
mov rcx, qword [0x1001d1e58]
xor edi, edi
mov r11, r12
lea r8d, [rcx - 1]
sub r11, rbp
sub ebp, r15d
test r8d, r8d
lea r13d, [r14 + rbp]
lea r14, [0x1001d1e58]
js 0x100052acf
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r14 + rdx*4 + 4]
and r9d, 0xfffffff
cmp ebp, r9d
jae 0x100052ac5
lea r8d, [rax - 1]
jmp 0x100052aca
jbe 0x100052ad4
lea edi, [rax + 1]
cmp r8d, edi
jge 0x100052aa2
movsxd r10, edi
jmp 0x100052b48
movsxd r10, eax
jmp 0x100052b48
mov edx, dword [r14 + r10*4 + 4]
mov eax, edx
and eax, 0xfffffff
cmp eax, r13d
jae 0x100052b4f
mov r8, rdx
mov edi, edx
sar edx, 0x1e
shl edi, 2
and r8d, 0xfffffff
and edx, 3
sar edi, 0x1e
add r8, r15
xor r9d, r9d
and edi, 3
sub edi, 1
je 0x100052b24
sub edi, 1
je 0x100052b1f
cmp edi, 1
jne 0x100052b2a
mov r9, rsi
jmp 0x100052b2a
mov r9, rbx
jmp 0x100052b2a
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x100052b3a
cmp edx, 1
jne 0x100052b45
add qword [r8 + r11], r9
jmp 0x100052b3e
add dword [r8 + r11], r9d
mov rcx, qword [0x1001d1e58]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x100052ad9
mov eax, dword [0x1002f8888]
mov eax, 0xe1f644e7
mov rdx, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x70]
lea r10, [r12 + rdx]
mov qword [rbp + 0x10], r10
add qword [rsi], 0xd
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.10027d5f4
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret