Function at 0x4238c0
Capabilities:
Encode data using xor

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x423c0a
sub rsp, 0x58
mov qword [rsp + 0x50], rbp
lea rbp, [rsp + 0x50]
mov rcx, qword [0x007b5740]
test rcx, rcx
je 0x423b98
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rax, rcx
xor ebx, ebx
xor esi, esi
cmp rbx, rdx
jge 0x423935
mov rdi, qword [rcx]
add rcx, 8
inc rbx
add rdi, rsi
mov r8, rdi
shl rdi, 0xa
lea rsi, [r8 + rdi]
mov rdi, rsi
shr rsi, 6
xor rsi, rdi
cmp rbx, rdx
jl 0x42390e
mov rcx, qword [0x007b5740]
test byte [rcx], al
mov rbx, qword [rsp + 0x68]
add rsi, rbx
mov rdi, rsi
shl rsi, 0xa
add rsi, rdi
mov rdi, rsi
shr rsi, 6
xor rdi, rsi
lea rsi, [rdi + rdi*8]
mov rdi, rsi
shr rsi, 0xb
xor rdi, rsi
mov qword [rsp + 0x38], rdi
mov rsi, rax
movabs rax, 0x5d350fde298c8d49
mov r8, rdx
mul rdi
shr rdx, 0x10
imul rdx, rdx, 0x2bf1f
mov r9, rdi
sub rdi, rdx
mov qword [rsp + 0x40], rdi
cmp rdi, 0x2bf1f
jae 0x423b91
mov rax, qword [rcx + rdi*8]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x4239e2
mov rcx, qword [rax + 0x10]
mov rdx, qword [rsp + 0x60]
cmp rdx, rcx
jne 0x4239d5
mov rcx, qword [rax + 0x18]
cmp r9, rcx
jne 0x4239d5
mov rcx, qword [rax + 0x20]
cmp rbx, rcx
je 0x423b08
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x4239b1
movzx eax, byte [rsp + 0x88]
test al, al
je 0x423af2
mov rax, qword [rsp + 0x60]
mov qword [rsp], rax
mov qword [rsp + 8], r8
call fcn.004236f0
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x48], rax
lea rcx, [rax + 0x30]
test byte [rcx], al
mov rdx, qword [rax + 0x28]
cmp rdx, 0x20
ja 0x423aeb
mov rbx, qword [rsp + 0x78]
cmp rdx, rbx
jle 0x423ae3
mov qword [rsp], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 8], rcx
shl rbx, 3
mov qword [rsp + 0x10], rbx
call fcn.004556b0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x68]
mov qword [rcx + 0x20], rax
mov rax, qword [0x007b5740]
test byte [rax], al
mov rdx, qword [rsp + 0x40]
mov rax, qword [rax + rdx*8]
mov qword [rcx], rax
mov rax, qword [0x007b5740]
test byte [rax], al
mov qword [rax + rdx*8], rcx
mov rax, qword [rsp + 0x60]
cmp rax, 1
jne 0x423ab5
mov rax, qword [0x007b5788]
mov qword [rcx + 8], rax
mov qword [0x007b5788], rcx
mov qword [rsp + 0x90], rcx
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
cmp rax, 3
jne 0x423acf
mov rax, qword [0x007b57b0]
mov qword [rcx + 8], rax
mov qword [0x007b57b0], rcx
jmp 0x423aa3
mov rax, qword [0x007b5738]
mov qword [rcx + 8], rax
mov qword [0x007b5738], rcx
jmp 0x423aa3
mov rbx, rdx
jmp 0x423a31
call fcn.00429650
ud2
mov qword [rsp + 0x90], 0
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
lea rcx, [rax + 0x30]
test byte [rcx], al
mov r10, qword [rax + 0x28]
cmp r10, 0x20
ja 0x423b8a
mov qword [rsp], rcx
mov qword [rsp + 8], r10
mov qword [rsp + 0x10], r10
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r8
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x28], rcx
call fcn.00423c20
movzx eax, byte [rsp + 0x30]
test al, al
jne 0x423b73
mov rax, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x40]
mov r8, qword [rsp + 0x78]
mov r9, qword [rsp + 0x38]
jmp 0x4239d5
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x90], rax
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
call fcn.00429650
ud2
call fcn.004295e0
ud2
mov qword [rsp], 0x15f8f8
lea rax, [0x007d39f0]
mov qword [rsp + 8], rax
call fcn.00413eb0
mov rax, qword [rsp + 0x10]
mov ecx, dword [0x007d1ef0]
test ecx, ecx
jne 0x423bf3
mov qword [0x007b5740], rax
mov rcx, qword [0x007b5740]
test rcx, rcx
je 0x423bd8
jmp 0x4238f8
lea rax, [0x0068f504]
mov qword [rsp], rax
mov qword [rsp + 8], 0x1f
call fcn.0042b0a0
ud2
lea rcx, [0x007b5740]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
call fcn.00410440
jmp 0x423bc7
call fcn.00452440
jmp fcn.004238c0