Function at 0x100419000
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 [0x1004946a0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r13d, 0xfffffff
lea r8, section..data
mov rax, qword [rcx + 0x10]
lea r9, [rax + 0xd]
lea rdi, [r9 - 1]
mov qword [rsp + 0x70], rcx
mov ecx, dword [rax + 5]
lea r15, [0x100000000]
mov ebp, dword [rax + 1]
mov r14d, dword [rax + 9]
mov qword [rsp + 0x60], rdx
and rbp, r13
and rcx, r13
mov qword [rsp + 0x90], rcx
and r14, r13
add rbp, r15
mov qword [rsp + 0x78], rbp
xor r12d, r12d
cmp rdi, r8
mov qword [rsp + 0x80], r14
jb 0x1004190bf
mov ecx, dword [0x10005e244]
mov eax, dword [0x1002f3aa4]
imul ecx, eax
mov eax, ecx
add rax, r8
cmp rdi, rax
jae 0x1004190bf
mov rax, rdi
mov ecx, dword [0x1002f3aa4]
sub rax, r8
cqo
idiv rcx
mov edx, dword [0x1002f3aa4]
imul rdx, rax
add r8, rdx
jmp 0x1004190c2
mov r8, r12
cmp r8, r12
jne 0x1004190d1
mov r8, rdi
and r8, 0xffffffffffff0000
sub r9, r8
mov esi, ebp
lea rax, [r9 - 0x40]
cmp rax, r12
cmovl rax, r12
lea rdi, [rax + r8]
sub esi, r15d
xor eax, eax
mov dword [rsp + 0x20], esi
lea ecx, [rax + 0x40]
rep stosb byte [rdi], al
mov edi, dword [0x1002f3aa4]
sub rdi, r14
add rdi, 1
cmp rdi, r12
mov r9, rdi
je 0x10041913b
mov rcx, qword [0x100495210]
imul rcx, rcx, 0x343fd
shl rax, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
shr r9, 0x10
jne 0x10041910f
mov qword [0x100495210], rcx
xor edx, edx
mov ecx, esi
div rdi
lea rbx, [rdx + r8]
mov rdx, r14
mov r8, rbx
mov qword [rsp + 0x50], rbx
mov eax, 0x2e242a2e
mov dil, r12b
lea rcx, [rsp + 0x58]
mov rdx, qword [r14 + rbp]
mov qword [rsp + 0x58], rdx
mov eax, 0xfa801cdd
mov rcx, r15
mov r10, qword [rsp + 0x58]
mov r9d, dword [rsp + 0x5c]
mov rax, qword [0x1003f4900]
and r10, r13
and r9, r13
mov r13d, 4
mov qword [rsp + 0x30], r12
add r10, r15
sub rcx, rax
mov qword [rsp + 0x38], rcx
jne 0x100419208
cmp r9, r12
mov r11, r12
jbe 0x1004194ce
mov edx, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
mov ebx, 0x966c4cad
mov r15d, 0x6993b353
movzx ecx, byte [r11 + r10]
add r11, 1
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 0x1004191be
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r8d
jmp 0x1004194c9
movsxd rcx, dword [0x10000003c]
lea rax, [r10 + r9]
mov r8d, dword [rcx + r15 + 0xb0]
mov rbx, 0xfffffffffffff000
add r8, r15
mov ecx, dword [rcx + r15 + 0xb4]
mov qword [rsp + 0x68], rax
mov eax, r10d
sub eax, r15d
mov r11d, eax
mov esi, 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 0x10041926d
mov eax, dword [r8]
cmp rax, r11
jae 0x100419272
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x10041925e
xor ebx, ebx
cmp r8, rcx
je 0x1004192ac
mov eax, dword [r8]
cmp rax, r11
jne 0x1004192ac
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x1004192a7
mov ax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, rsi
jae 0x1004192a7
add rbx, 1
cmp rbx, rcx
jne 0x10041928e
mov rcx, qword [rsp + 0x28]
mov edi, 0x966c4cad
mov r9d, dword [rsp + 0x30]
mov edx, dword [rsp + 0x34]
mov r15d, 0x6993b353
cmp r8, rcx
je 0x10041945a
mov eax, dword [r8]
cmp rax, r12
ja 0x10041945a
mov r11d, dword [r8 + 4]
lea rax, [r11 - 8]
shr rax, 1
cmp rbx, rax
jne 0x100419301
add r8, r11
cmp r8, rcx
je 0x10041945a
mov eax, dword [r8]
cmp rax, r12
ja 0x10041945a
xor ebx, ebx
jmp 0x1004192d5
mov eax, dword [r8]
cmp rax, r12
jne 0x10041931f
mov ax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, qword [rsp + 0x48]
jae 0x10041945a
mov rax, rbx
add rbx, 1
test word [r8 + rax*2 + 8], 0xf000
je 0x1004192c0
xor r14d, r14d
movzx r11d, word [r8 + rax*2 + 8]
lea rax, [0x100000000]
mov esi, r11d
and esi, 0xfff
add esi, dword [r8]
add rsi, rax
mov rax, rsi
sub rax, r10
je 0x10041939f
mov rbp, rax
movzx ecx, byte [r14 + r10]
add r14, 1
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 0x10041935a
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
shr r11d, 0xc
cmp r11d, 3
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
je 0x1004193c1
sub r11d, 0xa
neg r11d
sbb r10d, r10d
add r10d, 3
jmp 0x1004193c7
mov r10d, 2
mov r11, qword [rsp + 0x38]
neg r11
sub r10d, 2
je 0x1004193f1
cmp r10d, 1
je 0x1004193e1
or r10, 0xffffffffffffffff
jmp 0x1004193f9
add rax, r11
mov qword [rsp + 0x40], rax
mov r10d, 8
jmp 0x1004193f9
add dword [rsp + 0x40], r11d
mov r10, r13
xor r11d, r11d
test r10, r10
je 0x10041944d
movzx ecx, byte [rsp + r11 + 0x40]
add r11, 1
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 + 0x88], rax
mov edx, dword [rsp + 0x88]
shr rax, 0x20
add edx, eax
add r9d, edx
cmp r11, r10
jb 0x100419401
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
add r10, rsi
mov rcx, qword [rsp + 0x28]
jmp 0x1004192c0
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x80]
xor r12d, r12d
sub rbx, r10
mov r8, r12
mov dil, r8b
je 0x1004194c5
mov r11d, 0x966c4cad
movzx ecx, byte [r10 + r8]
add r8, 1
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
mov edx, dword [rsp + 0x68]
shr rax, 0x20
add edx, eax
add r9d, edx
cmp r8, rbx
jb 0x100419480
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
mov esi, dword [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
mov rcx, r12
mov al, cl
add rcx, 1
and eax, 7
mov al, byte [rsp + rax + 0x30]
cmp rcx, 8
mov byte [rsp + rcx + 0x97], al
jb 0x1004194d1
mov eax, 0x41886a9f
mov rax, qword [rsp + 0x98]
mov r12b, r14b
mov r15, rbp
and r12d, 7
mov r10, rbx
mov qword [rsp + 0x28], rbx
je 0x1004199b0
xor r8d, r8d
mov ebx, esi
mov dword [rsp + 0x48], r8d
not ebx
xor r11d, r11d
mov dword [rsp + 0x38], r11d
xor r10d, r10d
test r12d, r12d
jle 0x100419567
lea r9d, [r8 + 0x38]
cmp r10d, r13d
movzx edx, byte [r15]
jge 0x100419544
lea ecx, [r9 - 0x20]
shl edx, cl
or r11d, edx
jmp 0x10041954c
mov ecx, r9d
shl edx, cl
or r8d, edx
add r10d, 1
add r15, 1
sub r9d, 8
cmp r10d, r12d
jl 0x100419530
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x48], r8d
movzx r8d, word [rsp + 0x9e]
movzx r11d, ax
movzx r10d, word [rsp + 0x9a]
mov edx, eax
movzx r9d, word [rsp + 0x9c]
mov ecx, esi
sub ecx, eax
sub ecx, r8d
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
mov ecx, esi
rol edx, 0xd
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 edx, esi
xor edx, r9d
rol edx, 1
mov ecx, esi
ror ecx, 0x10
imul edx, r10d
add ecx, edx
xor ebx, ecx
mov ecx, ebx
mov edx, 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
rol edx, 5
mov ecx, ebx
ror ecx, 2
imul edx, r9d
add ecx, edx
xor esi, ecx
mov edx, esi
sub edx, r11d
mov ecx, esi
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 + 0x9c]
rol edx, 0xb
ror ecx, 8
imul edx, r11d
xor ecx, edx
mov r11d, dword [rsp + 0x48]
xor r9d, r9d
xor ecx, dword [rsp + 0x38]
xor ebx, r11d
mov edx, ebx
xor esi, ecx
mov ecx, esi
test r12d, r12d
jle 0x1004196a3
mov r8, qword [rsp + 0x28]
cmp r9d, r13d
jge 0x100419688
rol ecx, 8
mov byte [r8], cl
add r8, 1
xor dil, cl
jmp 0x100419695
rol edx, 8
mov byte [r8], dl
add r8, 1
xor dil, dl
add r9d, 1
cmp r9d, r12d
jl 0x100419674
mov qword [rsp + 0x28], r8
lea ecx, [r12 - 4]
test ecx, ecx
jle 0x100419998
sub r13d, ecx
shl r13d, 3
mov ecx, r13d
shr ebx, cl
shl ebx, cl
mov r12d, dword [rsp + 0x38]
mov r10, qword [rsp + 0x28]
mov r13, r14
shr r13, 3
je 0x1004198e2
movzx edx, word [rsp + 0x9a]
movzx ecx, word [rsp + 0x9e]
movzx r14d, ax
mov dword [rsp + 0x20], ecx
movzx ecx, word [rsp + 0x9c]
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x48], ecx
mov ecx, r14d
neg ecx
mov ebp, ecx
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
movzx ecx, byte [r15 - 2]
xor esi, r9d
shl r8d, 8
or r8d, ecx
shl r8d, 8
movzx ecx, byte [r15 - 1]
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
xor esi, ecx
mov ecx, esi
mov edx, eax
sub edx, esi
rol edx, 0xd
rol ecx, 0xd
imul edx, dword [rsp + 0x20]
add ecx, edx
xor ebx, ecx
mov edx, ebx
movzx ecx, word [rsp + 0x9a]
xor edx, ecx
movzx ecx, word [rsp + 0x9c]
imul edx, ecx
mov ecx, ebx
shr ecx, 9
xor edx, ecx
movzx ecx, word [rsp + 0x9c]
xor esi, edx
mov edx, esi
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 + 0x9a]
mov edx, ebx
xor edx, ecx
rol edx, 5
mov ecx, ebx
rol ecx, 3
imul edx, r14d
sub edx, ecx
xor esi, edx
mov ecx, esi
movzx edx, word [rsp + 0x9e]
not ecx
ror ecx, 6
add ecx, edx
movzx edx, word [rsp + 0x9c]
imul ecx, edx
xor ebx, ecx
mov edx, ebx
sub edx, eax
rol edx, 5
mov ecx, ebx
ror ecx, 2
imul edx, dword [rsp + 0x48]
add ecx, edx
xor esi, ecx
lea edx, [rbp + rsi]
movzx ecx, word [rsp + 0x9a]
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
mov r11d, r8d
sub edx, dword [rsp + 0x9c]
rol edx, 0xb
ror ecx, 8
mov byte [r10 + 7], bl
imul edx, r14d
xor ecx, edx
xor ecx, r12d
xor esi, ecx
xor dil, sil
mov r12d, r9d
movzx edx, word [rsp + 0x9a]
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
mov byte [r10 + 1], sil
xor dil, bl
ror ebx, 8
xor dil, sil
ror esi, 8
xor dil, bl
mov byte [r10 + 5], 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 r13, 1
jne 0x100419704
mov rbp, qword [rsp + 0x78]
mov r14, qword [rsp + 0x80]
cmp dil, byte [r14 + rbp + 8]
je 0x1004199d8
call fcn.1002d3e40
mov ebx, 0xffff
mov rsi, qword [rsp + 0x70]
lea r8, [rsi + 0x18]
mov r11, rax
mov rax, 0xfffffffffffff000
lea r10, [0x1003e8888]
mov qword [rsi + 0x10], r10
and r8, 0xfffffffffffffff8
and r11, rax
mov rcx, qword [0x100495210]
lea r9, [r8 + 0xfff]
and r9, rax
xor edi, edi
imul rcx, rcx, 0x343fd
shl rdi, 0x10
add rcx, 0x269ec3
mov rax, rcx
shr rax, 0x10
movzx edx, ax
or rdi, rdx
shr rbx, 0x10
jne 0x10041992f
movabs rax, 0x8000800080008001
mov qword [0x100495210], rcx
mul rdi
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x98], r11
shr rdx, 0xf
imul rdx, rdx, 0xffff
sub rdi, rdx
add rdi, 1
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x60], 0
jmp 0x1004199ce
xor ebx, ebx
test ecx, ecx
jns 0x1004196be
neg ecx
shl ecx, 3
shr esi, cl
shl esi, cl
jmp 0x1004196be
mov r12d, esi
xor ebx, ebx
mov r11d, esi
not r11d
xor esi, esi
jmp 0x1004196c8
mov rax, qword [rsp + 0x60]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x1004199c2
jmp 0x100419af2
mov r12, qword [rsp + 0x50]
mov rbx, rbp
sub rbx, r12
mov rax, qword [0x1003f4900]
lea r15, [0x100000000]
mov rsi, r15
sub rsi, rax
jne 0x100419a02
test rbx, rbx
je 0x100419ad6
mov rcx, qword [0x1000016e8]
xor edi, edi
mov r11, r12
lea r8d, [rcx - 1]
sub r11, rbp
sub ebp, r15d
lea r13d, [r14 + rbp]
test r8d, r8d
lea r14, [0x1000016e8]
js 0x100419a55
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 0x100419a4b
lea r8d, [rax - 1]
jmp 0x100419a50
jbe 0x100419a5a
lea edi, [rax + 1]
cmp r8d, edi
jge 0x100419a28
movsxd r10, edi
jmp 0x100419acf
movsxd r10, eax
jmp 0x100419acf
mov edx, dword [r14 + r10*4 + 4]
mov eax, edx
and eax, 0xfffffff
cmp eax, r13d
jae 0x100419ad6
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 0x100419aaa
sub edi, 1
je 0x100419aa5
cmp edi, 1
jne 0x100419ab0
mov r9, rsi
jmp 0x100419ab0
mov r9, rbx
jmp 0x100419ab0
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x100419ac0
cmp edx, 1
jne 0x100419acb
add qword [r8 + r11], r9
jmp 0x100419ac4
add dword [r8 + r11], r9d
mov rcx, qword [0x1000016e8]
add r10, 1
mov eax, ecx
cmp r10, rax
jb 0x100419a5f
mov eax, dword [0x1002f3aa4]
mov eax, 0x1623786f
mov rsi, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x90]
lea r10, [r12 + rdx]
mov qword [rsi + 0x10], r10
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1002d532c
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret