Function at 0x10029d810
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 [0x100347ae0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword [rcx + 0x10]
lea r8, section..data
mov r14d, 0xfffffff
lea r13, [0x100000000]
mov qword [rsp + 0x80], rcx
mov ecx, dword [rax + 5]
mov r12d, dword [rax + 1]
lea r9, [rax + 0xd]
mov r15d, dword [rax + 9]
lea rdi, [r9 - 1]
mov qword [rsp + 0x68], rdx
and r12, r14
and rcx, r14
mov qword [rsp + 0x90], rcx
and r15, r14
mov qword [rsp + 0x78], r15
add r12, r13
xor ebp, ebp
cmp rdi, r8
mov qword [rsp + 0x70], r12
jb 0x10029d8cf
mov eax, dword [0x1000d5e38]
mov ecx, dword [0x100172988]
imul ecx, eax
mov eax, ecx
add rax, r8
cmp rdi, rax
jae 0x10029d8cf
mov ecx, dword [0x1000d5e38]
mov rax, rdi
sub rax, r8
cqo
idiv rcx
mov edx, dword [0x1000d5e38]
imul rdx, rax
add r8, rdx
jmp 0x10029d8d2
mov r8, rbp
cmp r8, rbp
jne 0x10029d8e1
mov r8, rdi
and r8, 0xffffffffffff0000
mov ebx, r12d
sub r9, r8
lea rax, [r9 - 0x40]
cmp rax, rbp
cmovl rax, rbp
mov r9d, dword [0x1000d5e38]
sub r9, r15
sub ebx, r13d
lea rdi, [rax + r8]
mov dword [rsp + 0x28], ebx
xor eax, eax
lea ecx, [rax + 0x40]
rep stosb byte [rdi], al
inc r9
cmp r9, rbp
mov rdi, r9
je 0x10029d94f
mov rcx, qword [0x100346e50]
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, rbp
jne 0x10029d920
mov qword [0x100346e50], rcx
xor edx, edx
mov ecx, ebx
div r9
lea rsi, [rdx + r8]
mov r8, rsi
mov qword [rsp + 0x60], rsi
mov rdx, r15
mov eax, 0x27e5cf63
lea rcx, [rsp + 0x58]
mov rdx, qword [r12 + r15]
mov dil, bpl
mov qword [rsp + 0x58], rdx
mov eax, 0x721dd81c
mov r11, qword [rsp + 0x58]
mov r9d, dword [rsp + 0x5c]
mov rcx, r13
mov rax, qword [0x100037580]
mov qword [rsp + 0x30], rbp
and r11, r14
and r9, r14
mov r14d, 4
add r11, r13
sub rcx, rax
mov qword [rsp + 0x20], rcx
jne 0x10029da59
mov r10, rbp
cmp r9, rbp
jbe 0x10029de01
mov ebp, 0xed08cdd6
mov r8d, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
movzx eax, byte [r10 + r11]
inc r10
sub eax, 0x12f7322a
add r8d, eax
add eax, ecx
imul rax, rbp
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 eax, eax, 0xed08cdd6
ror eax, 0xf
imul rax, rbp
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 ecx, edx
sar ecx, 0x1f
btr ecx, 0x1f
add ecx, edx
add r8d, ecx
cmp r10, r9
jb 0x10029d9d0
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x30], r8d
jmp 0x10029ddff
movsxd rcx, dword [0x10000003c]
mov edx, dword [rcx + r13 + 0xb4]
mov r8d, dword [rcx + r13 + 0xb0]
add r8, r13
lea rax, [r11 + r9]
mov qword [rsp + 0x88], rax
mov eax, r11d
sub eax, r13d
mov ecx, eax
mov r10d, eax
mov rax, 0xfffffffffffff000
lea r13, [r9 + rcx]
and r10, rax
mov rbx, rcx
mov rcx, r13
sub rbx, r10
and rcx, rax
mov qword [rsp + 0x40], rcx
sub r13, rcx
add rdx, r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x38], r13
jmp 0x10029daca
mov eax, dword [r8]
cmp rax, r10
jae 0x10029dacf
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rdx
jne 0x10029dabb
cmp r8, rdx
mov rsi, rbp
je 0x10029db13
mov eax, dword [r8]
cmp rax, r10
jne 0x10029db13
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x10029db0e
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, rbx
jae 0x10029db09
inc rsi
add rdx, 2
cmp rsi, rcx
jne 0x10029daf0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov ebx, dword [rsp + 0x30]
mov r9d, dword [rsp + 0x34]
mov ebp, 0xed08cdd6
mov r12, qword [rsp + 0x20]
cmp r8, rdx
je 0x10029dd4d
mov eax, dword [r8]
cmp rax, rcx
ja 0x10029dd4d
mov edi, dword [r8 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rsi, rax
jne 0x10029db67
add r8, rdi
cmp r8, rdx
je 0x10029dd4d
mov eax, dword [r8]
cmp rax, rcx
ja 0x10029dd4d
xor esi, esi
jmp 0x10029db3b
mov eax, dword [r8]
cmp rax, rcx
jne 0x10029db83
movzx eax, word [r8 + rsi*2 + 8]
and eax, 0xfff
cmp rax, r13
jae 0x10029dd4d
mov edi, 0xf000
mov rax, rsi
inc rsi
test word [r8 + rax*2 + 8], di
je 0x10029db26
xor edi, edi
movzx r10d, word [r8 + rax*2 + 8]
lea rax, [0x100000000]
mov r13d, r10d
and r13d, 0xfff
add r13d, dword [r8]
add r13, rax
mov rax, r13
sub rax, r11
je 0x10029dc4c
mov r15, rax
movzx eax, byte [r11 + rdi]
inc rdi
sub eax, 0x12f7322a
add ebx, eax
add eax, r9d
imul rax, rbp
mov qword [rsp + 0x48], rax
mov ecx, dword [rsp + 0x48]
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 eax, eax, 0xed08cdd6
ror eax, 0xf
imul rax, rbp
mov qword [rsp + 0x48], rax
mov ecx, dword [rsp + 0x48]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov r9d, edx
sar r9d, 0x1f
btr r9d, 0x1f
add r9d, edx
add ebx, r9d
cmp rdi, r15
jb 0x10029dbc4
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x30], ebx
mov rax, qword [r13]
mov qword [rsp + 0x48], rax
shr r10d, 0xc
cmp r10d, 3
je 0x10029dc6d
sub r10d, 0xa
neg r10d
sbb edx, edx
add edx, 3
jmp 0x10029dc72
mov edx, 2
mov r10, r12
neg r10
sub edx, 2
je 0x10029dc98
cmp edx, 1
je 0x10029dc88
or r10, 0xffffffffffffffff
jmp 0x10029dca0
add rax, r10
mov qword [rsp + 0x48], rax
mov r10d, 8
jmp 0x10029dca0
add dword [rsp + 0x48], r10d
mov r10, r14
xor r11d, r11d
test r10, r10
je 0x10029dd35
movzx eax, byte [rsp + r11 + 0x48]
inc r11
sub eax, 0x12f7322a
add ebx, eax
add eax, r9d
imul rax, rbp
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 eax, eax, 0xed08cdd6
ror eax, 0xf
imul rax, rbp
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 r9d, edx
sar r9d, 0x1f
btr r9d, 0x1f
add r9d, edx
add ebx, r9d
cmp r11, r10
jb 0x10029dcac
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x30], ebx
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
lea r11, [r10 + r13]
mov r13, qword [rsp + 0x38]
jmp 0x10029db26
xor r8d, r8d
mov r12, qword [rsp + 0x70]
mov dil, r8b
mov r10, qword [rsp + 0x88]
sub r10, r11
mov r15, qword [rsp + 0x78]
je 0x10029ddf6
movzx eax, byte [r8 + r11]
inc r8
sub eax, 0x12f7322a
add ebx, eax
add eax, r9d
imul rax, rbp
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 eax, eax, 0xed08cdd6
ror eax, 0xf
imul rax, rbp
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 r9d, edx
sar r9d, 0x1f
btr r9d, 0x1f
add r9d, edx
add ebx, r9d
cmp r8, r10
jb 0x10029dd6e
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x30], ebx
mov ebx, dword [rsp + 0x28]
mov rsi, qword [rsp + 0x60]
xor ebp, ebp
mov rcx, rbp
mov rax, rcx
inc rcx
and eax, 7
mov al, byte [rsp + rax + 0x30]
mov byte [rsp + rcx + 0x97], al
cmp rcx, 8
jb 0x10029de04
mov eax, 0x9f15e3d6
mov r13, r15
mov rax, qword [rsp + 0x98]
mov r8, r12
mov qword [rsp + 0x40], r12
mov r11, rsi
and r13d, 7
mov qword [rsp + 0x20], rsi
je 0x10029e316
mov r9d, ebp
mov r11d, ebp
cmp r13d, ebp
mov dword [rsp + 0x50], ebp
mov esi, ebx
mov ebx, ebp
mov dword [rsp + 0x38], ebx
not esi
jle 0x10029de9f
mov r10d, 0x38
cmp r11d, r14d
movzx edx, byte [r8]
jge 0x10029de7a
lea ecx, [r10 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x10029de82
mov ecx, r10d
shl edx, cl
or r9d, edx
inc r11d
inc r8
sub r10d, 8
cmp r11d, r13d
jl 0x10029de67
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x50], r9d
mov qword [rsp + 0x40], r8
movzx r9d, word [rsp + 0x9e]
mov r8d, dword [rsp + 0x9c]
mov ebp, esi
mov edx, eax
movzx r11d, ax
movzx ebx, r8w
movzx r10d, word [rsp + 0x9a]
mov ecx, ebx
xor edx, esi
ror edx, 1
ror ebp, 8
imul ecx, edx
xor ebp, ecx
mov ecx, r10d
xor ebp, dword [rsp + 0x28]
mov edx, ebp
add r8d, ebp
ror r8d, 0xc
ror edx, 0xa
imul ecx, r8d
add edx, ecx
xor esi, edx
mov r8d, esi
mov ecx, r11d
mov edx, esi
xor r8d, r9d
rol r8d, 2
ror edx, 0x10
imul ecx, r8d
xor edx, ecx
xor ebp, edx
mov ecx, ebp
mov edx, eax
xor edx, ebp
rol edx, 8
rol ecx, 6
imul edx, r9d
add ecx, edx
xor esi, ecx
mov edx, esi
mov ecx, r10d
xor ecx, esi
ror edx, 6
imul ecx, ebx
add edx, ecx
mov ecx, r10d
xor ebp, edx
mov edx, ebp
mov r8d, ebp
sub r8d, dword [rsp + 0x9c]
ror r8d, 5
ror edx, 0xb
imul ecx, r8d
xor edx, ecx
xor esi, edx
mov ecx, esi
mov edx, ebx
xor edx, esi
shr ecx, 0xf
imul edx, r11d
add edx, ecx
xor ebp, edx
mov ecx, ebp
sub ecx, eax
sub ecx, r9d
xor esi, ecx
mov edx, esi
mov ecx, ebx
mov r8d, esi
sub r8d, eax
ror r8d, 0xe
rol edx, 1
imul ecx, r8d
add edx, ecx
xor ebp, edx
mov ecx, ebp
not ecx
ror ecx, 0xd
add ecx, r10d
imul ecx, ebx
mov ebx, dword [rsp + 0x50]
xor esi, ecx
mov ecx, esi
sub ecx, r9d
xor r9d, r9d
rol ecx, 4
imul r11d, ecx
mov ecx, esi
xor esi, ebx
mov edx, esi
shr ecx, 0xc
xor r11d, ecx
xor r11d, dword [rsp + 0x38]
xor ebp, r11d
test r13d, r13d
mov ecx, ebp
jle 0x10029dfec
mov r8, qword [rsp + 0x20]
cmp r9d, r14d
jge 0x10029dfd3
rol ecx, 8
mov byte [r8], cl
inc r8
xor dil, cl
jmp 0x10029dfdf
rol edx, 8
mov byte [r8], dl
inc r8
xor dil, dl
inc r9d
cmp r9d, r13d
jl 0x10029dfc0
mov qword [rsp + 0x20], r8
lea ecx, [r13 - 4]
test ecx, ecx
jle 0x10029e2fe
sub r14d, ecx
shl r14d, 3
mov ecx, r14d
shr esi, cl
shl esi, cl
mov r11, qword [rsp + 0x20]
mov r14d, dword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
mov r13, r15
shr r13, 3
test r13, r13
je 0x10029e246
mov r12d, dword [rsp + 0x9c]
movzx ecx, r12w
mov dword [rsp + 0x38], ecx
movzx ecx, word [rsp + 0x9e]
neg ecx
mov dword [rsp + 0x50], ecx
mov r15d, dword [rsp + 0x50]
movzx ecx, ax
mov dword [rsp + 0x28], ecx
movzx ecx, byte [r8 + 1]
movzx r10d, byte [r8]
mov edx, eax
movzx r9d, byte [r8 + 4]
add r8, 8
shl r10d, 8
shl r9d, 8
or r10d, ecx
shl r10d, 8
movzx ecx, byte [r8 - 6]
mov qword [rsp + 0x40], r8
or r10d, ecx
movzx ecx, byte [r8 - 5]
shl r10d, 8
or r10d, ecx
movzx ecx, byte [r8 - 3]
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r8 - 2]
or r9d, ecx
movzx ecx, byte [r8 - 1]
shl r9d, 8
or r9d, ecx
mov ecx, dword [rsp + 0x38]
xor esi, r9d
mov r8d, esi
xor edx, esi
ror edx, 1
ror r8d, 8
imul ecx, edx
xor r8d, ecx
xor r8d, r10d
xor ebp, r8d
lea edx, [r12 + rbp]
ror edx, 0xc
movzx ecx, word [rsp + 0x9a]
mov r8d, ebp
ror r8d, 0xa
imul ecx, edx
add r8d, ecx
xor esi, r8d
movzx ecx, word [rsp + 0x9e]
mov r8d, esi
xor r8d, ecx
rol r8d, 2
mov edx, esi
ror edx, 0x10
mov ecx, dword [rsp + 0x28]
imul ecx, r8d
movzx r8d, word [rsp + 0x9e]
xor edx, ecx
xor ebp, edx
mov edx, eax
mov ecx, ebp
xor edx, ebp
rol edx, 8
rol ecx, 6
imul edx, r8d
add ecx, edx
xor esi, ecx
movzx ecx, word [rsp + 0x9a]
mov edx, esi
xor ecx, esi
ror edx, 6
imul ecx, dword [rsp + 0x38]
add edx, ecx
movzx ecx, word [rsp + 0x9a]
xor ebp, edx
mov r8d, ebp
mov edx, ebp
sub r8d, r12d
ror r8d, 5
ror edx, 0xb
imul ecx, r8d
xor edx, ecx
xor esi, edx
mov ecx, esi
mov edx, dword [rsp + 0x38]
xor edx, esi
imul edx, dword [rsp + 0x28]
shr ecx, 0xf
add edx, ecx
xor ebp, edx
movzx edx, word [rsp + 0x9e]
mov ecx, ebp
sub ecx, eax
sub ecx, edx
xor esi, ecx
mov r8d, esi
mov edx, esi
sub r8d, eax
mov ecx, dword [rsp + 0x38]
ror r8d, 0xe
rol edx, 1
imul ecx, r8d
mov r8, qword [rsp + 0x40]
add edx, ecx
xor ebp, edx
movzx edx, word [rsp + 0x9a]
mov ecx, ebp
not ecx
ror ecx, 0xd
add ecx, edx
mov edx, dword [rsp + 0x28]
imul ecx, dword [rsp + 0x38]
xor esi, ecx
lea ecx, [r15 + rsi]
rol ecx, 4
imul edx, ecx
mov ecx, esi
xor esi, ebx
mov ebx, r9d
shr ecx, 0xc
xor edx, ecx
xor edx, r14d
mov r14d, r10d
mov byte [r11 + 7], sil
xor ebp, edx
xor dil, bpl
mov byte [r11 + 3], bpl
ror ebp, 8
mov byte [r11 + 2], bpl
xor dil, sil
ror esi, 8
mov byte [r11 + 6], sil
xor dil, bpl
ror ebp, 8
xor dil, sil
ror esi, 8
xor dil, bpl
mov byte [r11 + 1], bpl
mov byte [r11 + 5], sil
ror ebp, 8
xor dil, sil
mov byte [r11], bpl
ror esi, 8
mov cl, sil
mov byte [r11 + 4], sil
add r11, 8
xor cl, bpl
xor dil, cl
ror ebp, 8
ror esi, 8
sub r13, 1
jne 0x10029e04f
mov r15, qword [rsp + 0x78]
mov r12, qword [rsp + 0x70]
cmp dil, byte [r15 + r12 + 8]
je 0x10029e338
call fcn.1000de678
mov r11d, 0xffff
lea r10, [0x100046aec]
mov rbx, rax
mov rsi, qword [rsp + 0x80]
mov qword [rsi + 0x10], r10
lea r8, [rsi + 0x18]
mov rax, 0xfffffffffffff000
and r8, 0xfffffffffffffff8
mov rcx, qword [0x100346e50]
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 0x10029e297
movabs rax, 0x8000800080008001
mov qword [0x100346e50], rcx
mul rdi
mov rax, qword [rsp + 0x68]
mov qword [rax + 0x98], rbx
shr rdx, 0xf
imul rdx, rdx, 0xffff
sub rdi, rdx
inc rdi
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x68], r11
jmp 0x10029e32e
xor esi, esi
test ecx, ecx
jns 0x10029e006
neg ecx
shl ecx, 3
shr ebp, cl
shl ebp, cl
jmp 0x10029e006
mov esi, ebp
mov r14d, ebx
not ebx
jmp 0x10029e015
mov rax, qword [rsp + 0x68]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x10029e322
jmp 0x10029e453
lea r14, [0x100000000]
mov rax, qword [0x100037580]
mov rbp, qword [rsp + 0x60]
mov rbx, r12
mov rsi, r14
sub rbx, rbp
sub rsi, rax
jne 0x10029e362
test rbx, rbx
je 0x10029e435
mov rcx, qword [0x100021bc8]
mov r11, rbp
lea r8d, [rcx - 1]
xor edi, edi
sub r11, r12
sub r12d, r14d
lea r13d, [r15 + r12]
test r8d, r8d
lea r15, [0x100021bc8]
js 0x10029e3b5
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 r12d, r9d
jae 0x10029e3ab
lea r8d, [rax - 1]
jmp 0x10029e3b0
jbe 0x10029e3ba
lea edi, [rax + 1]
cmp r8d, edi
jge 0x10029e388
movsxd r10, edi
jmp 0x10029e42e
movsxd r10, eax
jmp 0x10029e42e
mov edx, dword [r15 + r10*4 + 4]
mov eax, edx
and eax, 0xfffffff
cmp eax, r13d
jae 0x10029e435
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 0x10029e40a
sub edi, 1
je 0x10029e405
cmp edi, 1
jne 0x10029e410
mov r9, rsi
jmp 0x10029e410
mov r9, rbx
jmp 0x10029e410
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x10029e420
cmp edx, 1
jne 0x10029e42b
add qword [r8 + r11], r9
jmp 0x10029e424
add dword [r8 + r11], r9d
mov rcx, qword [0x100021bc8]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x10029e3bf
mov eax, dword [0x1000d5e38]
mov eax, 0x56ddcd53
mov rsi, qword [rsp + 0x80]
mov r10, qword [rsp + 0x90]
add r10, rbp
mov qword [rsi + 0x10], r10
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1002edf64
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret