Function at 0x180058c38
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x18005910f
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1800824f0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x48], rbx
mov r11, rcx
mov qword [rsp + 0x50], r14
xor esi, esi
lea r14, [0x180072670]
movsxd rdi, edx
nop word [rax + rax]
mov rax, qword [r11 + 0xa0]
lea rcx, [r11 + 0x50]
xor rax, qword [r11 + 0x78]
mov r9d, 4
xor rax, qword [r11 + 0x50]
xor rax, qword [r11 + 0x28]
xor rax, qword [r11]
mov qword [rsp], rax
lea r10d, [r9 + 1]
mov rax, qword [r11 + 0xa8]
xor rax, qword [r11 + 0x80]
xor rax, qword [r11 + 0x58]
xor rax, qword [r11 + 0x30]
xor rax, qword [r11 + 8]
mov qword [rsp + 8], rax
mov rax, qword [r11 + 0x88]
xor rax, qword [r11 + 0x60]
xor rax, qword [r11 + 0x38]
xor rax, qword [r11 + 0x10]
xor rax, qword [r11 + 0xb0]
mov qword [rsp + 0x10], rax
mov rax, qword [r11 + 0xb8]
xor rax, qword [r11 + 0x90]
xor rax, qword [r11 + 0x68]
xor rax, qword [r11 + 0x40]
xor rax, qword [r11 + 0x18]
mov qword [rsp + 0x18], rax
mov rax, qword [r11 + 0xc0]
xor rax, qword [r11 + 0x98]
xor rax, qword [r11 + 0x70]
xor rax, qword [r11 + 0x48]
xor rax, qword [r11 + 0x20]
mov qword [rsp + 0x20], rax
nop dword [rax]
nop dword [rax + rax]
lea r8d, [r9 - 3]
mov eax, 0x66666667
imul r8d
lea rcx, [rcx + 8]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
sub r8d, eax
movsxd rax, r8d
mov r8, qword [rsp + rax*8]
mov eax, 0x66666667
imul r9d
rol r8, 1
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
mov edx, r9d
sub edx, eax
inc r9d
movsxd rax, edx
xor r8, qword [rsp + rax*8]
xor qword [rcx - 0x58], r8
xor qword [rcx - 0x30], r8
xor qword [rcx - 8], r8
xor qword [rcx + 0x20], r8
xor qword [rcx + 0x48], r8
sub r10, 1
jne 0x180058d20
mov rax, qword [r11 + 0x30]
ror rax, 0x14
mov rcx, qword [r11 + 8]
mov qword [r11 + 8], rax
mov rax, qword [r11 + 0x48]
rol rax, 0x14
mov qword [r11 + 0x30], rax
mov rax, qword [r11 + 0xb0]
ror rax, 3
mov qword [r11 + 0x48], rax
mov rax, qword [r11 + 0x70]
ror rax, 0x19
mov qword [r11 + 0xb0], rax
mov rax, qword [r11 + 0xa0]
rol rax, 0x12
mov qword [r11 + 0x70], rax
mov rax, qword [r11 + 0x10]
ror rax, 2
mov qword [r11 + 0xa0], rax
mov rax, qword [r11 + 0x68]
rol rax, 0x19
mov r10, qword [r11 + 0x60]
mov qword [r11 + 0x60], rax
mov rax, qword [r11 + 0x98]
rol rax, 8
mov qword [r11 + 0x68], rax
mov rax, qword [r11 + 0xb8]
ror rax, 8
mov qword [r11 + 0x98], rax
mov rax, qword [r11 + 0x78]
ror rax, 0x17
mov qword [r11 + 0xb8], rax
mov rax, qword [r11 + 0x20]
rol rax, 0x1b
mov qword [r11 + 0x78], rax
mov rax, qword [r11 + 0xc0]
rol rax, 0xe
mov qword [r11 + 0x20], rax
mov rax, qword [r11 + 0xa8]
rol rax, 2
mov qword [r11 + 0xc0], rax
mov rax, qword [r11 + 0x40]
ror rax, 9
mov qword [r11 + 0xa8], rax
mov rax, qword [r11 + 0x80]
ror rax, 0x13
mov qword [r11 + 0x40], rax
mov rax, qword [r11 + 0x28]
ror rax, 0x1c
mov qword [r11 + 0x80], rax
mov rax, qword [r11 + 0x18]
rol rax, 0x1c
mov qword [r11 + 0x28], rax
mov rax, qword [r11 + 0x90]
rol rax, 0x15
mov qword [r11 + 0x18], rax
mov rax, qword [r11 + 0x88]
rol rax, 0xf
mov qword [r11 + 0x90], rax
mov rax, qword [r11 + 0x58]
rol rax, 0xa
mov qword [r11 + 0x88], rax
mov rax, qword [r11 + 0x38]
rol rax, 6
mov qword [r11 + 0x58], rax
mov rax, qword [r11 + 0x50]
rol rax, 3
mov qword [r11 + 0x38], rax
ror r10, 0x15
mov qword [r11 + 0x10], r10
rol rcx, 1
mov qword [r11 + 0x50], rcx
mov r9, qword [r11]
mov r8, qword [r11 + 8]
mov rdx, qword [r11 + 0x18]
mov rax, r8
not rax
and rax, r10
xor rax, r9
mov qword [r11], rax
mov rax, r10
mov rcx, qword [r11 + 0x20]
not rax
and rax, rdx
xor rax, r8
mov qword [r11 + 8], rax
mov rax, rdx
not rax
and rax, rcx
xor rax, r10
mov qword [r11 + 0x10], rax
mov rax, rcx
not rax
and rax, r9
not r9
xor rax, rdx
and r9, r8
mov qword [r11 + 0x18], rax
xor r9, rcx
mov qword [r11 + 0x20], r9
mov r9, qword [r11 + 0x30]
mov r8, qword [r11 + 0x38]
mov rax, r9
mov rdx, qword [r11 + 0x40]
not rax
mov rcx, qword [r11 + 0x48]
and rax, r8
mov r10, qword [r11 + 0x28]
xor rax, r10
mov qword [r11 + 0x28], rax
mov rax, r8
not rax
and rax, rdx
xor rax, r9
mov qword [r11 + 0x30], rax
mov rax, rdx
not rax
and rax, rcx
xor rax, r8
mov qword [r11 + 0x38], rax
mov rax, rcx
not rax
and rax, r10
not r10
xor rax, rdx
and r10, r9
mov qword [r11 + 0x40], rax
xor r10, rcx
mov qword [r11 + 0x48], r10
mov r9, qword [r11 + 0x58]
mov r8, qword [r11 + 0x60]
mov rax, r9
mov r10, qword [r11 + 0x50]
not rax
mov rdx, qword [r11 + 0x68]
and rax, r8
mov rcx, qword [r11 + 0x70]
xor rax, r10
mov qword [r11 + 0x50], rax
mov rax, r8
not rax
and rax, rdx
xor rax, r9
mov qword [r11 + 0x58], rax
mov rax, rdx
not rax
and rax, rcx
xor rax, r8
mov qword [r11 + 0x60], rax
mov rax, rcx
not rax
and rax, r10
not r10
and r10, r9
xor rax, rdx
mov qword [r11 + 0x68], rax
xor r10, rcx
mov qword [r11 + 0x70], r10
mov r9, qword [r11 + 0x80]
mov r10, qword [r11 + 0x78]
mov rax, r9
mov r8, qword [r11 + 0x88]
mov rdx, qword [r11 + 0x90]
not rax
mov rcx, qword [r11 + 0x98]
and rax, r8
xor rax, r10
mov qword [r11 + 0x78], rax
mov rax, r8
not rax
and rax, rdx
xor rax, r9
mov qword [r11 + 0x80], rax
mov rax, rdx
not rax
and rax, rcx
xor rax, r8
mov qword [r11 + 0x88], rax
mov rax, rcx
not rax
and rax, r10
not r10
xor rax, rdx
and r10, r9
mov qword [r11 + 0x90], rax
xor r10, rcx
mov qword [r11 + 0x98], r10
mov r9, qword [r11 + 0xa8]
mov rcx, qword [r11 + 0xb0]
mov rax, r9
mov rdx, qword [r11 + 0xb8]
not rax
mov r8, qword [r11 + 0xc0]
and rax, rcx
mov r10, qword [r11 + 0xa0]
not rcx
xor rax, r10
and rcx, rdx
mov qword [r11 + 0xa0], rax
not rdx
xor qword [r11 + 0xa8], rcx
and rdx, r8
xor qword [r11 + 0xb0], rdx
not r8
and r8, r10
not r10
xor qword [r11 + 0xb8], r8
and r10, r9
xor qword [r11 + 0xc0], r10
mov rax, qword [r14 + rsi*8]
inc rsi
xor qword [r11], rax
cmp rsi, rdi
jl 0x180058c70
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180060dd0
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret