Function at 0x605230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.006d13f0
push ebx
mov ebx, dword [ebp + 0x14]
xor ecx, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x174]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x164]
mov dword [ebp - 0x14], eax
mov eax, ebx
add eax, dword [edi + 0x38]
adc ecx, dword [edi + 0x3c]
cmp ecx, 0xf
ja 0x6054d8
jb 0x605275
cmp eax, 0xffffffe0
ja 0x6054d8
cmp dword [edi + 0x16c], 0
mov dword [edi + 0x3c], ecx
lea ecx, [edi + 0x40]
push esi
mov esi, dword [edi + 0x168]
mov dword [edi + 0x38], eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], ecx
je 0x6052f2
test ebx, ebx
jne 0x6052b7
lea eax, [edi + 0x60]
push eax
mov eax, dword [edi + 0x160]
push ecx
call eax
add esp, 8
mov dword [edi + 0x16c], ebx
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [ecx]
lea edx, [edi + 0x178]
mov esi, 0x10
mov dword [ebp - 8], esi
movups xmmword [edx], xmm0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x16c], 0
jmp 0x6052fb
lea edx, [edi + 0x178]
mov dword [ebp - 0x10], ecx
mov eax, dword [edi + 0xc]
bswap eax
mov dword [ebp - 0xc], eax
mov eax, esi
and eax, 0xf
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], eax
je 0x605384
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x14], ecx
mov dword [ebp - 4], edx
nop
test ebx, ebx
je 0x60535f
mov cl, byte [edx]
dec ebx
mov byte [edi + esi + 0x178], cl
lea edx, [edi + 0x178]
mov al, byte [eax + edi + 0x10]
inc esi
xor al, cl
mov dword [ebp - 8], edx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
inc edx
mov dword [ebp - 4], edx
mov byte [ecx], al
inc ecx
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp + 0x14], ecx
and eax, 0xf
mov dword [ebp - 0x1c], eax
jne 0x605320
mov ecx, dword [ebp - 8]
jmp 0x60536a
mov ecx, dword [ebp - 8]
test eax, eax
jne 0x6054c9
push esi
push ecx
lea edx, [edi + 0x60]
lea eax, [edi + 0x40]
push edx
push eax
call dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add esp, 0x10
xor esi, esi
mov dword [ebp - 8], esi
jmp 0x605390
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea edx, [edi + 0x60]
cmp ebx, 0x10
jb 0x6053b1
test esi, esi
je 0x6053b1
push esi
lea eax, [edi + 0x178]
push eax
push edx
push ecx
call dword [ebp - 0x14]
add esp, 0x10
xor esi, esi
mov dword [ebp - 8], esi
cmp ebx, 0xc00
jb 0x605426
mov esi, dword [ebp - 4]
mov eax, 0xaaaaaaab
mul ebx
shr edx, 0xb
mov dword [ebp - 0x20], edx
nop dword [eax]
push 0xc00
push esi
lea eax, [edi + 0x60]
push eax
push dword [ebp - 0x10]
call dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
push edi
push dword [ebp - 0x18]
push 0xc0
push ecx
push esi
call dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
add esp, 0x24
add dword [ebp + 0x14], 0xc00
add ecx, 0xc0
mov eax, ecx
mov dword [ebp - 0xc], ecx
bswap eax
add esi, 0xc00
mov dword [edi + 0xc], eax
sub ebx, 0xc00
sub dword [ebp - 0x20], 1
jne 0x6053d0
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
mov eax, ebx
and eax, 0xfffffff0
mov dword [ebp - 0x20], eax
je 0x605470
push eax
push dword [ebp - 4]
mov esi, eax
lea eax, [edi + 0x60]
push eax
push dword [ebp - 0x10]
shr esi, 4
call dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
push edi
push dword [ebp - 0x18]
push esi
push ecx
push dword [ebp - 4]
call dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
add esp, 0x24
add eax, esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0xc], eax
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x20]
add dword [ebp + 0x14], eax
add dword [ebp - 4], eax
sub ebx, eax
test ebx, ebx
je 0x6054c9
push dword [ebp - 0x18]
lea eax, [edi + 0x10]
push eax
mov eax, dword [edi + 0x170]
push edi
call eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp + 0x14]
inc eax
bswap eax
mov dword [edi + 0xc], eax
add edi, 0x10
mov eax, dword [ebp - 0x1c]
lea edx, [eax + ecx]
add eax, edi
mov edi, dword [ebp - 4]
mov dword [ebp + 0x14], eax
sub edi, ecx
mov eax, dword [ebp - 0x24]
lea edx, [edx + 1]
mov cl, byte [edi + edx - 1]
mov byte [eax + esi], cl
inc esi
mov eax, dword [ebp + 0x14]
inc dword [ebp + 0x14]
mov al, byte [eax]
xor al, cl
mov byte [edx - 1], al
sub ebx, 1
jne 0x6054a6
mov edi, dword [ebp + 8]
mov dword [edi + 0x168], esi
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret