Function at 0x64e0b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x14]
xor ecx, ecx
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, ebx
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x64e2b1
jb 0x64e0ee
cmp eax, 0xffffffe0
ja 0x64e2b1
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
je 0x64e117
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0064ec00
add esp, 8
mov dword [esi + 0x16c], 0
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
push edi
mov edi, dword [esi + 0x168]
or ecx, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edi
test edi, edi
je 0x64e191
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov dword [ebp + 0x14], ecx
test ebx, ebx
je 0x64e177
mov al, byte [edi + esi + 0x10]
dec ebx
xor al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
xor byte [edi + esi + 0x40], al
inc edi
and edi, 0xf
mov dword [ebp - 4], edx
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0x10], edi
jne 0x64e153
jmp 0x64e17f
test edi, edi
jne 0x64e29f
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0064ec00
add esp, 8
jmp 0x64e19d
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
cmp ebx, 0x10
jb 0x64e236
mov edi, dword [ebp + 0x14]
lea ecx, [esi + 0x10]
mov eax, ebx
shr eax, 4
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
push ecx
push esi
call dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
lea edx, [esi + 0x40]
inc ecx
mov byte [esi + 0xf], cl
mov eax, ecx
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 - 8], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
xor dword [edx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ecx + 4], eax
xor dword [esi + 0x44], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ecx + 8], eax
xor dword [esi + 0x48], eax
mov eax, dword [edi + 0xc]
xor eax, dword [esi + 0x1c]
mov dword [ecx + 0xc], eax
xor dword [esi + 0x4c], eax
lea eax, [esi + 0x60]
push eax
push edx
call fcn.0064ec00
add dword [ebp - 4], 0x10
lea ecx, [esi + 0x10]
add esp, 0x14
add edi, 0x10
sub ebx, 0x10
dec dword [ebp - 0xc]
jne 0x64e1b4
mov dword [ebp + 0x14], edi
mov edi, dword [ebp - 0x10]
test ebx, ebx
je 0x64e29f
push dword [ebp - 0x14]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
add esp, 0xc
inc ecx
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 [ebp - 4]
sub dword [ebp + 0x14], eax
lea edx, [edi + eax]
lea eax, [esi + 0x40]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
lea esp, [esp]
movzx ecx, byte [eax + edi - 0x30]
lea edx, [edx + 1]
movzx eax, byte [esi + edx - 1]
xor ecx, eax
mov eax, dword [ebp - 0x18]
mov byte [edx - 1], cl
xor byte [eax + edi], cl
inc edi
dec ebx
jne 0x64e280
mov esi, dword [ebp + 8]
mov dword [esi + 0x168], edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret