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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, 0xc
sub edx, 0x428784
mov dword [ebp - 8], edx
mov edx, 0x10
sub edx, 0x428784
mov dword [ebp - 4], edx
mov ecx, 8
mov edx, 0x14
xor eax, eax
sub ecx, 0x428784
sub edx, 0x428784
push ebx
mov dword [ebp - 0xc], edx
push edi
nop
mov edi, dword [eax + 0x428780]
mov edx, dword [esi]
mov dword [eax + edx], edi
mov edi, dword [eax + 0x428784]
mov edx, dword [esi]
mov dword [eax + edx + 4], edi
mov ebx, dword [eax + 0x428788]
mov edi, dword [esi]
lea edx, [ecx + eax + 0x428784]
mov dword [edx + edi], ebx
mov ebx, dword [eax + 0x42878c]
mov edi, dword [esi]
mov edx, dword [ebp - 8]
lea edx, [edx + eax + 0x428784]
mov dword [edx + edi], ebx
mov ebx, dword [eax + 0x428790]
mov edx, dword [ebp - 4]
mov edi, dword [esi]
lea edx, [edx + eax + 0x428784]
mov dword [edx + edi], ebx
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax + 0x428794]
mov edi, dword [esi]
lea edx, [edx + eax + 0x428784]
add eax, 0x18
mov dword [edx + edi], ebx
cmp eax, 0x48
jl 0x40db60
mov eax, 8
sub eax, 0x4287cc
mov dword [ebp - 0xc], eax
xor eax, eax
nop
lea ecx, [eax + 0xc]
mov dword [ebp - 8], 0x40
lea ebx, [ebx]
mov edi, dword [eax + 0x4287c8]
mov edx, dword [esi + 4]
mov dword [eax + edx], edi
mov edi, dword [eax + 0x4287cc]
mov edx, dword [esi + 4]
mov dword [eax + edx + 4], edi
mov edx, dword [ebp - 0xc]
mov edi, dword [esi + 4]
mov ebx, dword [eax + 0x4287d0]
lea edx, [edx + eax + 0x4287cc]
mov dword [edx + edi], ebx
mov edi, dword [eax + 0x4287d4]
mov edx, dword [esi + 4]
mov dword [ecx + edx], edi
add eax, 0x10
add ecx, 0x10
dec dword [ebp - 8]
jne 0x40dbf0
cmp eax, 0x1000
jl 0x40dbe0
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0xc
mov eax, dword [esi]
lea edx, [ecx + eax - 0xc]
mov dword [ebp - 0xc], edx
lea eax, [edi + 1]
cdq
mov ebx, 0xa
idiv ebx
movzx eax, byte [edi + str.XpJwqHPm6l]
shl eax, 8
movzx ebx, byte [edx + str.XpJwqHPm6l]
or ebx, eax
lea eax, [edi + 2]
cdq
mov edi, 0xa
idiv edi
mov eax, dword [ebp - 4]
add eax, 3
shl ebx, 8
movzx edx, byte [edx + str.XpJwqHPm6l]
or ebx, edx
cdq
idiv edi
shl ebx, 8
movzx eax, byte [edx + str.XpJwqHPm6l]
or ebx, eax
mov eax, dword [ebp - 0xc]
xor dword [eax], ebx
mov eax, dword [ebp - 4]
add eax, 4
cdq
idiv edi
mov ebx, 0xa
mov edi, edx
mov edx, dword [esi]
lea eax, [ecx + edx - 8]
mov dword [ebp - 0xc], eax
lea eax, [edi + 1]
cdq
idiv ebx
mov dword [ebp - 4], edi
lea eax, [edi + 2]
movzx ebx, byte [edx + str.XpJwqHPm6l]
movzx edx, byte [edi + str.XpJwqHPm6l]
shl edx, 8
or ebx, edx
cdq
mov edi, 0xa
idiv edi
shl ebx, 8
movzx eax, byte [edx + str.XpJwqHPm6l]
or ebx, eax
mov eax, dword [ebp - 4]
add eax, 3
cdq
idiv edi
mov eax, dword [ebp - 0xc]
shl ebx, 8
movzx edx, byte [edx + str.XpJwqHPm6l]
or ebx, edx
xor dword [eax], ebx
mov eax, dword [ebp - 4]
add eax, 4
cdq
idiv edi
mov eax, dword [esi]
mov ebx, 0xa
mov edi, edx
lea edx, [ecx + eax - 4]
mov dword [ebp - 0xc], edx
lea eax, [edi + 1]
cdq
idiv ebx
movzx eax, byte [edi + str.XpJwqHPm6l]
shl eax, 8
mov dword [ebp - 4], edi
movzx ebx, byte [edx + str.XpJwqHPm6l]
or ebx, eax
lea eax, [edi + 2]
shl ebx, 8
cdq
mov edi, 0xa
idiv edi
mov eax, dword [ebp - 4]
add eax, 3
movzx edx, byte [edx + str.XpJwqHPm6l]
or ebx, edx
cdq
idiv edi
shl ebx, 8
movzx eax, byte [edx + str.XpJwqHPm6l]
or ebx, eax
mov eax, dword [ebp - 0xc]
xor dword [eax], ebx
mov eax, dword [ebp - 4]
add eax, 4
cdq
idiv edi
mov ebx, 0xa
mov edi, edx
mov edx, dword [esi]
lea eax, [ecx + edx]
mov dword [ebp - 0xc], eax
lea eax, [edi + 1]
cdq
idiv ebx
mov dword [ebp - 4], edi
lea eax, [edi + 2]
movzx ebx, byte [edx + str.XpJwqHPm6l]
movzx edx, byte [edi + str.XpJwqHPm6l]
shl edx, 8
or ebx, edx
cdq
mov edi, 0xa
idiv edi
shl ebx, 8
movzx eax, byte [edx + str.XpJwqHPm6l]
or ebx, eax
mov eax, dword [ebp - 4]
add eax, 3
cdq
idiv edi
mov eax, dword [ebp - 0xc]
shl ebx, 8
movzx edx, byte [edx + str.XpJwqHPm6l]
or ebx, edx
xor dword [eax], ebx
mov eax, dword [ebp - 4]
add eax, 4
cdq
idiv edi
mov eax, dword [esi]
mov ebx, 0xa
mov edi, edx
lea edx, [ecx + eax + 4]
mov dword [ebp - 0xc], edx
lea eax, [edi + 1]
cdq
idiv ebx
movzx eax, byte [edi + str.XpJwqHPm6l]
shl eax, 8
mov dword [ebp - 4], edi
movzx ebx, byte [edx + str.XpJwqHPm6l]
or ebx, eax
lea eax, [edi + 2]
cdq
mov edi, 0xa
idiv edi
mov eax, dword [ebp - 4]
add eax, 3
shl ebx, 8
movzx edx, byte [edx + str.XpJwqHPm6l]
or ebx, edx
cdq
idiv edi
shl ebx, 8
movzx eax, byte [edx + str.XpJwqHPm6l]
or ebx, eax
mov eax, dword [ebp - 0xc]
xor dword [eax], ebx
mov eax, dword [ebp - 4]
add eax, 4
cdq
idiv edi
mov ebx, 0xa
mov edi, edx
mov edx, dword [esi]
lea eax, [ecx + edx + 8]
mov dword [ebp - 0xc], eax
lea eax, [edi + 1]
cdq
idiv ebx
mov dword [ebp - 4], edi
lea eax, [edi + 2]
add ecx, 0x18
movzx ebx, byte [edx + str.XpJwqHPm6l]
movzx edx, byte [edi + str.XpJwqHPm6l]
shl edx, 8
or ebx, edx
cdq
mov edi, 0xa
idiv edi
shl ebx, 8
movzx eax, byte [edx + str.XpJwqHPm6l]
or ebx, eax
mov eax, dword [ebp - 4]
add eax, 3
cdq
idiv edi
mov eax, dword [ebp - 0xc]
shl ebx, 8
movzx edx, byte [edx + str.XpJwqHPm6l]
or ebx, edx
xor dword [eax], ebx
mov eax, dword [ebp - 4]
add eax, 4
cdq
idiv edi
mov edi, edx
mov dword [ebp - 4], edi
cmp ecx, 0x54
jl 0x40dc47
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
xor edi, edi
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push esi
call fcn.0040d2a0
mov edx, dword [esi]
mov eax, dword [ebp - 4]
mov dword [edi + edx], eax
mov ecx, dword [esi]
mov edx, dword [ebp - 8]
mov dword [edi + ecx + 4], edx
add edi, 8
cmp edi, 0x48
jl 0x40dec0
xor edi, edi
lea esp, [esp]
mov ebx, 0x80
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push esi
call fcn.0040d2a0
mov edx, dword [esi + 4]
mov eax, dword [ebp - 4]
mov dword [edi + edx], eax
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 8]
mov dword [edi + ecx + 4], edx
add edi, 8
dec ebx
jne 0x40def5
cmp edi, 0x1000
jl 0x40def0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret