Function at 0x42ff60
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1f8
mov rax, qword [0x005270d0]
mov r8d, 0xb7
lea r9, [rsp + 0x70]
mov r13, rcx
mov rdi, rdx
mov qword [rsp + 0x40], rax
lea rdx, [0x00493020]
mov rcx, r9
mov qword [rsp + 0x48], rax
call fcn.00453060
lea rsi, [rsp + 0x130]
mov r8d, 0xb7
lea rbx, [rsi + 6]
mov rdx, rax
mov rcx, rsi
call fcn.00453060
mov edx, dword [r13 + 0x3a0]
lea rcx, [rsi + 0x18]
mov r8d, 0x9c
movzx eax, byte [r13 + 0x3a6]
mov dword [rsp + 0x136], edx
movzx edx, word [r13 + 0x3a4]
mov byte [rbx + 6], al
mov word [rbx + 4], dx
mov rdx, rdi
call fcn.00453060
mov r9, rbx
mov edx, 0xffffffff
lea r10, [rsi + 0xb4]
nop word [rax + rax]
movzx eax, byte [r9]
mov ecx, 8
xor edx, eax
nop dword [rax + rax]
movzx eax, dx
sar eax, 1
mov r8d, eax
xor r8w, 0xa001
and edx, 1
mov edx, r8d
cmove edx, eax
sub ecx, 1
jne 0x430020
add r9, 1
cmp r10, r9
jne 0x430010
lea rax, [rsp + 0x40]
mov byte [rsp + 0x1e4], dl
shr dx, 8
mov r8d, 0xb7
mov byte [rsp + 0x1e5], dl
lea r12, [rsp + 0x48]
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x38], rax
call qword [0x005270e0]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov edx, dword [rax]
add edx, 1
cmp edx, 1
ja 0x430445
lea rsi, [rsp + 0x60]
mov rcx, r13
mov rdx, rsi
call fcn.0042c940
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x43042f
cmp eax, 0xffffffff
je 0x4300c3
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x60]
je 0x43042f
mov rax, qword [rsp + 0x40]
lea r12, [rsp + 0x48]
mov r10d, dword [rax + 4]
test r10d, r10d
jle 0x43028d
mov ebx, 1
mov r14, qword [0x005273a8]
lea r12, [rsp + 0x48]
mov r15, qword [0x00527298]
jmp 0x4301c8
movsxd rcx, dword [rax + 4]
mov r8d, dword [rax + 8]
lea edx, [rcx + 2]
and r8d, 0x7fffffff
cmp edx, r8d
jbe 0x430126
mov r8d, 1
mov rcx, rsi
call qword [0x00527248]
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx + 1]
mov dword [rax + 4], edx
add rax, qword [rax + 0x10]
mov edx, 0x20
lea rax, [rax + rcx*2]
xor ecx, ecx
mov word [rax], dx
mov rdx, rsi
mov word [rax + 2], cx
mov rcx, r12
call r15
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x4303be
cmp eax, 0xffffffff
je 0x43016e
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x60]
je 0x4303be
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x430248
cmp eax, 0xffffffff
je 0x430191
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x58]
je 0x430248
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x430268
cmp eax, 0xffffffff
je 0x4301b4
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x50]
je 0x430268
mov rax, qword [rsp + 0x40]
mov edx, ebx
add rbx, 1
cmp edx, dword [rax + 4]
jge 0x43028d
lea rcx, [0x004a0d91]
mov edx, 2
call qword [0x00527278]
lea rdi, [rsp + 0x58]
mov r9d, 0x30
movzx r8d, byte [rsp + rbx + 0x12f]
mov qword [rsp + 0x50], rax
lea rbp, [rsp + 0x50]
mov word [rsp + 0x28], r9w
mov rcx, rdi
mov r9d, 2
mov dword [rsp + 0x20], 0x10
mov rdx, rbp
call r14
mov rdx, qword [rsp + 0x58]
mov qword [rsp + 0x60], rdx
mov eax, dword [rdx]
add eax, 1
cmp eax, 1
ja 0x4303d4
mov rax, qword [rsp + 0x60]
mov edx, dword [rax]
cmp edx, 1
jbe 0x4300f7
mov edx, dword [rax + 4]
add edx, 2
jmp 0x43010e
mov r8d, 8
mov edx, 2
call qword [0x005270c8]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
jne 0x4301a0
mov edx, 2
mov r8d, 8
call qword [0x005270c8]
mov rax, qword [rsp + 0x40]
mov edx, ebx
add rbx, 1
cmp edx, dword [rax + 4]
jl 0x4301c8
mov rax, qword [r13 + 0x40]
mov edx, 7
mov rcx, rsi
mov rbx, qword [rax + 0x108]
call qword [0x00527478]
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [0x00527c08]
call rbx
mov rcx, r13
call fcn.0042cc80
mov rax, qword [r13 + 0x40]
lea rdi, [rsp + 0x58]
mov r8d, 0xd
lea rdx, [0x004a0d94]
mov rcx, rdi
mov rbp, qword [rax + 0x108]
call qword [0x00527268]
mov rdx, r12
mov rcx, rdi
call qword [0x00527298]
lea r8, [0x004a0da2]
mov rdx, rdi
mov rcx, rsi
call fcn.00491630
mov rdx, rsi
mov rcx, rbp
call qword [0x00527c30]
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x430419
cmp eax, 0xffffffff
je 0x430330
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x60]
je 0x430419
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x430403
cmp eax, 0xffffffff
je 0x430353
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x58]
je 0x430403
mov rax, qword [r13 + 0x40]
mov edx, 0x386487
mov rcx, rsi
mov rdi, qword [rax + 0x108]
call qword [0x00527480]
mov rdx, rsi
mov rcx, rdi
call rbx
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x4303f0
cmp eax, 0xffffffff
je 0x43038f
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x48]
je 0x4303f0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x4303dd
cmp eax, 0xffffffff
je 0x4303aa
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x40]
je 0x4303dd
add rsp, 0x1f8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8d, 8
mov edx, 2
call qword [0x005270c8]
jmp 0x43016e
lock add dword [rdx], 1
jmp 0x43022d
mov r8d, 8
mov edx, 1
call qword [0x005270c8]
jmp 0x4303aa
mov r8d, 8
mov edx, 2
call qword [0x005270c8]
jmp 0x43038f
mov r8d, 8
mov edx, 2
call qword [0x005270c8]
jmp 0x430353
mov r8d, 8
mov edx, 2
call qword [0x005270c8]
jmp 0x430330
mov r8d, 8
mov edx, 1
call qword [0x005270c8]
jmp 0x4300c3
lock add dword [rax], 1
jmp 0x430090