Function at 0x10004f5c4
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 + 0xa8], rax
mov qword [rsp + 0x80], rcx
lea rax, [rcx + 0x18]
lea r8, section..data
mov qword [rsp + 0x88], rax
mov rax, qword [rax]
lea r15, [0x100000000]
mov ebp, dword [rax + 9]
mov r14d, dword [rax + 1]
mov ecx, dword [rax + 5]
lea r9, [rax + 0xd]
lea rdi, [r9 - 1]
mov r13d, 0xfffffff
and rbp, r13
and rcx, r13
and r14, r13
add rbp, r15
xor r12d, r12d
cmp rdi, r8
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0x78], r14
jb 0x10004f691
mov ecx, dword [0x1002a02b4]
mov eax, dword [0x1002f8888]
imul ecx, eax
mov eax, ecx
add rax, r8
cmp rdi, rax
jae 0x10004f691
mov ecx, dword [0x1002f8888]
mov rax, rdi
sub rax, r8
cqo
idiv rcx
mov edx, dword [0x1002f8888]
imul rdx, rax
add r8, rdx
jmp 0x10004f694
mov r8, r12
cmp r8, r12
jne 0x10004f6a3
mov r8, rdi
and r8, 0xffffffffffff0000
mov esi, ebp
sub r9, r8
lea rax, [r9 - 0x40]
cmp rax, r12
cmovl rax, r12
mov r9d, dword [0x1002f8888]
sub r9, r14
lea rdi, [rax + r8]
sub esi, r15d
mov dword [rsp + 0x38], esi
xor eax, eax
inc r9
lea ecx, [rax + 0x40]
rep stosb byte [rdi], al
mov rdi, r9
cmp r9, r12
je 0x10004f710
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 0x10004f6e1
mov qword [0x1004c43a0], rcx
xor edx, edx
mov ecx, esi
div r9
lea rbx, [rdx + r8]
mov rdx, r14
mov r8, rbx
mov qword [rsp + 0x70], rbx
mov eax, 0xe2dd0ed9
lea rcx, [rsp + 0x60]
mov dil, r12b
mov rdx, qword [r14 + rbp]
mov qword [rsp + 0x60], rdx
mov eax, 0xed6c72f7
mov r11, 0xfffffffffffff000
mov r9d, dword [rsp + 0x64]
mov r10, qword [rsp + 0x60]
and r10, r13
mov rax, qword [0x1000487b8]
and r9, r13
add r10, r15
mov rcx, r15
mov qword [rsp + 0x30], r12
sub rcx, rax
mov qword [rsp + 0x58], rcx
mov r13d, 4
jne 0x10004f7d5
mov r8, r12
cmp r9, r12
jbe 0x10004fa7b
mov edx, dword [rsp + 0x30]
mov r11d, 0xab30505f
mov ecx, dword [rsp + 0x34]
movzx eax, byte [r8 + r10]
inc r8
sub eax, 0x54cfafa1
add edx, eax
add eax, ecx
imul rax, r11
mov qword [rsp + 0x20], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x20]
add ecx, eax
imul ecx, ecx, 0xab30505f
ror ecx, 0xb
add edx, ecx
cmp r8, r9
jb 0x10004f794
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x30], edx
jmp 0x10004fa7b
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 + 0x50], rax
mov eax, r10d
sub eax, r15d
mov ebx, eax
mov r12d, eax
add rax, r9
and rbx, r11
mov r15, rax
and r15, r11
sub r12, rbx
sub rax, r15
add rcx, r8
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x40], rax
jmp 0x10004f833
mov eax, dword [r8]
cmp rax, rbx
jae 0x10004f838
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x10004f824
xor r11d, r11d
cmp r8, rcx
je 0x10004f877
mov eax, dword [r8]
cmp rax, rbx
jne 0x10004f877
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x10004f872
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, r12
jae 0x10004f872
inc r11
add rdx, 2
cmp r11, rcx
jne 0x10004f859
mov rcx, qword [rsp + 0x20]
lea rbp, [0x100000000]
mov edx, dword [rsp + 0x34]
mov r12d, 0xab30505f
mov r14, qword [rsp + 0x58]
mov r9d, dword [rsp + 0x30]
cmp r8, rcx
je 0x10004fa14
mov eax, dword [r8]
cmp rax, r15
ja 0x10004fa14
mov edi, dword [r8 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp r11, rax
jne 0x10004f8d4
add r8, rdi
cmp r8, rcx
je 0x10004fa14
mov eax, dword [r8]
cmp rax, r15
ja 0x10004fa14
xor r11d, r11d
jmp 0x10004f8a7
mov eax, dword [r8]
cmp rax, r15
jne 0x10004f8f2
movzx eax, word [r8 + r11*2 + 8]
and eax, 0xfff
cmp rax, qword [rsp + 0x40]
jae 0x10004fa14
mov rax, r11
inc r11
mov edi, 0xf000
test word [r8 + rax*2 + 8], di
je 0x10004f892
movzx ecx, word [r8 + rax*2 + 8]
xor esi, esi
mov ebx, ecx
and ebx, 0xfff
add ebx, dword [r8]
add rbx, rbp
mov rax, rbx
sub rax, r10
je 0x10004f965
mov rdi, rax
movzx eax, byte [r10 + rsi]
inc rsi
sub eax, 0x54cfafa1
add r9d, eax
add eax, edx
imul rax, r12
mov qword [rsp + 0x48], rax
shr rax, 0x20
mov edx, dword [rsp + 0x48]
add edx, eax
imul edx, edx, 0xab30505f
ror edx, 0xb
add r9d, edx
cmp rsi, rdi
jb 0x10004f926
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
mov rax, qword [rbx]
mov qword [rsp + 0x48], rax
shr ecx, 0xc
cmp ecx, 3
je 0x10004f983
sub ecx, 0xa
neg ecx
sbb r10d, r10d
add r10d, 3
jmp 0x10004f989
mov r10d, 2
mov r12, r14
neg r12
sub r10d, 2
je 0x10004f9b0
cmp r10d, 1
je 0x10004f9a1
or rcx, 0xffffffffffffffff
jmp 0x10004f9b8
add rax, r12
mov qword [rsp + 0x48], rax
mov ecx, 8
jmp 0x10004f9b8
add dword [rsp + 0x48], r12d
mov rcx, r13
xor r10d, r10d
mov r12d, 0xab30505f
test rcx, rcx
je 0x10004fa06
movzx eax, byte [rsp + r10 + 0x48]
inc r10
sub eax, 0x54cfafa1
add r9d, eax
add eax, edx
imul rax, r12
mov qword [rsp + 0x58], rax
mov edx, dword [rsp + 0x58]
shr rax, 0x20
add edx, eax
imul edx, edx, 0xab30505f
ror edx, 0xb
add r9d, edx
cmp r10, rcx
jb 0x10004f9c6
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
lea r10, [rcx + rbx]
mov rcx, qword [rsp + 0x20]
jmp 0x10004f892
mov r8, qword [rsp + 0x50]
mov r14, qword [rsp + 0x78]
mov esi, dword [rsp + 0x38]
mov rbp, qword [rsp + 0x90]
xor ecx, ecx
mov dil, cl
sub r8, r10
je 0x10004fa73
movzx eax, byte [rcx + r10]
inc rcx
sub eax, 0x54cfafa1
add r9d, eax
add eax, edx
imul rax, r12
mov qword [rsp + 0x20], rax
shr rax, 0x20
mov edx, dword [rsp + 0x20]
add edx, eax
imul edx, edx, 0xab30505f
ror edx, 0xb
add r9d, edx
cmp rcx, r8
jb 0x10004fa34
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
xor r12d, r12d
mov rbx, qword [rsp + 0x70]
mov rcx, r12
mov rax, rcx
inc rcx
and eax, 7
mov al, byte [rsp + rax + 0x30]
cmp rcx, 8
mov byte [rsp + rcx + 0x9f], al
jb 0x10004fa7e
mov eax, 0xfb26428e
mov r12, r14
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rbx
and r12d, 7
mov r15, rbp
mov r10, rbx
je 0x10004ff78
xor r8d, r8d
mov ebx, esi
mov dword [rsp + 0x40], r8d
xor r11d, r11d
mov dword [rsp + 0x3c], r11d
xor r10d, r10d
not ebx
test r12d, r12d
jle 0x10004fb12
lea r9d, [r8 + 0x38]
movzx edx, byte [r15]
cmp r10d, r13d
jge 0x10004faf1
lea ecx, [r9 - 0x20]
shl edx, cl
or r11d, edx
jmp 0x10004faf9
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r10d
inc r15
sub r9d, 8
cmp r10d, r12d
jl 0x10004fadd
mov dword [rsp + 0x3c], r11d
mov dword [rsp + 0x40], r8d
movzx r9d, ax
mov ecx, eax
movzx r8d, word [rsp + 0xa6]
movzx r11d, word [rsp + 0xa4]
movzx r10d, word [rsp + 0xa2]
mov edx, dword [rsp + 0xa4]
xor edx, esi
sub ecx, edx
xor ebx, ecx
mov ecx, ebx
shr ecx, 0xf
mov esi, ebx
sub esi, r9d
imul esi, r11d
sub esi, ecx
xor esi, dword [rsp + 0x38]
mov ecx, esi
mov edx, esi
xor edx, r8d
rol edx, 3
ror ecx, 2
imul edx, r10d
add ecx, edx
xor ebx, ecx
mov ecx, ebx
mov edx, dword [rsp + 0xa4]
sub edx, ebx
rol edx, 6
ror ecx, 0xb
imul edx, r9d
xor ecx, edx
xor esi, ecx
mov ecx, esi
not ecx
ror ecx, 2
add ecx, r8d
imul ecx, r11d
xor ebx, ecx
mov edx, ebx
ror edx, 7
mov ecx, ebx
xor ecx, r10d
imul ecx, r11d
sub ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, dword [rsp + 0xa4]
xor edx, esi
rol edx, 6
shr ecx, 6
imul edx, r10d
sub edx, ecx
xor ebx, edx
mov edx, dword [rsp + 0xa4]
mov ecx, ebx
sub edx, ebx
ror edx, 9
ror ecx, 0xc
imul edx, r9d
sub edx, ecx
xor esi, edx
mov ecx, esi
mov edx, esi
sub edx, eax
ror edx, 9
ror ecx, 6
imul edx, r8d
add ecx, edx
mov edx, eax
xor ebx, ecx
sub edx, ebx
mov ecx, ebx
ror edx, 8
ror ecx, 7
imul edx, r11d
mov r11d, dword [rsp + 0x40]
add ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, dword [rsp + 0xa4]
xor edx, esi
rol edx, 2
rol ecx, 8
imul edx, r10d
sub edx, ecx
xor r9d, r9d
mov ecx, eax
xor ecx, dword [rsp + 0xa4]
xor ebx, edx
mov edx, dword [rsp + 0x3c]
xor ecx, edx
xor ecx, ebx
xor ebx, r11d
xor esi, ecx
mov edx, esi
test r12d, r12d
mov r8d, ebx
jle 0x10004fc70
mov rcx, qword [rsp + 0x20]
cmp r9d, r13d
jge 0x10004fc56
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x10004fc63
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r12d
jl 0x10004fc44
mov qword [rsp + 0x20], rcx
lea ecx, [r12 - 4]
test ecx, ecx
jle 0x10004ff60
sub r13d, ecx
shl r13d, 3
mov ecx, r13d
shr ebx, cl
shl ebx, cl
mov r10, qword [rsp + 0x20]
mov r13, r14
shr r13, 3
test r13, r13
je 0x10004fea2
movzx ecx, ax
mov ebp, dword [rsp + 0x3c]
mov r12d, dword [rsp + 0xa4]
mov dword [rsp + 0x40], ecx
movzx ecx, word [rsp + 0xa6]
mov dword [rsp + 0x20], ecx
movzx ecx, r12w
mov dword [rsp + 0x50], ecx
movzx ecx, word [rsp + 0xa2]
mov dword [rsp + 0x38], ecx
mov ecx, eax
xor ecx, r12d
mov r14d, ecx
mov edx, eax
movzx ecx, byte [r15 + 1]
movzx r8d, byte [r15 + 4]
movzx r9d, byte [r15]
shl r9d, 8
shl r8d, 8
add r15, 8
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r15 - 6]
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r15 - 5]
or r9d, ecx
movzx ecx, byte [r15 - 3]
or r8d, ecx
xor esi, r9d
shl r8d, 8
movzx ecx, byte [r15 - 2]
or r8d, ecx
movzx ecx, byte [r15 - 1]
shl r8d, 8
or r8d, ecx
mov ecx, r12d
xor ecx, esi
sub edx, ecx
xor edx, r8d
xor ebx, edx
mov edx, ebx
mov ecx, ebx
sub edx, dword [rsp + 0x40]
shr ecx, 0xf
imul edx, dword [rsp + 0x50]
sub edx, ecx
xor esi, edx
movzx ecx, word [rsp + 0xa6]
mov edx, esi
xor edx, ecx
mov ecx, esi
rol edx, 3
ror ecx, 2
imul edx, dword [rsp + 0x38]
add ecx, edx
xor ebx, ecx
mov edx, r12d
mov ecx, ebx
sub edx, ebx
rol edx, 6
ror ecx, 0xb
imul edx, dword [rsp + 0x40]
xor ecx, edx
xor esi, ecx
movzx edx, word [rsp + 0xa6]
mov ecx, esi
not ecx
ror ecx, 2
add ecx, edx
imul ecx, dword [rsp + 0x50]
xor ebx, ecx
mov edx, ebx
mov ecx, ebx
xor ecx, dword [rsp + 0x38]
ror edx, 7
imul ecx, dword [rsp + 0x50]
sub ecx, edx
xor esi, ecx
movzx ecx, word [rsp + 0xa2]
mov edx, r12d
xor edx, esi
rol edx, 6
imul edx, ecx
mov ecx, esi
shr ecx, 6
sub edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, r12d
sub edx, ebx
ror edx, 9
ror ecx, 0xc
imul edx, dword [rsp + 0x40]
sub edx, ecx
xor esi, edx
mov ecx, esi
mov edx, esi
sub edx, eax
ror edx, 9
ror ecx, 6
imul edx, dword [rsp + 0x20]
add ecx, edx
xor ebx, ecx
mov edx, eax
mov ecx, ebx
sub edx, ebx
ror edx, 8
ror ecx, 7
imul edx, dword [rsp + 0x50]
add ecx, edx
xor esi, ecx
mov edx, r12d
xor edx, esi
rol edx, 2
mov ecx, esi
rol ecx, 8
imul edx, dword [rsp + 0x38]
sub edx, ecx
xor ebx, edx
xor ebp, ebx
xor ebx, r11d
mov byte [r10 + 7], bl
xor esi, ebp
xor esi, r14d
mov byte [r10 + 3], sil
xor dil, sil
ror esi, 8
mov r11d, r8d
mov ebp, r9d
xor dil, bl
ror ebx, 8
mov byte [r10 + 2], sil
mov byte [r10 + 6], bl
xor dil, sil
ror esi, 8
mov byte [r10 + 1], sil
xor dil, bl
ror ebx, 8
xor dil, sil
ror esi, 8
mov byte [r10 + 5], bl
xor dil, bl
mov byte [r10], sil
ror ebx, 8
mov cl, bl
mov byte [r10 + 4], bl
add r10, 8
xor cl, sil
xor dil, cl
ror esi, 8
ror ebx, 8
sub r13, 1
jne 0x10004fcdb
mov rbp, qword [rsp + 0x90]
mov r14, qword [rsp + 0x78]
cmp dil, byte [r14 + rbp + 8]
je 0x10004ffa1
call fcn.100058248
lea r10, [0x1001094ec]
mov rbp, qword [rsp + 0x80]
mov r11, rax
mov rax, 0xfffffffffffff000
mov rsi, qword [rsp + 0x88]
mov ebx, 0xffff
mov qword [rbp + 0x10], r10
mov r8, rsi
mov rcx, qword [0x1004c43a0]
and r8, 0xfffffffffffffff8
lea r9, [r8 + 0xfff]
and r11, rax
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 0x10004fef9
mov qword [0x1004c43a0], rcx
movabs rax, 0x8000800080008001
mul rdi
mov rax, qword [rsp + 0x68]
mov qword [rax + 0x98], r11
shr rdx, 0xf
imul rdx, rdx, 0xffff
sub rdi, rdx
inc rdi
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x68], rbx
jmp 0x10004ff97
xor ebx, ebx
test ecx, ecx
jns 0x10004fc8b
neg ecx
shl ecx, 3
shr esi, cl
shl esi, cl
jmp 0x10004fc8b
mov dword [rsp + 0x3c], esi
mov r11d, esi
xor ebx, ebx
xor esi, esi
not r11d
jmp 0x10004fc90
mov rax, qword [rsp + 0x68]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x10004ff8b
jmp 0x1000500c5
mov r12, qword [rsp + 0x70]
lea r15, [0x100000000]
mov rsi, r15
mov rax, qword [0x1000487b8]
mov rbx, rbp
sub rbx, r12
sub rsi, rax
jne 0x10004ffcb
test rbx, rbx
je 0x10005009e
mov rcx, qword [0x1001d1e58]
lea r8d, [rcx - 1]
mov r11, r12
xor edi, edi
sub r11, rbp
sub ebp, r15d
test r8d, r8d
lea r13d, [r14 + rbp]
lea r14, [0x1001d1e58]
js 0x10005001e
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 0x100050014
lea r8d, [rax - 1]
jmp 0x100050019
jbe 0x100050023
lea edi, [rax + 1]
cmp r8d, edi
jge 0x10004fff1
movsxd r10, edi
jmp 0x100050097
movsxd r10, eax
jmp 0x100050097
mov edx, dword [r14 + r10*4 + 4]
mov eax, edx
and eax, 0xfffffff
cmp eax, r13d
jae 0x10005009e
mov edi, edx
mov r8, rdx
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 0x100050073
sub edi, 1
je 0x10005006e
cmp edi, 1
jne 0x100050079
mov r9, rsi
jmp 0x100050079
mov r9, rbx
jmp 0x100050079
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x100050089
cmp edx, 1
jne 0x100050094
add qword [r8 + r11], r9
jmp 0x10005008d
add dword [r8 + r11], r9d
mov rcx, qword [0x1001d1e58]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x100050028
mov eax, dword [0x1002f8888]
mov eax, 0x871389fc
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x98]
lea r10, [r12 + rdx]
mov qword [rbp + 0x10], r10
add qword [rsi], 0xd
mov rcx, qword [rsp + 0xa8]
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