Function at 0x605810
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 0x605ab4
jb 0x605855
cmp eax, 0xffffffe0
ja 0x605ab4
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 0x6058d2
test ebx, ebx
jne 0x605897
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 0x6058db
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 0x60595f
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
mov dword [ebp + 0x14], ecx
nop
test ebx, ebx
je 0x60593a
mov al, byte [eax + edi + 0x10]
dec ebx
xor al, byte [ecx]
lea ecx, [edi + 0x178]
mov byte [edx], al
inc edx
mov byte [edi + esi + 0x178], al
inc esi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
inc eax
mov ecx, dword [ebp + 0x14]
inc ecx
mov dword [ebp - 4], edx
and eax, 0xf
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0x1c], eax
jne 0x605900
mov ecx, dword [ebp - 8]
jmp 0x605945
mov ecx, dword [ebp - 8]
test eax, eax
jne 0x605aa5
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 0x60596b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
lea edx, [edi + 0x60]
cmp ebx, 0x10
jb 0x60598c
test esi, esi
je 0x60598c
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 0x605a00
mov esi, dword [ebp + 0x14]
mov eax, 0xaaaaaaab
mul ebx
mov eax, dword [ebp - 4]
shr edx, 0xb
mov dword [ebp - 0x20], edx
push edi
push dword [ebp - 0x18]
push 0xc0
push eax
push esi
call dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
add eax, 0xc0
mov dword [ebp - 0xc], eax
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
push 0xc00
push eax
lea eax, [edi + 0x60]
push eax
push dword [ebp - 0x10]
call dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add esp, 0x24
add eax, 0xc00
add esi, 0xc00
sub ebx, 0xc00
mov dword [ebp - 4], eax
sub dword [ebp - 0x20], 1
jne 0x6059a7
mov dword [ebp + 0x14], esi
mov esi, dword [ebp - 8]
jmp 0x605a03
mov eax, dword [ebp - 4]
mov ecx, ebx
and ecx, 0xfffffff0
mov dword [ebp - 0x20], ecx
je 0x605a4e
push edi
push dword [ebp - 0x18]
mov esi, ecx
shr esi, 4
push esi
push eax
push dword [ebp + 0x14]
call dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
add eax, esi
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], eax
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x20]
sub ebx, eax
add dword [ebp + 0x14], eax
push eax
push esi
lea eax, [edi + 0x60]
push eax
push dword [ebp - 0x10]
call dword [ebp - 0x14]
add esp, 0x24
add esi, dword [ebp - 0x20]
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
test ebx, ebx
je 0x605aa5
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 edx, dword [ebp - 0x1c]
inc eax
bswap eax
mov dword [edi + 0xc], eax
add edi, 0x10
mov eax, dword [ebp - 4]
lea ecx, [edx + eax]
add edx, edi
mov edi, dword [ebp + 0x14]
sub edi, eax
mov dword [ebp + 0x14], edi
mov al, byte [edi + ecx]
lea edx, [edx + 1]
xor al, byte [edx - 1]
lea ecx, [ecx + 1]
mov edi, dword [ebp - 0x24]
mov byte [ecx - 1], al
mov byte [edi + esi], al
inc esi
mov edi, dword [ebp + 0x14]
sub ebx, 1
jne 0x605a84
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