Function at 0x6054f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28
call fcn.006d13f0
mov ecx, dword [ebp + 0x14]
xor edx, edx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x170]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x174]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x164]
mov dword [ebp - 0x10], eax
mov eax, ecx
add eax, dword [esi + 0x38]
adc edx, dword [esi + 0x3c]
cmp edx, 0xf
ja 0x605805
jb 0x60553d
cmp eax, 0xffffffe0
ja 0x605805
cmp dword [esi + 0x16c], 0
push ebx
mov dword [esi + 0x3c], edx
lea ebx, [esi + 0x40]
mov edx, dword [esi + 0x168]
push edi
mov dword [esi + 0x38], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ebx
je 0x6055bf
test ecx, ecx
jne 0x605584
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x160]
push ebx
call eax
add esp, 8
mov dword [esi + 0x16c], 0
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [ebx]
lea edi, [esi + 0x178]
mov edx, 0x10
mov dword [ebp - 8], edx
movups xmmword [edi], xmm0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x16c], 0
jmp 0x6055c8
lea edi, [esi + 0x178]
mov dword [ebp - 0xc], ebx
mov eax, dword [esi + 0xc]
mov ebx, dword [ebp + 0x10]
bswap eax
mov dword [ebp - 4], eax
mov eax, edx
and eax, 0xf
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], eax
je 0x605642
mov dword [ebp - 8], edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x60561d
mov al, byte [eax + esi + 0x10]
lea ecx, [esi + 0x178]
xor al, byte [edi]
inc edi
mov byte [ebx], al
inc ebx
mov byte [esi + edx + 0x178], al
inc edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
inc eax
mov ecx, dword [ebp + 0x14]
dec ecx
and eax, 0xf
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0x1c], eax
jne 0x6055e6
mov ecx, dword [ebp - 8]
jmp 0x605628
mov ecx, dword [ebp - 8]
test eax, eax
jne 0x6057f6
push edx
push ecx
lea ecx, [esi + 0x60]
lea eax, [esi + 0x40]
push ecx
push eax
call dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
add esp, 0x10
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x605645
mov edi, dword [ebp + 0xc]
cmp ecx, 0x10
jb 0x60566d
test edx, edx
je 0x60566d
push edx
lea eax, [esi + 0x178]
push eax
lea eax, [esi + 0x60]
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
add esp, 0x10
mov dword [ebp - 8], 0
cmp ecx, 0xc00
jb 0x60570a
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [ebp - 0x24], edx
nop word [eax + eax]
mov dword [ebp - 0x20], 0xc0
push dword [ebp - 0x14]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
mov dword [ebp - 4], eax
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [ebp - 0x20], 1
jne 0x605697
push 0xc00
lea eax, [ebx - 0xc00]
push eax
lea eax, [esi + 0x60]
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
add esp, 0x10
sub ecx, 0xc00
sub dword [ebp - 0x24], 1
mov dword [ebp + 0x14], ecx
jne 0x605690
mov edx, ecx
and edx, 0xfffffff0
mov dword [ebp - 0x20], edx
je 0x605787
cmp ecx, 0x10
jb 0x605771
shr ecx, 4
lea eax, [esi + 0x10]
mov dword [ebp - 0x24], ecx
push dword [ebp - 0x14]
push eax
push esi
call dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
sub dword [ebp + 0x14], 0x10
mov dword [ebp - 4], eax
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [ebp - 0x24], 1
lea eax, [esi + 0x10]
jne 0x605722
mov edx, dword [ebp - 0x20]
push edx
mov eax, ebx
sub eax, edx
push eax
lea eax, [esi + 0x60]
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
add esp, 0x10
test ecx, ecx
je 0x6057f3
push dword [ebp - 0x14]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
inc eax
mov edx, dword [ebp - 8]
bswap eax
mov dword [esi + 0xc], eax
lea eax, [ecx + ebx]
mov dword [ebp - 0x24], eax
lea eax, [esi + 0x10]
add eax, ecx
mov ecx, dword [ebp + 0x14]
sub edi, ebx
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x24]
mov esi, eax
mov al, byte [edi + ebx]
lea esi, [esi + 1]
xor al, byte [esi - 1]
lea ebx, [ebx + 1]
dec ecx
mov byte [ebx - 1], al
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp - 0x28]
mov byte [ecx + edx], al
inc edx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x6057c0
mov esi, dword [ebp + 8]
xor eax, eax
pop edi
pop ebx
mov dword [esi + 0x168], edx
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
pop edi
pop ebx
mov dword [esi + 0x168], edx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret