Function at 0x140035020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movzx eax, byte [rdx + 0xf0]
xor r15d, r15d
mov dword [rsp + 0x68], eax
mov r14, r8
lea r8, sym.phoenix_rainbow_loader.exe_struct_asmjit::ArchTraits_const__const_const_asmjit::_archTraits
mov r13, rdx
mov r12, rcx
test eax, eax
je 0x140035180
xor ebp, ebp
lea rsi, [rdx + 0x118]
nop dword [rax]
nop word [rax + rax]
xor edi, edi
xor ebx, ebx
cmp dword [rsi + rbx*4], 0
je 0x14003515c
lea rax, [rbx + rbp]
shl rax, 4
add rax, qword [r13 + 0x258]
mov ecx, dword [rax]
test ecx, ecx
je 0x14003515c
and cl, 7
cmp cl, 1
jne 0x140035155
mov edx, dword [rax + 4]
mov rcx, qword [r12]
sub edx, 0x100
mov rax, qword [rcx + 8]
cmp edx, dword [rax + 0x190]
jae 0x1400352c5
mov rax, qword [rax + 0x188]
mov r9, qword [rax + rdx*8]
mov rdx, qword [r9 + 0x20]
mov qword [rsp + 0x78], rdx
test rdx, rdx
jne 0x1400350fa
lea r8, [rsp + 0x78]
mov rdx, r9
call fcn.14001f960
test eax, eax
jne 0x140035381
mov rdx, qword [rsp + 0x78]
lea r8, sym.phoenix_rainbow_loader.exe_struct_asmjit::ArchTraits_const__const_const_asmjit::_archTraits
mov eax, dword [rsi + rbx*4]
mov ecx, eax
shr ecx, 0xa
test cl, 1
je 0x14003511a
test dword [rdx + 0x20], 0xf00
je 0x14003513e
mov eax, 3
jmp 0x140035381
mov ecx, eax
shr ecx, 8
test cl, 1
je 0x140035155
mov rcx, rax
shr rcx, 0x18
mov ecx, dword [r8 + rcx*4 + 0xe8]
xor ecx, dword [rdx + 0x20]
test ecx, 0xf00
jne 0x140035155
shr eax, 0x10
mov rcx, r14
movzx r8d, al
call fcn.140033d50
test eax, eax
jne 0x140035381
lea r8, sym.phoenix_rainbow_loader.exe_struct_asmjit::ArchTraits_const__const_const_asmjit::_archTraits
inc edi
inc rbx
cmp edi, 4
jb 0x140035074
inc r15d
add rsi, 0x10
add rbp, 4
cmp r15d, dword [rsp + 0x68]
jb 0x140035070
xor esi, esi
lea rbx, [r13 + 0x218]
lea rdi, [r13 + 0x108]
lea r15, sym.phoenix_rainbow_loader.exe_struct_asmjit::ArchTraits_const__const_const_asmjit::_archTraits
lea ebp, [rsi + 1]
nop word [rax + rax]
mov eax, dword [rdi]
test eax, eax
je 0x1400352fa
shr eax, 0x18
cmp al, 0x15
je 0x1400352e7
mov eax, dword [rbx]
and al, 7
cmp al, bpl
jne 0x1400352e7
mov rcx, qword [r12]
mov eax, dword [rbx + 4]
sub eax, 0x100
mov r8, qword [rcx + 8]
cmp eax, dword [r8 + 0x190]
jae 0x1400352c5
mov edx, eax
mov rax, qword [r8 + 0x188]
mov rdx, qword [rax + rdx*8]
mov r8, qword [rdx + 0x20]
mov qword [rsp + 0x68], r8
test r8, r8
jne 0x140035211
lea r8, [rsp + 0x68]
call fcn.14001f960
test eax, eax
jne 0x140035381
mov r8, qword [rsp + 0x68]
mov ecx, dword [rdi]
mov r9d, ecx
mov eax, ecx
shr r9d, 0x10
shr eax, 8
test bpl, al
je 0x14003539d
mov edx, dword [r8 + 0x20]
mov eax, ecx
shr rax, 0x18
shr edx, 8
and edx, 0xf
mov ecx, dword [r15 + rax*4 + 0xe8]
shr ecx, 8
and ecx, 0xf
cmp edx, ecx
jne 0x1400352e7
or dword [r14], 0x2202
lea eax, [rdx + 8]
movzx ecx, r9b
mov r10d, ebp
shl r10d, cl
or dword [r14 + rdx*4 + 0x10], r10d
mov ecx, dword [r14 + 0xc]
bts ecx, eax
bts ecx, edx
mov dword [r14 + 0xc], ecx
mov rax, qword [r8 + 0x10]
test rax, rax
jne 0x1400352cf
mov rcx, qword [r14 + 0x30]
lea rax, [rcx + 0x18]
mov qword [r14 + 0x30], rax
mov eax, dword [r8]
mov dword [rcx], eax
mov eax, ebp
mov dword [rcx + 4], 0x2202
mov dword [rcx + 8], r10d
mov qword [rcx + 0xc], 0
mov word [rcx + 0x14], 0xff01
mov byte [rcx + 0x16], r9b
mov byte [rcx + 0x17], 0
mov qword [r8 + 0x10], rcx
lea ecx, [rdx*8]
shl eax, cl
add dword [r14 + 8], eax
jmp 0x1400352e7
mov eax, 0x1f
jmp 0x140035381
cmp byte [rax + 0x16], 0xff
jne 0x140035396
inc byte [rax + 0x14]
or dword [rax + 4], 0x2202
mov byte [rax + 0x16], r9b
inc esi
add rdi, 4
add rbx, 0x10
cmp esi, 4
jb 0x1400351a0
mov rax, qword [r12]
mov rdx, rbp
movzx ecx, byte [rax + 0x10c]
mov eax, dword [r13 + 0xa0]
shl rdx, cl
not eax
dec edx
and edx, eax
mov dword [r14 + 0x20], edx
mov rdx, rbp
mov rax, qword [r12]
movzx ecx, byte [rax + 0x10d]
mov eax, dword [r13 + 0xa4]
shl rdx, cl
not eax
dec edx
and edx, eax
mov dword [r14 + 0x24], edx
mov rdx, rbp
mov rax, qword [r12]
movzx ecx, byte [rax + 0x10e]
mov eax, dword [r13 + 0xa8]
not eax
shl rdx, cl
dec edx
and edx, eax
mov dword [r14 + 0x28], edx
mov rax, qword [r12]
movzx ecx, byte [rax + 0x10f]
mov eax, dword [r13 + 0xac]
shl rbp, cl
not eax
dec ebp
and ebp, eax
mov dword [r14 + 0x2c], ebp
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, 0x41
jmp 0x140035381
mov eax, 0x1a
jmp 0x140035381