Function at 0x515e00
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r13, qword [rcx + 0x98]
test r13, r13
je 0x516137
mov r12, rcx
mov rdi, qword [rcx + 0x10]
mov rax, qword [rcx]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
jmp 0x515e4d
mov r13, qword [r13]
test r13, r13
je 0x516137
mov rax, qword [rsp + 0x30]
mov rsi, qword [rax + 0x20]
movsxd rbx, dword [r13 + 0x10]
mov ebp, dword [r13 + 0x14]
mov al, byte [r12 + 0x1f]
test al, al
je 0x515e80
add al, 0xff
mov byte [r12 + 0x1f], al
movzx eax, al
mov r14d, dword [r12 + rax*4 + 0xd8]
jmp 0x515e8e
mov r14d, dword [r12 + 0x38]
add r14d, 1
mov dword [r12 + 0x38], r14d
lea r8d, [rbp + 2]
movsxd rax, dword [rdi + 0x90]
lea r9d, [rax + 7]
cmp dword [rdi + 0x94], eax
jle 0x515ee0
lea ecx, [rax + 1]
mov dword [rdi + 0x90], ecx
mov rcx, qword [rdi + 0x88]
lea rax, [rax + rax*2]
mov dword [rcx + rax*8], 0x37
mov dword [rcx + rax*8 + 4], r8d
mov dword [rcx + rax*8 + 8], r9d
mov dword [rcx + rax*8 + 0xc], ebp
mov qword [rcx + rax*8 + 0x10], 0
jmp 0x515ef1
mov dword [rsp + 0x20], ebp
mov rcx, rdi
mov edx, 0x37
call fcn.0047df60
movsxd rdi, dword [r13 + 0x10]
shl rbx, 5
mov rax, qword [rsi + rbx + 0x18]
mov r15, qword [rax + 0x68]
mov rbx, qword [r12 + 0x10]
cmp rdi, 1
je 0x515f40
mov rax, qword [r12]
mov rax, qword [rax + 0x20]
mov rcx, rdi
shl rcx, 5
mov rax, qword [rax + rcx + 8]
cmp byte [rax + 0x11], 0
je 0x515f40
mov r8d, dword [r15 + 0x28]
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
mov rcx, r12
mov edx, edi
mov r9b, 1
call fcn.004c63a0
cmp byte [r15 + 0x30], 0
js 0x515fb0
mov r9d, dword [r15 + 0x28]
movsx esi, word [r15 + 0x38]
mov eax, dword [rbx + 0x90]
cmp dword [rbx + 0x94], eax
jle 0x516020
movsxd rcx, eax
lea edx, [rcx + 1]
mov dword [rbx + 0x90], edx
mov rdx, qword [rbx + 0x88]
lea rcx, [rcx + rcx*2]
mov qword [rdx + rcx*8], 0x71
mov dword [rdx + rcx*8 + 8], r9d
mov dword [rdx + rcx*8 + 0xc], edi
mov qword [rdx + rcx*8 + 0x10], 0
mov rdi, qword [rsp + 0x28]
mov rcx, qword [rbx]
cmp byte [rcx + 0x67], 0
jne 0x5160d0
jmp 0x516046
add r15, 0x10
nop word cs:[rax + rax]
nop
mov rsi, qword [r15]
mov eax, dword [rsi + 0x64]
mov ecx, eax
xor ecx, 0xfffffffc
and ecx, eax
lea r15, [rsi + 0x28]
cmp ecx, 2
jne 0x515fc0
mov r9d, dword [rsi + 0x58]
movsxd rax, dword [rbx + 0x90]
cmp dword [rbx + 0x94], eax
jle 0x51605e
lea ecx, [rax + 1]
mov dword [rbx + 0x90], ecx
mov rcx, qword [rbx + 0x88]
lea rax, [rax + rax*2]
mov qword [rcx + rax*8], 0x71
mov dword [rcx + rax*8 + 8], r9d
mov dword [rcx + rax*8 + 0xc], edi
mov qword [rcx + rax*8 + 0x10], 0
jmp 0x516072
mov dword [rsp + 0x20], edi
mov rcx, rbx
mov edx, 0x71
xor r8d, r8d
call fcn.0047df60
mov rdi, qword [rsp + 0x28]
mov rcx, qword [rbx]
cmp byte [rcx + 0x67], 0
jne 0x5160d0
mov rcx, qword [rbx + 0x88]
cdqe
lea rax, [rax + rax*2]
mov byte [rcx + rax*8 + 1], 0xfd
mov dword [rcx + rax*8 + 0x10], esi
jmp 0x5160d0
mov dword [rsp + 0x20], edi
mov rcx, rbx
mov edx, 0x71
xor r8d, r8d
call fcn.0047df60
mov rdi, qword [rsp + 0x28]
mov rbx, qword [r12 + 0x10]
mov rcx, r12
mov rdx, rsi
call fcn.004c65a0
test rax, rax
je 0x5160d0
mov rcx, qword [rbx]
cmp byte [rcx + 0x67], 0
je 0x5160a4
mov edx, 0xfffffff8
mov r8, rax
call fcn.00444fc0
jmp 0x5160d0
mov rcx, qword [rbx + 0x88]
mov edx, dword [rbx + 0x90]
add edx, 0xffffffff
movsxd rdx, edx
lea rdx, [rdx + rdx*2]
mov byte [rcx + rdx*8 + 1], 0xf8
mov qword [rcx + rdx*8 + 0x10], rax
nop word cs:[rax + rax]
nop
mov rcx, rdi
mov edx, 5
lea r8, [0x00604a10]
call fcn.00419d20
test rax, rax
je 0x516137
lea ecx, [rbp + 1]
mov dword [rax + 4], ecx
mov dword [rax + 0x20], ecx
add ebp, 0xffffffff
mov dword [rax + 0x34], ebp
mov dword [rax + 0x3c], r14d
mov dword [rax + 0x50], r14d
mov dword [rax + 0x54], ecx
mov word [rax + 0x4a], 8
test r14d, r14d
je 0x515e40
movzx eax, byte [r12 + 0x1f]
cmp rax, 7
ja 0x515e40
lea ecx, [rax + 1]
mov byte [r12 + 0x1f], cl
mov dword [r12 + rax*4 + 0xd8], r14d
jmp 0x515e40
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret