Function at 0x609e50
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.004ce320
push ebx
mov ebx, dword [esp + 0x34]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 0x170]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x174]
mov dword [esp + 0x18], eax
mov eax, ebx
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x60a1e9
jb 0x609e96
cmp eax, 0xffffffe0
ja 0x60a1e9
cmp dword [esi + 0x16c], 0
mov edx, dword [esi + 0x168]
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x40]
mov dword [esi + 0x38], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], ecx
je 0x609f0f
test ebx, ebx
jne 0x609ed5
lea eax, [esi + 0x60]
push eax
push ecx
call fcn.0060b3f0
add esp, 8
mov dword [esi + 0x16c], ebx
xor eax, eax
pop esi
pop ebx
add esp, 0x20
ret
movups xmm0, xmmword [ecx]
mov edx, 0x10
mov dword [esp + 0xc], edx
movups xmmword [esi + 0x178], xmm0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x16c], 0
jmp 0x609f13
mov dword [esp + 0x14], ecx
movzx ecx, byte [esi + 0xc]
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xf]
shl ecx, 8
or ecx, eax
mov eax, edx
push ebp
mov ebp, dword [esp + 0x38]
and eax, 0xf
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
je 0x609fb5
lea eax, [esi + 0x178]
add eax, edx
mov dword [esp + 0x40], eax
test ebx, ebx
je 0x60a139
mov cl, byte [edi]
inc edx
mov byte [eax], cl
inc edi
mov eax, dword [esp + 0x10]
dec ebx
mov al, byte [eax + esi + 0x10]
xor al, cl
mov ecx, dword [esp + 0x10]
mov byte [ebp], al
inc ecx
mov eax, dword [esp + 0x40]
inc ebp
inc eax
and ecx, 0xf
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], ecx
jne 0x609f57
push edx
lea eax, [esi + 0x178]
push eax
lea eax, [esi + 0x60]
lea ecx, [esi + 0x40]
push eax
push ecx
call fcn.0060b1c0
mov eax, dword [esp + 0x20]
add esp, 0x10
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x40], ebx
lea ecx, [esi + 0x60]
cmp ebx, 0x10
jb 0x609fde
test edx, edx
je 0x609fde
push edx
lea eax, [esi + 0x178]
push eax
push ecx
push dword [esp + 0x28]
call fcn.0060b1c0
add esp, 0x10
mov dword [esp + 0x14], 0
cmp ebx, 0xc00
jb 0x60a09b
mov eax, 0xaaaaaaab
mul ebx
shr edx, 0xb
mov dword [esp + 0x2c], edx
nop dword [eax + eax]
push 0xc00
push edi
lea eax, [esi + 0x60]
push eax
push dword [esp + 0x28]
call fcn.0060b1c0
mov ebx, dword [esp + 0x28]
add esp, 0x10
mov dword [esp + 0x28], 0xc0
push dword [esp + 0x20]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x30]
inc ebx
add esp, 0xc
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
mov dword [ebp], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebp + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebp + 0xc], eax
add ebp, 0x10
sub dword [esp + 0x28], 1
jne 0x60a022
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x40]
sub ebx, 0xc00
sub dword [esp + 0x2c], 1
mov dword [esp + 0x40], ebx
jne 0x60a000
mov eax, ebx
and eax, 0xfffffff0
je 0x60a149
push eax
push edi
lea eax, [esi + 0x60]
push eax
push dword [esp + 0x28]
call fcn.0060b1c0
add esp, 0x10
lea ecx, [esi + 0x10]
cmp ebx, 0x10
jb 0x60a14c
mov eax, ebx
shr eax, 4
mov dword [esp + 0x40], eax
nop dword [eax]
push dword [esp + 0x20]
push ecx
push esi
call dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
add esp, 0xc
inc ecx
sub ebx, 0x10
mov eax, ecx
mov byte [esi + 0xf], cl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
mov dword [ebp], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [esp + 0x18], ecx
lea ecx, [esi + 0x10]
mov dword [ebp + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebp + 0xc], eax
add ebp, 0x10
sub dword [esp + 0x40], 1
jne 0x60a0d0
jmp 0x60a14c
pop edi
pop ebp
mov dword [esi + 0x168], edx
xor eax, eax
pop esi
pop ebx
add esp, 0x20
ret
lea ecx, [esi + 0x10]
test ebx, ebx
je 0x60a1d5
push dword [esp + 0x20]
push ecx
push esi
call dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
add esp, 0xc
inc ecx
sub edi, ebp
mov eax, ecx
mov byte [esi + 0xf], cl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
mov ecx, dword [esp + 0x14]
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [esp + 0x10]
lea edx, [eax + ebp]
add eax, 0x10
add eax, esi
mov dword [esp + 0x2c], eax
lea eax, [esi + 0x178]
mov esi, dword [esp + 0x2c]
add eax, ecx
add ecx, ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], ecx
nop dword [eax]
mov cl, byte [edi + edx]
lea esi, [esi + 1]
mov byte [eax], cl
lea edx, [edx + 1]
mov al, byte [esi - 1]
xor al, cl
mov byte [edx - 1], al
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
sub ebx, 1
jne 0x60a1b0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
pop edi
pop ebp
mov dword [esi + 0x168], eax
xor eax, eax
pop esi
pop ebx
add esp, 0x20
ret
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret