Function at 0x140005f10
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x30]
sub rsp, 0x130
test edx, edx
jne 0x140005ff9
mov rbx, qword [0x14002cc68]
test rbx, rbx
je 0x140005fe9
mov rcx, qword [rbx]
test rcx, rcx
je 0x140005f6a
movsxd rax, dword [rcx + 0x3c]
mov edx, dword [rax + rcx + 0x28]
test edx, edx
je 0x140005f6a
mov eax, edx
add rax, rcx
jne 0x140005f5c
mov dword [rbx + 0x20], 6
jmp 0x140005f6a
xor r8d, r8d
xor edx, edx
call rax
mov rbx, qword [0x14002cc68]
test rbx, rbx
je 0x140005fe9
xor edi, edi
mov dword [rbx + 0x20], edi
cmp dword [rbx + 0x18], edi
je 0x140005fa4
mov rcx, qword [rbx]
test rcx, rcx
je 0x140005fa4
movsxd rax, dword [rcx + 0x3c]
mov edx, dword [rax + rcx + 0x28]
test edx, edx
je 0x140005fa4
mov eax, edx
add rax, rcx
jne 0x140005f9d
mov dword [rbx + 0x20], 6
jmp 0x140005fa4
xor r8d, r8d
xor edx, edx
call rax
mov rax, qword [rbx + 0x10]
mov rcx, rax
test rax, rax
je 0x140005fd9
cmp dword [rbx + 0x1c], edi
je 0x140005fd9
mov r9, qword [rbx]
test r9, r9
je 0x140005fd9
xor edx, edx
mov r8d, 0x8000
mov rcx, r9
call qword [rax + 0x20]
mov rcx, qword [rbx + 0x10]
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov dword [rbx + 0x1c], edi
mov rdi, qword [rcx + 0x38]
test rdi, rdi
je 0x140005fe9
call rdi
mov rcx, rbx
call rdi
mov eax, 1
add rsp, 0x130
pop rdi
pop rbx
pop rbp
ret
cmp edx, 2
jne 0x140006054
mov rdx, qword [0x14002cc68]
test rdx, rdx
je 0x14000602f
mov rcx, qword [rdx]
test rcx, rcx
je 0x14000602f
movsxd rax, dword [rcx + 0x3c]
mov r8d, dword [rax + rcx + 0x28]
test r8d, r8d
je 0x14000602f
mov eax, r8d
add rax, rcx
jne 0x14000603e
mov dword [rdx + 0x20], 6
xor edi, edi
mov eax, edi
add rsp, 0x130
pop rdi
pop rbx
pop rbp
ret
xor r8d, r8d
lea edx, [r8 + 2]
call rax
mov edi, eax
add rsp, 0x130
pop rdi
pop rbx
pop rbp
ret
cmp edx, 3
jne 0x140006099
mov rdx, qword [0x14002cc68]
test rdx, rdx
je 0x14000602f
mov rcx, qword [rdx]
test rcx, rcx
je 0x14000602f
movsxd rax, dword [rcx + 0x3c]
mov r8d, dword [rax + rcx + 0x28]
test r8d, r8d
je 0x14000602f
mov eax, r8d
add rax, rcx
je 0x140006028
xor r8d, r8d
lea edx, [r8 + 3]
call rax
mov edi, eax
add rsp, 0x130
pop rdi
pop rbx
pop rbp
ret
mov eax, 0x2d000
mov qword [rsp + 0x150], rsi
mov qword [rsp + 0x50], rax
mov dword [rbp + 0x58], 0x2daa00
mov dword [rbp + 0x68], 0x102de00
mov qword [rsp + 0x128], r14
mov dword [rsp + 0x58], 0x1000
mov qword [rsp + 0x120], r15
call fcn.140028d00
call fcn.1400275e0
mov rax, qword [rsp + 0x50]
lea rcx, [0x140000000]
add rax, rcx
mov dword [rsp + 0x30], 0xefb823d6
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x34], 0xc3ce2662
mov dword [rsp + 0x38], 0x12554ce2
mov dword [rsp + 0x3c], 0xe773e87d
mov dword [rsp + 0x40], 0x6b779c83
mov dword [rsp + 0x44], 0x573ba9b1
mov dword [rsp + 0x48], 0xeadb5fb2
mov dword [rsp + 0x4c], 0xa28eb60d
call fcn.1400029a0
mov r14, qword [rsp + 0x50]
mov esi, dword [rbp + 0x58]
mov rbx, r14
mov dword [rbp + 0x10], 0x2d314218
mov dword [rbp + 0x14], 0xb6daeffc
mov dword [rbp + 0x18], 0xdf149b9
mov dword [rbp + 0x1c], 0xbd7e7e03
test rsi, rsi
je 0x1400061bd
lea rdi, [rbp + 0x10]
sub rdi, r14
dec rsi
shr rsi, 4
inc rsi
nop dword [rax + rax]
movups xmm0, xmmword [rbx]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400035b0
mov ecx, 0x10
nop word [rax + rax]
movzx eax, byte [rdi + rbx]
xor byte [rbx], al
inc rbx
sub rcx, 1
jne 0x1400061a0
sub rdi, 0x10
movaps xmmword [rbp + 0x10], xmm0
sub rsi, 1
jne 0x140006180
mov ecx, dword [rbp + 0x68]
call fcn.140027630
mov edi, dword [rbp + 0x58]
mov r15, rax
mov esi, dword [rbp + 0x68]
sub edi, 0x20
call fcn.140006440
mov rbx, rax
test rax, rax
je 0x1400061fd
lea r9, [r14 + 0x10]
mov qword [rsp + 0x20], rdi
mov r8d, esi
mov rdx, r15
mov rcx, rax
call fcn.1400070e0
mov rcx, rbx
call fcn.1400067a0
mov r8d, dword [rbp + 0x58]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.140027600
call fcn.140004d00
mov r14, rax
test rax, rax
jne 0x14000621e
xor edi, edi
jmp 0x140006261
mov rax, qword [rax + 0x30]
mov edx, 0x28
lea ecx, [rdx + 0x18]
call rax
xor edi, edi
mov rsi, rax
test rax, rax
je 0x140006261
xor r8d, r8d
mov qword [rax + 0x10], r14
mov rdx, r15
mov qword [rax + 0x18], rdi
mov rcx, rax
mov dword [rax + 0x20], edi
call fcn.140003df0
test eax, eax
jne 0x140006264
mov rbx, qword [r14 + 0x38]
mov rcx, rsi
call rbx
mov rcx, r14
call rbx
mov rsi, rdi
mov rax, qword [rsi]
mov r15, qword [rsp + 0x120]
mov r14, qword [rsp + 0x128]
mov qword [0x14002cc68], rsi
mov qword [section._ABYSS_], rax
mov qword [0x140001008], rdi
test rsi, rsi
je 0x1400062c0
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400062c0
movsxd rax, dword [rcx + 0x3c]
mov edx, dword [rax + rcx + 0x28]
test edx, edx
je 0x1400062c0
mov eax, edx
add rax, rcx
jne 0x1400062b5
mov dword [rsi + 0x20], 6
jmp 0x1400062c0
xor r8d, r8d
lea edx, [r8 + 1]
call rax
mov edi, eax
mov rsi, qword [rsp + 0x150]
mov eax, edi
add rsp, 0x130
pop rdi
pop rbx
pop rbp
ret