Function at 0x4068a0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x58
mov eax, dword [0x42452c]
xor eax, esp
mov dword [esp + 0x54], eax
xor eax, eax
movzx ecx, byte [eax + 0x41f460]
mov byte [ecx + 0x427198], al
add eax, 1
cmp eax, 0x40
jl 0x4068b0
push ebx
push ebp
push esi
push edi
push 0x40
push 0
push 0x427ac8
call sub.MSVCR80.dll_memset
add esp, 0xc
xor esi, esi
lea esp, [esp]
movzx ecx, byte [esi + 0x41f1c0]
test ecx, ecx
je 0x40693a
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
add edx, edx
add edx, edx
mov eax, ecx
sub eax, edx
cmp eax, 1
jge 0x406917
sub ecx, 0x1c
movzx eax, byte [ecx + str.91__]
test eax, eax
jle 0x406934
sub eax, 1
mov ecx, eax
and eax, 7
or ecx, 7
sub ecx, eax
add ecx, 1
mov eax, ecx
mov byte [esi + 0x427ac8], al
movzx ecx, byte [esi + 0x41f1c1]
test ecx, ecx
je 0x406994
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
add edx, edx
add edx, edx
mov eax, ecx
sub eax, edx
cmp eax, 1
jge 0x406971
sub ecx, 0x1c
movzx eax, byte [ecx + str.91__]
test eax, eax
jle 0x40698e
sub eax, 1
mov ecx, eax
and eax, 7
or ecx, 7
sub ecx, eax
add ecx, 1
mov eax, ecx
mov byte [esi + 0x427ac9], al
movzx ecx, byte [esi + 0x41f1c2]
test ecx, ecx
je 0x4069ee
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
add edx, edx
add edx, edx
mov eax, ecx
sub eax, edx
cmp eax, 1
jge 0x4069cb
sub ecx, 0x1c
movzx eax, byte [ecx + str.91__]
test eax, eax
jle 0x4069e8
sub eax, 1
mov ecx, eax
and eax, 7
or ecx, 7
sub ecx, eax
add ecx, 1
mov eax, ecx
mov byte [esi + 0x427aca], al
movzx ecx, byte [esi + 0x41f1c3]
test ecx, ecx
je 0x406a48
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
add edx, edx
add edx, edx
mov eax, ecx
sub eax, edx
cmp eax, 1
jge 0x406a25
sub ecx, 0x1c
movzx eax, byte [ecx + str.91__]
test eax, eax
jle 0x406a42
sub eax, 1
mov ecx, eax
and eax, 7
or ecx, 7
sub ecx, eax
add ecx, 1
mov eax, ecx
mov byte [esi + 0x427acb], al
add esi, 4
cmp esi, 0x40
jl 0x4068e0
push 0x427ac8
push 0x426998
mov eax, 8
call fcn.004067c0
add esp, 8
xor esi, esi
mov ebp, 0x425598
push 0x40
push 0
push 0x427ac8
call sub.MSVCR80.dll_memset
push 0x40
lea edx, [esp + 0x34]
push 0
push edx
call sub.MSVCR80.dll_memset
add esp, 0x18
xor eax, eax
movzx ecx, byte [eax + 0x41f1c0]
test ecx, ecx
je 0x406aa7
mov dl, al
add dl, 1
mov byte [esp + ecx + 0x23], dl
add eax, 1
cmp eax, 0x40
jl 0x406a93
xor edi, edi
movzx ecx, byte [edi + 0x41f1c0]
test ecx, ecx
je 0x406af3
add ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
add edx, edx
add edx, edx
mov eax, ecx
sub eax, edx
cmp eax, esi
jg 0x406ae9
sub ecx, 0x1c
mov cl, byte [esp + ecx + 0x24]
mov byte [edi + 0x427ac8], cl
movzx ecx, byte [edi + 0x41f1c1]
test ecx, ecx
je 0x406b35
add ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
add edx, edx
add edx, edx
mov eax, ecx
sub eax, edx
cmp eax, esi
jg 0x406b2b
sub ecx, 0x1c
mov cl, byte [esp + ecx + 0x24]
mov byte [edi + 0x427ac9], cl
movzx ecx, byte [edi + 0x41f1c2]
test ecx, ecx
je 0x406b77
add ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
add edx, edx
add edx, edx
mov eax, ecx
sub eax, edx
cmp eax, esi
jg 0x406b6d
sub ecx, 0x1c
mov cl, byte [esp + ecx + 0x24]
mov byte [edi + 0x427aca], cl
movzx ecx, byte [edi + 0x41f1c3]
test ecx, ecx
je 0x406bb9
add ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
add edx, edx
add edx, edx
mov eax, ecx
sub eax, edx
cmp eax, esi
jg 0x406baf
sub ecx, 0x1c
mov cl, byte [esp + ecx + 0x24]
mov byte [edi + 0x427acb], cl
add edi, 4
cmp edi, 0x40
jl 0x406ab1
push 0x427ac8
push ebp
mov eax, 8
call fcn.004067c0
add ebp, 0x800
add esp, 8
add esi, 1
cmp ebp, 0x426598
jl 0x406a72
mov edi, 0x41f148
mov esi, 0x427ac9
sub edi, 1
lea ebx, [ebx]
xor ecx, ecx
cmp ecx, 2
jge 0x406c0b
xor eax, eax
jmp 0x406c3e
movzx edx, byte [edi + ecx - 1]
movzx eax, byte [edx + 0x41f107]
cmp eax, 0x20
jle 0x406c21
sub eax, 0x20
jmp 0x406c28
test eax, eax
jle 0x406c3e
sub eax, 1
test eax, eax
jle 0x406c3e
sub eax, 1
mov edx, eax
and eax, 7
or edx, 7
sub edx, eax
add edx, 1
mov eax, edx
lea edx, [ecx + 2]
mov byte [esi + ecx - 1], al
lea eax, [edx - 1]
cmp eax, 2
jge 0x406c51
xor eax, eax
jmp 0x406c83
movzx eax, byte [edi + ecx]
movzx eax, byte [eax + 0x41f107]
cmp eax, 0x20
jle 0x406c66
sub eax, 0x20
jmp 0x406c6d
test eax, eax
jle 0x406c83
sub eax, 1
test eax, eax
jle 0x406c83
sub eax, 1
mov ebx, eax
and eax, 7
or ebx, 7
sub ebx, eax
add ebx, 1
mov eax, ebx
cmp edx, 2
mov byte [esi + ecx], al
jge 0x406c8f
xor eax, eax
jmp 0x406cc2
movzx eax, byte [edi + ecx + 1]
movzx eax, byte [eax + 0x41f107]
cmp eax, 0x20
jle 0x406ca5
sub eax, 0x20
jmp 0x406cac
test eax, eax
jle 0x406cc2
sub eax, 1
test eax, eax
jle 0x406cc2
sub eax, 1
mov ebx, eax
and eax, 7
or ebx, 7
sub ebx, eax
add ebx, 1
mov eax, ebx
add edx, 1
cmp edx, 2
mov byte [esi + ecx + 1], al
jge 0x406cd2
xor eax, eax
jmp 0x406d05
movzx edx, byte [edi + ecx + 2]
movzx eax, byte [edx + 0x41f107]
cmp eax, 0x20
jle 0x406ce8
sub eax, 0x20
jmp 0x406cef
test eax, eax
jle 0x406d05
sub eax, 1
test eax, eax
jle 0x406d05
sub eax, 1
mov edx, eax
and eax, 7
or edx, 7
sub edx, eax
add edx, 1
mov eax, edx
mov byte [esi + ecx + 2], al
add ecx, 4
cmp ecx, 8
jl 0x406c02
add edi, 6
add esi, 8
cmp edi, 0x41f177
jl 0x406c00
push 0x427ac8
push 0x426598
mov eax, 8
call fcn.004067c0
mov esi, 0x427ac8
add esp, 8
xor ecx, ecx
sub esi, 1
jmp 0x406d50
movzx eax, byte [ecx + 0x41f420]
movzx eax, byte [eax + 0x41f107]
test eax, eax
jle 0x406d74
sub eax, 1
mov edx, eax
and eax, 7
or edx, 7
sub edx, eax
add edx, 1
mov eax, edx
mov dl, cl
add dl, 1
add ecx, 1
cmp ecx, 0x40
mov byte [eax + esi], dl
jl 0x406d50
push 0x427ac8
push 0x427220
mov eax, 8
call fcn.004067c0
add esp, 8
xor eax, eax
lea ecx, [ecx]
movzx ecx, byte [eax + 0x41f148]
movzx edx, byte [ecx + 0x41f3ff]
movzx ecx, byte [eax + 0x41f149]
mov byte [eax + 0x427ac8], dl
movzx edx, byte [ecx + 0x41f3ff]
movzx ecx, byte [eax + 0x41f14a]
mov byte [eax + 0x427ac9], dl
movzx edx, byte [ecx + 0x41f3ff]
movzx ecx, byte [eax + 0x41f14b]
mov byte [eax + 0x427aca], dl
movzx edx, byte [ecx + 0x41f3ff]
movzx ecx, byte [eax + 0x41f14c]
mov byte [eax + 0x427acb], dl
movzx edx, byte [ecx + 0x41f3ff]
movzx ecx, byte [eax + 0x41f14d]
mov byte [eax + 0x427acc], dl
movzx edx, byte [ecx + 0x41f3ff]
mov byte [eax + 0x427acd], dl
add eax, 6
cmp eax, 0x30
jl 0x406da0
mov dword [esp + 0x10], 0
mov esi, 0x427aa5
mov ebp, 0x424d98
xor edx, edx
mov eax, edx
sar eax, 2
and eax, 4
mov ecx, edx
and ecx, 8
or eax, ecx
sar eax, 1
mov ecx, edx
and ecx, 0x20
or eax, ecx
mov ecx, edx
and ecx, 1
add ecx, ecx
add ecx, ecx
add ecx, ecx
sar eax, 1
mov edi, edx
and edi, 2
or ecx, edi
add ecx, ecx
add ecx, ecx
or eax, ecx
mov ecx, edx
and ecx, 4
or eax, ecx
mov ecx, dword [esp + 0x10]
movzx ecx, byte [eax + ecx + 0x41f200]
mov eax, ecx
mov edi, ecx
sar eax, 2
and edi, 4
and eax, 2
or eax, edi
mov edi, ecx
and ecx, 2
and edi, 1
add edi, edi
add edi, edi
or edi, ecx
xor ecx, ecx
mov dword [0x427aa4], ecx
mov dword [0x427aa8], ecx
mov dword [0x427aac], ecx
mov dword [0x427ab0], ecx
mov dword [0x427ab4], ecx
mov dword [0x427ab8], ecx
mov dword [0x427abc], ecx
mov dword [0x427ac0], ecx
sar eax, 1
add edi, edi
or eax, edi
mov cl, al
and cl, 1
mov byte [esi - 1], cl
mov ecx, eax
sar ecx, 1
and cl, 1
mov byte [esi], cl
mov ecx, eax
sar ecx, 2
sar eax, 3
and cl, 1
and al, 1
mov byte [esi + 1], cl
mov byte [esi + 2], al
xor eax, eax
mov ecx, 0x427ade
mov edi, 4
mov edi, edi
movzx ebx, byte [ecx + 1]
movzx ebx, byte [ebx + 0x427aa3]
add eax, eax
or ebx, eax
movzx eax, byte [ecx]
movzx eax, byte [eax + 0x427aa3]
add ebx, ebx
or ebx, eax
movzx eax, byte [ecx - 1]
movzx eax, byte [eax + 0x427aa3]
add ebx, ebx
or ebx, eax
movzx eax, byte [ecx - 2]
movzx eax, byte [eax + 0x427aa3]
add ebx, ebx
or ebx, eax
movzx eax, byte [ecx - 3]
movzx eax, byte [eax + 0x427aa3]
add ebx, ebx
or ebx, eax
movzx eax, byte [ecx - 4]
movzx eax, byte [eax + 0x427aa3]
add ebx, ebx
or eax, ebx
sub ecx, 6
sub edi, 1
jne 0x406f00
mov byte [esp + 0x14], al
sar eax, 6
mov byte [esp + 0x15], al
sar eax, 6
mov byte [esp + 0x16], al
sar eax, 6
mov byte [esp + 0x17], al
mov ecx, dword [esp + 0x14]
and ecx, 0xff3f3f3f
add ecx, ecx
add ecx, ecx
mov dword [ebp - 0x800], ecx
xor eax, eax
mov ecx, 0x17
jmp 0x406fa0
movzx edi, byte [ecx + 0x427ae0]
movzx edi, byte [edi + 0x427aa3]
add eax, eax
or edi, eax
movzx eax, byte [ecx + 0x427adf]
movzx eax, byte [eax + 0x427aa3]
add edi, edi
or edi, eax
movzx eax, byte [ecx + 0x427ade]
movzx eax, byte [eax + 0x427aa3]
add edi, edi
or edi, eax
movzx eax, byte [ecx + 0x427add]
movzx eax, byte [eax + 0x427aa3]
add edi, edi
or edi, eax
movzx eax, byte [ecx + 0x427adc]
movzx eax, byte [eax + 0x427aa3]
add edi, edi
or edi, eax
movzx eax, byte [ecx + 0x427adb]
movzx eax, byte [eax + 0x427aa3]
add edi, edi
or eax, edi
sub ecx, 6
jns 0x406fa0
mov byte [esp + 0x1c], al
sar eax, 6
mov byte [esp + 0x1d], al
sar eax, 6
mov byte [esp + 0x1e], al
sar eax, 6
mov byte [esp + 0x1f], al
mov ecx, dword [esp + 0x1c]
and ecx, 0xff3f3f3f
add ecx, ecx
add ecx, ecx
mov dword [ebp], ecx
add edx, 1
add ebp, 4
cmp edx, 0x40
jl 0x406e34
add dword [esp + 0x10], 0x40
add esi, 4
cmp ebp, 0x425598
jl 0x406e32
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041b1f8
add esp, 0x58
ret