Function at 0x180051cd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
xor ebx, ebx
cmp byte [0x18020b770], bl
mov r15d, ebx
mov dword [rbp + 0x67], ebx
je 0x180051d20
mov rax, qword [0x18020b778]
test rax, rax
je 0x180051d39
cmp dword [rax + 0x14], ebx
jl 0x180051d39
mov rax, qword [rax]
mov rcx, qword [rax]
mov rax, qword [rcx]
jmp 0x180051d3c
mov rax, qword [0x18020b780]
test rax, rax
je 0x180051d39
cmp dword [rax + 0xc], ebx
jl 0x180051d39
mov rax, qword [rax]
mov rax, qword [rax]
jmp 0x180051d3c
mov rax, rbx
mov r12, qword [rax]
mov r13d, ebx
mov rsi, qword [rbp + 0x67]
nop word [rax + rax]
mov rdx, qword [r12]
test rdx, rdx
je 0x180051fb3
mov rax, qword gs:[0x60]
mov r8, qword [rax + 0x10]
cmp rdx, r8
jbe 0x180051fb3
movsxd rax, dword [r8 + 0x3c]
mov ecx, dword [rax + r8 + 0x50]
add rcx, r8
cmp rdx, rcx
jae 0x180051fb3
cmp byte [rdx], 0xe9
jne 0x180051dbb
mov rax, qword gs:[0x60]
movsxd rdi, dword [rdx + 1]
add rdi, 5
add rdi, rdx
mov r8, qword [rax + 0x10]
cmp rdi, r8
jbe 0x180051dbb
movsxd rax, dword [r8 + 0x3c]
mov ecx, dword [rax + r8 + 0x50]
add rcx, r8
cmp rdi, rcx
jb 0x180051dbe
mov rdi, rdx
mov eax, dword [0x18020b764]
xorps xmm0, xmm0
mov ecx, 0x28
mov dword [rbp - 0x29], 0xf7
movdqu xmmword [rbp - 0x1d], xmm0
mov dword [rbp - 0x25], 0xffffffff
mov dword [rbp - 0x21], eax
mov qword [rbp - 0xd], 4
mov dword [rbp - 5], ebx
call fcn.1800b4d44
mov r8d, 0x28
lea rdx, [rbp - 0x29]
mov rcx, rax
mov r14, rax
call fcn.1800dc750
or r15d, 1
mov r10, rbx
mov r9d, ebx
mov eax, ebx
mov rcx, rbx
nop word [rax + rax]
mov r8d, dword [r14 + rcx*4]
lea ecx, [rax + r9]
movzx ecx, byte [rcx + rdi]
cmp ecx, r8d
je 0x180051e3b
cmp r8d, 0xffffffff
jne 0x180051f23
inc eax
mov ecx, eax
cmp rcx, 0xa
jb 0x180051e20
lea rax, [r10 + rdi]
test rax, rax
je 0x180051f36
mov rdx, qword [r12]
cmp byte [rdx], 0xe9
jne 0x180051e89
mov rax, qword gs:[0x60]
movsxd rdi, dword [rdx + 1]
add rdi, 5
add rdi, rdx
mov r8, qword [rax + 0x10]
cmp rdi, r8
jbe 0x180051e89
movsxd rax, dword [r8 + 0x3c]
mov ecx, dword [rax + r8 + 0x50]
add rcx, r8
cmp rdi, rcx
jb 0x180051e8c
mov rdi, rdx
mov eax, dword [0x18020b764]
xorps xmm0, xmm0
mov ecx, 0x28
mov dword [rbp + 7], 0xf7
movdqu xmmword [rbp + 0x13], xmm0
mov dword [rbp + 0xb], 0xffffffff
mov dword [rbp + 0xf], eax
mov dword [rbp + 0x23], ebx
mov qword [rbp + 0x27], 0x40
call fcn.1800b4d44
mov rsi, rax
lea rdx, [rbp + 7]
add rax, 0x28
mov rcx, rsi
mov r8d, 0x28
mov qword [rbp + 0x67], rax
call fcn.1800dc750
or r15d, 2
mov r10, rbx
mov r9d, ebx
mov edx, ebx
mov rax, rbx
nop dword [rax]
mov r8d, dword [rsi + rax*4]
lea eax, [rdx + r9]
movzx eax, byte [rax + rdi]
cmp eax, r8d
je 0x180051f0b
cmp r8d, 0xffffffff
jne 0x18005208c
inc edx
mov eax, edx
cmp rax, 0xa
jb 0x180051ef0
lea rax, [r10 + rdi]
test rax, rax
je 0x180051f36
mov dil, 1
jmp 0x180051f39
inc r9d
inc r10
cmp r9d, 0x3f6
jb 0x180051e11
xor dil, dil
test r15b, 2
je 0x180051f80
and r15d, 0xfffffffd
test rsi, rsi
je 0x180051f80
mov rdx, qword [rbp + 0x67]
mov rcx, rsi
sub rdx, rsi
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x180051f7b
mov rcx, qword [rsi - 8]
mov rax, rsi
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005229c
call fcn.1800b4d3c
and r15d, 0xfffffffe
test r14, r14
je 0x180051f96
mov edx, 0x28
mov rcx, r14
call fcn.1800b4d3c
test dil, dil
jne 0x1800520a4
inc r13d
add r12, 8
cmp r13d, 0x150
jl 0x180051d50
movups xmm0, xmmword [0x1800eba50]
mov eax, dword [0x1800eba68]
lea rcx, [rbp - 0x29]
mov dword [rbp - 0x11], eax
movaps xmmword [rbp - 0x29], xmm0
movsd xmm0, qword [0x1800eba60]
movsd qword [rbp - 0x19], xmm0
call fcn.180058800
mov r10, rax
mov r8, rbx
test rax, rax
je 0x180052067
mov r9d, ebx
nop dword [rax + rax]
movsxd r11, r9d
cmp byte [r11 + r10], 0xc3
lea rdx, [r11 + r10]
jne 0x180052031
mov rcx, rdx
mov rax, rdx
and ecx, 0xf
sub rax, rcx
cmp byte [rax + 0x10], 0x40
jne 0x180052031
movzx ecx, byte [rdx - 1]
lea eax, [rcx - 0x58]
cmp al, 7
jbe 0x1800520b3
cmp byte [rdx - 2], 0x41
jne 0x180052031
sub cl, 0x58
cmp cl, 7
jbe 0x1800520b3
test dl, 0xf
jne 0x180052055
cmp byte [r8 + r10], 0x40
jne 0x180052055
movzx eax, byte [r10 + r8 + 1]
sub al, 0x50
cmp al, 7
ja 0x180052055
movzx eax, byte [r10 + r8 + 2]
sub al, 0x50
cmp al, 7
jbe 0x1800520c8
inc r9d
inc r8
cmp r9d, 0xffff
jl 0x180051ff0
mov r8, rbx
cmp byte [0x18020b770], bl
je 0x1800520dc
mov rax, qword [0x18020b778]
test rax, rax
je 0x180052100
cmp dword [rax + 0x14], ebx
jge 0x1800520ce
mov r10, rbx
mov r10, qword [rbx]
jmp 0x180052108
inc r9d
inc r10
cmp r9d, 0x3f6
jae 0x180051f36
jmp 0x180051ee7
movsxd rax, r13d
mov qword [0x18020bb80], rax
jmp 0x18005227b
lea r8, [r11 + r10]
mov rax, r8
and eax, 0xf
je 0x180052067
sub r8, rax
add r8, 0x10
jmp 0x180052067
lea r8, [r11 + r10]
jmp 0x180052067
mov rax, qword [rax]
mov rcx, qword [rax]
mov r10, qword [rcx]
mov r10, qword [r10]
jmp 0x180052108
mov rax, qword [0x18020b780]
test rax, rax
je 0x180052100
cmp dword [rax + 0xc], ebx
jge 0x1800520f5
mov r10, rbx
mov r10, qword [rbx]
jmp 0x180052108
mov rax, qword [rax]
mov r10, qword [rax]
mov r10, qword [r10]
jmp 0x180052108
mov r1pe_dos_header, qword [0]
cmp dword [0x18010c088], 2
mov eax, dword [0x1800eb898]
movsd xmm0, qword [str.a_WPEDO_UH]
mov dword [rbp - 0x31], eax
movzx eax, byte [0x1800eb89c]
mov byte [rbp - 0x2d], al
movsd qword [rbp - 0x39], xmm0
jl 0x180052235
movdqa xmm2, xmmword [0x1800fab00]
mov ebx, 8
movdqa xmm3, xmmword [0x1800fab20]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x1800fad80]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800fabc0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [str.a_WPEDO_UH]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1800fac70]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800fac90]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rbp - 0x39], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800fabc0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rbp - 0x35]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800fac70]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800fac90]
xorps xmm2, xmm0
movd dword [rbp - 0x35], xmm2
movsxd rax, ebx
lea r9, [rbp - 0x39]
add r9, rax
nop
mov eax, 0x8d3dcb09
lea r9, [r9 + 1]
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, bl
inc ebx
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp ebx, 0xd
jl 0x180052240
mov rdx, r10
lea rcx, [rbp - 0x39]
call fcn.18004f8c0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1800bbacc
int3