Function at 0x10004e7a4
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
lea r15, [0x100000000]
mov r13d, 0xfffffff
lea r8, section..data
mov qword [rsp + 0x78], rcx
lea rax, [rcx + 0x18]
mov qword [rsp + 0x70], rax
mov rax, qword [rax]
lea r9, [rax + 0xd]
mov ebp, dword [rax + 5]
lea rdi, [r9 - 1]
mov ecx, dword [rax + 9]
and rbp, r13
and rcx, r13
mov r14d, dword [rax + 1]
mov qword [rsp + 0x60], rdx
and r14, r13
add rbp, r15
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x98], rcx
xor r12d, r12d
cmp rdi, r8
mov qword [rsp + 0x88], r14
jb 0x10004e86e
mov ecx, dword [0x1002a02b4]
mov eax, dword [0x1002f8888]
imul ecx, eax
mov eax, ecx
add rax, r8
cmp rdi, rax
jae 0x10004e86e
mov rax, rdi
mov ecx, dword [0x1002f8888]
sub rax, r8
cqo
idiv rcx
mov edx, dword [0x1002f8888]
imul rdx, rax
add r8, rdx
jmp 0x10004e871
mov r8, r12
cmp r8, r12
jne 0x10004e880
mov r8, rdi
and r8, 0xffffffffffff0000
mov esi, ebp
sub r9, r8
lea rax, [r9 - 0x40]
mov r9d, dword [0x1002f8888]
cmp rax, r12
cmovl rax, r12
lea rdi, [rax + r8]
sub r9, r14
sub esi, r15d
mov dword [rsp + 0x38], esi
xor eax, eax
inc r9
cmp r9, r12
lea ecx, [rax + 0x40]
rep stosb byte [rdi], al
mov rdi, r9
je 0x10004e8ed
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 0x10004e8be
mov qword [0x1004c43a0], rcx
xor edx, edx
div r9
mov ecx, esi
lea rbx, [rdx + r8]
mov rdx, r14
mov r8, rbx
mov qword [rsp + 0x68], rbx
mov eax, 0x17b53f22
mov rdx, qword [r14 + rbp]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], rdx
mov dil, r12b
mov eax, 0x951b71bb
mov r9d, dword [rsp + 0x5c]
mov rcx, r15
mov rax, qword [0x1000487b8]
mov r10, qword [rsp + 0x58]
and r10, r13
and r9, r13
mov qword [rsp + 0x30], r12
add r10, r15
sub rcx, rax
mov qword [rsp + 0x20], rcx
mov r13d, 4
jne 0x10004e9d5
cmp r9, r12
mov r11, r12
jbe 0x10004ecfb
mov ecx, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
mov esi, 0xd4afbe6b
movzx eax, byte [r10 + r11]
inc r11
sub eax, 0x2b504195
add r8d, eax
add eax, ecx
imul rax, rsi
mov qword [rsp + 0x20], rax
mov ecx, dword [rsp + 0x20]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov eax, edx
sar eax, 0x1f
btr eax, 0x1f
add eax, edx
imul rax, rsi
mov qword [rsp + 0x20], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x20]
add ecx, eax
add r8d, ecx
cmp r11, r9
jb 0x10004e96e
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x30], r8d
jmp 0x10004ecf7
movsxd rcx, dword [0x10000003c]
lea rax, [r10 + r9]
mov r8d, dword [rcx + r15 + 0xb0]
mov edx, dword [rcx + r15 + 0xb4]
add r8, r15
mov qword [rsp + 0x90], rax
mov eax, r10d
sub eax, r15d
mov ecx, eax
lea r12, [r9 + rcx]
mov r15, r12
mov rsi, rcx
mov r11d, eax
mov rax, 0xfffffffffffff000
lea rcx, [rdx + r8]
and r11, rax
sub rsi, r11
mov qword [rsp + 0x48], rcx
and r15, rax
sub r12, r15
mov qword [rsp + 0x50], r12
jmp 0x10004ea42
mov eax, dword [r8]
cmp rax, r11
jae 0x10004ea47
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x10004ea33
xor ebx, ebx
cmp r8, rcx
je 0x10004ea85
mov eax, dword [r8]
cmp rax, r11
jne 0x10004ea85
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x10004ea80
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, rsi
jae 0x10004ea80
inc rbx
add rdx, 2
cmp rbx, rcx
jne 0x10004ea67
mov rcx, qword [rsp + 0x48]
mov esi, 0xd4afbe6b
mov edx, dword [rsp + 0x34]
mov r9d, dword [rsp + 0x30]
mov rbp, qword [rsp + 0x20]
cmp r8, rcx
je 0x10004ec6a
mov eax, dword [r8]
cmp rax, r15
ja 0x10004ec6a
mov edi, dword [r8 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rbx, rax
jne 0x10004ead9
add r8, rdi
cmp r8, rcx
je 0x10004ec6a
mov eax, dword [r8]
cmp rax, r15
ja 0x10004ec6a
xor ebx, ebx
jmp 0x10004eaad
mov eax, dword [r8]
cmp rax, r15
jne 0x10004eaf5
movzx eax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, r12
jae 0x10004ec6a
mov edi, 0xf000
mov rax, rbx
inc rbx
test word [r8 + rax*2 + 8], di
je 0x10004ea98
xor edi, edi
movzx r11d, word [r8 + rax*2 + 8]
mov r12d, r11d
and r12d, 0xfff
add r12d, dword [r8]
lea rax, [0x100000000]
add r12, rax
mov rax, r12
sub rax, r10
je 0x10004eb94
mov r14, rax
movzx eax, byte [r10 + rdi]
inc rdi
sub eax, 0x2b504195
add r9d, eax
add eax, edx
imul rax, rsi
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0x40]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov eax, edx
sar eax, 0x1f
btr eax, 0x1f
add eax, edx
imul rax, rsi
mov qword [rsp + 0x40], rax
mov edx, dword [rsp + 0x40]
shr rax, 0x20
add edx, eax
add r9d, edx
cmp rdi, r14
jb 0x10004eb32
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
mov rax, qword [r12]
mov qword [rsp + 0x40], rax
shr r11d, 0xc
cmp r11d, 3
je 0x10004ebb7
sub r11d, 0xa
neg r11d
sbb r10d, r10d
add r10d, 3
jmp 0x10004ebbd
mov r10d, 2
mov r11, rbp
neg r11
sub r10d, 2
je 0x10004ebe5
cmp r10d, 1
je 0x10004ebd5
or r10, 0xffffffffffffffff
jmp 0x10004ebed
add rax, r11
mov qword [rsp + 0x40], rax
mov r10d, 8
jmp 0x10004ebed
mov r10, r13
add dword [rsp + 0x40], r11d
xor r11d, r11d
test r10, r10
je 0x10004ec58
movzx eax, byte [rsp + r11 + 0x40]
inc r11
sub eax, 0x2b504195
add r9d, eax
add eax, edx
imul rax, rsi
mov qword [rsp + 0x20], rax
mov ecx, dword [rsp + 0x20]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov eax, edx
sar eax, 0x1f
btr eax, 0x1f
add eax, edx
imul rax, rsi
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x20]
shr rax, 0x20
add edx, eax
add r9d, edx
cmp r11, r10
jb 0x10004ebf5
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
mov rcx, qword [rsp + 0x48]
add r10, r12
mov r12, qword [rsp + 0x50]
jmp 0x10004ea98
mov r14, qword [rsp + 0x88]
xor r12d, r12d
mov r8, r12
mov dil, r8b
mov rbp, qword [rsp + 0x80]
mov r11, qword [rsp + 0x90]
sub r11, r10
je 0x10004ecf2
movzx eax, byte [r8 + r10]
inc r8
sub eax, 0x2b504195
add r9d, eax
add eax, edx
imul rax, rsi
mov qword [rsp + 0x20], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x20]
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov eax, edx
sar eax, 0x1f
btr eax, 0x1f
add eax, edx
imul rax, rsi
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x20]
shr rax, 0x20
add edx, eax
add r9d, edx
cmp r8, r11
jb 0x10004ec90
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
mov rbx, qword [rsp + 0x68]
mov esi, dword [rsp + 0x38]
mov rcx, r12
mov rax, rcx
inc rcx
and eax, 7
cmp rcx, 8
mov al, byte [rsp + rax + 0x30]
mov byte [rsp + rcx + 0x9f], al
jb 0x10004ecfe
mov eax, 0x51ca0d81
mov r15, rbp
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rbx
mov r10, rbx
mov r12, r14
and r12d, 7
je 0x10004f1e2
mov ebx, esi
not ebx
xor r8d, r8d
xor r11d, r11d
xor r10d, r10d
test r12d, r12d
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x50], r11d
jle 0x10004ed92
lea r9d, [r8 + 0x38]
cmp r10d, r13d
movzx edx, byte [r15]
jge 0x10004ed71
lea ecx, [r9 - 0x20]
shl edx, cl
or r11d, edx
jmp 0x10004ed79
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r10d
inc r15
sub r9d, 8
cmp r10d, r12d
jl 0x10004ed5d
mov dword [rsp + 0x50], r11d
mov dword [rsp + 0x48], r8d
movzx r9d, word [rsp + 0xa2]
movzx r11d, word [rsp + 0xa4]
movzx r10d, word [rsp + 0xa6]
mov ecx, esi
movzx r8d, ax
sub ecx, eax
sub ecx, r10d
xor ebx, ecx
mov ecx, ebx
mov esi, ebx
xor ecx, r8d
rol ecx, 3
ror esi, 9
imul ecx, r11d
add esi, ecx
xor esi, dword [rsp + 0x38]
mov ecx, esi
mov edx, esi
xor edx, r10d
shr ecx, 3
rol edx, 6
imul edx, r9d
add edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, dword [rsp + 0xa4]
xor edx, ebx
ror edx, 0xc
rol ecx, 0xa
imul edx, r8d
xor ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, eax
xor edx, esi
rol edx, 1
rol ecx, 0xf
imul edx, r10d
add ecx, edx
xor ebx, ecx
mov ecx, ebx
not ecx
ror ecx, 0xb
add ecx, r11d
imul ecx, r8d
xor esi, ecx
mov edx, esi
sub edx, r11d
mov ecx, esi
shr ecx, 0xc
imul edx, r9d
sub edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, ebx
sub edx, dword [rsp + 0xa4]
ror edx, 0xa
ror ecx, 7
imul edx, r8d
add ecx, edx
xor esi, ecx
mov edx, esi
mov ecx, esi
sub edx, eax
ror edx, 0xf
rol ecx, 3
imul edx, r10d
xor ecx, edx
xor ebx, ecx
mov ecx, ebx
lea edx, [rbx + rax]
ror edx, 0xd
ror ecx, 0xb
imul edx, r11d
add ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, esi
xor ecx, r11d
mov r11d, dword [rsp + 0x48]
ror edx, 0xd
imul ecx, r9d
add edx, ecx
xor ebx, edx
mov ecx, eax
xor r9d, r9d
xor ecx, ebx
mov edx, dword [rsp + 0xa4]
xor ebx, r11d
mov r8d, ebx
sub edx, ecx
xor edx, dword [rsp + 0x50]
xor esi, edx
test r12d, r12d
mov edx, esi
jle 0x10004eedf
mov rcx, qword [rsp + 0x20]
cmp r9d, r13d
jge 0x10004eec5
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x10004eed2
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r12d
jl 0x10004eeb3
mov qword [rsp + 0x20], rcx
lea ecx, [r12 - 4]
test ecx, ecx
jle 0x10004f1ca
sub r13d, ecx
shl r13d, 3
mov ecx, r13d
shr ebx, cl
shl ebx, cl
mov r10, qword [rsp + 0x20]
mov r13d, dword [rsp + 0x50]
mov r12, r14
shr r12, 3
test r12, r12
je 0x10004f112
movzx ebp, word [rsp + 0xa4]
movzx edx, word [rsp + 0xa6]
movzx ecx, ax
mov dword [rsp + 0x38], ecx
movzx ecx, word [rsp + 0xa2]
mov dword [rsp + 0x48], edx
mov r14d, dword [rsp + 0x38]
mov dword [rsp + 0x50], ecx
movzx r9d, byte [r15]
shl r9d, 8
movzx ecx, byte [r15 + 1]
movzx r8d, byte [r15 + 4]
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
xor esi, r9d
movzx ecx, byte [r15 - 2]
shl r8d, 8
or r8d, ecx
movzx ecx, byte [r15 - 1]
shl r8d, 8
or r8d, ecx
mov ecx, esi
sub ecx, eax
sub ecx, edx
xor ecx, r8d
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
xor edx, r14d
rol edx, 3
ror ecx, 9
imul edx, ebp
add ecx, edx
xor esi, ecx
mov edx, esi
movzx ecx, word [rsp + 0xa6]
xor edx, ecx
rol edx, 6
movzx ecx, word [rsp + 0xa2]
imul edx, ecx
mov ecx, esi
shr ecx, 3
add edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, dword [rsp + 0xa4]
xor edx, ebx
ror edx, 0xc
rol ecx, 0xa
imul edx, r14d
xor ecx, edx
xor esi, ecx
mov edx, eax
xor edx, esi
mov ecx, esi
rol edx, 1
rol ecx, 0xf
imul edx, dword [rsp + 0x48]
add ecx, edx
xor ebx, ecx
mov ecx, ebx
not ecx
ror ecx, 0xb
add ecx, ebp
imul ecx, r14d
xor esi, ecx
mov edx, esi
movzx ecx, word [rsp + 0xa2]
sub edx, ebp
imul edx, ecx
mov ecx, esi
shr ecx, 0xc
sub edx, ecx
xor ebx, edx
mov edx, ebx
mov ecx, ebx
sub edx, dword [rsp + 0xa4]
ror edx, 0xa
ror ecx, 7
imul edx, r14d
add ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, esi
sub edx, eax
ror edx, 0xf
rol ecx, 3
imul edx, dword [rsp + 0x48]
xor ecx, edx
xor ebx, ecx
lea edx, [rbx + rax]
mov ecx, ebx
ror edx, 0xd
ror ecx, 0xb
imul edx, ebp
add ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, esi
xor ecx, ebp
ror edx, 0xd
imul ecx, dword [rsp + 0x50]
add edx, ecx
mov ecx, eax
xor ebx, edx
mov edx, dword [rsp + 0xa4]
xor ecx, ebx
xor ebx, r11d
mov byte [r10 + 7], bl
sub edx, ecx
mov r11d, r8d
xor edx, r13d
mov r13d, r9d
xor esi, edx
xor dil, sil
movzx edx, word [rsp + 0xa6]
mov byte [r10 + 3], sil
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
xor dil, bl
ror ebx, 8
xor dil, sil
mov byte [r10 + 1], sil
ror esi, 8
mov byte [r10 + 5], bl
xor dil, bl
mov byte [r10], sil
ror ebx, 8
mov byte [r10 + 4], bl
mov cl, bl
add r10, 8
xor cl, sil
xor dil, cl
ror esi, 8
ror ebx, 8
sub r12, 1
jne 0x10004ef40
mov r14, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
cmp dil, byte [r14 + rbp + 8]
je 0x10004f20a
call fcn.100058248
lea r10, [0x1001094ec]
mov rbp, qword [rsp + 0x78]
mov r11, rax
mov ebx, 0xffff
mov rsi, qword [rsp + 0x70]
mov qword [rbp + 0x10], r10
mov rcx, qword [0x1004c43a0]
mov r8, rsi
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 0x10004f163
movabs rax, 0x8000800080008001
mul rdi
shr rdx, 0xf
mov qword [0x1004c43a0], rcx
imul rdx, rdx, 0xffff
sub rdi, rdx
inc rdi
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x98], r11
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x60], rbx
jmp 0x10004f200
xor ebx, ebx
test ecx, ecx
jns 0x10004eefa
neg ecx
shl ecx, 3
shr esi, cl
shl esi, cl
jmp 0x10004eefa
mov r13d, esi
mov r11d, esi
xor ebx, ebx
xor esi, esi
not r11d
jmp 0x10004ef04
mov rax, qword [rsp + 0x60]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x10004f1f4
jmp 0x10004f328
mov rax, qword [0x1000487b8]
mov rbx, rbp
mov r12, qword [rsp + 0x68]
lea r15, [0x100000000]
sub rbx, r12
mov rsi, r15
sub rsi, rax
jne 0x10004f234
test rbx, rbx
je 0x10004f307
mov rcx, qword [0x1001d1e58]
mov r11, r12
xor edi, edi
lea r8d, [rcx - 1]
sub r11, rbp
sub ebp, r15d
test r8d, r8d
lea r13d, [r14 + rbp]
lea r14, [0x1001d1e58]
js 0x10004f287
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 0x10004f27d
lea r8d, [rax - 1]
jmp 0x10004f282
jbe 0x10004f28c
lea edi, [rax + 1]
cmp r8d, edi
jge 0x10004f25a
movsxd r10, edi
jmp 0x10004f300
movsxd r10, eax
jmp 0x10004f300
mov edx, dword [r14 + r10*4 + 4]
mov eax, edx
and eax, 0xfffffff
cmp eax, r13d
jae 0x10004f307
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 0x10004f2dc
sub edi, 1
je 0x10004f2d7
cmp edi, 1
jne 0x10004f2e2
mov r9, rsi
jmp 0x10004f2e2
mov r9, rbx
jmp 0x10004f2e2
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x10004f2f2
cmp edx, 1
jne 0x10004f2fd
add qword [r8 + r11], r9
jmp 0x10004f2f6
add dword [r8 + r11], r9d
mov rcx, qword [0x1001d1e58]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x10004f291
mov eax, dword [0x1002f8888]
mov eax, 0xdcb4b1f3
mov rbp, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x98]
lea r10, [r12 + rdx]
mov rsi, qword [rsp + 0x70]
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