Function at 0x100046b40
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 + 0xa8], rax
lea r8, section..data
lea rax, [rcx + 0x18]
lea r13, [0x100000000]
mov r14d, 0xfffffff
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rax]
mov r12d, dword [rax + 1]
mov r15d, dword [rax + 9]
mov ecx, dword [rax + 5]
mov qword [rsp + 0x68], rdx
and r12, r14
lea r9, [rax + 0xd]
lea rdi, [r9 - 1]
and rcx, r14
and r15, r14
add r12, r13
mov qword [rsp + 0x80], r12
xor ebp, ebp
cmp rdi, r8
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0x70], r15
jb 0x100046c0a
mov eax, dword [0x1000d5e38]
mov ecx, dword [0x100172988]
imul ecx, eax
mov eax, ecx
add rax, r8
cmp rdi, rax
jae 0x100046c0a
mov rax, rdi
sub rax, r8
mov ecx, dword [0x1000d5e38]
cqo
idiv rcx
mov edx, dword [0x1000d5e38]
imul rdx, rax
add r8, rdx
jmp 0x100046c0d
mov r8, rbp
cmp r8, rbp
jne 0x100046c1c
mov r8, rdi
and r8, 0xffffffffffff0000
sub r9, r8
mov ebx, r12d
lea rax, [r9 - 0x40]
mov r9d, dword [0x1000d5e38]
cmp rax, rbp
cmovl rax, rbp
sub r9, r15
lea rdi, [rax + r8]
sub ebx, r13d
mov dword [rsp + 0x28], ebx
xor eax, eax
inc r9
lea ecx, [rax + 0x40]
cmp r9, rbp
rep stosb byte [rdi], al
mov rdi, r9
je 0x100046c8a
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 0x100046c5b
mov qword [0x100346e50], rcx
xor edx, edx
div r9
mov ecx, ebx
lea rsi, [rdx + r8]
mov qword [rsp + 0x60], rsi
mov rdx, r15
mov r8, rsi
mov eax, 0x2f2fa666
lea rcx, [rsp + 0x58]
mov rdx, qword [r12 + r15]
mov qword [rsp + 0x58], rdx
mov dil, bpl
mov eax, 0x56e666af
mov rcx, r13
mov r11, qword [rsp + 0x58]
mov r9d, dword [rsp + 0x5c]
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 0x100046d94
cmp r9, rbp
mov r10, rbp
jbe 0x10004713f
mov r8d, dword [rsp + 0x30]
mov ebp, 0xed08cdd6
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
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
mov ecx, dword [rsp + 0x20]
shr rax, 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 0x100046d0b
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x30], r8d
jmp 0x10004713d
movsxd rcx, dword [0x10000003c]
lea rax, [r11 + r9]
mov r8d, dword [rcx + r13 + 0xb0]
add r8, r13
mov edx, dword [rcx + r13 + 0xb4]
mov qword [rsp + 0x90], rax
mov eax, r11d
sub eax, r13d
mov r10d, eax
mov ecx, eax
mov rax, 0xfffffffffffff000
lea r13, [r9 + rcx]
and r10, rax
mov rbx, rcx
sub rbx, r10
mov rcx, r13
and rcx, rax
sub r13, rcx
mov qword [rsp + 0x40], rcx
add rdx, r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x38], r13
jmp 0x100046e05
mov eax, dword [r8]
cmp rax, r10
jae 0x100046e0a
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rdx
jne 0x100046df6
cmp r8, rdx
mov rsi, rbp
je 0x100046e4e
mov eax, dword [r8]
cmp rax, r10
jne 0x100046e4e
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x100046e49
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, rbx
jae 0x100046e44
inc rsi
add rdx, 2
cmp rsi, rcx
jne 0x100046e2b
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov r9d, dword [rsp + 0x34]
mov ebx, dword [rsp + 0x30]
mov ebp, 0xed08cdd6
mov r12, qword [rsp + 0x20]
cmp r8, rdx
je 0x100047088
mov eax, dword [r8]
cmp rax, rcx
ja 0x100047088
mov edi, dword [r8 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rsi, rax
jne 0x100046ea2
add r8, rdi
cmp r8, rdx
je 0x100047088
mov eax, dword [r8]
cmp rax, rcx
ja 0x100047088
xor esi, esi
jmp 0x100046e76
mov eax, dword [r8]
cmp rax, rcx
jne 0x100046ebe
movzx eax, word [r8 + rsi*2 + 8]
and eax, 0xfff
cmp rax, r13
jae 0x100047088
mov edi, 0xf000
mov rax, rsi
inc rsi
test word [r8 + rax*2 + 8], di
je 0x100046e61
movzx r10d, word [r8 + rax*2 + 8]
lea rax, [0x100000000]
mov r13d, r10d
xor edi, edi
and r13d, 0xfff
add r13d, dword [r8]
add r13, rax
mov rax, r13
sub rax, r11
je 0x100046f87
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
shr rax, 0x20
mov ecx, dword [rsp + 0x48]
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
shr rax, 0x20
mov ecx, dword [rsp + 0x48]
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 0x100046eff
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x30], ebx
shr r10d, 0xc
cmp r10d, 3
mov rax, qword [r13]
mov qword [rsp + 0x48], rax
je 0x100046fa8
sub r10d, 0xa
neg r10d
sbb edx, edx
add edx, 3
jmp 0x100046fad
mov edx, 2
mov r10, r12
neg r10
sub edx, 2
je 0x100046fd3
cmp edx, 1
je 0x100046fc3
or r10, 0xffffffffffffffff
jmp 0x100046fdb
add rax, r10
mov qword [rsp + 0x48], rax
mov r10d, 8
jmp 0x100046fdb
add dword [rsp + 0x48], r10d
mov r10, r14
xor r11d, r11d
test r10, r10
je 0x100047070
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
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 r11, r10
jb 0x100046fe7
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x30], ebx
mov rdx, qword [rsp + 0x50]
lea r11, [r10 + r13]
mov r13, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
jmp 0x100046e61
mov r12, qword [rsp + 0x80]
mov r15, qword [rsp + 0x70]
mov r10, qword [rsp + 0x90]
xor r8d, r8d
sub r10, r11
mov dil, r8b
je 0x100047134
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 0x1000470ac
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]
cmp rcx, 8
mov byte [rsp + rcx + 0x9f], al
jb 0x100047142
mov eax, 0xadd796fb
mov r13, r15
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x40], r12
mov r11, rsi
and r13d, 7
mov qword [rsp + 0x20], rsi
mov r8, r12
je 0x10004765a
mov r9d, ebp
mov dword [rsp + 0x50], ebp
cmp r13d, ebp
mov esi, ebx
mov ebx, ebp
not esi
mov r11d, ebp
mov dword [rsp + 0x38], ebx
jle 0x1000471dd
mov r10d, 0x38
movzx edx, byte [r8]
cmp r11d, r14d
jge 0x1000471b8
lea ecx, [r10 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x1000471c0
mov ecx, r10d
shl edx, cl
or r9d, edx
inc r11d
inc r8
sub r10d, 8
cmp r11d, r13d
jl 0x1000471a5
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x50], r9d
mov qword [rsp + 0x40], r8
movzx r10d, word [rsp + 0xa2]
mov edx, eax
xor edx, esi
mov ebp, esi
movzx r11d, ax
mov r8d, dword [rsp + 0xa4]
ror edx, 1
movzx ebx, r8w
mov ecx, ebx
ror ebp, 8
movzx r9d, word [rsp + 0xa6]
imul ecx, edx
xor ebp, ecx
mov ecx, r10d
xor ebp, dword [rsp + 0x28]
add r8d, ebp
mov edx, ebp
ror r8d, 0xc
ror edx, 0xa
imul ecx, r8d
add edx, ecx
mov ecx, r11d
xor esi, edx
mov edx, esi
mov r8d, 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 ecx, r10d
mov edx, esi
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 + 0xa4]
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 r8d, esi
mov ecx, ebx
mov edx, 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
mov ecx, ebp
test r13d, r13d
jle 0x10004732a
mov r8, qword [rsp + 0x20]
cmp r9d, r14d
jge 0x100047311
rol ecx, 8
mov byte [r8], cl
inc r8
xor dil, cl
jmp 0x10004731d
rol edx, 8
mov byte [r8], dl
inc r8
xor dil, dl
inc r9d
cmp r9d, r13d
jl 0x1000472fe
mov qword [rsp + 0x20], r8
lea ecx, [r13 - 4]
test ecx, ecx
jle 0x100047642
sub r14d, ecx
shl r14d, 3
mov ecx, r14d
shr esi, cl
shl esi, cl
mov r8, qword [rsp + 0x40]
mov r11, qword [rsp + 0x20]
mov r14d, dword [rsp + 0x38]
mov r13, r15
shr r13, 3
test r13, r13
je 0x100047587
mov r12d, dword [rsp + 0xa4]
movzx ecx, r12w
mov dword [rsp + 0x38], ecx
movzx ecx, word [rsp + 0xa6]
neg ecx
mov dword [rsp + 0x50], ecx
mov r15d, dword [rsp + 0x50]
movzx ecx, ax
mov dword [rsp + 0x28], ecx
mov edx, eax
movzx ecx, byte [r8 + 1]
movzx r9d, byte [r8 + 4]
movzx r10d, byte [r8]
add r8, 8
shl r10d, 8
shl r9d, 8
or r10d, ecx
movzx ecx, byte [r8 - 6]
shl r10d, 8
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
shl r9d, 8
movzx ecx, byte [r8 - 1]
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
mov r8d, ebp
ror r8d, 0xa
movzx ecx, word [rsp + 0xa2]
imul ecx, edx
add r8d, ecx
xor esi, r8d
movzx ecx, word [rsp + 0xa6]
mov edx, esi
mov r8d, esi
xor r8d, ecx
mov ecx, dword [rsp + 0x28]
rol r8d, 2
ror edx, 0x10
imul ecx, r8d
movzx r8d, word [rsp + 0xa6]
xor edx, ecx
xor ebp, edx
mov edx, eax
xor edx, ebp
rol edx, 8
mov ecx, ebp
rol ecx, 6
imul edx, r8d
add ecx, edx
xor esi, ecx
mov edx, esi
movzx ecx, word [rsp + 0xa2]
xor ecx, esi
ror edx, 6
imul ecx, dword [rsp + 0x38]
add edx, ecx
movzx ecx, word [rsp + 0xa2]
xor ebp, edx
mov edx, ebp
mov r8d, 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 + 0xa6]
mov ecx, ebp
sub ecx, eax
sub ecx, edx
xor esi, ecx
mov r8d, esi
mov ecx, dword [rsp + 0x38]
mov edx, esi
sub r8d, eax
ror r8d, 0xe
rol edx, 1
imul ecx, r8d
add edx, ecx
xor ebp, edx
mov r8, qword [rsp + 0x40]
mov ecx, ebp
not ecx
movzx edx, word [rsp + 0xa2]
ror ecx, 0xd
add ecx, edx
imul ecx, dword [rsp + 0x38]
xor esi, ecx
lea ecx, [r15 + rsi]
rol ecx, 4
mov edx, dword [rsp + 0x28]
imul edx, ecx
mov ecx, esi
xor esi, ebx
mov ebx, r9d
shr ecx, 0xc
mov byte [r11 + 7], sil
xor edx, ecx
xor edx, r14d
mov r14d, r10d
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
mov byte [r11 + 1], bpl
xor dil, sil
ror esi, 8
mov byte [r11 + 5], sil
xor dil, bpl
ror ebp, 8
mov byte [r11], bpl
xor dil, sil
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 0x10004738d
mov r12, qword [rsp + 0x80]
mov r15, qword [rsp + 0x70]
cmp dil, byte [r15 + r12 + 8]
je 0x10004767c
call fcn.1000de678
mov ebx, 0xffff
mov rbp, qword [rsp + 0x78]
lea r10, [0x100046aec]
mov rsi, qword [rsp + 0x88]
mov r11, rax
mov qword [rbp + 0x10], r10
mov r8, rsi
and r8, 0xfffffffffffffff8
mov rcx, qword [0x100346e50]
mov rax, 0xfffffffffffff000
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 0x1000475db
movabs rax, 0x8000800080008001
mov qword [0x100346e50], rcx
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 0x100047672
xor esi, esi
test ecx, ecx
jns 0x100047344
neg ecx
shl ecx, 3
shr ebp, cl
shl ebp, cl
jmp 0x100047344
mov esi, ebp
mov r14d, ebx
not ebx
jmp 0x100047353
mov rax, qword [rsp + 0x68]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x100047666
jmp 0x10004779c
mov rbp, qword [rsp + 0x60]
mov rbx, r12
lea r14, [0x100000000]
mov rsi, r14
mov rax, qword [0x100037580]
sub rbx, rbp
sub rsi, rax
jne 0x1000476a6
test rbx, rbx
je 0x100047779
mov rcx, qword [0x100021bc8]
xor edi, edi
lea r8d, [rcx - 1]
mov r11, rbp
sub r11, r12
sub r12d, r14d
lea r13d, [r15 + r12]
lea r15, [0x100021bc8]
test r8d, r8d
js 0x1000476f9
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 0x1000476ef
lea r8d, [rax - 1]
jmp 0x1000476f4
jbe 0x1000476fe
lea edi, [rax + 1]
cmp r8d, edi
jge 0x1000476cc
movsxd r10, edi
jmp 0x100047772
movsxd r10, eax
jmp 0x100047772
mov edx, dword [r15 + r10*4 + 4]
mov eax, edx
and eax, 0xfffffff
cmp eax, r13d
jae 0x100047779
mov edi, edx
mov r8, rdx
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 0x10004774e
sub edi, 1
je 0x100047749
cmp edi, 1
jne 0x100047754
mov r9, rsi
jmp 0x100047754
mov r9, rbx
jmp 0x100047754
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x100047764
cmp edx, 1
jne 0x10004776f
add qword [r8 + r11], r9
jmp 0x100047768
add dword [r8 + r11], r9d
mov rcx, qword [0x100021bc8]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x100047703
mov eax, dword [0x1000d5e38]
mov eax, 0x32a519e9
mov r10, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x88]
add r10, rbp
mov rbp, qword [rsp + 0x78]
mov qword [rbp + 0x10], r10
add qword [rsi], 0xd
mov rcx, qword [rsp + 0xa8]
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