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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x703eb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x50], esi
call fcn.00562000
mov byte [ebp - 0x51], al
mov eax, dword [esi + 0x38]
cdq
and edx, 7
lea ebx, [edx + eax]
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
mov byte [esi], 1
sar ebx, 3
call fcn.005236f0
add esp, 0xc
lea ecx, [esi + 0x10]
call fcn.0061c880
lea ecx, [esi + 0x10]
cmp eax, 0x40
jbe 0x618ab2
call fcn.00595640
test eax, eax
je 0x618ad9
lea ecx, [esi + 0x10]
call fcn.00595640
mov ecx, 0x10
mov esi, eax
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x50]
jmp 0x618ad9
call fcn.00595640
test eax, eax
je 0x618ad9
lea ecx, [esi + 0x10]
call fcn.0061c880
push eax
lea ecx, [esi + 0x10]
call fcn.00595640
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.00523380
add esp, 0xc
mov edx, 0xc
sub edx, 0x716dec
mov dword [ebp - 0x50], edx
mov edx, 0x10
sub edx, 0x716dec
mov dword [ebp - 0x4c], edx
mov ecx, 8
mov edx, 0x14
xor eax, eax
sub ecx, 0x716dec
sub edx, 0x716dec
mov dword [ebp - 0x48], edx
mov edi, dword [eax + 0x716de8]
mov edx, dword [esi + 4]
mov dword [eax + edx], edi
mov edi, dword [eax + 0x716dec]
mov edx, dword [esi + 4]
mov dword [edx + eax + 4], edi
mov edx, dword [esi + 4]
mov edi, dword [eax + 0x716df0]
add edx, ecx
mov dword [edx + eax + 0x716dec], edi
mov edx, dword [esi + 4]
add edx, dword [ebp - 0x50]
mov edi, dword [eax + 0x716df4]
mov dword [edx + eax + 0x716dec], edi
mov edx, dword [esi + 4]
add edx, dword [ebp - 0x4c]
mov edi, dword [eax + 0x716df8]
mov dword [edx + eax + 0x716dec], edi
mov edx, dword [esi + 4]
add edx, dword [ebp - 0x48]
mov edi, dword [eax + 0x716dfc]
mov dword [edx + eax + 0x716dec], edi
add eax, 0x18
cmp eax, 0x48
jl 0x618b10
mov eax, 8
sub eax, 0x716e34
mov dword [ebp - 0x48], eax
xor eax, eax
jmp 0x618b90
lea ecx, [eax + 0xc]
mov dword [ebp - 0x50], 0x40
lea ebx, [ebx]
mov edi, dword [eax + 0x716e30]
mov edx, dword [esi + 8]
mov dword [eax + edx], edi
mov edi, dword [eax + 0x716e34]
mov edx, dword [esi + 8]
mov dword [edx + eax + 4], edi
mov edx, dword [esi + 8]
add edx, dword [ebp - 0x48]
mov edi, dword [eax + 0x716e38]
mov dword [edx + eax + 0x716e34], edi
mov edi, dword [eax + 0x716e3c]
mov edx, dword [esi + 8]
mov dword [ecx + edx], edi
add eax, 0x10
add ecx, 0x10
dec dword [ebp - 0x50]
jne 0x618ba0
cmp eax, 0x1000
jl 0x618b90
cmp byte [ebp - 0x51], 0
je 0x618e58
xor edi, edi
mov dword [ebp - 0x4c], edi
mov ecx, 0xc
mov edi, edi
mov eax, dword [esi + 4]
lea edx, [ecx + eax - 0xc]
mov dword [ebp - 0x50], edx
lea eax, [edi + 1]
cdq
idiv ebx
movzx eax, byte [ebp + edx - 0x44]
movzx edx, byte [ebp + edi - 0x44]
shl edx, 8
or eax, edx
shl eax, 8
mov dword [ebp - 0x48], eax
lea eax, [edi + 2]
cdq
idiv ebx
movzx eax, byte [ebp + edx - 0x44]
mov edx, dword [ebp - 0x48]
or edx, eax
mov eax, dword [ebp - 0x4c]
add eax, 3
shl edx, 8
mov dword [ebp - 0x48], edx
cdq
idiv ebx
mov eax, dword [ebp - 0x48]
movzx edx, byte [ebp + edx - 0x44]
or eax, edx
mov edx, eax
mov eax, dword [ebp - 0x50]
xor dword [eax], edx
mov eax, dword [ebp - 0x4c]
add eax, 4
cdq
idiv ebx
mov eax, dword [esi + 4]
mov edi, edx
lea edx, [ecx + eax - 8]
mov dword [ebp - 0x50], edx
lea eax, [edi + 1]
cdq
idiv ebx
mov dword [ebp - 0x4c], edi
movzx eax, byte [ebp + edx - 0x44]
movzx edx, byte [ebp + edi - 0x44]
shl edx, 8
or eax, edx
shl eax, 8
mov dword [ebp - 0x48], eax
lea eax, [edi + 2]
cdq
idiv ebx
movzx eax, byte [ebp + edx - 0x44]
mov edx, dword [ebp - 0x48]
or edx, eax
shl edx, 8
mov dword [ebp - 0x48], edx
mov eax, edi
add eax, 3
cdq
idiv ebx
mov eax, dword [ebp - 0x48]
movzx edx, byte [ebp + edx - 0x44]
or eax, edx
mov edx, eax
mov eax, dword [ebp - 0x50]
xor dword [eax], edx
mov eax, edi
add eax, 4
cdq
idiv ebx
mov eax, dword [esi + 4]
mov edi, edx
lea edx, [ecx + eax - 4]
mov dword [ebp - 0x50], edx
lea eax, [edi + 1]
cdq
idiv ebx
mov dword [ebp - 0x4c], edi
movzx eax, byte [ebp + edx - 0x44]
movzx edx, byte [ebp + edi - 0x44]
shl edx, 8
or eax, edx
shl eax, 8
mov dword [ebp - 0x48], eax
lea eax, [edi + 2]
cdq
idiv ebx
movzx eax, byte [ebp + edx - 0x44]
mov edx, dword [ebp - 0x48]
or edx, eax
shl edx, 8
mov dword [ebp - 0x48], edx
mov eax, edi
add eax, 3
cdq
idiv ebx
mov eax, dword [ebp - 0x48]
movzx edx, byte [ebp + edx - 0x44]
or eax, edx
mov edx, eax
mov eax, dword [ebp - 0x50]
xor dword [eax], edx
mov eax, edi
add eax, 4
cdq
idiv ebx
mov eax, dword [esi + 4]
mov edi, edx
lea edx, [ecx + eax]
mov dword [ebp - 0x50], edx
lea eax, [edi + 1]
cdq
idiv ebx
mov dword [ebp - 0x4c], edi
movzx eax, byte [ebp + edx - 0x44]
movzx edx, byte [ebp + edi - 0x44]
shl edx, 8
or eax, edx
shl eax, 8
mov dword [ebp - 0x48], eax
lea eax, [edi + 2]
cdq
idiv ebx
movzx eax, byte [ebp + edx - 0x44]
mov edx, dword [ebp - 0x48]
or edx, eax
shl edx, 8
mov dword [ebp - 0x48], edx
mov eax, edi
add eax, 3
cdq
idiv ebx
mov eax, dword [ebp - 0x48]
movzx edx, byte [ebp + edx - 0x44]
or eax, edx
mov edx, eax
mov eax, dword [ebp - 0x50]
xor dword [eax], edx
mov eax, edi
add eax, 4
cdq
idiv ebx
mov eax, dword [esi + 4]
mov edi, edx
lea edx, [ecx + eax + 4]
mov dword [ebp - 0x50], edx
lea eax, [edi + 1]
cdq
idiv ebx
mov dword [ebp - 0x4c], edi
movzx eax, byte [ebp + edx - 0x44]
movzx edx, byte [ebp + edi - 0x44]
shl edx, 8
or eax, edx
shl eax, 8
mov dword [ebp - 0x48], eax
lea eax, [edi + 2]
cdq
idiv ebx
movzx eax, byte [ebp + edx - 0x44]
mov edx, dword [ebp - 0x48]
or edx, eax
shl edx, 8
mov dword [ebp - 0x48], edx
mov eax, edi
add eax, 3
cdq
idiv ebx
mov eax, dword [ebp - 0x48]
movzx edx, byte [ebp + edx - 0x44]
or eax, edx
mov edx, eax
mov eax, dword [ebp - 0x50]
xor dword [eax], edx
mov eax, edi
add eax, 4
cdq
idiv ebx
mov eax, dword [esi + 4]
mov edi, edx
lea edx, [ecx + eax + 8]
mov dword [ebp - 0x50], edx
lea eax, [edi + 1]
cdq
idiv ebx
mov dword [ebp - 0x4c], edi
add ecx, 0x18
movzx eax, byte [ebp + edx - 0x44]
movzx edx, byte [ebp + edi - 0x44]
shl edx, 8
or eax, edx
shl eax, 8
mov dword [ebp - 0x48], eax
lea eax, [edi + 2]
cdq
idiv ebx
movzx eax, byte [ebp + edx - 0x44]
mov edx, dword [ebp - 0x48]
or edx, eax
shl edx, 8
mov dword [ebp - 0x48], edx
mov eax, edi
add eax, 3
cdq
idiv ebx
mov eax, dword [ebp - 0x48]
movzx edx, byte [ebp + edx - 0x44]
or eax, edx
mov edx, eax
mov eax, dword [ebp - 0x50]
xor dword [eax], edx
mov eax, edi
add eax, 4
cdq
idiv ebx
mov edi, edx
mov dword [ebp - 0x4c], edi
cmp ecx, 0x54
jl 0x618c00
jmp 0x61907c
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
mov edi, 0xc
mov eax, dword [esi + 4]
lea edx, [eax + edi - 0xc]
mov dword [ebp - 0x50], edx
lea eax, [ecx + 2]
cdq
idiv ebx
movzx eax, byte [ebp + edx - 0x44]
movzx edx, byte [ebp + ecx - 0x41]
shl edx, 8
or eax, edx
shl eax, 8
mov dword [ebp - 0x48], eax
lea eax, [ecx + 1]
cdq
idiv ebx
mov ecx, dword [ebp - 0x48]
movzx eax, byte [ebp + edx - 0x44]
or ecx, eax
mov eax, dword [ebp - 0x4c]
cdq
idiv ebx
mov eax, dword [ebp - 0x50]
shl ecx, 8
movzx edx, byte [ebp + edx - 0x44]
or ecx, edx
xor dword [eax], ecx
mov eax, dword [ebp - 0x4c]
add eax, 4
cdq
idiv ebx
mov eax, dword [esi + 4]
mov ecx, edx
lea edx, [eax + edi - 8]
mov dword [ebp - 0x50], edx
lea eax, [ecx + 2]
cdq
idiv ebx
mov dword [ebp - 0x4c], ecx
movzx eax, byte [ebp + edx - 0x44]
movzx edx, byte [ebp + ecx - 0x41]
shl edx, 8
or eax, edx
shl eax, 8
mov dword [ebp - 0x48], eax
lea eax, [ecx + 1]
cdq
idiv ebx
mov ecx, dword [ebp - 0x48]
movzx eax, byte [ebp + edx - 0x44]
or ecx, eax
mov eax, dword [ebp - 0x4c]
cdq
idiv ebx
mov eax, dword [ebp - 0x50]
shl ecx, 8
movzx edx, byte [ebp + edx - 0x44]
or ecx, edx
xor dword [eax], ecx
mov eax, dword [ebp - 0x4c]
add eax, 4
cdq
idiv ebx
mov eax, dword [esi + 4]
mov ecx, edx
lea edx, [eax + edi - 4]
mov dword [ebp - 0x50], edx
lea eax, [ecx + 2]
cdq
idiv ebx
mov dword [ebp - 0x4c], ecx
movzx eax, byte [ebp + edx - 0x44]
movzx edx, byte [ebp + ecx - 0x41]
shl edx, 8
or eax, edx
shl eax, 8
mov dword [ebp - 0x48], eax
lea eax, [ecx + 1]
cdq
idiv ebx
mov ecx, dword [ebp - 0x48]
movzx eax, byte [ebp + edx - 0x44]
or ecx, eax
mov eax, dword [ebp - 0x4c]
cdq
idiv ebx
mov eax, dword [ebp - 0x50]
shl ecx, 8
movzx edx, byte [ebp + edx - 0x44]
or ecx, edx
xor dword [eax], ecx
mov eax, dword [ebp - 0x4c]
add eax, 4
cdq
idiv ebx
mov eax, dword [esi + 4]
add eax, edi
mov dword [ebp - 0x50], eax
mov ecx, edx
lea eax, [ecx + 2]
cdq
idiv ebx
mov dword [ebp - 0x4c], ecx
movzx eax, byte [ebp + edx - 0x44]
movzx edx, byte [ebp + ecx - 0x41]
shl edx, 8
or eax, edx
shl eax, 8
mov dword [ebp - 0x48], eax
lea eax, [ecx + 1]
cdq
idiv ebx
mov ecx, dword [ebp - 0x48]
movzx eax, byte [ebp + edx - 0x44]
or ecx, eax
mov eax, dword [ebp - 0x4c]
cdq
idiv ebx
mov eax, dword [ebp - 0x50]
shl ecx, 8
movzx edx, byte [ebp + edx - 0x44]
or ecx, edx
xor dword [eax], ecx
mov eax, dword [ebp - 0x4c]
add eax, 4
cdq
idiv ebx
mov eax, dword [esi + 4]
mov ecx, edx
lea edx, [eax + edi + 4]
mov dword [ebp - 0x50], edx
lea eax, [ecx + 2]
cdq
idiv ebx
mov dword [ebp - 0x4c], ecx
movzx eax, byte [ebp + edx - 0x44]
movzx edx, byte [ebp + ecx - 0x41]
shl edx, 8
or eax, edx
shl eax, 8
mov dword [ebp - 0x48], eax
lea eax, [ecx + 1]
cdq
idiv ebx
mov ecx, dword [ebp - 0x48]
movzx eax, byte [ebp + edx - 0x44]
or ecx, eax
mov eax, dword [ebp - 0x4c]
cdq
idiv ebx
mov eax, dword [ebp - 0x50]
shl ecx, 8
movzx edx, byte [ebp + edx - 0x44]
or ecx, edx
xor dword [eax], ecx
mov eax, dword [ebp - 0x4c]
add eax, 4
cdq
idiv ebx
mov eax, dword [esi + 4]
mov ecx, edx
mov dword [ebp - 0x4c], ecx
lea edx, [eax + edi + 8]
mov dword [ebp - 0x50], edx
lea eax, [ecx + 2]
cdq
idiv ebx
add edi, 0x18
movzx eax, byte [ebp + edx - 0x44]
movzx edx, byte [ebp + ecx - 0x41]
shl edx, 8
or eax, edx
shl eax, 8
mov dword [ebp - 0x48], eax
lea eax, [ecx + 1]
cdq
idiv ebx
mov ecx, dword [ebp - 0x48]
movzx eax, byte [ebp + edx - 0x44]
or ecx, eax
mov eax, dword [ebp - 0x4c]
cdq
idiv ebx
mov eax, dword [ebp - 0x50]
shl ecx, 8
movzx edx, byte [ebp + edx - 0x44]
or ecx, edx
xor dword [eax], ecx
mov eax, dword [ebp - 0x4c]
add eax, 4
cdq
idiv ebx
mov ecx, edx
mov dword [ebp - 0x4c], ecx
cmp edi, 0x54
jl 0x618e62
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
cmp byte [ebp - 0x51], bl
je 0x619108
nop
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, esi
call fcn.00616ec0
mov edx, dword [esi + 4]
mov eax, dword [ebp - 0x4c]
mov dword [edi + edx], eax
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0x50]
mov dword [ecx + edi + 4], edx
add edi, 8
cmp edi, 0x48
jl 0x619090
xor edi, edi
lea esp, [esp]
mov ebx, 0x80
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, esi
call fcn.00616ec0
mov edx, dword [esi + 8]
mov eax, dword [ebp - 0x4c]
mov dword [edi + edx], eax
mov ecx, dword [esi + 8]
mov edx, dword [ebp - 0x50]
mov dword [ecx + edi + 4], edx
add edi, 8
dec ebx
jne 0x6190c5
cmp edi, 0x1000
jl 0x6190c0
pop edi
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, esi
call fcn.00617310
mov edx, dword [esi + 4]
mov eax, dword [ebp - 0x4c]
mov dword [edi + edx], eax
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0x50]
mov dword [ecx + edi + 4], edx
add edi, 8
cmp edi, 0x48
jl 0x619108
xor edi, edi
mov ebx, 0x80
lea esp, [esp]
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, esi
call fcn.00617310
mov edx, dword [esi + 8]
mov eax, dword [ebp - 0x4c]
mov dword [edi + edx], eax
mov ecx, dword [esi + 8]
mov edx, dword [ebp - 0x50]
mov dword [ecx + edi + 4], edx
add edi, 8
dec ebx
jne 0x619140
cmp edi, 0x1000
jl 0x619134
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi], bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00521602
mov esp, ebp
pop ebp
ret