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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
mov edi, dword [esp + 0x2c]
movsd xmm0, qword [0x40b040]
movsd qword [ecx + 0x40], xmm0
movups xmm0, xmmword [0x40b030]
movups xmmword [ecx + 0x30], xmm0
movups xmm0, xmmword [0x40b020]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [0x40b010]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [section..rdata]
movups xmmword [ecx], xmm0
lea eax, [ecx + 0x48]
push 0x1000
push 0x40b048
mov dword [esp + 0x18], eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edx, 4
mov eax, edi
nop word cs:[eax + eax]
mov ecx, edx
cdq
idiv ecx
mov eax, ecx
test edx, edx
jne 0x401070
mov eax, edi
cdq
idiv ecx
mov ebx, eax
lea eax, [eax*4]
cmp ebx, 0x40000000
mov ecx, 0xffffffff
cmovb ecx, eax
push ecx
call fcn.004032d0
add esp, 4
mov dword [esp + 8], ebx
test ebx, ebx
jle 0x401129
mov ecx, edi
xor ebp, ebp
mov edx, dword [esp + 8]
mov dword [esp + 0xc], eax
nop dword [eax + eax]
mov dword [esp], edx
mov eax, ebp
cdq
idiv ecx
mov dword [esp + 4], edx
lea eax, [ebp + 1]
cdq
idiv ecx
mov eax, dword [esp + 0x28]
movzx ecx, byte [eax + edx]
lea eax, [ebp + 2]
cdq
idiv dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
movzx ebx, byte [eax + edx]
lea eax, [ebp + 3]
cdq
idiv dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 4]
movzx eax, byte [eax + edi]
shl eax, 0x18
shl ecx, 0x10
or ecx, eax
shl ebx, 8
or ebx, ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
movzx eax, byte [eax + edx]
mov edx, dword [esp]
or ebx, eax
mov eax, dword [esp + 0xc]
mov dword [eax + ebp], ebx
add ebp, 4
dec edx
jne 0x4010c0
xor edi, edi
mov ecx, dword [esp + 8]
mov ebx, eax
nop word cs:[eax + eax]
mov eax, edi
cdq
idiv ecx
mov eax, dword [ebx + edx*4]
xor dword [esi + edi*4], eax
lea eax, [edi + 1]
cdq
idiv ecx
mov eax, dword [ebx + edx*4]
xor dword [esi + edi*4 + 4], eax
add edi, 2
cmp edi, 0x12
jne 0x401140
push ebx
call fcn.004032d9
add esp, 4
xor ebp, ebp
xor ecx, ecx
xor eax, eax
nop
mov edi, ecx
mov ecx, eax
mov eax, edi
xor edi, edi
nop dword [eax + eax]
mov ebx, eax
mov eax, ecx
xor eax, dword [esi + edi*4]
mov edx, eax
shr edx, 0x18
mov ecx, eax
shr ecx, 0xe
and ecx, 0x3fc
mov ecx, dword [esi + ecx + 0x448]
add ecx, dword [esi + edx*4 + 0x48]
movzx edx, ah
xor ecx, dword [esi + edx*4 + 0x848]
movzx edx, al
add ecx, dword [esi + edx*4 + 0xc48]
xor ecx, ebx
inc edi
cmp edi, 0x10
jne 0x401180
xor ecx, dword [esi + 0x40]
xor eax, dword [esi + 0x44]
mov dword [esi + ebp*8], eax
mov dword [esi + ebp*8 + 4], ecx
inc ebp
cmp ebp, 9
jne 0x401170
mov edx, dword [esi + 0x40]
mov dword [esp + 4], edx
mov edx, dword [esi + 0x44]
mov dword [esp], edx
xor edi, edi
xor ebp, ebp
nop word cs:[eax + eax]
mov edx, ecx
mov ecx, eax
xor ecx, dword [esi + ebp*4]
mov ebx, ecx
shr ebx, 0x18
mov eax, ecx
shr eax, 0xe
and eax, 0x3fc
mov eax, dword [esi + eax + 0x448]
add eax, dword [esi + ebx*4 + 0x48]
movzx ebx, ch
xor eax, dword [esi + ebx*4 + 0x848]
movzx ebx, cl
add eax, dword [esi + ebx*4 + 0xc48]
xor eax, edx
inc ebp
cmp ebp, 0x10
jne 0x4011f0
xor eax, dword [esp + 4]
mov edx, ecx
xor edx, dword [esp]
mov ecx, dword [esp + 0x10]
mov dword [ecx + edi*8], edx
mov dword [ecx + edi*8 + 4], eax
inc edi
mov ecx, eax
mov eax, edx
cmp edi, 0x200
jne 0x4011e0
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 8