Function at 0x100041ca4
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
mov r15d, 0xfffffff
lea r8, section..data
mov qword [rsp + 0x88], rcx
lea r14, [0x100000000]
lea rax, [rcx + 0x18]
mov qword [rsp + 0x90], rax
mov rax, qword [rax]
lea r9, [rax + 0xd]
mov ebx, dword [rax + 9]
mov ebp, dword [rax + 5]
mov ecx, dword [rax + 1]
mov qword [rsp + 0x70], rdx
lea rdi, [r9 - 1]
and rbp, r15
and rcx, r15
and rbx, r15
add rbp, r14
xor r13d, r13d
cmp rdi, r8
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0x58], rbx
jb 0x100041d70
mov ecx, dword [0x100172988]
mov eax, dword [0x1000d5e38]
imul ecx, eax
mov eax, ecx
add rax, r8
cmp rdi, rax
jae 0x100041d70
mov rax, rdi
mov ecx, dword [0x1000d5e38]
sub rax, r8
cqo
idiv rcx
mov edx, dword [0x1000d5e38]
imul rdx, rax
add r8, rdx
jmp 0x100041d73
mov r8, r13
cmp r8, r13
jne 0x100041d82
mov r8, rdi
and r8, 0xffffffffffff0000
sub r9, r8
lea rax, [r9 - 0x40]
cmp rax, r13
mov r9d, dword [0x1000d5e38]
mov r12d, ebp
cmovl rax, r13
lea rdi, [rax + r8]
sub r9, rbx
sub r12d, r14d
mov dword [rsp + 0x20], r12d
xor eax, eax
lea ecx, [rax + 0x40]
rep stosb byte [rdi], al
inc r9
cmp r9, r13
mov rdi, r9
je 0x100041df1
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, r13
jne 0x100041dc2
mov qword [0x100346e50], rcx
xor edx, edx
div r9
mov ecx, r12d
lea rsi, [rdx + r8]
mov qword [rsp + 0x60], rsi
mov rdx, rbx
mov r8, rsi
mov eax, 0x67f8d9c
lea rcx, [rsp + 0x68]
mov rdx, qword [rbx + rbp]
mov qword [rsp + 0x68], rdx
mov dil, r13b
mov eax, 0x31f93584
mov r9d, dword [rsp + 0x6c]
mov rax, qword [0x100037580]
mov r11, 0xfffffffffffff000
mov rcx, r14
mov r10, qword [rsp + 0x68]
mov qword [rsp + 0x28], r13
and r10, r15
and r9, r15
add r10, r14
sub rcx, rax
mov qword [rsp + 0x78], rcx
mov r15d, 4
jne 0x100041ebb
cmp r9, r13
mov r8, r13
jbe 0x10004216a
mov ecx, dword [rsp + 0x2c]
mov r14d, 0x3d5e919b
mov edx, dword [rsp + 0x28]
movzx eax, byte [r8 + r10]
inc r8
add eax, r14d
add edx, eax
add eax, ecx
imul eax, eax, 0x3d5e919b
ror eax, 0x13
imul eax, eax, 0x3d5e919b
ror eax, 0x13
mov ecx, eax
imul ecx, ecx, 0x5653
rol ecx, 0xb
ror eax, 0xb
xor ecx, eax
add edx, ecx
cmp r8, r9
jb 0x100041e76
mov dword [rsp + 0x2c], ecx
mov dword [rsp + 0x28], edx
jmp 0x10004216a
lea rax, [r10 + r9]
movsxd rcx, dword [0x10000003c]
mov r8d, dword [rcx + r14 + 0xb0]
add r8, r14
mov ecx, dword [rcx + r14 + 0xb4]
mov qword [rsp + 0x50], rax
mov eax, r10d
sub eax, r14d
mov esi, eax
mov r12d, eax
add rax, r9
mov r13, rax
and rsi, r11
and r13, r11
sub r12, rsi
sub rax, r13
add rcx, r8
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
jmp 0x100041f19
mov eax, dword [r8]
cmp rax, rsi
jae 0x100041f1e
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x100041f0a
xor r11d, r11d
cmp r8, rcx
je 0x100041f5d
mov eax, dword [r8]
cmp rax, rsi
jne 0x100041f5d
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x100041f58
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, r12
jae 0x100041f58
inc r11
add rdx, 2
cmp r11, rcx
jne 0x100041f3f
mov rcx, qword [rsp + 0x30]
mov edx, dword [rsp + 0x2c]
lea rdi, [0x100000000]
mov r9d, dword [rsp + 0x28]
mov r14d, 0x3d5e919b
mov rbp, qword [rsp + 0x78]
cmp r8, rcx
je 0x1000420fd
mov eax, dword [r8]
cmp rax, r13
ja 0x1000420fd
mov ebx, dword [r8 + 4]
lea rax, [rbx - 8]
shr rax, 1
cmp r11, rax
jne 0x100041fba
add r8, rbx
cmp r8, rcx
je 0x1000420fd
mov eax, dword [r8]
cmp rax, r13
ja 0x1000420fd
xor r11d, r11d
jmp 0x100041f8d
mov eax, dword [r8]
cmp rax, r13
jne 0x100041fd8
movzx eax, word [r8 + r11*2 + 8]
and eax, 0xfff
cmp rax, qword [rsp + 0x38]
jae 0x1000420fd
mov rax, r11
inc r11
mov ebx, 0xf000
test word [r8 + rax*2 + 8], bx
je 0x100041f78
movzx ecx, word [r8 + rax*2 + 8]
xor r12d, r12d
mov esi, ecx
and esi, 0xfff
add esi, dword [r8]
add rsi, rdi
mov rax, rsi
sub rax, r10
je 0x100042050
mov rbx, rax
movzx eax, byte [r12 + r10]
inc r12
add eax, r14d
add r9d, eax
add eax, edx
imul eax, eax, 0x3d5e919b
ror eax, 0x13
imul eax, eax, 0x3d5e919b
ror eax, 0x13
mov edx, eax
imul edx, edx, 0x5653
rol edx, 0xb
ror eax, 0xb
xor edx, eax
add r9d, edx
cmp r12, rbx
jb 0x10004200d
mov dword [rsp + 0x2c], edx
mov dword [rsp + 0x28], r9d
mov rax, qword [rsi]
mov qword [rsp + 0x48], rax
shr ecx, 0xc
cmp ecx, 3
je 0x10004206e
sub ecx, 0xa
neg ecx
sbb r10d, r10d
add r10d, 3
jmp 0x100042074
mov r10d, 2
mov r12, rbp
neg r12
sub r10d, 2
je 0x10004209b
cmp r10d, 1
je 0x10004208c
or rcx, 0xffffffffffffffff
jmp 0x1000420a3
mov ecx, 8
add rax, r12
mov qword [rsp + 0x48], rax
jmp 0x1000420a3
mov rcx, r15
add dword [rsp + 0x48], r12d
xor r10d, r10d
test rcx, rcx
je 0x1000420ef
movzx eax, byte [rsp + r10 + 0x48]
inc r10
add eax, r14d
add r9d, eax
add eax, edx
imul eax, eax, 0x3d5e919b
ror eax, 0x13
imul eax, eax, 0x3d5e919b
ror eax, 0x13
mov edx, eax
imul edx, edx, 0x5653
rol edx, 0xb
ror eax, 0xb
xor edx, eax
add r9d, edx
cmp r10, rcx
jb 0x1000420ab
mov dword [rsp + 0x2c], edx
mov dword [rsp + 0x28], r9d
lea r10, [rcx + rsi]
mov rcx, qword [rsp + 0x30]
jmp 0x100041f78
mov rbx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x80]
xor r13d, r13d
sub r8, r10
mov rcx, r13
mov dil, cl
je 0x100042160
movzx eax, byte [rcx + r10]
inc rcx
add eax, r14d
add r9d, eax
add eax, edx
imul eax, eax, 0x3d5e919b
ror eax, 0x13
imul eax, eax, 0x3d5e919b
ror eax, 0x13
mov edx, eax
imul edx, edx, 0x5653
rol edx, 0xb
ror eax, 0xb
xor edx, eax
add r9d, edx
cmp rcx, r8
jb 0x10004211d
mov dword [rsp + 0x2c], edx
mov dword [rsp + 0x28], r9d
mov rsi, qword [rsp + 0x60]
mov r12d, dword [rsp + 0x20]
mov rcx, r13
mov rax, rcx
inc rcx
and eax, 7
cmp rcx, 8
mov al, byte [rsp + rax + 0x28]
mov byte [rsp + rcx + 0x9f], al
jb 0x10004216d
mov eax, 0x831b395b
mov r13d, r12d
not r13d
mov r8, rbp
mov r11, rsi
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x38], rbp
mov r14, rbx
mov qword [rsp + 0x30], rsi
and r14d, 7
je 0x1000426b4
xor r9d, r9d
xor ebx, ebx
xor r11d, r11d
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x50], ebx
test r14d, r14d
jle 0x100042209
lea r10d, [r9 + 0x38]
cmp r11d, r15d
movzx edx, byte [r8]
jge 0x1000421e4
lea ecx, [r10 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x1000421ec
mov ecx, r10d
shl edx, cl
or r9d, edx
inc r11d
inc r8
sub r10d, 8
cmp r11d, r14d
jl 0x1000421d1
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x38], r8
movzx r11d, word [rsp + 0xa4]
movzx r9d, word [rsp + 0xa2]
mov ecx, r12d
movzx ebx, ax
movzx r10d, word [rsp + 0xa6]
sub ecx, r10d
sub ecx, eax
xor r13d, ecx
mov esi, r13d
mov ecx, ebx
xor ecx, r13d
ror esi, 0xe
imul ecx, r11d
xor esi, ecx
mov ecx, r10d
xor esi, r12d
mov edx, esi
xor ecx, esi
ror edx, 0xb
imul ecx, r9d
mov r12d, dword [rsp + 0xa4]
sub ecx, edx
xor r13d, ecx
mov r8d, r13d
sub r8d, r12d
ror r8d, 0xb
mov edx, r13d
rol edx, 3
mov ecx, ebx
imul ecx, r8d
add edx, ecx
mov r8d, r12d
xor esi, edx
mov ecx, r11d
mov edx, esi
xor ecx, esi
ror edx, 1
imul ecx, r10d
add edx, ecx
xor r13d, edx
mov edx, r9d
xor edx, r13d
mov ecx, r13d
shr ecx, 0xa
imul edx, r11d
add edx, ecx
xor esi, edx
mov edx, r12d
mov ecx, esi
xor r12d, eax
sub edx, esi
rol edx, 0xc
ror ecx, 0x10
imul r9d, edx
add ecx, r9d
xor r13d, ecx
mov ecx, ebx
mov edx, r13d
xor r8d, r13d
ror r8d, 8
ror edx, 0x10
imul ecx, r8d
add edx, ecx
mov ecx, ebx
xor esi, edx
mov edx, r10d
xor ecx, esi
rol ecx, 3
imul edx, ecx
mov ecx, esi
shr ecx, 0xc
add edx, ecx
xor r13d, edx
xor r12d, r13d
mov ecx, r13d
mov r13d, dword [rsp + 0x20]
ror ecx, 3
sub ecx, r11d
imul ecx, r10d
xor esi, ecx
xor r12d, esi
mov ecx, r12d
sub ecx, r11d
xor r9d, r9d
rol ecx, 5
imul ebx, ecx
mov ecx, r12d
xor r12d, r13d
shr ecx, 0xa
xor ebx, ecx
mov edx, r12d
mov ecx, dword [rsp + 0x50]
xor ebx, ecx
xor esi, ebx
test r14d, r14d
mov ecx, esi
jle 0x100042363
mov r8, qword [rsp + 0x30]
cmp r9d, r15d
jge 0x10004234a
rol ecx, 8
mov byte [r8], cl
inc r8
xor dil, cl
jmp 0x100042356
rol edx, 8
mov byte [r8], dl
inc r8
xor dil, dl
inc r9d
cmp r9d, r14d
jl 0x100042337
mov qword [rsp + 0x30], r8
lea ecx, [r14 - 4]
test ecx, ecx
jle 0x10004269b
sub r15d, ecx
shl r15d, 3
mov ecx, r15d
shr r12d, cl
shl r12d, cl
mov rbx, qword [rsp + 0x58]
mov r11, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov r14, rbx
shr r14, 3
test r14, r14
je 0x1000425dd
movzx edx, word [rsp + 0xa6]
mov r15d, dword [rsp + 0xa4]
mov ebx, dword [rsp + 0x50]
mov dword [rsp + 0x78], edx
mov ecx, r15d
xor ecx, eax
mov dword [rsp + 0x38], ecx
mov ebp, dword [rsp + 0x38]
movzx ecx, r15w
mov dword [rsp + 0x20], ecx
neg ecx
mov dword [rsp + 0x30], ecx
movzx ecx, ax
mov dword [rsp + 0x40], ecx
movzx r9d, byte [r8 + 4]
movzx ecx, byte [r8 + 1]
movzx r10d, byte [r8]
add r8, 8
shl r10d, 8
shl r9d, 8
or r10d, ecx
shl r10d, 8
movzx ecx, byte [r8 - 6]
mov qword [rsp + 0x38], r8
or r10d, ecx
shl r10d, 8
movzx ecx, byte [r8 - 5]
or r10d, ecx
movzx ecx, byte [r8 - 3]
or r9d, ecx
xor esi, r10d
movzx ecx, byte [r8 - 2]
shl r9d, 8
or r9d, ecx
movzx ecx, byte [r8 - 1]
movzx r8d, word [rsp + 0xa2]
shl r9d, 8
or r9d, ecx
mov ecx, esi
sub ecx, edx
sub ecx, eax
xor ecx, r9d
xor r12d, ecx
mov ecx, dword [rsp + 0x40]
mov edx, r12d
xor ecx, r12d
ror edx, 0xe
imul ecx, dword [rsp + 0x20]
xor edx, ecx
movzx ecx, word [rsp + 0xa6]
xor esi, edx
mov edx, esi
xor ecx, esi
ror edx, 0xb
imul ecx, r8d
sub ecx, edx
xor r12d, ecx
mov edx, r12d
mov ecx, dword [rsp + 0x40]
mov r8d, r12d
sub r8d, r15d
ror r8d, 0xb
rol edx, 3
imul ecx, r8d
add edx, ecx
mov r8d, dword [rsp + 0x20]
xor esi, edx
mov ecx, r8d
xor ecx, esi
mov edx, esi
ror edx, 1
imul ecx, dword [rsp + 0x78]
add edx, ecx
xor r12d, edx
movzx edx, word [rsp + 0xa2]
mov ecx, r12d
xor edx, r12d
shr ecx, 0xa
imul edx, r8d
mov r8d, r15d
add edx, ecx
movzx ecx, word [rsp + 0xa2]
xor esi, edx
mov edx, esi
sub r8d, esi
rol r8d, 0xc
ror edx, 0x10
imul ecx, r8d
mov r8d, r15d
add edx, ecx
xor r12d, edx
mov edx, r12d
mov ecx, dword [rsp + 0x40]
xor r8d, r12d
ror r8d, 8
ror edx, 0x10
imul ecx, r8d
add edx, ecx
movzx r8d, word [rsp + 0xa6]
xor esi, edx
mov edx, r8d
mov ecx, dword [rsp + 0x40]
xor ecx, esi
rol ecx, 3
imul edx, ecx
mov ecx, esi
shr ecx, 0xc
add edx, ecx
xor r12d, edx
mov ecx, r12d
xor r12d, ebp
ror ecx, 3
sub ecx, dword [rsp + 0x20]
mov edx, dword [rsp + 0x40]
imul ecx, r8d
xor esi, ecx
xor r12d, esi
mov r8, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
add ecx, r12d
rol ecx, 5
imul edx, ecx
mov ecx, r12d
xor r12d, r13d
shr ecx, 0xa
mov r13d, r9d
xor edx, ecx
xor edx, ebx
xor esi, edx
mov ebx, r10d
mov byte [r11 + 7], r12b
xor dil, sil
movzx edx, word [rsp + 0xa6]
mov byte [r11 + 3], sil
ror esi, 8
mov byte [r11 + 2], sil
xor dil, r12b
ror r12d, 8
xor dil, sil
mov byte [r11 + 6], r12b
ror esi, 8
xor dil, r12b
ror r12d, 8
mov byte [r11 + 1], sil
xor dil, sil
mov byte [r11 + 5], r12b
ror esi, 8
mov byte [r11], sil
xor dil, r12b
ror r12d, 8
mov cl, r12b
mov byte [r11 + 4], r12b
add r11, 8
xor cl, sil
xor dil, cl
ror esi, 8
ror r12d, 8
sub r14, 1
jne 0x1000423d8
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x80]
cmp dil, byte [rbx + rbp + 8]
je 0x1000426d9
call fcn.1000de678
mov rbp, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x90]
mov r11, rax
mov r8, rsi
mov ebx, 0xffff
lea r10, [0x100046aec]
mov rax, 0xfffffffffffff000
and r8, 0xfffffffffffffff8
and r11, rax
mov qword [rbp + 0x10], r10
mov rcx, qword [0x100346e50]
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 0x100042634
movabs rax, 0x8000800080008001
mov qword [0x100346e50], rcx
mul rdi
shr rdx, 0xf
imul rdx, rdx, 0xffff
sub rdi, rdx
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x98], r11
inc rdi
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x70], rbx
jmp 0x1000426cf
xor r12d, r12d
test ecx, ecx
jns 0x10004237f
neg ecx
shl ecx, 3
shr esi, cl
shl esi, cl
jmp 0x10004237f
mov dword [rsp + 0x50], r12d
xor r12d, r12d
xor esi, esi
jmp 0x10004238e
mov rax, qword [rsp + 0x70]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x1000426c3
jmp 0x1000427fb
mov rax, qword [0x100037580]
lea r14, [0x100000000]
mov r12, r14
mov r13, qword [rsp + 0x60]
mov rsi, rbp
sub rsi, r13
sub r12, rax
jne 0x100042703
test rsi, rsi
je 0x1000427d3
xor edi, edi
mov r11, r13
mov rcx, qword [0x100021bc8]
sub r11, rbp
lea r8d, [rcx - 1]
sub ebp, r14d
lea r15, [0x100021bc8]
add ebx, ebp
test r8d, r8d
js 0x100042754
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 ebp, r9d
jae 0x10004274a
lea r8d, [rax - 1]
jmp 0x10004274f
jbe 0x100042759
lea edi, [rax + 1]
cmp r8d, edi
jge 0x100042727
movsxd r10, edi
jmp 0x1000427cc
movsxd r10, eax
jmp 0x1000427cc
mov edx, dword [r15 + r10*4 + 4]
mov eax, edx
and eax, 0xfffffff
cmp eax, ebx
jae 0x1000427d3
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 0x1000427a8
sub edi, 1
je 0x1000427a3
cmp edi, 1
jne 0x1000427ae
mov r9, r12
jmp 0x1000427ae
mov r9, rsi
jmp 0x1000427ae
mov r9, r12
sub r9, rsi
sub edx, 2
je 0x1000427be
cmp edx, 1
jne 0x1000427c9
add qword [r8 + r11], r9
jmp 0x1000427c2
add dword [r8 + r11], r9d
mov rcx, qword [0x100021bc8]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x10004275e
mov eax, dword [0x1000d5e38]
mov eax, 0x21c7bf2b
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x98]
lea r10, [r13 + rdx]
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