Function at 0x40cf90
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
lea eax, [eax + ebp - 1]
xor edx, edx
div ebp
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, ebx
xor esi, esi
mov ecx, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
xor edx, edx
div ebp
mov edi, eax
test edi, edi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
jbe 0x40c9e4
xor ecx, ecx
test ebp, ebp
jbe 0x40c9dd
lea ebx, [ebx]
mov dl, byte [ecx + eax]
shl dl, cl
or byte [esi + ebx], dl
inc ecx
cmp ecx, ebp
jb 0x40c9d0
inc esi
add eax, ebp
cmp esi, edi
jb 0x40c9c4
mov ecx, dword [esp + 0x1c]
xor edi, edi
test ecx, ecx
jbe 0x40ca03
mov edi, edi
mov dl, byte [edi + eax]
mov ecx, edi
shl dl, cl
or byte [esi + ebx], dl
mov ecx, dword [esp + 0x1c]
inc edi
cmp edi, ecx
jb 0x40c9f0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x10
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
push edi
mov edx, ecx
push ebx
mov dword [esp + 0x10], edx
xor eax, eax
mov ecx, 0x4abff2
push ebp
jmp 0x40cfb0
mov bl, byte [eax + esi]
and bl, 1
mov byte [ecx - 2], bl
mov bl, byte [eax + esi]
sar bl, 1
and bl, 1
mov byte [ecx - 1], bl
mov bl, byte [eax + esi]
sar bl, 2
and bl, 1
mov byte [ecx], bl
mov bl, byte [eax + esi]
sar bl, 3
and bl, 1
mov byte [ecx + 1], bl
mov bl, byte [eax + esi]
sar bl, 4
and bl, 1
mov byte [ecx + 2], bl
mov bl, byte [eax + esi]
sar bl, 5
and bl, 1
mov byte [ecx + 3], bl
mov bl, byte [eax + esi]
sar bl, 6
and bl, 1
mov byte [ecx + 4], bl
mov bl, byte [eax + esi]
sar bl, 7
and bl, 1
mov byte [ecx + 5], bl
inc eax
add ecx, 8
cmp eax, 8
jb 0x40cfb0
xor eax, eax
jmp 0x40d020
movsx ecx, byte [eax + 0x48c288]
mov cl, byte [ecx + 0x4abfef]
mov byte [eax + 0x4abdd8], cl
movsx ecx, byte [eax + 0x48c289]
mov cl, byte [ecx + 0x4abfef]
mov byte [eax + 0x4abdd9], cl
movsx ecx, byte [eax + 0x48c28a]
mov cl, byte [ecx + 0x4abfef]
mov byte [eax + 0x4abdda], cl
movsx ecx, byte [eax + 0x48c28b]
mov cl, byte [ecx + 0x4abfef]
mov byte [eax + 0x4abddb], cl
add eax, 4
cmp eax, 0x40
jb 0x40d020
mov al, byte [esp + 0x28]
test al, al
mov ebp, 0x4abff0
mov ecx, 0x10
mov esi, 0x4abdd8
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x40d09c
mov dword [0x4abfec], ebp
mov ebp, 0x4ac010
jmp 0x40d0a6
mov dword [0x4abfec], 0x4ac010
mov eax, dword [esp + 0x24]
mov ebx, dword [0x4abfec]
sub ebx, ebp
mov dword [esp + 0x20], eax
add eax, 0x2d0
mov dword [0x4abfe8], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 0x10
jmp 0x40d0d3
mov edx, dword [esp + 0x14]
mov al, byte [esp + 0x28]
test al, al
mov ecx, 8
mov esi, ebp
mov edi, 0x4abfc8
rep movsd dword es:[edi], dword [esi]
jne 0x40d0f0
mov eax, dword [esp + 0x20]
push eax
jmp 0x40d0f5
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, edx
push ebp
call fcn.0040cd40
mov ecx, dword [0x4abfec]
add ecx, 2
mov eax, ebp
mov esi, 8
lea ecx, [ecx]
mov dl, byte [ebx + eax]
xor byte [eax], dl
mov dl, byte [ecx - 1]
xor byte [eax + 1], dl
mov dl, byte [ecx]
xor byte [eax + 2], dl
mov dl, byte [ecx + 1]
xor byte [eax + 3], dl
add eax, 4
add ecx, 4
dec esi
jne 0x40d110
mov edi, dword [0x4abfec]
mov edx, dword [esp + 0x20]
mov ecx, 8
mov esi, 0x4abfc8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x24]
mov eax, 0x30
add edx, eax
sub ecx, eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
jne 0x40d0cf
pop ebp
xor eax, eax
pop ebx
lea ecx, [ecx]
movsx ecx, byte [eax + 0x48c2c8]
mov dl, byte [ecx + 0x4abfef]
movsx ecx, byte [eax + 0x48c2c9]
mov byte [eax + 0x4abdd8], dl
mov dl, byte [ecx + 0x4abfef]
movsx ecx, byte [eax + 0x48c2ca]
mov byte [eax + 0x4abdd9], dl
mov dl, byte [ecx + 0x4abfef]
movsx ecx, byte [eax + 0x48c2cb]
mov byte [eax + 0x4abdda], dl
mov dl, byte [ecx + 0x4abfef]
mov byte [eax + 0x4abddb], dl
add eax, 4
cmp eax, 0x40
jb 0x40d170
mov ecx, 0x10
mov esi, 0x4abdd8
mov edi, 0x4abff0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
pop edi
pop esi
add esp, 8
mov dword [esp + 0x10], 8
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x4abff0
jmp 0x40c980