Function at 0x140050c30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x60
mov rax, qword [0x140332dc8]
mov rsi, rdx
mov rbp, rcx
test rax, rax
jne 0x140050e9c
movdqa xmm1, xmmword [0x1402b7510]
lea r9d, [rax + 0x28]
xorps xmm0, xmm0
mov qword [rsp + 0x70], rdi
xor edi, edi
lea r8, [0x14032ee48]
movups xmmword [rsp + 0x38], xmm0
xor edx, edx
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x48], xmm1
mov byte [rsp + 0x38], al
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x30], rdi
movdqu xmmword [rsp + 0x20], xmm0
call fcn.1400ed440
mov r9, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
sub r9, rbx
lea rcx, [r9 - 1]
test rcx, rcx
je 0x140050cce
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx + rcx - 1]
sub byte [rbx + rcx], al
sub rcx, 1
jne 0x140050cc0
test r9, r9
je 0x140050d5d
cmp r9, 0x40
jb 0x140050d46
movdqa xmm2, xmmword [str.7777777777777777]
lea rax, [rbx + 0x20]
mov rcx, r9
and rcx, 0xffffffffffffffc0
movdqu xmm0, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
add rdi, 0x40
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rax - 0x60], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x50]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x40]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x40], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
cmp rdi, rcx
jb 0x140050cf0
cmp rdi, r9
jae 0x140050d5d
mov rcx, r9
lea rax, [rbx + rdi]
sub rcx, rdi
xor byte [rax], 0x37
lea rax, [rax + 1]
sub rcx, 1
jne 0x140050d50
mov rdi, qword [rsp + 0x70]
lea rdx, [rbx + 8]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140050d70
lea rax, [r9 - 8]
cmp r8, rax
jb 0x140050d87
lea r8, [r9 - 9]
lea rcx, [rsp + 0x38]
call fcn.140103aa0
test rbx, rbx
je 0x140050dcb
mov rdx, qword [rsp + 0x30]
mov rax, rbx
sub rdx, rbx
cmp rdx, 0x1000
jb 0x140050dc3
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050ebd
mov rcx, rbx
call fcn.140086a30
cmp qword [rsp + 0x50], 0x10
lea rbx, [rsp + 0x38]
cmovae rbx, qword [rsp + 0x38]
call fcn.1400ff030
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [rsp + 0x50]
mov qword [0x140332dc8], rax
test rax, rax
jne 0x140050e4e
cmp rdx, 0x10
jb 0x140050e36
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050e31
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050ebd
call fcn.140086a30
mov eax, 0xc0000138
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret
cmp rdx, 0x10
jb 0x140050e89
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050e7d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050ebd
call fcn.140086a30
mov rax, qword [0x140332dc8]
movdqa xmm0, xmmword [0x1402b7510]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call rax
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret
call fcn.140037b28
int3