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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, 8
sub edx, 0x10095aec
mov dword [ebp - 0xc], edx
mov edx, 0xc
sub edx, 0x10095aec
mov dword [ebp - 4], edx
mov edx, 0x10
sub edx, 0x10095aec
push ebx
mov dword [ebp - 0x10], edx
push esi
mov esi, eax
xor eax, eax
mov edx, 0x14
sub edx, 0x10095aec
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], edx
jmp 0x10058870
mov ebx, dword [eax + 0x10095ae8]
mov edx, dword [edi]
mov dword [eax + edx], ebx
mov ebx, dword [eax + 0x10095aec]
mov edx, dword [edi]
mov dword [eax + edx + 4], ebx
mov ebx, dword [edi]
mov edx, dword [ebp - 0xc]
lea edx, [edx + eax + 0x10095aec]
mov eax, dword [eax + 0x10095af0]
mov dword [edx + ebx], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ebx, dword [edi]
lea edx, [edx + eax + 0x10095aec]
mov eax, dword [eax + 0x10095af4]
mov dword [edx + ebx], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov ebx, dword [edi]
lea edx, [edx + eax + 0x10095aec]
mov eax, dword [eax + 0x10095af8]
mov dword [edx + ebx], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov ebx, dword [edi]
lea edx, [edx + eax + 0x10095aec]
mov eax, dword [eax + 0x10095afc]
mov dword [edx + ebx], eax
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 8], eax
cmp eax, 0x48
jl 0x10058870
mov eax, 8
sub eax, 0x10095b34
mov dword [ebp - 0x14], eax
xor eax, eax
lea edx, [eax + 0xc]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x40
jmp 0x10058920
mov ebx, dword [eax + 0x10095b30]
mov edx, dword [edi + 4]
mov dword [eax + edx], ebx
mov ebx, dword [eax + 0x10095b34]
mov edx, dword [edi + 4]
mov dword [eax + edx + 4], ebx
mov edx, dword [ebp - 0x14]
mov ebx, dword [edi + 4]
lea edx, [edx + eax + 0x10095b34]
mov eax, dword [eax + 0x10095b38]
mov dword [edx + ebx], eax
mov edx, dword [ebp - 8]
mov ebx, dword [edx + 0x10095b3c]
mov edx, dword [ebp - 4]
mov eax, dword [edi + 4]
mov dword [edx + eax], ebx
mov eax, dword [ebp - 8]
add eax, 0x10
add edx, 0x10
dec dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jne 0x10058920
cmp eax, 0x1000
jl 0x10058905
xor ebx, ebx
mov eax, 0xc
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
lea esp, [esp]
mov edx, dword [edi]
lea eax, [eax + edx - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebx + 1]
cdq
idiv ecx
movzx eax, byte [edx + esi]
movzx edx, byte [ebx + esi]
shl edx, 8
or eax, edx
shl eax, 8
mov dword [ebp - 0x14], eax
lea eax, [ebx + 2]
cdq
idiv ecx
movzx eax, byte [edx + esi]
mov edx, dword [ebp - 0x14]
or edx, eax
mov eax, dword [ebp - 4]
add eax, 3
shl edx, 8
mov dword [ebp - 0x14], edx
cdq
idiv ecx
mov eax, dword [ebp - 0x14]
movzx edx, byte [edx + esi]
or eax, edx
mov edx, eax
mov eax, dword [ebp - 0x10]
xor dword [eax], edx
mov eax, dword [ebp - 4]
add eax, 4
cdq
idiv ecx
mov eax, dword [edi]
mov ebx, edx
mov edx, dword [ebp - 8]
lea eax, [edx + eax - 8]
mov dword [ebp - 0x10], eax
lea eax, [ebx + 1]
cdq
idiv ecx
mov dword [ebp - 4], ebx
movzx eax, byte [edx + esi]
movzx edx, byte [ebx + esi]
shl edx, 8
or eax, edx
shl eax, 8
mov dword [ebp - 0x14], eax
lea eax, [ebx + 2]
cdq
idiv ecx
movzx eax, byte [edx + esi]
mov edx, dword [ebp - 0x14]
or edx, eax
shl edx, 8
mov dword [ebp - 0x14], edx
mov eax, ebx
add eax, 3
cdq
idiv ecx
mov eax, dword [ebp - 0x14]
movzx edx, byte [edx + esi]
or eax, edx
mov edx, eax
mov eax, dword [ebp - 0x10]
xor dword [eax], edx
mov eax, ebx
add eax, 4
cdq
idiv ecx
mov eax, dword [edi]
mov ebx, edx
mov edx, dword [ebp - 8]
lea eax, [edx + eax - 4]
mov dword [ebp - 0x10], eax
lea eax, [ebx + 1]
mov dword [ebp - 4], ebx
cdq
idiv ecx
movzx eax, byte [edx + esi]
movzx edx, byte [ebx + esi]
shl edx, 8
or eax, edx
shl eax, 8
mov dword [ebp - 0x14], eax
lea eax, [ebx + 2]
cdq
idiv ecx
movzx eax, byte [edx + esi]
mov edx, dword [ebp - 0x14]
or edx, eax
shl edx, 8
mov dword [ebp - 0x14], edx
mov eax, ebx
add eax, 3
cdq
idiv ecx
mov eax, dword [ebp - 0x14]
movzx edx, byte [edx + esi]
or eax, edx
mov edx, eax
mov eax, dword [ebp - 0x10]
xor dword [eax], edx
mov eax, ebx
add eax, 4
cdq
idiv ecx
mov ebx, edx
mov edx, dword [ebp - 8]
add edx, dword [edi]
lea eax, [ebx + 1]
mov dword [ebp - 0x10], edx
cdq
idiv ecx
mov dword [ebp - 4], ebx
movzx eax, byte [edx + esi]
movzx edx, byte [ebx + esi]
shl edx, 8
or eax, edx
shl eax, 8
mov dword [ebp - 0x14], eax
lea eax, [ebx + 2]
cdq
idiv ecx
movzx eax, byte [edx + esi]
mov edx, dword [ebp - 0x14]
or edx, eax
shl edx, 8
mov dword [ebp - 0x14], edx
mov eax, ebx
add eax, 3
cdq
idiv ecx
mov eax, dword [ebp - 0x14]
movzx edx, byte [edx + esi]
or eax, edx
mov edx, eax
mov eax, dword [ebp - 0x10]
xor dword [eax], edx
mov eax, ebx
add eax, 4
cdq
idiv ecx
mov eax, dword [edi]
mov ebx, edx
mov edx, dword [ebp - 8]
lea eax, [edx + eax + 4]
mov dword [ebp - 0x10], eax
lea eax, [ebx + 1]
cdq
idiv ecx
mov dword [ebp - 4], ebx
movzx eax, byte [edx + esi]
movzx edx, byte [ebx + esi]
shl edx, 8
or eax, edx
shl eax, 8
mov dword [ebp - 0x14], eax
lea eax, [ebx + 2]
cdq
idiv ecx
movzx eax, byte [edx + esi]
mov edx, dword [ebp - 0x14]
or edx, eax
shl edx, 8
mov dword [ebp - 0x14], edx
mov eax, ebx
add eax, 3
cdq
idiv ecx
mov eax, dword [ebp - 0x14]
movzx edx, byte [edx + esi]
or eax, edx
mov edx, eax
mov eax, dword [ebp - 0x10]
xor dword [eax], edx
mov eax, ebx
add eax, 4
cdq
idiv ecx
mov eax, dword [edi]
mov ebx, edx
mov edx, dword [ebp - 8]
lea eax, [edx + eax + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebx + 1]
cdq
idiv ecx
mov dword [ebp - 4], ebx
movzx eax, byte [edx + esi]
movzx edx, byte [ebx + esi]
shl edx, 8
or eax, edx
shl eax, 8
mov dword [ebp - 0x14], eax
lea eax, [ebx + 2]
cdq
idiv ecx
movzx eax, byte [edx + esi]
mov edx, dword [ebp - 0x14]
or edx, eax
shl edx, 8
mov dword [ebp - 0x14], edx
mov eax, ebx
add eax, 3
cdq
idiv ecx
mov eax, dword [ebp - 0x14]
movzx edx, byte [edx + esi]
or eax, edx
mov edx, eax
mov eax, dword [ebp - 0x10]
xor dword [eax], edx
mov eax, ebx
add eax, 4
cdq
idiv ecx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 8], eax
mov ebx, edx
mov dword [ebp - 4], edx
cmp eax, 0x54
jl 0x10058990
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
xor esi, esi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push edi
call fcn.10057fa0
mov edx, dword [edi]
mov eax, dword [ebp - 8]
mov dword [esi + edx], eax
mov ecx, dword [edi]
mov edx, dword [ebp - 4]
mov dword [esi + ecx + 4], edx
add esi, 8
cmp esi, 0x48
jl 0x10058be1
xor esi, esi
lea ebx, [ebx]
mov ebx, 0x80
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push edi
call fcn.10057fa0
mov edx, dword [edi + 4]
mov eax, dword [ebp - 8]
mov dword [esi + edx], eax
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 4]
mov dword [esi + ecx + 4], edx
add esi, 8
dec ebx
jne 0x10058c15
cmp esi, 0x1000
jl 0x10058c10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret