Function at 0x140052aa0
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 0x140053255
mov qword [r11 + 0x18], rsi
mov esi, dword [rdx + 4]
test esi, esi
je 0x14005324d
mov qword [r11 - 0x38], r14
mov r14d, dword [rdx + 8]
test r14d, r14d
je 0x140053245
cmp dword [rdx], 0
je 0x140053245
cmp qword [rdx + 0x18], 0
je 0x140052b24
cmp dword [rdx + 0x10], 0
jne 0x140052b53
cmp qword [rdx + 0x28], 0
je 0x140052b31
cmp dword [rdx + 0x20], 0
jne 0x140052b53
cmp qword [rdx + 0x38], 0
je 0x140052b3e
cmp dword [rdx + 0x30], 0
jne 0x140052b53
cmp qword [rdx + 0x48], 0
je 0x140053245
cmp dword [rdx + 0x40], 0
je 0x140053245
test rax, rax
je 0x140053245
cmp dword [r9 + 4], 0
je 0x140053245
cmp dword [r9 + 8], 0
je 0x140053245
cmp dword [r9], 0
je 0x140053245
cmp qword [r9 + 0x18], 0
je 0x140052b8a
cmp dword [r9 + 0x10], 0
jne 0x140052bbc
cmp qword [r9 + 0x28], 0
je 0x140052b98
cmp dword [r9 + 0x20], 0
jne 0x140052bbc
cmp qword [r9 + 0x38], 0
je 0x140052ba6
cmp dword [r9 + 0x30], 0
jne 0x140052bbc
cmp qword [r9 + 0x48], 0
je 0x140053245
cmp dword [r9 + 0x40], 0
je 0x140053245
test r13, r13
je 0x140053245
cmp dword [r8 + 4], 0
je 0x140053245
cmp dword [r8 + 8], 0
je 0x140053245
cmp dword [r8], 0
je 0x140053245
cmp qword [r8 + 0x18], 0
je 0x140052bf3
cmp dword [r8 + 0x10], 0
jne 0x140052c25
cmp qword [r8 + 0x28], 0
je 0x140052c01
cmp dword [r8 + 0x20], 0
jne 0x140052c25
cmp qword [r8 + 0x38], 0
je 0x140052c0f
cmp dword [r8 + 0x30], 0
jne 0x140052c25
cmp qword [r8 + 0x48], 0
je 0x140053245
cmp dword [r8 + 0x40], 0
je 0x140053245
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 0x140053240
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.1400fddca
lea rax, [rbp - 0x51]
xor r9d, r9d
mov r8b, 2
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbx
call fcn.1400a5960
mov ebx, eax
test eax, eax
jne 0x140052f08
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 0x140052dc5
mov eax, dword [r13 + 8]
test eax, eax
je 0x140052dc5
cmp dword [r13], ebx
je 0x140052dc5
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x140052d2e
cmp dword [r13 + 0x10], ebx
jne 0x140052d58
cmp qword [r13 + 0x28], 0
je 0x140052d3c
cmp dword [r13 + 0x20], 0
jne 0x140052d58
cmp qword [r13 + 0x38], 0
je 0x140052d4a
cmp dword [r13 + 0x30], 0
jne 0x140052d58
cmp qword [r13 + 0x48], 0
je 0x140052dc5
cmp dword [r13 + 0x40], 0
je 0x140052dc5
mov r8d, dword [rbp - 0x49]
test r14d, r14d
je 0x140052dc9
test r8d, r8d
je 0x140052dc9
test esi, esi
je 0x140052dc9
test r9, r9
je 0x140052d75
cmp dword [rbp - 0x41], 0
jne 0x140052d9c
cmp qword [rbp - 0x29], 0
je 0x140052d82
cmp dword [rbp - 0x31], 0
jne 0x140052d9c
cmp qword [rbp - 0x19], 0
je 0x140052d8f
cmp dword [rbp - 0x21], 0
jne 0x140052d9c
cmp qword [rbp - 9], 0
je 0x140052dc9
cmp dword [rbp - 0x11], 0
je 0x140052dc9
cmp r14d, edx
jne 0x140052dc9
cmp r8d, eax
jne 0x140052dc9
mov edx, r14d
mov rax, r9
imul edx, r8d
cmp byte [rcx], 0
ja 0x140052db8
mov byte [rax], 0xff
inc rcx
inc rax
sub edx, 1
jne 0x140052db0
jmp 0x140052dc9
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 0x140052efb
test r14d, r14d
je 0x140052efb
test r8d, r8d
je 0x140052efb
test esi, esi
je 0x140052efb
cmp esi, 0x30200001
jg 0x140052edb
je 0x140052ebe
cmp esi, 0x20100001
jg 0x140052e79
je 0x140052e64
cmp esi, 0x10000001
je 0x140052f3d
cmp esi, 0x10200001
je 0x140052e52
lea eax, [rsi - 0x20000001]
cmp eax, 1
ja 0x140052efb
lea edi, [r14 + r14]
jmp 0x140052f41
mov edi, r14d
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x38], r14d
jmp 0x140052f41
lea eax, [r14 + r14]
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x38], eax
mov edi, r14d
jmp 0x140052f41
cmp esi, 0x20200001
je 0x140052ea5
lea eax, [rsi - 0x30100001]
cmp eax, 1
ja 0x140052efb
mov eax, r8d
mov dword [rsp + 0x38], r14d
cdq
mov edi, r14d
sub eax, edx
sar eax, 1
mov dword [rsp + 0x30], eax
jmp 0x140052f41
mov eax, r14d
mov dword [rsp + 0x30], r8d
cdq
mov edi, r14d
sub eax, edx
sar eax, 1
mov dword [rsp + 0x38], eax
jmp 0x140052f41
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 0x140052f41
cmp esi, 0x50000004
jg 0x140052f20
cmp esi, 0x50000003
jge 0x140052f33
cmp esi, 0x40000001
je 0x140052f1b
cmp esi, 0x50000001
je 0x140052f3d
mov ebx, 0xfffffffc
mov r12, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x51]
call fcn.140082460
jmp 0x140053245
mov edi, r14d
jmp 0x140052f41
cmp esi, 0x50000009
je 0x140052f3d
lea eax, [rsi - 0x5000000b]
cmp eax, 1
ja 0x140052efb
lea edi, [r14*4]
jmp 0x140052f41
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 0x140052fe5
mov r14d, 1
mov qword [r15 + 0x18], rax
mov dword [r15 + 0x10], edi
cmp dword [rsp + 0x40], r14d
jbe 0x140052fd1
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 0x140052fef
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 0x140052fa0
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 0x140053045
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140053025
jmp 0x140052ff7
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 0x140053017
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x10]
mov qword [rbx], r12
add rbx, 0x10
sub rdi, 1
jne 0x140053002
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 0x140052f00
mov eax, dword [r15]
shr eax, 0x14
and eax, 3
add eax, 1
mov qword [rsp + 0x38], rax
je 0x140053101
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 0x1400530a6
mov eax, dword [r15]
and eax, 0xf0000000
cmp eax, 0x30000000
jne 0x1400530a6
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.1400fddb8
movsxd rax, dword [r14]
add rbx, r15
add rdi, rax
sub esi, 1
jne 0x1400530c0
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 0x140053080
mov r13, qword [rbp - 0x79]
mov r14d, dword [rbp - 0x4d]
jmp 0x140053109
test ebx, ebx
jne 0x140052f00
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.140082990
mov ebx, eax
test eax, eax
jne 0x140052f00
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 0x140053150
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 0x1400531b0
mov esi, 0xff
xor edx, edx
mov r8d, esi
mov rcx, r15
call fcn.14009fec0
mov r9d, dword [rbp - 0x7d]
xor r8d, r8d
mov rdx, r15
mov dword [rsp + 0x20], 1
mov rcx, rdi
call fcn.140082990
mov ebx, eax
test eax, eax
jne 0x140052f00
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 0x140053220
jmp 0x140052f00
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.1400fcc70
add rsp, 0xf0
pop r15
pop r13
pop rdi
pop rbx
pop rbp
ret