Function at 0x1001ddd0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x100
mov eax, dword [0x1005d330]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x110]
mov dword [esp + 0x108], eax
push edi
xor eax, eax
nop
movzx ecx, byte [eax + str.80_]
mov edx, ecx
and ecx, 7
mov bl, byte [ecx*2 + 0x1005ca10]
sar edx, 3
mov dl, byte [edx + esi]
test bl, dl
setne cl
mov byte [esp + eax + 0x54], cl
movzx ecx, byte [eax + 0x1005ca21]
mov edx, ecx
and ecx, 7
mov bl, byte [ecx*2 + 0x1005ca10]
sar edx, 3
mov dl, byte [edx + esi]
test bl, dl
setne cl
mov byte [esp + eax + 0x55], cl
movzx ecx, byte [eax + 0x1005ca22]
mov edx, ecx
and ecx, 7
mov bl, byte [ecx*2 + 0x1005ca10]
sar edx, 3
mov dl, byte [edx + esi]
test bl, dl
setne cl
mov byte [esp + eax + 0x56], cl
movzx ecx, byte [eax + 0x1005ca23]
mov edx, ecx
and ecx, 7
mov bl, byte [ecx*2 + 0x1005ca10]
sar edx, 3
mov dl, byte [edx + esi]
test bl, dl
setne cl
mov byte [esp + eax + 0x57], cl
add eax, 4
cmp eax, 0x38
jl 0x1001ddf0
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0x1e
jmp 0x1001dea0
mov ecx, dword [esp + 0x10]
jmp 0x1001dea0
cmp word [esp + 0x118], 1
mov eax, dword [esp + 0x14]
je 0x1001deb2
lea eax, [ecx + ecx]
movzx ebp, byte [ecx + 0x1005ca00]
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]
nop
lea edi, [ecx - 3]
cmp edi, 0x1c
jge 0x1001deee
mov dl, byte [esp + eax + 0x52]
jmp 0x1001def2
mov dl, byte [esp + edi + 0x38]
lea edi, [ecx - 2]
cmp edi, 0x1c
mov byte [esp + esi + 0x1c], dl
jge 0x1001df04
mov dl, byte [esp + eax + 0x53]
jmp 0x1001df08
mov dl, byte [esp + edi + 0x38]
cmp eax, 0x1c
mov byte [esp + esi + 0x1d], dl
jge 0x1001df17
mov dl, byte [esp + eax + 0x54]
jmp 0x1001df1b
mov dl, byte [esp + eax + 0x38]
cmp ecx, 0x1c
mov byte [esp + esi + 0x1e], dl
jge 0x1001df2a
mov dl, byte [esp + eax + 0x55]
jmp 0x1001df2e
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 0x1001dee0
mov edi, 0x1c
lea edx, [ebp + 0x1f]
lea eax, [ebp + 0x1e]
jmp 0x1001df50
lea ecx, [edx - 3]
cmp ecx, 0x38
jge 0x1001df5e
mov cl, byte [esp + eax + 0x52]
jmp 0x1001df62
mov cl, byte [esp + ecx + 0x38]
lea esi, [edx - 2]
cmp esi, 0x38
mov byte [esp + edi + 0x1c], cl
jge 0x1001df74
mov cl, byte [esp + eax + 0x53]
jmp 0x1001df78
mov cl, byte [esp + esi + 0x38]
cmp eax, 0x38
mov byte [esp + edi + 0x1d], cl
jge 0x1001df87
mov cl, byte [esp + eax + 0x54]
jmp 0x1001df8b
mov cl, byte [esp + eax + 0x38]
cmp edx, 0x38
mov byte [esp + edi + 0x1e], cl
jge 0x1001df9a
mov cl, byte [esp + eax + 0x55]
jmp 0x1001df9e
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 0x1001df50
xor eax, eax
movzx edx, byte [eax + 0x1005c9d0]
mov cl, byte [esp + edx + 0x1c]
test cl, cl
mov ecx, dword [esp + 0x18]
je 0x1001dfd2
mov esi, dword [ecx]
mov edx, dword [eax*4 + 0x1005c970]
or esi, edx
mov dword [ecx], esi
movzx edx, byte [eax + 0x1005c9e8]
cmp byte [esp + edx + 0x1c], 0
je 0x1001dfed
mov esi, dword [ebx]
mov edx, dword [eax*4 + 0x1005c970]
or esi, edx
mov dword [ebx], esi
movzx edx, byte [eax + 0x1005c9d1]
cmp byte [esp + edx + 0x1c], 0
je 0x1001e008
mov esi, dword [ecx]
mov edx, dword [eax*4 + 0x1005c974]
or esi, edx
mov dword [ecx], esi
movzx edx, byte [eax + 0x1005c9e9]
cmp byte [esp + edx + 0x1c], 0
je 0x1001e023
mov esi, dword [ebx]
mov edx, dword [eax*4 + 0x1005c974]
or esi, edx
mov dword [ebx], esi
movzx edx, byte [eax + 0x1005c9d2]
cmp byte [esp + edx + 0x1c], 0
je 0x1001e03e
mov esi, dword [ecx]
mov edx, dword [eax*4 + 0x1005c978]
or esi, edx
mov dword [ecx], esi
movzx edx, byte [eax + 0x1005c9ea]
cmp byte [esp + edx + 0x1c], 0
je 0x1001e059
mov esi, dword [ebx]
mov edx, dword [eax*4 + 0x1005c978]
or esi, edx
mov dword [ebx], esi
movzx edx, byte [eax + 0x1005c9d3]
cmp byte [esp + edx + 0x1c], 0
je 0x1001e074
mov esi, dword [ecx]
mov edx, dword [eax*4 + 0x1005c97c]
or esi, edx
mov dword [ecx], esi
movzx edx, byte [eax + 0x1005c9eb]
cmp byte [esp + edx + 0x1c], 0
je 0x1001e08f
mov esi, dword [ebx]
mov edx, dword [eax*4 + 0x1005c97c]
or esi, edx
mov dword [ebx], esi
movzx edx, byte [eax + 0x1005c9d4]
cmp byte [esp + edx + 0x1c], 0
je 0x1001e0aa
mov esi, dword [ecx]
mov edx, dword [eax*4 + 0x1005c980]
or esi, edx
mov dword [ecx], esi
movzx edx, byte [eax + 0x1005c9ec]
cmp byte [esp + edx + 0x1c], 0
je 0x1001e0c5
mov esi, dword [ebx]
mov edx, dword [eax*4 + 0x1005c980]
or esi, edx
mov dword [ebx], esi
movzx edx, byte [eax + 0x1005c9d5]
cmp byte [esp + edx + 0x1c], 0
je 0x1001e0e0
mov esi, dword [ecx]
mov edx, dword [eax*4 + 0x1005c984]
or esi, edx
mov dword [ecx], esi
movzx ecx, byte [eax + 0x1005c9ed]
mov dl, byte [esp + ecx + 0x1c]
test dl, dl
je 0x1001e0fc
mov ecx, dword [ebx]
mov edx, dword [eax*4 + 0x1005c984]
or ecx, edx
mov dword [ebx], ecx
add eax, 6
cmp eax, 0x18
jl 0x1001dfb2
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
sub eax, 2
inc esi
cmp eax, 0xfffffffe
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
jg 0x1001de94
lea eax, [esp + 0x8c]
push eax
call fcn.1001d340
mov ecx, dword [esp + 0x110]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
call fcn.10036c09
add esp, 0x100
ret 8