Function at 0x405be0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x80
mov eax, dword [0x463fcc]
xor eax, esp
mov dword [esp + 0x7c], eax
cmp dword [0x465760], 2
mov eax, dword [0x465764]
push esi
jne 0x405c64
mov ecx, dword [esp + 0x88]
add eax, 2
mov esi, 0x10
nop
movzx edx, byte [ecx]
mov byte [eax - 2], dl
movzx edx, byte [ecx + 1]
mov byte [eax - 1], dl
movzx edx, byte [ecx + 2]
mov byte [eax], dl
movzx edx, byte [ecx + 3]
mov byte [eax + 1], dl
movzx edx, byte [ecx + 4]
mov byte [eax + 2], dl
movzx edx, byte [ecx + 5]
mov byte [eax + 3], dl
movzx edx, byte [ecx + 6]
mov byte [eax + 4], dl
movzx edx, byte [ecx + 7]
mov byte [eax + 5], dl
add ecx, 8
add eax, 8
sub esi, 1
jne 0x405c10
pop esi
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.0042ed09
add esp, 0x80
ret
push 0x80
push 0
push eax
call fcn.0042f5a0
mov edx, dword [esp + 0x94]
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
movsx ecx, byte [eax + str.91__]
sub ecx, 1
mov esi, ecx
sar esi, 3
movsx esi, byte [esi + edx]
and ecx, 7
test dword [ecx*4 + 0x463400], esi
setne cl
mov byte [esp + eax + 0x48], cl
movsx ecx, byte [eax + 0x463169]
sub ecx, 1
mov esi, ecx
sar esi, 3
movsx esi, byte [esi + edx]
and ecx, 7
test dword [ecx*4 + 0x463400], esi
setne cl
mov byte [esp + eax + 0x49], cl
movsx ecx, byte [eax + 0x46316a]
sub ecx, 1
mov esi, ecx
sar esi, 3
movsx esi, byte [esi + edx]
and ecx, 7
test dword [ecx*4 + 0x463400], esi
setne cl
mov byte [esp + eax + 0x4a], cl
movsx ecx, byte [eax + 0x46316b]
sub ecx, 1
mov esi, ecx
sar esi, 3
movsx esi, byte [esi + edx]
and ecx, 7
test dword [ecx*4 + 0x463400], esi
setne cl
mov byte [esp + eax + 0x4b], cl
add eax, 4
cmp eax, 0x38
jl 0x405c80
push ebx
push ebp
push edi
xor edi, edi
movsx ecx, byte [edi + 0x4631a0]
xor eax, eax
sub ecx, 0x1a
lea ecx, [ecx]
xor edx, edx
cmp eax, 0x1c
setge dl
lea esi, [ecx + 0x1a]
sub edx, 1
and edx, 0xffffffe4
add edx, 0x38
cmp esi, edx
jl 0x405d4b
lea esi, [ecx - 2]
mov dl, byte [esp + esi + 0x54]
lea esi, [esp + 0x1c]
mov byte [esi + eax], dl
xor edx, edx
cmp eax, 0x1b
setge dl
lea esi, [ecx + 0x1b]
sub edx, 1
and edx, 0xffffffe4
add edx, 0x38
cmp esi, edx
jl 0x405d71
lea esi, [ecx - 1]
mov dl, byte [esp + esi + 0x54]
xor ebx, ebx
mov byte [esp + eax + 0x1d], dl
lea edx, [eax + 2]
cmp edx, 0x1c
setge bl
lea esi, [ecx + 0x1c]
sub ebx, 1
and ebx, 0xffffffe4
add ebx, 0x38
cmp esi, ebx
jl 0x405d96
mov esi, ecx
mov dl, byte [esp + esi + 0x54]
lea esi, [esp + 0x1e]
mov byte [esi + eax], dl
xor edx, edx
cmp eax, 0x19
setge dl
lea esi, [ecx + 0x1d]
sub edx, 1
and edx, 0xffffffe4
add edx, 0x38
cmp esi, edx
jl 0x405dbc
lea esi, [ecx + 1]
mov dl, byte [esp + esi + 0x54]
mov byte [esp + eax + 0x1f], dl
add eax, 4
add ecx, 4
cmp eax, 0x38
jl 0x405d30
xor ecx, ecx
mov dword [esp + 0x10], 5
mov dword [esp + 0x18], 4
mov dword [esp + 0x14], 3
lea ebp, [ecx + 2]
mov esi, 1
jmp 0x405e00
movsx eax, byte [esi + 0x4631af]
cmp byte [esp + eax + 0x1b], 0
je 0x405e38
mov ebx, dword [0x465764]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
lea eax, [edx + edi*8]
lea edx, [edx + edx*2]
add eax, ebx
add edx, edx
mov ebx, ecx
sub ebx, edx
mov edx, dword [ebx*4 + 0x463400]
sar edx, 2
or byte [eax], dl
movsx eax, byte [esi + 0x4631b0]
cmp byte [esp + eax + 0x1b], 0
je 0x405e70
mov ebx, dword [0x465764]
mov eax, 0xaaaaaaab
mul esi
shr edx, 2
lea eax, [edx + edi*8]
lea edx, [edx + edx*2]
add eax, ebx
add edx, edx
mov ebx, ecx
sub ebx, edx
mov edx, dword [ebx*4 + 0x463404]
sar edx, 2
or byte [eax], dl
movsx eax, byte [ebp + 0x4631b0]
cmp byte [esp + eax + 0x1b], 0
je 0x405ea8
mov ebx, dword [0x465764]
mov eax, 0xaaaaaaab
mul ebp
shr edx, 2
lea eax, [edx + edi*8]
lea edx, [edx + edx*2]
add eax, ebx
add edx, edx
mov ebx, ecx
sub ebx, edx
mov edx, dword [ebx*4 + 0x463408]
sar edx, 2
or byte [eax], dl
mov edx, dword [esp + 0x14]
movsx eax, byte [edx + 0x4631b0]
cmp byte [esp + eax + 0x1b], 0
je 0x405ee4
mov ebx, dword [0x465764]
mov eax, 0xaaaaaaab
mul edx
shr edx, 2
lea eax, [edx + edi*8]
lea edx, [edx + edx*2]
add eax, ebx
add edx, edx
mov ebx, ecx
sub ebx, edx
mov edx, dword [ebx*4 + 0x46340c]
sar edx, 2
or byte [eax], dl
mov edx, dword [esp + 0x18]
movsx eax, byte [edx + 0x4631b0]
cmp byte [esp + eax + 0x1b], 0
je 0x405f20
mov ebx, dword [0x465764]
mov eax, 0xaaaaaaab
mul edx
shr edx, 2
lea eax, [edx + edi*8]
lea edx, [edx + edx*2]
add eax, ebx
add edx, edx
mov ebx, ecx
sub ebx, edx
mov edx, dword [ebx*4 + 0x463410]
sar edx, 2
or byte [eax], dl
mov edx, dword [esp + 0x10]
movsx eax, byte [edx + 0x4631b0]
cmp byte [esp + eax + 0x1b], 0
je 0x405f5c
mov ebx, dword [0x465764]
mov eax, 0xaaaaaaab
mul edx
shr edx, 2
lea eax, [edx + edi*8]
lea edx, [edx + edx*2]
add eax, ebx
add edx, edx
mov ebx, ecx
sub ebx, edx
mov edx, dword [ebx*4 + 0x463414]
sar edx, 2
or byte [eax], dl
mov eax, 6
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
add dword [esp + 0x10], eax
add esi, eax
add ecx, eax
add ebp, eax
cmp esi, 0x31
jl 0x405e00
add edi, 1
cmp edi, 0x10
jl 0x405d21
mov ecx, dword [esp + 0x8c]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.0042ed09
add esp, 0x80
ret