Function at 0x140004a70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
sub rsp, 0x80
cmp byte [rcx + 8], 0
mov r11, r8
mov r9, rdx
mov rbx, rcx
je 0x140004de7
mov eax, dword [rcx + 0x3d0]
cmp eax, 0x10
jne 0x140004aa8
add rsp, 0x80
pop rbx
jmp 0x1401240e0
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x78], rsi
cdq
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], r12
and edx, 3
add eax, edx
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r14
sar eax, 2
mov qword [rsp + 0x50], r15
movsxd rsi, eax
xor eax, eax
cmp esi, 4
je 0x140004ae9
cmp esi, 6
setne al
inc eax
lea rcx, [0x140000000]
cdqe
lea r15, [rbx + 0x458]
shl rax, 5
mov rdx, r15
mov rbp, rsi
mov r14d, dword [rax + rcx + 0x146eac]
mov edi, dword [rax + rcx + 0x146eb4]
mov r13d, dword [rax + rcx + 0x146ebc]
mov dword [rsp + 0x24], r14d
mov dword [rsp + 0xa8], edi
mov dword [rsp + 0x20], r13d
test esi, esi
jle 0x140004b82
lea r8, [rbx + 0x1ec]
mov r10, rsi
nop dword [rax]
movzx eax, byte [r9]
mov rcx, rdx
add rdx, 4
shl eax, 0x18
lea r9, [r9 + 4]
lea r8, [r8 + 4]
mov dword [rdx - 4], eax
movzx eax, byte [r9 - 3]
shl eax, 0x10
or dword [rdx - 4], eax
movzx eax, byte [r9 - 2]
shl eax, 8
or dword [rdx - 4], eax
movzx eax, byte [r9 - 1]
or dword [rdx - 4], eax
mov eax, dword [r8 - 4]
xor dword [rcx], eax
dec r10
jne 0x140004b40
mov r12d, 1
mov dword [rsp + 0x90], r12d
cmp dword [rbx + 0x3d4], r12d
jle 0x140004cdc
lea eax, [rsi*4]
lea rcx, [rbx + 0x438]
mov edi, 0x22c
cdqe
lea r13, [rbx + 0x20c]
mov qword [rsp + 0x28], rax
nop
test rbp, rbp
jle 0x140004c8e
mov r10d, dword [rsp + 0xa8]
mov r11d, dword [rsp + 0x20]
mov ebp, r14d
sub r10d, r14d
sub r11d, r14d
mov r15, r13
mov r14, rsi
lea r12, [0x140000000]
nop dword [rax]
lea eax, [r10 + rbp]
lea r15, [r15 + 4]
cdq
idiv esi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
lea eax, [r11 + rbp]
cdq
sar rcx, 8
movzx r8d, cl
idiv esi
mov r9d, dword [r12 + r8*4 + 0x149100]
movsxd rax, edx
movzx ecx, byte [rbx + rax*4 + 0x458]
mov eax, ebp
inc ebp
xor r9d, dword [r12 + rcx*4 + 0x145a80]
cdq
idiv esi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
sar rcx, 0x10
movzx eax, cl
xor r9d, dword [r12 + rax*4 + 0x148d00]
movzx eax, byte [r15 + rdi + 0x1f]
xor r9d, dword [r12 + rax*4 + 0x148900]
xor r9d, dword [r15 - 4]
mov dword [r15 + rdi - 4], r9d
dec r14
jne 0x140004bf0
mov r14d, dword [rsp + 0x24]
mov r12d, dword [rsp + 0x90]
mov rax, qword [rsp + 0x28]
mov rbp, rsi
lea r15, [rbx + 0x458]
lea rcx, [rbx + 0x438]
mov rdx, rcx
mov r8, rax
mov rcx, r15
call fcn.1400523b0
mov rax, qword [rsp + 0x28]
inc r12d
add r13, 0x20
sub rdi, 0x20
mov dword [rsp + 0x90], r12d
lea rcx, [rbx + 0x438]
cmp r12d, dword [rbx + 0x3d4]
jl 0x140004bc0
mov r11, qword [rsp + 0xa0]
mov edi, dword [rsp + 0xa8]
mov r13d, dword [rsp + 0x20]
mov r12, qword [rsp + 0x68]
test rbp, rbp
jle 0x140004dbd
sub r14d, edi
sub r13d, edi
lea r10, [0x140000000]
xor r9d, r9d
nop word [rax + rax]
movsxd rax, dword [rbx + 0x3d4]
lea r11, [r11 + 4]
lea r15, [r15 + 4]
lea rcx, [r9 + rax*8]
movzx eax, byte [r15 - 1]
inc r9
movzx eax, byte [rax + r10 + 0x147800]
mov r8d, dword [rbx + rcx*4 + 0x1ec]
mov ecx, r8d
sar ecx, 0x18
xor al, cl
mov byte [r11 - 4], al
lea eax, [r14 + rdi]
cdq
idiv esi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
sar rcx, 0x10
movzx eax, cl
mov ecx, r8d
movzx eax, byte [rax + r10 + 0x147800]
sar ecx, 0x10
xor al, cl
mov byte [r11 - 3], al
mov eax, edi
cdq
idiv esi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
sar rcx, 8
movzx eax, cl
mov ecx, r8d
movzx eax, byte [rax + r10 + 0x147800]
sar ecx, 8
xor al, cl
mov byte [r11 - 2], al
lea eax, [rdi + r13]
inc edi
cdq
idiv esi
movsxd rax, edx
movzx ecx, byte [rbx + rax*4 + 0x458]
movzx eax, byte [rcx + r10 + 0x147800]
xor al, r8b
mov byte [r11 - 1], al
cmp r9, rbp
jl 0x140004d00
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x98]
mov r15, qword [rsp + 0x50]
add rsp, 0x80
pop rbx
ret
lea rdx, [0x140176030]
lea rcx, [rsp + 0x30]
call fcn.140053f8c
lea rdx, [0x140174138]
lea rcx, [rsp + 0x30]
call fcn.140054228
int3
mov rax, rsp
mov qword [rax + 0x18], r8
push r13
push r14
sub rsp, 0x58
cmp byte [rcx + 8], 0
mov r13, r8
mov r14, rcx
je 0x14012452a
movzx r9d, byte [rdx]
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
movzx ebp, byte [rdx + 0xe]
mov qword [rax + 0x20], rsi
movzx esi, byte [rdx + 8]
mov qword [rax - 0x18], rdi
movzx edi, byte [rdx + 4]
mov qword [rax - 0x20], r12
mov qword [rax - 0x28], r15
movzx eax, byte [rdx + 1]
movsxd r15, dword [r14 + 0x3d4]
shl eax, 0x10
shl r9d, 0x18
shl edi, 0x18
or r9d, eax
movzx eax, byte [rdx + 2]
shl esi, 0x18
shl eax, 8
shl ebp, 8
lea r12, [0x140000000]
or r9d, eax
movzx eax, byte [rdx + 3]
or r9d, eax
movzx eax, byte [rdx + 5]
xor r9d, dword [rcx + 0x1ec]
shl eax, 0x10
or edi, eax
movzx eax, byte [rdx + 6]
shl eax, 8
or edi, eax
movzx eax, byte [rdx + 7]
or edi, eax
movzx eax, byte [rdx + 9]
xor edi, dword [rcx + 0x1f0]
shl eax, 0x10
or esi, eax
movzx eax, byte [rdx + 0xa]
shl eax, 8
or esi, eax
movzx eax, byte [rdx + 0xb]
or esi, eax
movzx eax, byte [rdx + 0xd]
xor esi, dword [rcx + 0x1f4]
movzx ecx, byte [rdx + 0xc]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [rdx + 0xf]
or ebp, eax
or ebp, ecx
xor ebp, dword [r14 + 0x1f8]
cmp r15, 1
jle 0x140124317
lea rbx, [r14 + 0x214]
lea r12, [r15 - 1]
lea r13, [0x140000000]
nop dword [rax + rax]
movsxd r9, r9d
movsxd r11, edi
movsxd r10, ebp
movsxd r8, esi
mov rax, r9
lea rbx, [rbx + 0x20]
sar rax, 0x10
movzx edx, al
mov rax, r11
mov edi, dword [r13 + rdx*4 + 0x148d00]
sar rax, 0x18
movzx ecx, al
mov rax, r10
xor edi, dword [r13 + rcx*4 + 0x148900]
sar rax, 8
movzx ecx, al
movzx eax, r8b
xor edi, dword [r13 + rcx*4 + 0x149100]
xor edi, dword [r13 + rax*4 + 0x145a80]
mov rax, r8
xor edi, dword [rbx - 0x24]
sar rax, 0x18
movzx edx, al
mov rax, r9
mov esi, dword [r13 + rdx*4 + 0x148900]
sar rax, 8
movzx ecx, al
mov rax, r11
xor esi, dword [r13 + rcx*4 + 0x149100]
sar rax, 0x10
movzx ecx, al
movzx eax, r10b
xor esi, dword [r13 + rcx*4 + 0x148d00]
xor esi, dword [r13 + rax*4 + 0x145a80]
mov rax, r8
sar r8, 8
xor esi, dword [rbx - 0x20]
sar rax, 0x10
movzx edx, al
mov rax, r11
mov ebp, dword [r13 + rdx*4 + 0x148d00]
sar rax, 8
movzx ecx, al
mov rax, r10
sar r10, 0x10
xor ebp, dword [r13 + rcx*4 + 0x149100]
sar rax, 0x18
movzx ecx, al
movzx eax, r9b
sar r9, 0x18
xor ebp, dword [r13 + rcx*4 + 0x148900]
movzx ecx, r8b
xor ebp, dword [r13 + rax*4 + 0x145a80]
movzx eax, r9b
mov r9d, dword [r13 + rcx*4 + 0x149100]
xor r9d, dword [r13 + rax*4 + 0x148900]
xor ebp, dword [rbx - 0x1c]
movzx eax, r10b
xor r9d, dword [r13 + rax*4 + 0x148d00]
movzx eax, r11b
xor r9d, dword [r13 + rax*4 + 0x145a80]
xor r9d, dword [rbx - 0x28]
dec r12
jne 0x1401241e0
mov r13, qword [rsp + 0x80]
lea r12, [0x140000000]
movsxd rbx, r9d
shl r15, 5
movsxd r10, esi
mov r8d, dword [r15 + r14 + 0x1ec]
movsxd r11, ebp
movsxd r9, edi
mov ecx, r8d
mov rax, rbx
sar rax, 0x18
sar ecx, 0x18
movzx edx, al
movzx eax, byte [rdx + r12 + 0x147800]
xor al, cl
mov ecx, r8d
mov byte [r13], al
sar ecx, 0x10
mov rax, r11
sar rax, 0x10
movzx edx, al
movzx eax, byte [rdx + r12 + 0x147800]
xor al, cl
mov ecx, r8d
mov byte [r13 + 1], al
sar ecx, 8
mov rax, r10
sar rax, 8
movzx edx, al
movzx eax, byte [rdx + r12 + 0x147800]
xor al, cl
mov byte [r13 + 2], al
movzx eax, r9b
movzx eax, byte [rax + r12 + 0x147800]
xor al, r8b
mov byte [r13 + 3], al
mov r8d, dword [r15 + r14 + 0x1f0]
mov rax, r9
sar rax, 0x18
mov ecx, r8d
movzx edx, al
sar ecx, 0x18
movzx eax, byte [rdx + r12 + 0x147800]
xor al, cl
mov ecx, r8d
mov byte [r13 + 4], al
sar ecx, 0x10
mov rax, rbx
sar rax, 0x10
movzx edx, al
movzx eax, byte [rdx + r12 + 0x147800]
xor al, cl
mov ecx, r8d
mov byte [r13 + 5], al
sar ecx, 8
mov rax, r11
sar rax, 8
movzx edx, al
movzx eax, byte [rdx + r12 + 0x147800]
xor al, cl
mov byte [r13 + 6], al
movzx eax, r10b
movzx eax, byte [rax + r12 + 0x147800]
xor al, r8b
mov byte [r13 + 7], al
mov r8d, dword [r15 + r14 + 0x1f4]
mov rax, r10
sar rax, 0x18
mov ecx, r8d
movzx edx, al
sar ecx, 0x18
movzx eax, byte [rdx + r12 + 0x147800]
xor al, cl
mov ecx, r8d
mov byte [r13 + 8], al
mov rax, r9
sar ecx, 0x10
sar rax, 0x10
movzx edx, al
movzx eax, byte [rdx + r12 + 0x147800]
xor al, cl
mov byte [r13 + 9], al
mov rax, rbx
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x78]
sar rax, 8
mov ecx, r8d
sar r10, 0x10
movzx edx, al
sar ecx, 8
sar r9, 8
movzx eax, byte [rdx + r12 + 0x147800]
xor al, cl
mov byte [r13 + 0xa], al
movzx eax, r11b
sar r11, 0x18
movzx eax, byte [rax + r12 + 0x147800]
xor al, r8b
mov byte [r13 + 0xb], al
mov edx, dword [r15 + r14 + 0x1f8]
mov r15, qword [rsp + 0x40]
movzx eax, r11b
mov ecx, edx
movzx eax, byte [rax + r12 + 0x147800]
sar ecx, 0x18
xor al, cl
mov ecx, edx
mov byte [r13 + 0xc], al
sar ecx, 0x10
movzx eax, r10b
movzx eax, byte [rax + r12 + 0x147800]
xor al, cl
mov ecx, edx
mov byte [r13 + 0xd], al
movzx eax, r9b
sar ecx, 8
movzx eax, byte [rax + r12 + 0x147800]
xor al, cl
mov byte [r13 + 0xe], al
movzx eax, bl
mov rbx, qword [rsp + 0x70]
movzx eax, byte [rax + r12 + 0x147800]
mov r12, qword [rsp + 0x48]
xor al, dl
mov byte [r13 + 0xf], al
add rsp, 0x58
pop r14
pop r13
ret
lea rdx, [0x140176030]
lea rcx, [rsp + 0x20]
call fcn.140053f8c
lea rdx, [0x140174138]
lea rcx, [rsp + 0x20]
call fcn.140054228
int3