Function at 0x10004db3c
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 r13d, 0xfffffff
lea r8, section..data
lea r15, [0x100000000]
lea rax, [rcx + 0x18]
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rax]
mov r14d, dword [rax + 9]
lea r9, [rax + 0xd]
mov ecx, dword [rax + 5]
lea rdi, [r9 - 1]
mov ebp, dword [rax + 1]
mov qword [rsp + 0x60], rdx
and rbp, r13
and rcx, r13
and r14, r13
add rbp, r15
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x98], rcx
xor r12d, r12d
cmp rdi, r8
mov qword [rsp + 0x80], r14
jb 0x10004dc06
mov ecx, dword [0x1002a02b4]
mov eax, dword [0x1002f8888]
imul ecx, eax
mov eax, ecx
add rax, r8
cmp rdi, rax
jae 0x10004dc06
mov ecx, dword [0x1002f8888]
mov rax, rdi
sub rax, r8
cqo
idiv rcx
mov edx, dword [0x1002f8888]
imul rdx, rax
add r8, rdx
jmp 0x10004dc09
mov r8, r12
cmp r8, r12
jne 0x10004dc18
mov r8, rdi
and r8, 0xffffffffffff0000
sub r9, r8
mov esi, ebp
lea rax, [r9 - 0x40]
cmp rax, r12
mov r9d, dword [0x1002f8888]
cmovl rax, r12
sub r9, r14
lea rdi, [rax + r8]
sub esi, r15d
mov dword [rsp + 0x20], esi
xor eax, eax
lea ecx, [rax + 0x40]
rep stosb byte [rdi], al
inc r9
mov rdi, r9
cmp r9, r12
je 0x10004dc85
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 0x10004dc56
mov qword [0x1004c43a0], rcx
mov ecx, esi
xor edx, edx
div r9
lea rbx, [rdx + r8]
mov qword [rsp + 0x50], rbx
mov rdx, r14
mov r8, rbx
mov eax, 0xb7c58fca
mov rdx, qword [r14 + rbp]
lea rcx, [rsp + 0x58]
mov dil, r12b
mov qword [rsp + 0x58], rdx
mov eax, 0x1b191acc
mov r9d, dword [rsp + 0x5c]
mov rcx, r15
mov rax, qword [0x1000487b8]
mov r10, qword [rsp + 0x58]
mov qword [rsp + 0x30], r12
and r10, r13
and r9, r13
mov r13d, 4
add r10, r15
sub rcx, rax
mov qword [rsp + 0x38], rcx
jne 0x10004dd51
mov r11, r12
cmp r9, r12
jbe 0x10004e01e
mov r15d, 0x6993b353
mov edx, dword [rsp + 0x34]
mov ebx, 0x966c4cad
mov r8d, dword [rsp + 0x30]
movzx ecx, byte [r11 + r10]
inc r11
sub ecx, r15d
add r8d, ecx
add ecx, edx
mov eax, ecx
imul eax, eax, 0x81ee
rol eax, 0xd
ror ecx, 0xd
xor eax, ecx
imul rax, rbx
mov qword [rsp + 0x28], rax
shr rax, 0x20
mov edx, dword [rsp + 0x28]
add edx, eax
add r8d, edx
cmp r11, r9
jb 0x10004dd08
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r8d
jmp 0x10004e019
lea rax, [r10 + r9]
movsxd rcx, dword [0x10000003c]
mov r8d, dword [rcx + r15 + 0xb0]
add r8, r15
mov rbx, 0xfffffffffffff000
mov ecx, dword [rcx + r15 + 0xb4]
mov qword [rsp + 0x68], rax
mov eax, r10d
sub eax, r15d
mov esi, eax
mov r11d, eax
add rax, r9
mov r12, rax
and r11, rbx
and r12, rbx
sub rsi, r11
sub rax, r12
add rcx, r8
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x48], rax
jmp 0x10004ddb6
mov eax, dword [r8]
cmp rax, r11
jae 0x10004ddbb
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x10004dda7
xor ebx, ebx
cmp r8, rcx
je 0x10004ddf9
mov eax, dword [r8]
cmp rax, r11
jne 0x10004ddf9
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x10004ddf4
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, rsi
jae 0x10004ddf4
inc rbx
add rdx, 2
cmp rbx, rcx
jne 0x10004dddb
mov rcx, qword [rsp + 0x28]
mov r15d, 0x6993b353
mov edi, 0x966c4cad
mov r9d, dword [rsp + 0x30]
mov edx, dword [rsp + 0x34]
cmp r8, rcx
je 0x10004dfa8
mov eax, dword [r8]
cmp rax, r12
ja 0x10004dfa8
mov r11d, dword [r8 + 4]
lea rax, [r11 - 8]
shr rax, 1
cmp rbx, rax
jne 0x10004de4e
add r8, r11
cmp r8, rcx
je 0x10004dfa8
mov eax, dword [r8]
cmp rax, r12
ja 0x10004dfa8
xor ebx, ebx
jmp 0x10004de22
mov eax, dword [r8]
cmp rax, r12
jne 0x10004de6c
movzx eax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, qword [rsp + 0x48]
jae 0x10004dfa8
mov r11d, 0xf000
mov rax, rbx
inc rbx
test word [r8 + rax*2 + 8], r11w
je 0x10004de0d
movzx r11d, word [r8 + rax*2 + 8]
lea rax, [0x100000000]
xor r14d, r14d
mov esi, r11d
and esi, 0xfff
add esi, dword [r8]
add rsi, rax
mov rax, rsi
sub rax, r10
je 0x10004deee
mov rbp, rax
movzx ecx, byte [r14 + r10]
inc r14
sub ecx, r15d
add r9d, ecx
add ecx, edx
mov eax, ecx
imul eax, eax, 0x81ee
rol eax, 0xd
ror ecx, 0xd
xor eax, ecx
imul rax, rdi
mov qword [rsp + 0x40], rax
shr rax, 0x20
mov edx, dword [rsp + 0x40]
add edx, eax
add r9d, edx
cmp r14, rbp
jb 0x10004deaa
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
shr r11d, 0xc
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
cmp r11d, 3
je 0x10004df10
sub r11d, 0xa
neg r11d
sbb r10d, r10d
add r10d, 3
jmp 0x10004df16
mov r10d, 2
mov r11, qword [rsp + 0x38]
neg r11
sub r10d, 2
je 0x10004df40
cmp r10d, 1
je 0x10004df30
or r10, 0xffffffffffffffff
jmp 0x10004df48
add rax, r11
mov qword [rsp + 0x40], rax
mov r10d, 8
jmp 0x10004df48
add dword [rsp + 0x40], r11d
mov r10, r13
xor r11d, r11d
test r10, r10
je 0x10004df9b
movzx ecx, byte [rsp + r11 + 0x40]
inc r11
sub ecx, r15d
add r9d, ecx
add ecx, edx
mov eax, ecx
imul eax, eax, 0x81ee
rol eax, 0xd
ror ecx, 0xd
xor eax, ecx
imul rax, rdi
mov qword [rsp + 0x90], rax
shr rax, 0x20
mov edx, dword [rsp + 0x90]
add edx, eax
add r9d, edx
cmp r11, r10
jb 0x10004df50
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
mov rcx, qword [rsp + 0x28]
add r10, rsi
jmp 0x10004de0d
mov rbx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x80]
xor r12d, r12d
mov rbp, qword [rsp + 0x88]
mov r8, r12
mov dil, r8b
sub rbx, r10
je 0x10004e015
mov r11d, 0x966c4cad
movzx ecx, byte [r10 + r8]
inc r8
sub ecx, r15d
add r9d, ecx
add ecx, edx
mov eax, ecx
imul eax, eax, 0x81ee
rol eax, 0xd
ror ecx, 0xd
xor eax, ecx
imul rax, r11
mov qword [rsp + 0x68], rax
shr rax, 0x20
mov edx, dword [rsp + 0x68]
add edx, eax
add r9d, edx
cmp r8, rbx
jb 0x10004dfd1
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
mov esi, dword [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
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 0x10004e021
mov eax, 0x3abbb223
mov r10, rbx
mov r12, r14
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rbx
mov r15, rbp
and r12d, 7
je 0x10004e503
mov ebx, esi
xor r8d, r8d
not ebx
mov dword [rsp + 0x48], r8d
xor r11d, r11d
mov dword [rsp + 0x38], r11d
xor r10d, r10d
test r12d, r12d
jle 0x10004e0b5
lea r9d, [r8 + 0x38]
cmp r10d, r13d
movzx edx, byte [r15]
jge 0x10004e094
lea ecx, [r9 - 0x20]
shl edx, cl
or r11d, edx
jmp 0x10004e09c
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r10d
inc r15
sub r9d, 8
cmp r10d, r12d
jl 0x10004e080
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x48], r8d
mov ecx, esi
sub ecx, eax
mov edx, eax
movzx r8d, word [rsp + 0xa6]
movzx r10d, word [rsp + 0xa2]
movzx r11d, ax
sub ecx, r8d
movzx r9d, word [rsp + 0xa4]
xor ebx, ecx
mov esi, ebx
sub esi, r9d
xor esi, eax
xor esi, dword [rsp + 0x20]
mov ecx, esi
ror ecx, 0xe
xor ecx, r10d
imul ecx, r8d
xor ebx, ecx
mov ecx, ebx
ror ecx, 4
sub ecx, r11d
imul ecx, r10d
xor esi, ecx
sub edx, esi
rol edx, 0xd
mov ecx, esi
rol ecx, 0xd
imul edx, r8d
add ecx, edx
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
xor edx, r10d
shr ecx, 9
imul edx, r9d
xor edx, ecx
xor esi, edx
mov ecx, esi
mov edx, esi
xor edx, r9d
rol edx, 1
ror ecx, 0x10
imul edx, r10d
add ecx, edx
xor ebx, ecx
mov edx, ebx
mov ecx, ebx
xor edx, r10d
rol edx, 5
rol ecx, 3
imul edx, r11d
sub edx, ecx
xor esi, edx
mov ecx, esi
not ecx
ror ecx, 6
add ecx, r8d
imul ecx, r9d
xor ebx, ecx
mov edx, ebx
sub edx, eax
mov ecx, ebx
rol edx, 5
ror ecx, 2
imul edx, r9d
add ecx, edx
xor esi, ecx
mov edx, esi
mov ecx, esi
sub edx, r11d
shr ecx, 9
rol edx, 4
imul edx, r10d
xor edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, ebx
sub edx, dword [rsp + 0xa4]
rol edx, 0xb
ror ecx, 8
imul edx, r11d
xor ecx, edx
xor r9d, r9d
mov r11d, dword [rsp + 0x48]
xor ecx, dword [rsp + 0x38]
xor ebx, r11d
xor esi, ecx
test r12d, r12d
mov edx, ebx
mov ecx, esi
jle 0x10004e1ee
mov r8, qword [rsp + 0x28]
cmp r9d, r13d
jge 0x10004e1d5
rol ecx, 8
mov byte [r8], cl
inc r8
xor dil, cl
jmp 0x10004e1e1
rol edx, 8
mov byte [r8], dl
inc r8
xor dil, dl
inc r9d
cmp r9d, r12d
jl 0x10004e1c2
mov qword [rsp + 0x28], r8
lea ecx, [r12 - 4]
test ecx, ecx
jle 0x10004e4eb
sub r13d, ecx
shl r13d, 3
mov ecx, r13d
shr ebx, cl
shl ebx, cl
mov r13d, dword [rsp + 0x38]
mov r10, qword [rsp + 0x28]
mov r12, r14
shr r12, 3
test r12, r12
je 0x10004e433
movzx ecx, word [rsp + 0xa6]
movzx r14d, ax
movzx edx, word [rsp + 0xa2]
mov dword [rsp + 0x20], ecx
movzx ecx, word [rsp + 0xa4]
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x48], ecx
mov ecx, r14d
neg ecx
mov ebp, ecx
movzx r8d, byte [r15 + 4]
movzx ecx, byte [r15 + 1]
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
movzx ecx, byte [r15 - 5]
shl r9d, 8
or r9d, ecx
movzx ecx, byte [r15 - 3]
or r8d, ecx
movzx ecx, byte [r15 - 2]
xor esi, r9d
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, dword [rsp + 0x20]
xor ecx, r8d
xor ebx, ecx
mov ecx, ebx
sub ecx, dword [rsp + 0x48]
xor ecx, eax
xor esi, ecx
mov ecx, esi
ror ecx, 0xe
xor ecx, edx
imul ecx, dword [rsp + 0x20]
xor ebx, ecx
mov ecx, ebx
ror ecx, 4
sub ecx, r14d
imul ecx, edx
mov edx, eax
xor esi, ecx
sub edx, esi
rol edx, 0xd
mov ecx, esi
rol ecx, 0xd
imul edx, dword [rsp + 0x20]
add ecx, edx
xor ebx, ecx
mov edx, ebx
movzx ecx, word [rsp + 0xa2]
xor edx, ecx
movzx ecx, word [rsp + 0xa4]
imul edx, ecx
mov ecx, ebx
shr ecx, 9
xor edx, ecx
xor esi, edx
mov edx, esi
movzx ecx, word [rsp + 0xa4]
xor edx, ecx
rol edx, 1
mov ecx, esi
ror ecx, 0x10
imul edx, dword [rsp + 0x28]
add ecx, edx
xor ebx, ecx
movzx ecx, word [rsp + 0xa2]
mov edx, ebx
xor edx, ecx
mov ecx, ebx
rol edx, 5
rol ecx, 3
imul edx, r14d
sub edx, ecx
xor esi, edx
movzx edx, word [rsp + 0xa6]
mov ecx, esi
not ecx
ror ecx, 6
add ecx, edx
movzx edx, word [rsp + 0xa4]
imul ecx, edx
xor ebx, ecx
mov edx, ebx
sub edx, eax
mov ecx, ebx
rol edx, 5
ror ecx, 2
imul edx, dword [rsp + 0x48]
add ecx, edx
xor esi, ecx
movzx ecx, word [rsp + 0xa2]
lea edx, [rbp + rsi]
rol edx, 4
imul edx, ecx
mov ecx, esi
shr ecx, 9
xor edx, ecx
xor ebx, edx
mov edx, ebx
mov ecx, ebx
xor ebx, r11d
sub edx, dword [rsp + 0xa4]
mov byte [r10 + 7], bl
rol edx, 0xb
mov r11d, r8d
ror ecx, 8
imul edx, r14d
xor ecx, edx
xor ecx, r13d
xor esi, ecx
xor dil, sil
mov r13d, r9d
movzx edx, word [rsp + 0xa2]
mov byte [r10 + 3], sil
ror esi, 8
xor dil, bl
mov byte [r10 + 2], sil
ror ebx, 8
xor dil, sil
ror esi, 8
mov byte [r10 + 6], bl
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 r12, 1
jne 0x10004e252
mov rbp, qword [rsp + 0x88]
mov r14, qword [rsp + 0x80]
cmp dil, byte [r14 + rbp + 8]
je 0x10004e52b
call fcn.100058248
lea r10, [0x1001094ec]
mov rsi, qword [rsp + 0x70]
mov ebx, 0xffff
mov r8, rsi
and r8, 0xfffffffffffffff8
lea r9, [r8 + 0xfff]
mov r11, rax
mov rbp, qword [rsp + 0x78]
mov rax, 0xfffffffffffff000
and r11, rax
mov qword [rbp + 0x10], r10
mov rcx, qword [0x1004c43a0]
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 0x10004e484
movabs rax, 0x8000800080008001
mul rdi
mov qword [0x1004c43a0], rcx
mov rax, qword [rsp + 0x60]
shr rdx, 0xf
imul rdx, rdx, 0xffff
sub rdi, rdx
inc rdi
mov qword [rax + 0x98], r11
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x60], rbx
jmp 0x10004e521
xor ebx, ebx
test ecx, ecx
jns 0x10004e209
neg ecx
shl ecx, 3
shr esi, cl
shl esi, cl
jmp 0x10004e209
mov r13d, esi
mov r11d, esi
xor ebx, ebx
xor esi, esi
not r11d
jmp 0x10004e213
mov rax, qword [rsp + 0x60]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x10004e515
jmp 0x10004e649
mov rax, qword [0x1000487b8]
lea r15, [0x100000000]
mov r12, qword [rsp + 0x50]
mov rbx, rbp
sub rbx, r12
mov rsi, r15
sub rsi, rax
jne 0x10004e555
test rbx, rbx
je 0x10004e628
mov r11, r12
xor edi, edi
sub r11, rbp
mov rcx, qword [0x1001d1e58]
lea r8d, [rcx - 1]
sub ebp, r15d
lea r13d, [r14 + rbp]
test r8d, r8d
lea r14, [0x1001d1e58]
js 0x10004e5a8
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 0x10004e59e
lea r8d, [rax - 1]
jmp 0x10004e5a3
jbe 0x10004e5ad
lea edi, [rax + 1]
cmp r8d, edi
jge 0x10004e57b
movsxd r10, edi
jmp 0x10004e621
movsxd r10, eax
jmp 0x10004e621
mov edx, dword [r14 + r10*4 + 4]
mov eax, edx
and eax, 0xfffffff
cmp eax, r13d
jae 0x10004e628
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 0x10004e5fd
sub edi, 1
je 0x10004e5f8
cmp edi, 1
jne 0x10004e603
mov r9, rsi
jmp 0x10004e603
mov r9, rbx
jmp 0x10004e603
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x10004e613
cmp edx, 1
jne 0x10004e61e
add qword [r8 + r11], r9
jmp 0x10004e617
add dword [r8 + r11], r9d
mov rcx, qword [0x1001d1e58]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x10004e5b2
mov eax, dword [0x1002f8888]
mov eax, 0x2380c34a
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
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