Function at 0x40f960
Capabilities:
Encrypt data using des

Disassembly:
push ecx
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [0x490168], ebp
mov dword [0x490164], ebp
mov dword [0x48ded8], ebp
mov dword [0x482c48], ebp
mov dword [0x489c50], 0x45de90
mov dword [0x489c4c], 0x45dea0
xor ecx, ecx
xor eax, eax
mov edx, eax
sar edx, 1
mov esi, eax
and esi, 1
and edx, 0xf
shl esi, 4
or edx, esi
mov esi, eax
and esi, 0x20
or edx, esi
mov dl, byte [edx + ecx + 0x45dc60]
mov byte [ecx + eax + 0x47e590], dl
inc eax
cmp eax, 0x40
jl 0x40f997
add ecx, 0x40
cmp ecx, 0x200
jl 0x40f995
mov edi, 0x47e590
xor esi, esi
mov dword [esp + 0x10], esi
mov cl, byte [edi + esi]
xor eax, eax
shl cl, 4
shl esi, 6
mov dl, byte [edi + eax + 0x40]
or dl, cl
mov ebx, esi
or ebx, eax
inc eax
cmp eax, 0x40
mov byte [ebx + ebp + 0x489c54], dl
jl 0x40f9e4
mov esi, dword [esp + 0x10]
inc esi
cmp esi, 0x40
mov dword [esp + 0x10], esi
jl 0x40f9d9
add edi, 0x80
add ebp, 0x1000
cmp edi, 0x47e790
jl 0x40f9d3
xor edx, edx
mov ecx, 0x10
or eax, 0xffffffff
mov edi, 0x4907f8
rep stosd dword es:[edi], eax
xor eax, eax
mov al, byte [edx + 0x45dba8]
dec al
mov byte [edx + 0x47e450], al
and eax, 0xff
mov byte [eax + 0x47e510], dl
inc edx
cmp edx, 0x40
jl 0x40fa2e
xor edx, edx
mov ecx, 0xe
or eax, 0xffffffff
mov edi, 0x4903a8
rep stosd dword es:[edi], eax
xor eax, eax
mov al, byte [edx + 0x45dbe8]
mov cl, al
dec cl
mov byte [edx + 0x490370], cl
and eax, 0xff
mov byte [eax + 0x4907f7], dl
inc edx
cmp edx, 0x38
jl 0x40fa60
xor eax, eax
xor edx, edx
mov dl, byte [eax + 0x45dc30]
mov byte [edx + 0x4903a7], al
inc eax
cmp eax, 0x30
jl 0x40fa85
xor ebp, ebp
xor edi, edi
xor esi, esi
mov dword [esp + 0x10], 0x4903a8
xor ebx, ebx
xor eax, eax
mov dword [esi + 0x47ec48], eax
mov dword [esi + 0x480c48], eax
mov dword [esi + 0x483c4c], eax
mov dword [esi + 0x486c4c], eax
xor edx, edx
test byte [edx + 0x45df00], bl
je 0x40fb21
xor ecx, ecx
mov cl, byte [edx + ebp + 0x47e510]
cmp ecx, 0x20
jge 0x40faea
mov ecx, dword [ecx*4 + 0x45de80]
or dword [esi + 0x47ec48], ecx
jmp 0x40faf7
mov ecx, dword [ecx*4 + 0x45de00]
or dword [esi + 0x480c48], ecx
xor ecx, ecx
mov cl, byte [edx + ebp + 0x47e450]
cmp ecx, 0x20
jge 0x40fb14
mov ecx, dword [ecx*4 + 0x45de80]
or dword [esi + 0x483c4c], ecx
jmp 0x40fb21
mov ecx, dword [ecx*4 + 0x45de00]
or dword [esi + 0x486c4c], ecx
inc edx
cmp edx, 8
jl 0x40fac5
inc ebx
add esi, 4
cmp ebx, 0x100
jl 0x40faa9
xor ebx, ebx
mov eax, edi
xor edi, edi
mov dword [eax + 0x485c4c], edi
mov dword [eax + 0x482c4c], edi
xor edx, edx
test byte [edx + 0x45df01], bl
je 0x40fb85
xor ecx, ecx
mov cl, byte [edx + ebp + 0x4907f8]
cmp ecx, 0xff
je 0x40fb85
cmp ecx, 0x1c
jge 0x40fb78
mov ecx, dword [ecx*4 + 0x45de90]
or dword [eax + 0x485c4c], ecx
jmp 0x40fb85
mov ecx, dword [ecx*4 + 0x45de20]
or dword [eax + 0x482c4c], ecx
inc edx
cmp edx, 7
jl 0x40fb4b
mov dword [eax + 0x48f164], edi
mov dword [eax + 0x48e164], edi
xor edx, edx
test byte [edx + 0x45df01], bl
je 0x40fbd3
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [edi + edx]
cmp ecx, 0xff
je 0x40fbd3
cmp ecx, 0x18
jge 0x40fbc6
mov ecx, dword [ecx*4 + 0x45dea0]
or dword [eax + 0x48f164], ecx
jmp 0x40fbd3
mov ecx, dword [ecx*4 + 0x45de40]
or dword [eax + 0x48e164], ecx
inc edx
cmp edx, 7
jl 0x40fb99
inc ebx
add eax, 4
cmp ebx, 0x80
jl 0x40fb3b
mov edi, eax
mov eax, dword [esp + 0x10]
add eax, 7
add ebp, 8
cmp eax, 0x4903e0
mov dword [esp + 0x10], eax
jl 0x40faa7
xor eax, eax
xor edx, edx
mov dl, byte [eax + 0x45de60]
mov byte [edx + 0x48e143], al
inc eax
cmp eax, 0x20
jl 0x40fc06
mov esi, 0x48e144
mov eax, 0x488c4c
xor edx, edx
mov dword [eax], 0
xor ecx, ecx
test byte [ecx + 0x45df00], dl
je 0x40fc44
xor ebx, ebx
mov bl, byte [esi + ecx]
mov edi, dword [ebx*4 + 0x45de80]
or dword [eax], edi
inc ecx
cmp ecx, 8
jl 0x40fc2e
inc edx
add eax, 4
cmp edx, 0x100
jl 0x40fc26
add esi, 8
cmp eax, 0x489c4c
jl 0x40fc24
pop edi
pop esi
pop ebp
mov dword [0x490a4c], 1
pop ebx
pop ecx
ret