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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0
jle 0x789e67
cmp dword [ebp - 0xc], 0x38
jle 0x789e7d
mov ecx, 0x78a0c4
mov dl, 1
mov eax, dword [0x4b8bd4]
call fcn.004c6fc4
call fcn.004a67d4
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 4]
add edx, 0x10
mov eax, 0x7b6900
mov ecx, 0x1000
call fcn.004a3cf8
mov edx, dword [ebp - 4]
add edx, 0x1010
mov eax, 0x7b68b8
mov ecx, 0x48
call fcn.004a3cf8
cmp dword [ebp + 8], 0
jne 0x789ed9
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, 8
call fcn.004a4a64
mov eax, dword [ebp - 4]
add eax, 8
xor ecx, ecx
mov edx, 8
call fcn.004a4a64
jmp 0x789efc
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, 8
call fcn.004a3cf8
mov edx, dword [ebp - 4]
add edx, 8
mov eax, dword [ebp + 8]
mov ecx, 8
call fcn.004a3cf8
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
add eax, 3
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + edx]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
add eax, 2
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + edx]
shl eax, 8
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
inc eax
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + edx]
shl eax, 0x10
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + edx]
shl eax, 0x18
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
xor dword [eax + edx*4 + 0x1010], ecx
mov eax, dword [ebp - 0x14]
add eax, 4
cdq
idiv dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x12
jne 0x789f06
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 8
call fcn.004a4a64
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call sym.a1runscanner.exe__Mathtool_BlowfishEncryptECB_qqrr22Mathtool_TBlowfishDatapvt2
xor eax, eax
mov al, byte [ebp - 0x21]
xor edx, edx
mov dl, byte [ebp - 0x22]
shl edx, 8
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x23]
shl edx, 0x10
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x24]
shl edx, 0x18
add eax, edx
mov edx, dword [ebp - 0x10]
add edx, edx
mov ecx, dword [ebp - 4]
mov dword [ecx + edx*4 + 0x1010], eax
xor eax, eax
mov al, byte [ebp - 0x1d]
xor edx, edx
mov dl, byte [ebp - 0x1e]
shl edx, 8
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x1f]
shl edx, 0x10
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x20]
shl edx, 0x18
add eax, edx
mov edx, dword [ebp - 0x10]
add edx, edx
mov ecx, dword [ebp - 4]
mov dword [ecx + edx*4 + 0x1014], eax
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 9
jne 0x789f90
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call sym.a1runscanner.exe__Mathtool_BlowfishEncryptECB_qqrr22Mathtool_TBlowfishDatapvt2
xor eax, eax
mov al, byte [ebp - 0x21]
xor edx, edx
mov dl, byte [ebp - 0x22]
shl edx, 8
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x23]
shl edx, 0x10
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x24]
shl edx, 0x18
add eax, edx
mov edx, dword [ebp - 0x14]
shl edx, 7
mov ecx, dword [ebp - 4]
lea edx, [ecx + edx*8]
mov ecx, dword [ebp - 0x10]
add ecx, ecx
mov dword [edx + ecx*4 + 0x10], eax
xor eax, eax
mov al, byte [ebp - 0x1d]
xor edx, edx
mov dl, byte [ebp - 0x1e]
shl edx, 8
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x1f]
shl edx, 0x10
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x20]
shl edx, 0x18
add eax, edx
mov edx, dword [ebp - 0x14]
shl edx, 7
mov ecx, dword [ebp - 4]
lea edx, [ecx + edx*8]
mov ecx, dword [ebp - 0x10]
add ecx, ecx
mov dword [edx + ecx*4 + 0x14], eax
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x80
jne 0x78a015
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jne 0x78a010
mov esp, ebp
pop ebp
ret 4