Function at 0x40f1d0
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ecx, 0x434160
mov dword [ebp - 0xc], esi
push edi
xor edi, edi
dec ecx
lea eax, [esi + 0x1000]
mov dword [ebp - 8], edi
mov ebx, 1
mov dword [ebp - 0x10], ecx
sub ebx, eax
mov esi, eax
mov dword [ebp - 0x14], ebx
add ebx, esi
and edi, 0xf
mov eax, ebx
and eax, 0xf
mov ecx, dword [ebx + ecx]
mov dword [esi], ecx
movzx edx, byte [edi + edx]
shl edx, 0x18
xor edx, ecx
mov ecx, dword [ebp - 4]
mov dword [esi], edx
movzx edi, byte [eax + ecx]
lea eax, [ebx + 1]
shl edi, 0x10
and eax, 0xf
xor edi, edx
mov edx, ecx
mov dword [esi], edi
movzx ecx, byte [eax + edx]
lea eax, [ebx + 2]
mov ebx, dword [ebp - 0x14]
and eax, 0xf
shl ecx, 8
xor ecx, edi
mov edi, dword [ebp - 8]
mov dword [esi], ecx
add edi, 4
movzx eax, byte [eax + edx]
xor eax, ecx
mov dword [ebp - 8], edi
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
add esi, 4
cmp edi, 0x48
jb 0x40f201
mov esi, dword [ebp - 0xc]
mov eax, 0x433960
sub eax, esi
mov edi, 0x433d60
mov dword [ebp - 8], eax
sub edi, esi
mov ebx, dword [ebp - 8]
mov ecx, esi
lea eax, [esi + 0x400]
mov edx, 0x100
sub eax, esi
mov dword [ebp - 0x14], eax
mov eax, 0x433560
sub eax, esi
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x800]
sub eax, esi
mov dword [ebp - 4], eax
mov eax, 0x433160
sub eax, esi
mov dword [ebp - 0x18], eax
lea eax, [esi + 0xc00]
sub eax, esi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + ecx]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
mov eax, dword [ebx + ecx - 4]
mov ebx, dword [ebp - 4]
mov dword [esi + ecx - 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ecx - 4]
mov dword [ebx + ecx - 4], eax
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [eax + ecx - 4]
mov dword [ebx + ecx - 4], eax
mov ebx, dword [ebp - 8]
sub edx, 1
jne 0x40f2b7
mov esi, dword [ebp - 0xc]
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
xor edi, edi
jmp 0x40f300
lea edx, [ebp - 0x20]
push esi
push edx
mov edx, eax
call fcn.0040e730
mov ecx, dword [ebp - 0x20]
add esp, 8
mov eax, dword [ebp - 0x1c]
mov dword [esi + edi*4 + 0x1000], ecx
mov dword [esi + edi*4 + 0x1004], eax
add edi, 2
cmp edi, 0x12
jb 0x40f300
xor edi, edi
lea ecx, [ecx]
lea edx, [ebp - 0x20]
push esi
push edx
mov edx, eax
call fcn.0040e730
mov ecx, dword [ebp - 0x20]
add esp, 8
mov eax, dword [ebp - 0x1c]
mov dword [esi + edi*4], ecx
mov dword [esi + edi*4 + 4], eax
add edi, 2
cmp edi, 0x100
jb 0x40f330
xor edi, edi
lea esp, [esp]
lea edx, [ebp - 0x20]
push esi
push edx
mov edx, eax
call fcn.0040e730
mov ecx, dword [ebp - 0x20]
add esp, 8
mov eax, dword [ebp - 0x1c]
mov dword [esi + edi*4 + 0x400], ecx
mov dword [esi + edi*4 + 0x404], eax
add edi, 2
cmp edi, 0x100
jb 0x40f360
xor edi, edi
lea edx, [ebp - 0x20]
push esi
push edx
mov edx, eax
call fcn.0040e730
mov ecx, dword [ebp - 0x20]
add esp, 8
mov eax, dword [ebp - 0x1c]
mov dword [esi + edi*4 + 0x800], ecx
mov dword [esi + edi*4 + 0x804], eax
add edi, 2
cmp edi, 0x100
jb 0x40f390
xor edi, edi
lea edx, [ebp - 0x20]
push esi
push edx
mov edx, eax
call fcn.0040e730
mov ecx, dword [ebp - 0x20]
add esp, 8
mov eax, dword [ebp - 0x1c]
mov dword [esi + edi*4 + 0xc00], ecx
mov dword [esi + edi*4 + 0xc04], eax
add edi, 2
cmp edi, 0x100
jb 0x40f3c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret