Function at 0x164c61df0
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
sub rsp, 0x68
mov r11, rcx
test rcx, rcx
je 0x164c624b0
mov qword [rax - 8], rbx
mov rbx, r9
test rbx, rbx
je 0x164c624ab
test r8d, 0xffffffef
jne 0x164c624ab
mov qword [rax - 0x10], rbp
mov ebp, dword [rsp + 0x78]
mov qword [rax - 0x18], rsi
lea rsi, [0x164c99cb0]
mov qword [rax - 0x20], rdi
mov edi, 0xff
mov qword [rax - 0x28], r12
mov r12, rbx
mov qword [rax - 0x30], r13
mov r13d, dword [rsp + 0x90]
cmp r13d, 0x21
mov qword [rax - 0x38], r14
mov qword [rax - 0x40], r15
mov eax, 0xffffffff
cmove edi, eax
xor r14d, r14d
sub r12, rsi
lea r15d, [r14 + 0x12]
nop dword [rax]
xor eax, eax
lea ecx, [r14 + 1]
cmp ecx, ebp
lea rsi, [rsi + 4]
cmovne eax, ecx
mov edx, eax
lea ecx, [rax + 1]
xor eax, eax
movsx r10d, byte [rdx + r11]
cmp ecx, ebp
cmovne eax, ecx
mov r8d, eax
lea ecx, [rax + 1]
xor eax, eax
cmp ecx, ebp
cmovne eax, ecx
movsx ecx, byte [r14 + r11]
and r10d, edi
mov r9d, eax
movsx eax, byte [r8 + r11]
xor r14d, r14d
and eax, edi
shl ecx, 8
or r10d, ecx
shl r10d, 8
or r10d, eax
movsx eax, byte [r9 + r11]
and eax, edi
shl r10d, 8
or r10d, eax
lea eax, [r9 + 1]
cmp eax, ebp
cmovne r14d, eax
xor r10d, dword [rsi - 4]
mov dword [r12 + rsi + 0xffc], r10d
sub r15, 1
jne 0x164c61e80
mov r15, qword [rsp + 0x28]
mov r8d, 0x1000
mov r12, qword [rsp + 0x40]
mov rcx, rbx
cmp r13d, 0x21
jne 0x164c61f21
mov rdx, qword [rsp + 0x98]
call fcn.164c8fe50
jmp 0x164c61f57
lea rdx, [0x164c98cb0]
call fcn.164c8fe50
cmp r13d, 0x10
jne 0x164c61f57
and dword [rbx], 0xfffffff
and dword [rbx + 0x400], 0xfffffff
and dword [rbx + 0x800], 0xfffffff
and dword [rbx + 0xc00], 0xfffffff
xor r9d, r9d
lea rsi, [rbx + 0x1004]
xor eax, eax
lea r10, [rbx + 0x1008]
lea ebp, [rax + 3]
nop dword [rax]
xor edi, edi
mov r11, rsi
nop word [rax + rax]
xor r9d, dword [r11 - 4]
lea r11, [r11 + 8]
mov ecx, r9d
add rdi, 2
shr ecx, 0x10
movzx edx, cl
mov ecx, r9d
shr rcx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x400]
add r8d, dword [rbx + rcx*4]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
xor r8d, dword [rbx + rdx*4 + 0x800]
add r8d, dword [rbx + rcx*4 + 0xc00]
xor r8d, dword [r11 - 8]
xor eax, r8d
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov ecx, eax
shr rcx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x400]
add r8d, dword [rbx + rcx*4]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
xor r8d, dword [rbx + rdx*4 + 0x800]
add r8d, dword [rbx + rcx*4 + 0xc00]
xor r9d, r8d
cmp rdi, 0x10
jl 0x164c61f80
xor eax, dword [rbx + 0x1044]
mov r11, rsi
mov ecx, eax
mov eax, r9d
xor eax, dword [rbx + 0x1040]
mov r9d, ecx
mov dword [r10 - 4], eax
xor edi, edi
mov dword [r10 - 8], ecx
nop
xor r9d, dword [r11 - 4]
lea r11, [r11 + 8]
mov ecx, r9d
add rdi, 2
shr ecx, 0x10
movzx edx, cl
mov ecx, r9d
shr rcx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x400]
add r8d, dword [rbx + rcx*4]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
xor r8d, dword [rbx + rdx*4 + 0x800]
add r8d, dword [rbx + rcx*4 + 0xc00]
xor r8d, dword [r11 - 8]
xor eax, r8d
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov ecx, eax
shr rcx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x400]
add r8d, dword [rbx + rcx*4]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
xor r8d, dword [rbx + rdx*4 + 0x800]
add r8d, dword [rbx + rcx*4 + 0xc00]
xor r9d, r8d
cmp rdi, 0x10
jl 0x164c62030
xor eax, dword [rbx + 0x1044]
mov r11, rsi
xor r9d, dword [rbx + 0x1040]
mov dword [r10], eax
xor edi, edi
mov dword [r10 + 4], r9d
nop word [rax + rax]
xor eax, dword [r11 - 4]
lea r11, [r11 + 8]
mov ecx, eax
add rdi, 2
shr ecx, 0x10
movzx edx, cl
mov ecx, eax
shr rcx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x400]
add r8d, dword [rbx + rcx*4]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
xor r8d, dword [rbx + rdx*4 + 0x800]
add r8d, dword [rbx + rcx*4 + 0xc00]
xor r8d, dword [r11 - 8]
xor r9d, r8d
mov ecx, r9d
shr ecx, 0x10
movzx edx, cl
mov ecx, r9d
shr rcx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x400]
add r8d, dword [rbx + rcx*4]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
xor r8d, dword [rbx + rdx*4 + 0x800]
add r8d, dword [rbx + rcx*4 + 0xc00]
xor eax, r8d
cmp rdi, 0x10
jl 0x164c620e0
xor r9d, dword [rbx + 0x1044]
xor eax, dword [rbx + 0x1040]
mov dword [r10 + 8], r9d
mov dword [r10 + 0xc], eax
add r10, 0x18
sub rbp, 1
jne 0x164c61f70
lea r10, [rbx + 8]
lea r14d, [rbp + 4]
nop dword [rax]
mov ebp, 0x20
nop word [rax + rax]
xor edi, edi
mov r11, rsi
nop word [rax + rax]
xor r9d, dword [r11 - 4]
lea r11, [r11 + 8]
mov ecx, r9d
add rdi, 2
shr ecx, 0x10
movzx edx, cl
mov ecx, r9d
shr rcx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x400]
add r8d, dword [rbx + rcx*4]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
xor r8d, dword [rbx + rdx*4 + 0x800]
add r8d, dword [rbx + rcx*4 + 0xc00]
xor eax, r8d
xor eax, dword [r11 - 8]
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov ecx, eax
shr rcx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x400]
add r8d, dword [rbx + rcx*4]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
xor r8d, dword [rbx + rdx*4 + 0x800]
add r8d, dword [rbx + rcx*4 + 0xc00]
xor r9d, r8d
cmp rdi, 0x10
jl 0x164c621c0
xor eax, dword [rbx + 0x1044]
mov r11, rsi
xor r9d, dword [rbx + 0x1040]
mov dword [r10 - 8], eax
xor edi, edi
mov dword [r10 - 4], r9d
nop dword [rax + rax]
xor eax, dword [r11 - 4]
lea r11, [r11 + 8]
mov ecx, eax
add rdi, 2
shr ecx, 0x10
movzx edx, cl
mov ecx, eax
shr rcx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x400]
add r8d, dword [rbx + rcx*4]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
xor r8d, dword [rbx + rdx*4 + 0x800]
add r8d, dword [rbx + rcx*4 + 0xc00]
xor r8d, dword [r11 - 8]
xor r9d, r8d
mov ecx, r9d
shr ecx, 0x10
movzx edx, cl
mov ecx, r9d
shr rcx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x400]
add r8d, dword [rbx + rcx*4]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
xor r8d, dword [rbx + rdx*4 + 0x800]
add r8d, dword [rbx + rcx*4 + 0xc00]
xor eax, r8d
cmp rdi, 0x10
jl 0x164c62270
xor r9d, dword [rbx + 0x1044]
mov r11, rsi
xor eax, dword [rbx + 0x1040]
mov dword [r10], r9d
xor edi, edi
mov dword [r10 + 4], eax
nop word [rax + rax]
xor r9d, dword [r11 - 4]
lea r11, [r11 + 8]
mov ecx, r9d
add rdi, 2
shr ecx, 0x10
movzx edx, cl
mov ecx, r9d
shr rcx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x400]
add r8d, dword [rbx + rcx*4]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
xor r8d, dword [rbx + rdx*4 + 0x800]
add r8d, dword [rbx + rcx*4 + 0xc00]
xor r8d, dword [r11 - 8]
xor eax, r8d
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov ecx, eax
shr rcx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x400]
add r8d, dword [rbx + rcx*4]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
xor r8d, dword [rbx + rdx*4 + 0x800]
add r8d, dword [rbx + rcx*4 + 0xc00]
xor r9d, r8d
cmp rdi, 0x10
jl 0x164c62320
xor eax, dword [rbx + 0x1044]
mov r11, rsi
xor r9d, dword [rbx + 0x1040]
mov dword [r10 + 8], eax
xor edi, edi
mov dword [r10 + 0xc], r9d
nop dword [rax + rax]
xor eax, dword [r11 - 4]
lea r11, [r11 + 8]
mov ecx, eax
add rdi, 2
shr ecx, 0x10
movzx edx, cl
mov ecx, eax
shr rcx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x400]
add r8d, dword [rbx + rcx*4]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
xor r8d, dword [rbx + rdx*4 + 0x800]
add r8d, dword [rbx + rcx*4 + 0xc00]
xor r8d, dword [r11 - 8]
xor r9d, r8d
mov ecx, r9d
shr ecx, 0x10
movzx edx, cl
mov ecx, r9d
shr rcx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x400]
add r8d, dword [rbx + rcx*4]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
xor r8d, dword [rbx + rdx*4 + 0x800]
add r8d, dword [rbx + rcx*4 + 0xc00]
xor eax, r8d
cmp rdi, 0x10
jl 0x164c623d0
xor r9d, dword [rbx + 0x1044]
xor eax, dword [rbx + 0x1040]
mov dword [r10 + 0x10], r9d
mov dword [r10 + 0x14], eax
add r10, 0x20
sub rbp, 1
jne 0x164c621b0
sub r14, 1
jne 0x164c621a0
mov r14, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov dword [rbx + 0x1048], r13d
mov r13, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x60]
add rsp, 0x68
ret