Function at 0x421f90
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov dword [rsp + 0x34], edx
xor r15d, r15d
test rcx, rcx
je 0x4223d3
mov rdi, rcx
mov al, byte [rcx + 0x71]
cmp al, 0xba
je 0x421fc6
cmp al, 0x6d
je 0x421fc6
cmp al, 0x76
jne 0x42238b
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x421fd5
call qword [0x005f6090]
mov al, byte [rdi + 0x6e]
mov ecx, eax
xor cl, 0xf7
test cl, al
je 0x421ff9
mov rdx, qword [rdi + 0x100]
mov ecx, 8
mov r8, rdi
xor r9d, r9d
call qword [rdi + 0xf8]
cmp byte [rdi + 0x6f], 0
jne 0x422007
mov rcx, rdi
call fcn.00430580
cmp dword [rdi + 0x28], 0
jle 0x4220eb
xor r13d, r13d
jmp 0x422031
add r13, 1
movsxd rax, dword [rdi + 0x28]
cmp r13, rax
jge 0x4220eb
mov rax, qword [rdi + 0x20]
mov rcx, r13
shl rcx, 5
mov rax, qword [rax + rcx + 0x18]
test rax, rax
je 0x422020
mov r14, qword [rax + 0x10]
jmp 0x422063
mov rcx, rbp
mov rdx, rbx
call fcn.00408130
nop word [rax + rax]
mov r14, qword [r14]
test r14, r14
je 0x422020
mov rax, qword [r14 + 0x10]
cmp byte [rax + 0x3f], 1
jne 0x422060
add rax, 0x50
nop
mov rbx, qword [rax]
test rbx, rbx
je 0x422060
mov rcx, rax
lea rax, [rbx + 0x28]
cmp qword [rbx], rdi
jne 0x422080
mov rax, qword [rbx + 0x28]
mov qword [rcx], rax
mov rbp, qword [rbx]
add dword [rbx + 0x18], 0xffffffff
jne 0x422060
mov rsi, qword [rbx + 8]
mov r12, qword [rbx + 0x10]
add dword [rsi + 0x10], 0xffffffff
je 0x4220b9
test r12, r12
jne 0x4220dc
jmp 0x42204c
mov rax, qword [rsi + 0x20]
test rax, rax
je 0x4220c8
mov rcx, qword [rsi + 0x18]
call rax
mov rcx, rbp
mov rdx, rsi
call fcn.00408130
test r12, r12
je 0x42204c
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x20]
jmp 0x42204c
mov rbp, qword [rdi + 0x228]
jmp 0x422104
mov rcx, r13
mov rdx, rbx
call fcn.00408130
nop
mov rbp, qword [rbp]
test rbp, rbp
je 0x422184
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
je 0x422100
add rax, 0x50
nop
mov rbx, qword [rax]
test rbx, rbx
je 0x422100
mov rcx, rax
lea rax, [rbx + 0x28]
cmp qword [rbx], rdi
jne 0x422120
mov rax, qword [rbx + 0x28]
mov qword [rcx], rax
mov r13, qword [rbx]
add dword [rbx + 0x18], 0xffffffff
jne 0x422100
mov rsi, qword [rbx + 8]
mov r12, qword [rbx + 0x10]
add dword [rsi + 0x10], 0xffffffff
jne 0x42216c
mov rax, qword [rsi + 0x20]
test rax, rax
je 0x422161
mov rcx, qword [rsi + 0x18]
call rax
mov rcx, r13
mov rdx, rsi
call fcn.00408130
test r12, r12
je 0x4220f4
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x20]
jmp 0x4220f4
mov rbx, qword [rdi + 0x248]
test rbx, rbx
je 0x422250
mov qword [rdi + 0x248], 0
mov rax, qword [rdi + 8]
test rax, rax
je 0x422203
nop dword [rax]
mov ecx, dword [rax + 0xc8]
mov edx, ecx
xor edx, 3
and edx, ecx
mov ecx, edx
not ecx
and ecx, 0xb6ff74c0
mov ebp, edx
and ebp, 0x49008b3f
or ebp, ecx
xor ebp, 0xb6ff74c1
and edx, 1
or edx, ebp
mov dword [rax + 0xc8], edx
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x4221b0
jmp 0x422203
mov rcx, r14
mov rdx, rbx
call fcn.00408130
mov rbx, rbp
test rbp, rbp
je 0x422250
mov r14, qword [rbx]
mov rbp, qword [rbx + 0x28]
add dword [rbx + 0x18], 0xffffffff
jne 0x4221fb
mov rsi, qword [rbx + 8]
mov r12, qword [rbx + 0x10]
add dword [rsi + 0x10], 0xffffffff
je 0x422225
test r12, r12
jne 0x422244
jmp 0x4221f0
mov rax, qword [rsi + 0x20]
test rax, rax
je 0x422234
mov rcx, qword [rsi + 0x18]
call rax
mov rcx, r14
mov rdx, rsi
call fcn.00408130
test r12, r12
je 0x4221f0
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x20]
jmp 0x4221f0
cmp byte [rdi + 0x6f], 0
jne 0x42225e
mov rcx, rdi
call fcn.004305f0
mov r12, qword [rdi + 0x240]
test r12, r12
je 0x422340
mov qword [rdi + 0x240], 0
cmp dword [rdi + 0x21c], 0
jle 0x42231d
xor esi, esi
jmp 0x4222ab
mov rcx, r14
mov rdx, rbp
call fcn.00408130
add rsi, 1
movsxd rax, dword [rdi + 0x21c]
cmp rsi, rax
jge 0x42231d
mov rbp, qword [r12 + rsi*8]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x4222c9
mov rax, qword [rcx]
mov rax, qword [rax + 0x88]
test rax, rax
je 0x4222c9
call rax
mov dword [rbp + 0x20], 0
mov r14, qword [rbp]
add dword [rbp + 0x18], 0xffffffff
jne 0x42229b
mov rbx, qword [rbp + 8]
mov r13, qword [rbp + 0x10]
add dword [rbx + 0x10], 0xffffffff
je 0x4222ef
test r13, r13
jne 0x42230e
jmp 0x422290
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x4222fe
mov rcx, qword [rbx + 0x18]
call rax
mov rcx, r14
mov rdx, rbx
call fcn.00408130
test r13, r13
je 0x422290
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x20]
jmp 0x422290
cmp qword [rdi + 0x300], 0
je 0x4223e7
mov rcx, rdi
mov rdx, r12
call fcn.004297f0
mov dword [rdi + 0x21c], 0
cmp dword [rsp + 0x34], 0
je 0x422355
mov byte [rdi + 0x71], 0xa7
mov rcx, rdi
call fcn.00412550
jmp 0x4223d3
cmp qword [rdi + 8], 0
je 0x422481
lea r8, [0x00607000]
mov r15d, 5
mov rcx, rdi
mov edx, 5
call fcn.0040f2f0
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x4223d3
call qword [0x005f60a0]
jmp 0x4223d3
lea rdx, [0x005ff10f]
lea r8, [0x00607400]
mov r15d, 0x15
mov ecx, 0x15
call fcn.00408970
lea rax, [0x005fb813]
mov qword [rsp + 0x20], rax
lea rdx, [0x005fc003]
lea r8, [0x0060752f]
mov ecx, 0x15
mov r9d, 0x29f0d
call fcn.00408970
mov eax, r15d
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp qword [rdi + 0x1f0], r12
jbe 0x42240a
cmp qword [rdi + 0x1e0], r12
jbe 0x4224c6
cmp qword [rdi + 0x1e8], r12
jbe 0x4224eb
cmp dword [0x005f6010], 0
je 0x4224dd
mov rcx, qword [0x0213b0e8]
test rcx, rcx
je 0x422429
call qword [0x005f6090]
mov rcx, r12
call qword [0x005f6048]
mov rcx, qword [0x0213b040]
cdqe
movabs rdx, 0xb48325b912b76227
sub rcx, rdx
sub rcx, rax
add rcx, rdx
mov qword [0x0213b040], rcx
add qword [0x0213b088], 0xffffffffffffffff
mov rcx, r12
call qword [0x005f6038]
mov rcx, qword [0x0213b0e8]
test rcx, rcx
je 0x422336
call qword [0x005f60a0]
jmp 0x422336
mov eax, dword [rdi + 0x28]
test eax, eax
jle 0x422347
mov rcx, qword [rdi + 0x20]
shl rax, 5
xor edx, edx
xor ebp, ebp
jmp 0x4224b1
add rbp, 1
add rdx, 0x20
cmp rax, rdx
je 0x422347
mov rbx, qword [rcx + rdx + 8]
test rbx, rbx
je 0x4224a0
cmp dword [rbx + 0x18], 0
je 0x4224a0
jmp 0x422360
mov rax, qword [rdi + 0x1d8]
mov qword [r12], rax
mov qword [rdi + 0x1d8], r12
jmp 0x422336
mov rcx, r12
call qword [0x005f6038]
jmp 0x422336
mov rax, qword [rdi + 0x1c8]
mov qword [r12], rax
mov qword [rdi + 0x1c8], r12
jmp 0x422336