Function at 0x180052a80
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
xor ebx, ebx
mov dword [rbp + 0x67], ebx
cmp byte [0x1802117e0], bl
je 0x180052aca
mov rax, qword [0x1802117e8]
test rax, rax
je 0x180052ae3
cmp dword [rax + 0x14], ebx
jl 0x180052ae3
mov rax, qword [rax]
mov rcx, qword [rax]
mov rax, qword [rcx]
jmp 0x180052ae6
mov rax, qword [0x1802117f0]
test rax, rax
je 0x180052ae3
cmp dword [rax + 0xc], ebx
jl 0x180052ae3
mov rax, qword [rax]
mov rax, qword [rax]
jmp 0x180052ae6
mov rax, rbx
mov r14, qword [rax]
mov qword [rbp + 0x77], r14
mov dword [rbp + 0x6f], ebx
mov edi, 4
mov rsi, qword [rbp + 0x67]
mov r13, qword [rbp + 0x67]
nop dword [rax]
mov rcx, qword [r14]
test rcx, rcx
je 0x180052e1c
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x10]
movsxd rax, dword [rdx + 0x3c]
cmp rcx, rdx
jbe 0x180052e1c
mov eax, dword [rax + rdx + 0x50]
add rax, rdx
cmp rcx, rax
jae 0x180052e1c
cmp byte [rcx], 0xe9
jne 0x180052b68
movsxd r14, dword [rcx + 1]
add r14, 5
add r14, rcx
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x10]
movsxd rax, dword [rdx + 0x3c]
cmp r14, rdx
jbe 0x180052b68
mov eax, dword [rax + rdx + 0x50]
add rax, rdx
cmp r14, rax
jb 0x180052b6b
mov r14, rcx
mov dword [rbp - 0x49], 0xf7
mov dword [rbp - 0x45], 0xffffffff
mov eax, dword [0x1802117dc]
mov dword [rbp - 0x41], eax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x3d], xmm0
mov qword [rbp - 0x2d], 4
mov dword [rbp - 0x25], ebx
movdqu xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], rbx
mov edx, 0xa
call fcn.18001a730
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], rax
lea rdi, [rax + 0x28]
mov qword [rbp - 0x59], rdi
mov r8d, 0x28
lea rdx, [rbp - 0x49]
mov rcx, rax
call fcn.1800b9ed0
mov qword [rbp - 0x61], rdi
mov r15d, dword [rbp + 0x67]
or r15d, 1
mov dword [rbp + 0x67], r15d
mov r10, qword [rbp - 0x69]
sub rdi, r10
sar rdi, 2
mov r12d, 0x400
sub r12, rdi
je 0x180052d48
mov edx, ebx
mov r11, rbx
mov r9d, ebx
test rdi, rdi
je 0x180052c31
mov rax, rbx
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [r10 + rax*4]
lea eax, [rdx + r9]
movzx eax, byte [rax + r14]
cmp eax, r8d
je 0x180052c28
cmp r8d, 0xffffffff
jne 0x180052c7d
inc edx
mov eax, edx
cmp rax, rdi
jb 0x180052c10
lea rax, [r11 + r14]
mov r14, qword [rbp + 0x77]
test rax, rax
je 0x180052d4c
mov rcx, qword [r14]
cmp byte [rcx], 0xe9
jne 0x180052c9a
movsxd rdi, dword [rcx + 1]
add rdi, 5
add rdi, rcx
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x10]
movsxd rax, dword [rdx + 0x3c]
cmp rdi, rdx
jbe 0x180052c96
mov eax, dword [rax + rdx + 0x50]
add rax, rdx
cmp rdi, rax
jae 0x180052c96
mov r15d, dword [rbp + 0x67]
jmp 0x180052c9d
inc r9d
inc r11
movsxd rax, r9d
cmp rax, r12
jae 0x180052d48
mov edx, ebx
jmp 0x180052c01
mov r15d, dword [rbp + 0x67]
mov rdi, rcx
mov dword [rbp - 0x21], 0xf7
mov dword [rbp - 0x1d], 0xffffffff
mov eax, dword [0x1802117dc]
mov dword [rbp - 0x19], eax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x15], xmm0
mov dword [rbp - 5], ebx
mov qword [rbp - 1], 0x40
mov edx, 0xa
call fcn.18001a730
mov rsi, rax
lea r13, [rax + 0x28]
mov r8d, 0x28
lea rdx, [rbp - 0x21]
mov rcx, rax
call fcn.1800b9ed0
or r15d, 2
mov dword [rbp + 0x67], r15d
mov r10, rbx
mov r9d, ebx
mov eax, ebx
mov rcx, rbx
nop dword [rax]
mov r8d, dword [rsi + rcx*4]
lea ecx, [rax + r9]
movzx ecx, byte [rcx + rdi]
cmp ecx, r8d
je 0x180052d17
cmp r8d, 0xffffffff
jne 0x180052d33
inc eax
mov ecx, eax
cmp rcx, 0xa
jb 0x180052d00
lea rax, [r10 + rdi]
test rax, rax
je 0x180052d42
mov dil, 1
mov r10, qword [rbp - 0x69]
jmp 0x180052d4f
inc r9d
inc r10
cmp r9d, 0x3f6
jb 0x180052cf8
mov r10, qword [rbp - 0x69]
jmp 0x180052d4c
mov r14, qword [rbp + 0x77]
xor dil, dil
test r15b, 2
je 0x180052da8
and r15d, 0xfffffffd
mov dword [rbp + 0x67], r15d
test rsi, rsi
je 0x180052da8
sub r13, rsi
sar r13, 2
lea rdx, [r13*4]
cmp rdx, 0x1000
jb 0x180052d96
add rdx, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x1800530ea
mov rsi, rcx
mov rcx, rsi
call fcn.1800b7ba8
mov rsi, rbx
mov r13, rbx
mov r10, qword [rbp - 0x69]
test r15b, 1
je 0x180052df3
and r15d, 0xfffffffe
mov dword [rbp + 0x67], r15d
test r10, r10
je 0x180052df3
mov rdx, qword [rbp - 0x59]
sub rdx, r10
and rdx, 0xfffffffffffffffc
mov rax, r10
cmp rdx, 0x1000
jb 0x180052deb
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800530e4
mov rcx, r10
call fcn.1800b7ba8
test dil, dil
jne 0x180052eed
mov eax, dword [rbp + 0x6f]
inc eax
mov dword [rbp + 0x6f], eax
add r14, 8
mov qword [rbp + 0x77], r14
mov edi, 4
cmp eax, 0x150
jl 0x180052b00
movups xmm0, xmmword [str.uVURKJ__]
movaps xmmword [rbp - 0x69], xmm0
movsd xmm0, qword [0x1800efce8]
movsd qword [rbp - 0x59], xmm0
mov eax, dword [0x1800efcf0]
mov dword [rbp - 0x51], eax
lea rcx, [rbp - 0x69]
call fcn.180059d80
mov r10, rax
test rax, rax
je 0x180052ec7
mov r9d, ebx
lea rdx, [rax + 2]
nop word [rax + rax]
movsxd r8, r9d
add r8, r10
cmp byte [r8], 0xc3
jne 0x180052e99
mov rcx, r8
and ecx, 0xf
mov rax, r8
sub rax, rcx
cmp byte [rax + 0x10], 0x40
jne 0x180052e99
movzx ecx, byte [r8 - 1]
lea eax, [rcx - 0x58]
cmp al, 7
jbe 0x180052efd
cmp byte [r8 - 2], 0x41
jne 0x180052e99
sub cl, 0x58
cmp cl, 7
jbe 0x180052efd
test r8b, 0xf
jne 0x180052eb8
cmp byte [rdx - 2], 0x40
jne 0x180052eb8
movzx eax, byte [rdx - 1]
sub al, 0x50
cmp al, 7
ja 0x180052eb8
movzx eax, byte [rdx]
sub al, 0x50
cmp al, 7
jbe 0x180052eca
inc r9d
inc rdx
cmp r9d, 0xffff
jl 0x180052e60
mov r8, rbx
cmp byte [0x1802117e0], 0
je 0x180052f1c
mov rax, qword [0x1802117e8]
test rax, rax
je 0x180052f41
cmp dword [rax + 0x14], 0
jge 0x180052f0e
mov r10, rbx
mov r10, qword [rbx]
jmp 0x180052f49
movsxd rax, dword [rbp + 0x6f]
mov qword [0x180211be8], rax
jmp 0x1800530c8
mov rax, r8
and eax, 0xf
je 0x180052eca
sub r8, rax
add r8, 0x10
jmp 0x180052eca
mov rax, qword [rax]
mov rcx, qword [rax]
mov r10, qword [rcx]
mov r10, qword [r10]
jmp 0x180052f49
mov rax, qword [0x1802117f0]
test rax, rax
je 0x180052f41
cmp dword [rax + 0xc], 0
jge 0x180052f36
mov r10, rbx
mov r10, qword [rbx]
jmp 0x180052f49
mov rax, qword [rax]
mov r10, qword [rax]
mov r10, qword [r10]
jmp 0x180052f49
mov r1pe_dos_header, qword [0]
mov eax, dword [0x1800ef968]
mov dword [rbp - 0x71], eax
movsd xmm0, qword [str.dGYT_JIJXPK_]
movzx eax, byte [0x1800ef96c]
movsd qword [rbp - 0x79], xmm0
mov byte [rbp - 0x6d], al
cmp dword [0x180112028], 2
jl 0x18005307b
movdqa xmm4, xmmword [0x1800ff230]
movd xmm6, edi
mov eax, 0x1f
movd xmm5, eax
movdqa xmm2, xmmword [0x1800feda0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800fedf0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1800fef10]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800fef30]
movd xmm0, dword [str.dGYT_JIJXPK_]
pxor xmm2, xmm0
movd dword [rbp - 0x79], xmm2
movdqa xmm3, xmmword [0x1800fedc0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800fedf0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1800fef10]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800fef30]
movd xmm0, dword [rbp - 0x75]
pxor xmm2, xmm0
movd dword [rbp - 0x75], xmm2
mov ebx, 8
movsxd rax, ebx
lea r9, [rbp - 0x79]
add r9, rax
nop word [rax + rax]
mov eax, 0x51eb851f
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, bl
sub al, cl
add al, 0x34
xor byte [r9], al
inc ebx
lea r9, [r9 + 1]
cmp ebx, 0xd
jl 0x180053090
mov rdx, r10
lea rcx, [rbp - 0x79]
call fcn.1800504d0
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1800be590
nop
call fcn.1800be590
nop