Function at 0x401520
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xfc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10c]
push edi
xor eax, eax
movzx ecx, byte [eax + str.80_]
mov edx, ecx
sar edx, 3
movzx edx, byte [edx + esi]
and ecx, 7
test byte [ecx*2 + 0x455020], dl
setne cl
mov byte [esp + eax + 0x54], cl
movzx ecx, byte [eax + 0x455091]
mov edx, ecx
sar edx, 3
movzx edx, byte [edx + esi]
and ecx, 7
test byte [ecx*2 + 0x455020], dl
setne cl
mov byte [esp + eax + 0x55], cl
movzx ecx, byte [eax + 0x455092]
mov edx, ecx
sar edx, 3
movzx edx, byte [edx + esi]
and ecx, 7
test byte [ecx*2 + 0x455020], dl
setne cl
mov byte [esp + eax + 0x56], cl
movzx ecx, byte [eax + 0x455093]
mov edx, ecx
sar edx, 3
movzx edx, byte [edx + esi]
and ecx, 7
test byte [ecx*2 + 0x455020], dl
setne cl
mov byte [esp + eax + 0x57], cl
add eax, 4
cmp eax, 0x38
jl 0x401533
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0x1e
jmp 0x4015e4
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x114], 1
mov eax, dword [esp + 0x14]
je 0x4015f5
lea eax, [ecx + ecx]
movzx ebp, byte [ecx + 0x4550c8]
lea ebx, [esp + eax*4 + 0x90]
lea eax, [esp + eax*4 + 0x8c]
mov dword [ebx], 0
mov dword [esp + 0x18], eax
mov dword [eax], 0
xor esi, esi
lea ecx, [ebp + 3]
lea eax, [ebp + 2]
lea edi, [ecx - 3]
cmp edi, 0x1c
jge 0x401630
mov dl, byte [esp + eax + 0x52]
jmp 0x401634
mov dl, byte [esp + edi + 0x38]
lea edi, [ecx - 2]
cmp edi, 0x1c
mov byte [esp + esi + 0x1c], dl
jge 0x401646
mov dl, byte [esp + eax + 0x53]
jmp 0x40164a
mov dl, byte [esp + edi + 0x38]
cmp eax, 0x1c
mov byte [esp + esi + 0x1d], dl
jge 0x401659
mov dl, byte [esp + eax + 0x54]
jmp 0x40165d
mov dl, byte [esp + eax + 0x38]
cmp ecx, 0x1c
mov byte [esp + esi + 0x1e], dl
jge 0x40166c
mov dl, byte [esp + eax + 0x55]
jmp 0x401670
mov dl, byte [esp + ecx + 0x38]
mov byte [esp + esi + 0x1f], dl
add esi, 4
add eax, 4
add ecx, 4
cmp esi, 0x1c
jl 0x401622
mov edi, 0x1c
lea edx, [ebp + 0x1f]
lea eax, [ebp + 0x1e]
lea ecx, [ecx]
lea ecx, [edx - 3]
cmp ecx, 0x38
jge 0x40169e
mov cl, byte [esp + eax + 0x52]
jmp 0x4016a2
mov cl, byte [esp + ecx + 0x38]
lea esi, [edx - 2]
cmp esi, 0x38
mov byte [esp + edi + 0x1c], cl
jge 0x4016b4
mov cl, byte [esp + eax + 0x53]
jmp 0x4016b8
mov cl, byte [esp + esi + 0x38]
cmp eax, 0x38
mov byte [esp + edi + 0x1d], cl
jge 0x4016c7
mov cl, byte [esp + eax + 0x54]
jmp 0x4016cb
mov cl, byte [esp + eax + 0x38]
cmp edx, 0x38
mov byte [esp + edi + 0x1e], cl
jge 0x4016da
mov cl, byte [esp + eax + 0x55]
jmp 0x4016de
mov cl, byte [esp + edx + 0x38]
mov byte [esp + edi + 0x1f], cl
add edi, 4
add eax, 4
add edx, 4
cmp edi, 0x38
jl 0x401690
xor eax, eax
jmp 0x401700
movzx edx, byte [eax + 0x4550d8]
cmp byte [esp + edx + 0x1c], 0
mov ecx, dword [esp + 0x18]
je 0x40171b
mov edx, dword [eax*4 + 0x455030]
or dword [ecx], edx
movzx edx, byte [eax + 0x4550f0]
cmp byte [esp + edx + 0x1c], 0
je 0x401732
mov edx, dword [eax*4 + 0x455030]
or dword [ebx], edx
movzx edx, byte [eax + 0x4550d9]
cmp byte [esp + edx + 0x1c], 0
je 0x401749
mov edx, dword [eax*4 + 0x455034]
or dword [ecx], edx
movzx edx, byte [eax + 0x4550f1]
cmp byte [esp + edx + 0x1c], 0
je 0x401760
mov edx, dword [eax*4 + 0x455034]
or dword [ebx], edx
movzx edx, byte [eax + 0x4550da]
cmp byte [esp + edx + 0x1c], 0
je 0x401777
mov edx, dword [eax*4 + 0x455038]
or dword [ecx], edx
movzx edx, byte [eax + 0x4550f2]
cmp byte [esp + edx + 0x1c], 0
je 0x40178e
mov edx, dword [eax*4 + 0x455038]
or dword [ebx], edx
movzx edx, byte [eax + 0x4550db]
cmp byte [esp + edx + 0x1c], 0
je 0x4017a5
mov edx, dword [eax*4 + 0x45503c]
or dword [ecx], edx
movzx edx, byte [eax + 0x4550f3]
cmp byte [esp + edx + 0x1c], 0
je 0x4017bc
mov edx, dword [eax*4 + 0x45503c]
or dword [ebx], edx
movzx edx, byte [eax + 0x4550dc]
cmp byte [esp + edx + 0x1c], 0
je 0x4017d3
mov edx, dword [eax*4 + 0x455040]
or dword [ecx], edx
movzx edx, byte [eax + 0x4550f4]
cmp byte [esp + edx + 0x1c], 0
je 0x4017ea
mov edx, dword [eax*4 + 0x455040]
or dword [ebx], edx
movzx edx, byte [eax + 0x4550dd]
cmp byte [esp + edx + 0x1c], 0
je 0x401801
mov edx, dword [eax*4 + 0x455044]
or dword [ecx], edx
movzx ecx, byte [eax + 0x4550f5]
cmp byte [esp + ecx + 0x1c], 0
je 0x401818
mov edx, dword [eax*4 + 0x455044]
or dword [ebx], edx
add eax, 6
cmp eax, 0x18
jl 0x401700
mov eax, dword [esp + 0x14]
add dword [esp + 0x10], 1
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x14], eax
jg 0x4015e0
lea ecx, [esp + 0x8c]
call fcn.004012f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret