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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x18]
test ebx, ebx
jle 0x4789bc
cmp ebx, 0x38
jle 0x4789d2
mov ecx, 0x478bd0
mov dl, 1
mov eax, dword [0x407fd8]
call fcn.0040ce34
call fcn.0040429c
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 4]
add edx, 0x10
mov eax, 0x4c77fc
mov ecx, 0x1000
call fcn.004029c0
mov edx, dword [ebp - 4]
add edx, 0x1010
mov eax, 0x4c77b4
mov ecx, 0x48
call fcn.004029c0
test esi, esi
jne 0x478a2c
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, 8
call fcn.004031c4
mov eax, dword [ebp - 4]
add eax, 8
xor ecx, ecx
mov edx, 8
call fcn.004031c4
jmp 0x478a4d
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, 8
call fcn.004029c0
mov edx, dword [ebp - 4]
add edx, 8
mov eax, esi
mov ecx, 8
call fcn.004029c0
xor eax, eax
mov dword [ebp - 0xc], eax
mov esi, 0x12
mov eax, dword [ebp - 4]
add eax, 0x1010
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
add eax, 3
cdq
idiv ebx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + edx]
mov eax, dword [ebp - 0xc]
add eax, 2
cdq
idiv ebx
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + edx]
shl eax, 8
add ecx, eax
mov eax, dword [ebp - 0xc]
inc eax
cdq
idiv ebx
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + edx]
shl eax, 0x10
add ecx, eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
movzx eax, byte [eax + edx]
shl eax, 0x18
add ecx, eax
mov eax, dword [ebp - 0x1c]
xor dword [eax], ecx
mov eax, dword [ebp - 0xc]
add eax, 4
cdq
idiv ebx
mov dword [ebp - 0xc], edx
add dword [ebp - 0x1c], 4
dec esi
jne 0x478a62
mov eax, edi
xor ecx, ecx
mov edx, 8
call fcn.004031c4
mov esi, 9
mov ebx, dword [ebp - 4]
add ebx, 0x1010
mov ecx, edi
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00478c04
xor eax, eax
mov al, byte [edi + 3]
xor edx, edx
mov dl, byte [edi + 2]
shl edx, 8
add eax, edx
xor edx, edx
mov dl, byte [edi + 1]
shl edx, 0x10
add eax, edx
xor edx, edx
mov dl, byte [edi]
shl edx, 0x18
add eax, edx
mov dword [ebx], eax
xor eax, eax
mov al, byte [edi + 7]
xor edx, edx
mov dl, byte [edi + 6]
shl edx, 8
add eax, edx
xor edx, edx
mov dl, byte [edi + 5]
shl edx, 0x10
add eax, edx
xor edx, edx
mov dl, byte [edi + 4]
shl edx, 0x18
add eax, edx
mov dword [ebx + 4], eax
add ebx, 8
dec esi
jne 0x478ade
mov dword [ebp - 0xc], 4
mov eax, dword [ebp - 4]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov esi, 0x80
mov eax, dword [ebp - 0x20]
mov ebx, eax
mov ecx, edi
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00478c04
xor eax, eax
mov al, byte [edi + 3]
xor edx, edx
mov dl, byte [edi + 2]
shl edx, 8
add eax, edx
xor edx, edx
mov dl, byte [edi + 1]
shl edx, 0x10
add eax, edx
xor edx, edx
mov dl, byte [edi]
shl edx, 0x18
add eax, edx
mov dword [ebx], eax
xor eax, eax
mov al, byte [edi + 7]
xor edx, edx
mov dl, byte [edi + 6]
shl edx, 8
add eax, edx
xor edx, edx
mov dl, byte [edi + 5]
shl edx, 0x10
add eax, edx
xor edx, edx
mov dl, byte [edi + 4]
shl edx, 0x18
add eax, edx
mov dword [ebx + 4], eax
add ebx, 8
dec esi
jne 0x478b54
add dword [ebp - 0x20], 0x400
dec dword [ebp - 0xc]
jne 0x478b4a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4