Function at 0x10008670
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x58
mov eax, dword [0x1007fa04]
xor eax, esp
mov dword [esp + 0x54], eax
xor eax, eax
movzx ecx, byte [eax + 0x1005c378]
mov byte [ecx + 0x10082700], al
add eax, 1
cmp eax, 0x40
jl 0x10008680
push ebx
push ebp
push esi
push edi
push 0x40
push 0
push 0x10083030
call sub.MSVCR80.dll_memset
add esp, 0xc
xor esi, esi
lea esp, [esp]
movzx ecx, byte [esi + 0x1005c0d8]
test ecx, ecx
je 0x1000870a
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 0x100086e7
sub ecx, 0x1c
movzx eax, byte [ecx + str.91__]
test eax, eax
jle 0x10008704
sub eax, 1
mov ecx, eax
and eax, 7
or ecx, 7
sub ecx, eax
add ecx, 1
mov eax, ecx
mov byte [esi + 0x10083030], al
movzx ecx, byte [esi + 0x1005c0d9]
test ecx, ecx
je 0x10008764
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 0x10008741
sub ecx, 0x1c
movzx eax, byte [ecx + str.91__]
test eax, eax
jle 0x1000875e
sub eax, 1
mov ecx, eax
and eax, 7
or ecx, 7
sub ecx, eax
add ecx, 1
mov eax, ecx
mov byte [esi + 0x10083031], al
movzx ecx, byte [esi + 0x1005c0da]
test ecx, ecx
je 0x100087be
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 0x1000879b
sub ecx, 0x1c
movzx eax, byte [ecx + str.91__]
test eax, eax
jle 0x100087b8
sub eax, 1
mov ecx, eax
and eax, 7
or ecx, 7
sub ecx, eax
add ecx, 1
mov eax, ecx
mov byte [esi + 0x10083032], al
movzx ecx, byte [esi + 0x1005c0db]
test ecx, ecx
je 0x10008818
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 0x100087f5
sub ecx, 0x1c
movzx eax, byte [ecx + str.91__]
test eax, eax
jle 0x10008812
sub eax, 1
mov ecx, eax
and eax, 7
or ecx, 7
sub ecx, eax
add ecx, 1
mov eax, ecx
mov byte [esi + 0x10083033], al
add esi, 4
cmp esi, 0x40
jl 0x100086b0
push 0x10083030
push 0x10081f00
mov eax, 8
call fcn.100085c0
add esp, 8
xor esi, esi
mov ebp, 0x10080b00
push 0x40
push 0
push 0x10083030
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 + 0x1005c0d8]
test ecx, ecx
je 0x10008877
mov dl, al
add dl, 1
mov byte [esp + ecx + 0x23], dl
add eax, 1
cmp eax, 0x40
jl 0x10008863
xor edi, edi
movzx ecx, byte [edi + 0x1005c0d8]
test ecx, ecx
je 0x100088c3
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 0x100088b9
sub ecx, 0x1c
mov cl, byte [esp + ecx + 0x24]
mov byte [edi + 0x10083030], cl
movzx ecx, byte [edi + 0x1005c0d9]
test ecx, ecx
je 0x10008905
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 0x100088fb
sub ecx, 0x1c
mov cl, byte [esp + ecx + 0x24]
mov byte [edi + 0x10083031], cl
movzx ecx, byte [edi + 0x1005c0da]
test ecx, ecx
je 0x10008947
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 0x1000893d
sub ecx, 0x1c
mov cl, byte [esp + ecx + 0x24]
mov byte [edi + 0x10083032], cl
movzx ecx, byte [edi + 0x1005c0db]
test ecx, ecx
je 0x10008989
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 0x1000897f
sub ecx, 0x1c
mov cl, byte [esp + ecx + 0x24]
mov byte [edi + 0x10083033], cl
add edi, 4
cmp edi, 0x40
jl 0x10008881
push 0x10083030
push ebp
mov eax, 8
call fcn.100085c0
add ebp, 0x800
add esp, 8
add esi, 1
cmp ebp, 0x10081b00
jl 0x10008842
mov edi, 0x1005c060
mov esi, 0x10083031
sub edi, 1
lea ebx, [ebx]
xor ecx, ecx
cmp ecx, 2
jge 0x100089db
xor eax, eax
jmp 0x10008a0e
movzx edx, byte [edi + ecx - 1]
movzx eax, byte [edx + 0x1005c01f]
cmp eax, 0x20
jle 0x100089f1
sub eax, 0x20
jmp 0x100089f8
test eax, eax
jle 0x10008a0e
sub eax, 1
test eax, eax
jle 0x10008a0e
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 0x10008a21
xor eax, eax
jmp 0x10008a53
movzx eax, byte [edi + ecx]
movzx eax, byte [eax + 0x1005c01f]
cmp eax, 0x20
jle 0x10008a36
sub eax, 0x20
jmp 0x10008a3d
test eax, eax
jle 0x10008a53
sub eax, 1
test eax, eax
jle 0x10008a53
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 0x10008a5f
xor eax, eax
jmp 0x10008a92
movzx eax, byte [edi + ecx + 1]
movzx eax, byte [eax + 0x1005c01f]
cmp eax, 0x20
jle 0x10008a75
sub eax, 0x20
jmp 0x10008a7c
test eax, eax
jle 0x10008a92
sub eax, 1
test eax, eax
jle 0x10008a92
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 0x10008aa2
xor eax, eax
jmp 0x10008ad5
movzx edx, byte [edi + ecx + 2]
movzx eax, byte [edx + 0x1005c01f]
cmp eax, 0x20
jle 0x10008ab8
sub eax, 0x20
jmp 0x10008abf
test eax, eax
jle 0x10008ad5
sub eax, 1
test eax, eax
jle 0x10008ad5
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 0x100089d2
add edi, 6
add esi, 8
cmp edi, 0x1005c08f
jl 0x100089d0
push 0x10083030
push 0x10081b00
mov eax, 8
call fcn.100085c0
mov esi, 0x10083030
add esp, 8
xor ecx, ecx
sub esi, 1
jmp 0x10008b20
movzx eax, byte [ecx + 0x1005c338]
movzx eax, byte [eax + 0x1005c01f]
test eax, eax
jle 0x10008b44
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 0x10008b20
push 0x10083030
push 0x10082788
mov eax, 8
call fcn.100085c0
add esp, 8
xor eax, eax
lea ecx, [ecx]
movzx ecx, byte [eax + 0x1005c060]
movzx edx, byte [ecx + 0x1005c317]
movzx ecx, byte [eax + 0x1005c061]
mov byte [eax + 0x10083030], dl
movzx edx, byte [ecx + 0x1005c317]
movzx ecx, byte [eax + 0x1005c062]
mov byte [eax + 0x10083031], dl
movzx edx, byte [ecx + 0x1005c317]
movzx ecx, byte [eax + 0x1005c063]
mov byte [eax + 0x10083032], dl
movzx edx, byte [ecx + 0x1005c317]
movzx ecx, byte [eax + 0x1005c064]
mov byte [eax + 0x10083033], dl
movzx edx, byte [ecx + 0x1005c317]
movzx ecx, byte [eax + 0x1005c065]
mov byte [eax + 0x10083034], dl
movzx edx, byte [ecx + 0x1005c317]
mov byte [eax + 0x10083035], dl
add eax, 6
cmp eax, 0x30
jl 0x10008b70
mov dword [esp + 0x10], 0
mov esi, 0x1008300d
mov ebp, 0x10080300
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 + 0x1005c118]
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 [0x1008300c], ecx
mov dword [0x10083010], ecx
mov dword [0x10083014], ecx
mov dword [0x10083018], ecx
mov dword [0x1008301c], ecx
mov dword [0x10083020], ecx
mov dword [0x10083024], ecx
mov dword [0x10083028], 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, 0x10083046
mov edi, 4
mov edi, edi
movzx ebx, byte [ecx + 1]
movzx ebx, byte [ebx + 0x1008300b]
add eax, eax
or ebx, eax
movzx eax, byte [ecx]
movzx eax, byte [eax + 0x1008300b]
add ebx, ebx
or ebx, eax
movzx eax, byte [ecx - 1]
movzx eax, byte [eax + 0x1008300b]
add ebx, ebx
or ebx, eax
movzx eax, byte [ecx - 2]
movzx eax, byte [eax + 0x1008300b]
add ebx, ebx
or ebx, eax
movzx eax, byte [ecx - 3]
movzx eax, byte [eax + 0x1008300b]
add ebx, ebx
or ebx, eax
movzx eax, byte [ecx - 4]
movzx eax, byte [eax + 0x1008300b]
add ebx, ebx
or eax, ebx
sub ecx, 6
sub edi, 1
jne 0x10008cd0
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 0x10008d70
movzx edi, byte [ecx + 0x10083048]
movzx edi, byte [edi + 0x1008300b]
add eax, eax
or edi, eax
movzx eax, byte [ecx + 0x10083047]
movzx eax, byte [eax + 0x1008300b]
add edi, edi
or edi, eax
movzx eax, byte [ecx + 0x10083046]
movzx eax, byte [eax + 0x1008300b]
add edi, edi
or edi, eax
movzx eax, byte [ecx + 0x10083045]
movzx eax, byte [eax + 0x1008300b]
add edi, edi
or edi, eax
movzx eax, byte [ecx + 0x10083044]
movzx eax, byte [eax + 0x1008300b]
add edi, edi
or edi, eax
movzx eax, byte [ecx + 0x10083043]
movzx eax, byte [eax + 0x1008300b]
add edi, edi
or eax, edi
sub ecx, 6
jns 0x10008d70
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 0x10008c04
add dword [esp + 0x10], 0x40
add esi, 4
cmp ebp, 0x10080b00
jl 0x10008c02
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10052756
add esp, 0x58
ret