Function at 0x40b810
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
push ebx
push ebp
push esi
mov esi, eax
push edi
xor eax, eax
mov edi, edi
movzx ecx, byte [eax + 0x41fc38]
mov edx, ecx
sar edx, 3
mov dl, byte [edx + esi]
not cl
and cl, 7
shr dl, cl
movzx ecx, byte [eax + 0x41fc39]
and dl, 1
mov byte [esp + eax + 0x4c], dl
mov edx, ecx
sar edx, 3
mov dl, byte [edx + esi]
not cl
and cl, 7
shr dl, cl
movzx ecx, byte [eax + 0x41fc3a]
and dl, 1
mov byte [esp + eax + 0x4d], dl
mov edx, ecx
sar edx, 3
mov dl, byte [edx + esi]
not cl
and cl, 7
shr dl, cl
movzx ecx, byte [eax + 0x41fc3b]
and dl, 1
mov byte [esp + eax + 0x4e], dl
mov edx, ecx
sar edx, 3
mov dl, byte [edx + esi]
not cl
and cl, 7
shr dl, cl
add eax, 4
and dl, 1
cmp eax, 0x38
mov byte [esp + eax + 0x4b], dl
jl 0x40b820
xor ebx, ebx
mov dword [esp + 0x10], 0xf
jmp 0x40b8b0
mov eax, dword [esp + 0x108]
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x40b8c1
mov eax, ebx
movzx esi, byte [ebx + 0x41fc70]
add eax, eax
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
mov dword [edi], 0
mov dword [ebp], 0
xor edx, edx
lea eax, [esi - 0x1a]
lea ebx, [ebx]
lea ecx, [eax + 0x1a]
cmp ecx, 0x1c
jl 0x40b8fb
lea ecx, [eax - 2]
mov cl, byte [esp + ecx + 0x4c]
mov byte [esp + edx + 0x14], cl
lea ecx, [eax + 0x1b]
cmp ecx, 0x1c
jl 0x40b90e
lea ecx, [eax - 1]
mov cl, byte [esp + ecx + 0x4c]
mov byte [esp + edx + 0x15], cl
lea ecx, [eax + 0x1c]
cmp ecx, 0x1c
jl 0x40b920
mov ecx, eax
mov cl, byte [esp + ecx + 0x4c]
mov byte [esp + edx + 0x16], cl
lea ecx, [eax + 0x1d]
cmp ecx, 0x1c
jl 0x40b933
lea ecx, [eax + 1]
mov cl, byte [esp + ecx + 0x4c]
mov byte [esp + edx + 0x17], cl
add edx, 4
add eax, 4
cmp edx, 0x1c
jl 0x40b8f0
mov edx, 0x1c
lea eax, [esi + 2]
mov edi, edi
lea ecx, [eax + 0x1a]
cmp ecx, 0x38
jl 0x40b95b
lea ecx, [eax - 2]
mov cl, byte [esp + ecx + 0x4c]
mov byte [esp + edx + 0x14], cl
lea ecx, [eax + 0x1b]
cmp ecx, 0x38
jl 0x40b96e
lea ecx, [eax - 1]
mov cl, byte [esp + ecx + 0x4c]
mov byte [esp + edx + 0x15], cl
lea ecx, [eax + 0x1c]
cmp ecx, 0x38
jl 0x40b980
mov ecx, eax
mov cl, byte [esp + ecx + 0x4c]
mov byte [esp + edx + 0x16], cl
lea ecx, [eax + 0x1d]
cmp ecx, 0x38
jl 0x40b993
lea ecx, [eax + 1]
mov cl, byte [esp + ecx + 0x4c]
mov byte [esp + edx + 0x17], cl
add edx, 4
add eax, 4
cmp edx, 0x38
jl 0x40b950
xor eax, eax
jmp 0x40b9b0
movzx edx, byte [eax + 0x41fc80]
mov cl, byte [esp + edx + 0x14]
test cl, cl
je 0x40b9ce
mov edx, dword [ebp]
mov ecx, dword [eax*4 + 0x41fbd8]
or edx, ecx
mov dword [ebp], edx
movzx edx, byte [eax + 0x41fc98]
mov cl, byte [esp + edx + 0x14]
test cl, cl
je 0x40b9ea
mov edx, dword [edi]
mov ecx, dword [eax*4 + 0x41fbd8]
or edx, ecx
mov dword [edi], edx
movzx edx, byte [eax + 0x41fc81]
mov cl, byte [esp + edx + 0x14]
test cl, cl
je 0x40ba08
mov edx, dword [ebp]
mov ecx, dword [eax*4 + 0x41fbdc]
or edx, ecx
mov dword [ebp], edx
movzx edx, byte [eax + 0x41fc99]
mov cl, byte [esp + edx + 0x14]
test cl, cl
je 0x40ba24
mov edx, dword [edi]
mov ecx, dword [eax*4 + 0x41fbdc]
or edx, ecx
mov dword [edi], edx
movzx edx, byte [eax + 0x41fc82]
mov cl, byte [esp + edx + 0x14]
test cl, cl
je 0x40ba42
mov edx, dword [ebp]
mov ecx, dword [eax*4 + 0x41fbe0]
or edx, ecx
mov dword [ebp], edx
movzx edx, byte [eax + 0x41fc9a]
mov cl, byte [esp + edx + 0x14]
test cl, cl
je 0x40ba5e
mov edx, dword [edi]
mov ecx, dword [eax*4 + 0x41fbe0]
or edx, ecx
mov dword [edi], edx
movzx edx, byte [eax + 0x41fc83]
mov cl, byte [esp + edx + 0x14]
test cl, cl
je 0x40ba7c
mov edx, dword [ebp]
mov ecx, dword [eax*4 + 0x41fbe4]
or edx, ecx
mov dword [ebp], edx
movzx edx, byte [eax + 0x41fc9b]
mov cl, byte [esp + edx + 0x14]
test cl, cl
je 0x40ba98
mov edx, dword [edi]
mov ecx, dword [eax*4 + 0x41fbe4]
or edx, ecx
mov dword [edi], edx
movzx edx, byte [eax + 0x41fc84]
mov cl, byte [esp + edx + 0x14]
test cl, cl
je 0x40bab6
mov edx, dword [ebp]
mov ecx, dword [eax*4 + 0x41fbe8]
or edx, ecx
mov dword [ebp], edx
movzx edx, byte [eax + 0x41fc9c]
mov cl, byte [esp + edx + 0x14]
test cl, cl
je 0x40bad2
mov edx, dword [edi]
mov ecx, dword [eax*4 + 0x41fbe8]
or edx, ecx
mov dword [edi], edx
movzx edx, byte [eax + 0x41fc85]
mov cl, byte [esp + edx + 0x14]
test cl, cl
je 0x40baf0
mov edx, dword [ebp]
mov ecx, dword [eax*4 + 0x41fbec]
or edx, ecx
mov dword [ebp], edx
movzx edx, byte [eax + 0x41fc9d]
mov cl, byte [esp + edx + 0x14]
test cl, cl
je 0x40bb0c
mov edx, dword [edi]
mov ecx, dword [eax*4 + 0x41fbec]
or edx, ecx
mov dword [edi], edx
add eax, 6
cmp eax, 0x18
jl 0x40b9b0
mov eax, dword [esp + 0x10]
inc ebx
dec eax
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jg 0x40b8b0
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x84]
call fcn.0040b5d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret