Function at 0x1400522c0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rbx
push rdi
push r13
push r15
lea rbp, [r11 - 0x47]
sub rsp, 0xf0
mov rax, qword [0x14049f410]
xor rax, rsp
mov qword [rbp - 1], rax
mov r15, qword [rbp + 0x7f]
mov rax, r9
mov qword [rbp - 0x59], rax
mov r13, r8
mov qword [rbp - 0x71], r15
mov rdi, rdx
mov qword [rbp - 0x79], r8
mov ebx, 0x61
mov qword [rbp - 0x61], rcx
test rdx, rdx
je 0x140052a75
mov qword [r11 + 0x18], rsi
mov esi, dword [rdx + 4]
test esi, esi
je 0x140052a6d
mov qword [r11 - 0x38], r14
mov r14d, dword [rdx + 8]
test r14d, r14d
je 0x140052a65
cmp dword [rdx], 0
je 0x140052a65
cmp qword [rdx + 0x18], 0
je 0x140052344
cmp dword [rdx + 0x10], 0
jne 0x140052373
cmp qword [rdx + 0x28], 0
je 0x140052351
cmp dword [rdx + 0x20], 0
jne 0x140052373
cmp qword [rdx + 0x38], 0
je 0x14005235e
cmp dword [rdx + 0x30], 0
jne 0x140052373
cmp qword [rdx + 0x48], 0
je 0x140052a65
cmp dword [rdx + 0x40], 0
je 0x140052a65
test rax, rax
je 0x140052a65
cmp dword [r9 + 4], 0
je 0x140052a65
cmp dword [r9 + 8], 0
je 0x140052a65
cmp dword [r9], 0
je 0x140052a65
cmp qword [r9 + 0x18], 0
je 0x1400523aa
cmp dword [r9 + 0x10], 0
jne 0x1400523dc
cmp qword [r9 + 0x28], 0
je 0x1400523b8
cmp dword [r9 + 0x20], 0
jne 0x1400523dc
cmp qword [r9 + 0x38], 0
je 0x1400523c6
cmp dword [r9 + 0x30], 0
jne 0x1400523dc
cmp qword [r9 + 0x48], 0
je 0x140052a65
cmp dword [r9 + 0x40], 0
je 0x140052a65
test r13, r13
je 0x140052a65
cmp dword [r8 + 4], 0
je 0x140052a65
cmp dword [r8 + 8], 0
je 0x140052a65
cmp dword [r8], 0
je 0x140052a65
cmp qword [r8 + 0x18], 0
je 0x140052413
cmp dword [r8 + 0x10], 0
jne 0x140052445
cmp qword [r8 + 0x28], 0
je 0x140052421
cmp dword [r8 + 0x20], 0
jne 0x140052445
cmp qword [r8 + 0x38], 0
je 0x14005242f
cmp dword [r8 + 0x30], 0
jne 0x140052445
cmp qword [r8 + 0x48], 0
je 0x140052a65
cmp dword [r8 + 0x40], 0
je 0x140052a65
mov rbx, qword [rcx + 8]
xorps xmm0, xmm0
mov edx, esi
mov qword [rsp + 0x48], rbx
imul edx, r14d
mov rcx, rbx
movups xmmword [rbp - 0x51], xmm0
mov rax, qword [rbx]
movups xmmword [rbp - 0x41], xmm0
movups xmmword [rbp - 0x31], xmm0
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp - 0x11], xmm0
call qword [rax + 8]
test rax, rax
je 0x140052a60
mov dword [rbp - 0x41], esi
mov edx, pe_nt_image_headers64
mov dword [rbp - 0x4d], esi
mov rcx, rax
imul esi, r14d
mov qword [rbp - 0x39], rax
mov dword [rbp - 0x49], r14d
mov dword [rbp - 0x51], 0x40000001
mov r8d, esi
call fcn.1400fd5ea
lea rax, [rbp - 0x51]
xor r9d, r9d
mov r8b, 2
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbx
call fcn.1400a5190
mov ebx, eax
test eax, eax
jne 0x140052728
mov ecx, dword [rdi + 4]
mov r8d, 3
mov r9, qword [rbp - 0x39]
mov eax, 0x2f684bdb
mov r14d, dword [rbp - 0x4d]
mov esi, dword [rbp - 0x51]
mul ecx
mov eax, ecx
mov qword [rsp + 0xe8], r12
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 4
cmp eax, r8d
cmovl eax, r8d
mov dword [rsp + 0x50], eax
mov eax, 0x323e34a3
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
mov edx, dword [r13 + 4]
shr ecx, 6
cmp ecx, r8d
cmovl ecx, r8d
mov dword [rbp - 0x7d], ecx
test edx, edx
je 0x1400525e5
mov eax, dword [r13 + 8]
test eax, eax
je 0x1400525e5
cmp dword [r13], ebx
je 0x1400525e5
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x14005254e
cmp dword [r13 + 0x10], ebx
jne 0x140052578
cmp qword [r13 + 0x28], 0
je 0x14005255c
cmp dword [r13 + 0x20], 0
jne 0x140052578
cmp qword [r13 + 0x38], 0
je 0x14005256a
cmp dword [r13 + 0x30], 0
jne 0x140052578
cmp qword [r13 + 0x48], 0
je 0x1400525e5
cmp dword [r13 + 0x40], 0
je 0x1400525e5
mov r8d, dword [rbp - 0x49]
test r14d, r14d
je 0x1400525e9
test r8d, r8d
je 0x1400525e9
test esi, esi
je 0x1400525e9
test r9, r9
je 0x140052595
cmp dword [rbp - 0x41], 0
jne 0x1400525bc
cmp qword [rbp - 0x29], 0
je 0x1400525a2
cmp dword [rbp - 0x31], 0
jne 0x1400525bc
cmp qword [rbp - 0x19], 0
je 0x1400525af
cmp dword [rbp - 0x21], 0
jne 0x1400525bc
cmp qword [rbp - 9], 0
je 0x1400525e9
cmp dword [rbp - 0x11], 0
je 0x1400525e9
cmp r14d, edx
jne 0x1400525e9
cmp r8d, eax
jne 0x1400525e9
mov edx, r14d
mov rax, r9
imul edx, r8d
cmp byte [rcx], 0
ja 0x1400525d8
mov byte [rax], 0xff
inc rcx
inc rax
sub edx, 1
jne 0x1400525d0
jmp 0x1400525e9
mov r8d, dword [rbp - 0x49]
xor r12d, r12d
mov eax, esi
shr eax, 0x14
mov ebx, r12d
and eax, 3
mov dword [rsp + 0x38], r12d
inc eax
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x40], eax
test r15, r15
je 0x14005271b
test r14d, r14d
je 0x14005271b
test r8d, r8d
je 0x14005271b
test esi, esi
je 0x14005271b
cmp esi, 0x30200001
jg 0x1400526fb
je 0x1400526de
cmp esi, 0x20100001
jg 0x140052699
je 0x140052684
cmp esi, 0x10000001
je 0x14005275d
cmp esi, 0x10200001
je 0x140052672
lea eax, [rsi - 0x20000001]
cmp eax, 1
ja 0x14005271b
lea edi, [r14 + r14]
jmp 0x140052761
mov edi, r14d
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x38], r14d
jmp 0x140052761
lea eax, [r14 + r14]
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x38], eax
mov edi, r14d
jmp 0x140052761
cmp esi, 0x20200001
je 0x1400526c5
lea eax, [rsi - 0x30100001]
cmp eax, 1
ja 0x14005271b
mov eax, r8d
mov dword [rsp + 0x38], r14d
cdq
mov edi, r14d
sub eax, edx
sar eax, 1
mov dword [rsp + 0x30], eax
jmp 0x140052761
mov eax, r14d
mov dword [rsp + 0x30], r8d
cdq
mov edi, r14d
sub eax, edx
sar eax, 1
mov dword [rsp + 0x38], eax
jmp 0x140052761
mov eax, r14d
mov edi, r14d
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x38], eax
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x30], eax
jmp 0x140052761
cmp esi, 0x50000004
jg 0x140052740
cmp esi, 0x50000003
jge 0x140052753
cmp esi, 0x40000001
je 0x14005273b
cmp esi, 0x50000001
je 0x14005275d
mov ebx, 0xfffffffc
mov r12, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x51]
call fcn.140081c90
jmp 0x140052a65
mov edi, r14d
jmp 0x140052761
cmp esi, 0x50000009
je 0x14005275d
lea eax, [rsi - 0x5000000b]
cmp eax, 1
ja 0x14005271b
lea edi, [r14*4]
jmp 0x140052761
lea edi, [r14 + r14*2]
mov rcx, qword [rsp + 0x48]
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov edx, edi
movups xmmword [r15 + 0x10], xmm0
movups xmmword [r15 + 0x20], xmm0
movups xmmword [r15 + 0x30], xmm0
movups xmmword [r15 + 0x40], xmm0
mov rax, qword [rcx]
imul edx, r8d
call qword [rax + 8]
test rax, rax
je 0x140052805
mov r14d, 1
mov qword [r15 + 0x18], rax
mov dword [r15 + 0x10], edi
cmp dword [rsp + 0x40], r14d
jbe 0x1400527f1
mov ecx, dword [rsp + 0x30]
lea rdi, [r15 + 0x20]
imul ecx, dword [rsp + 0x38]
mov dword [rsp + 0x30], ecx
nop dword [rax + rax]
mov r8, qword [rsp + 0x48]
mov edx, ecx
mov rcx, r8
mov rax, qword [r8]
call qword [rax + 8]
test rax, rax
je 0x14005280f
mov ecx, dword [rsp + 0x30]
inc r14d
mov qword [rdi + 8], rax
mov eax, dword [rsp + 0x38]
mov dword [rdi], eax
add rdi, 0x10
cmp r14d, dword [rsp + 0x40]
jb 0x1400527c0
mov r14d, dword [rbp - 0x4d]
mov eax, dword [rbp - 0x49]
mov dword [r15 + 4], r14d
mov dword [r15 + 8], eax
mov dword [r15], esi
jmp 0x140052865
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140052845
jmp 0x140052817
mov r14d, dword [rbp - 0x4d]
mov eax, dword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
lea rbx, [r15 + 0x18]
mov edi, eax
mov rdx, qword [rbx]
test rdx, rdx
je 0x140052837
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x10]
mov qword [rbx], r12
add rbx, 0x10
sub rdi, 1
jne 0x140052822
mov r13, qword [rbp - 0x79]
xorps xmm0, xmm0
mov ebx, 0xfffffffd
movups xmmword [r15], xmm0
movups xmmword [r15 + 0x10], xmm0
movups xmmword [r15 + 0x20], xmm0
movups xmmword [r15 + 0x30], xmm0
movups xmmword [r15 + 0x40], xmm0
test ebx, ebx
jne 0x140052720
mov eax, dword [r15]
shr eax, 0x14
and eax, 3
add eax, 1
mov qword [rsp + 0x38], rax
je 0x140052921
lea rax, [rbp - 0x51]
sub rax, r15
lea r8, [rbp - 0x49]
sub r8, r15
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x69], r8
lea r14, [r15 + 0x10]
nop
movsxd rdx, dword [rax + r14]
mov ecx, dword [r14]
cmp edx, ecx
mov esi, dword [r15 + 8]
cmovl ecx, edx
test r12, r12
je 0x1400528c6
mov eax, dword [r15]
and eax, 0xf0000000
cmp eax, 0x30000000
jne 0x1400528c6
sar esi, 1
mov rbx, qword [r8 + r14]
mov r15, rdx
mov rdi, qword [r14 + 8]
movsxd r13, ecx
nop dword [rax]
nop dword [rax + rax]
mov r8, r13
mov rdx, rbx
mov rcx, rdi
call fcn.1400fd5d8
movsxd rax, dword [r14]
add rbx, r15
add rdi, rax
sub esi, 1
jne 0x1400528e0
mov r15, qword [rbp - 0x71]
inc r12
mov rax, qword [rsp + 0x30]
add r14, 0x10
mov r8, qword [rbp - 0x69]
cmp r12, qword [rsp + 0x38]
jl 0x1400528a0
mov r13, qword [rbp - 0x79]
mov r14d, dword [rbp - 0x4d]
jmp 0x140052929
test ebx, ebx
jne 0x140052720
mov rdi, qword [rbp - 0x61]
xor r8d, r8d
mov r9d, dword [rsp + 0x50]
mov rcx, rdi
mov rdx, r15
mov dword [rsp + 0x20], 1
call fcn.1400821c0
mov ebx, eax
test eax, eax
jne 0x140052720
imul r14d, dword [rbp - 0x49]
mov r10, qword [r15 + 0x18]
mov r11d, dword [rbp + 0x77]
mov rbx, qword [rbp - 0x39]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
add eax, 0xffffff80
add r8d, 0xffffff80
mov ecx, eax
mov r9d, r8d
sar ecx, 0x1f
sar r9d, 0x1f
mov edx, ecx
xor edx, eax
mov eax, r9d
xor eax, r8d
sub edx, eax
sub edx, ecx
add edx, r9d
cmp edx, r11d
setge al
mov byte [r10 - 1], al
sub r14d, 1
jne 0x140052970
mov r8, qword [rbp - 0x59]
mov r11d, dword [r15 + 4]
imul r11d, dword [r15 + 8]
mov r10, qword [r13 + 0x18]
mov r8, qword [r8 + 0x18]
mov rdx, qword [r15 + 0x18]
nop dword [rax]
movzx eax, byte [r8]
lea rdx, [rdx + 1]
movzx ecx, byte [r10]
lea r8, [r8 + 1]
imul ecx, eax
lea r10, [r10 + 1]
movzx eax, cl
movzx ecx, byte [rdx - 1]
imul ecx, eax
mov byte [rdx - 1], cl
sub r11d, 1
jne 0x1400529d0
mov esi, 0xff
xor edx, edx
mov r8d, esi
mov rcx, r15
call fcn.14009f6f0
mov r9d, dword [rbp - 0x7d]
xor r8d, r8d
mov rdx, r15
mov dword [rsp + 0x20], 1
mov rcx, rdi
call fcn.1400821c0
mov ebx, eax
test eax, eax
jne 0x140052720
mov r8d, dword [r15 + 4]
imul r8d, dword [r15 + 8]
mov rdx, qword [r15 + 0x18]
nop dword [rax]
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
add ecx, ecx
cmp ecx, esi
movzx eax, cl
cmova eax, esi
mov byte [rdx - 1], al
sub r8d, 1
jne 0x140052a40
jmp 0x140052720
mov ebx, 0xfffffffd
mov r14, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0x130]
mov eax, ebx
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.1400fc4b0
add rsp, 0xf0
pop r15
pop r13
pop rdi
pop rbx
pop rbp
ret