Function at 0x401e20
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x100
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0xfc], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor eax, eax
lea esp, [esp]
movzx ecx, byte [eax + str.80_]
mov edx, ecx
sar edx, 3
movzx edx, byte [edx + esi]
and ecx, 7
test byte [ecx*2 + 0x4bc094], dl
setne cl
mov byte [esp + eax + 0xd4], cl
movzx ecx, byte [eax + 0x4bc109]
mov edx, ecx
sar edx, 3
movzx edx, byte [edx + esi]
and ecx, 7
test byte [ecx*2 + 0x4bc094], dl
setne cl
mov byte [esp + eax + 0xd5], cl
movzx ecx, byte [eax + 0x4bc10a]
mov edx, ecx
sar edx, 3
movzx edx, byte [edx + esi]
and ecx, 7
test byte [ecx*2 + 0x4bc094], dl
setne cl
mov byte [esp + eax + 0xd6], cl
movzx ecx, byte [eax + 0x4bc10b]
mov edx, ecx
sar edx, 3
movzx edx, byte [edx + esi]
and ecx, 7
test byte [ecx*2 + 0x4bc094], dl
setne cl
mov byte [esp + eax + 0xd7], cl
add eax, 4
cmp eax, 0x38
jl 0x401e40
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0x1e
jmp 0x401ef4
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x114], 1
mov eax, dword [esp + 0x14]
je 0x401f05
lea eax, [ecx + ecx]
movzx ebp, byte [ecx + 0x4bc140]
lea ebx, [esp + eax*4 + 0x20]
lea eax, [esp + eax*4 + 0x1c]
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 esp, [esp]
lea edi, [ecx - 3]
cmp edi, 0x1c
jge 0x401f41
mov dl, byte [esp + eax + 0xd2]
jmp 0x401f48
mov dl, byte [esp + edi + 0xb8]
lea edi, [ecx - 2]
cmp edi, 0x1c
mov byte [esp + esi + 0x9c], dl
jge 0x401f60
mov dl, byte [esp + eax + 0xd3]
jmp 0x401f67
mov dl, byte [esp + edi + 0xb8]
cmp eax, 0x1c
mov byte [esp + esi + 0x9d], dl
jge 0x401f7c
mov dl, byte [esp + eax + 0xd4]
jmp 0x401f83
mov dl, byte [esp + eax + 0xb8]
cmp ecx, 0x1c
mov byte [esp + esi + 0x9e], dl
jge 0x401f98
mov dl, byte [esp + eax + 0xd5]
jmp 0x401f9f
mov dl, byte [esp + ecx + 0xb8]
mov byte [esp + esi + 0x9f], dl
add esi, 4
add eax, 4
add ecx, 4
cmp esi, 0x1c
jl 0x401f30
mov edi, 0x1c
lea edx, [ebp + 0x1f]
lea eax, [ebp + 0x1e]
lea ecx, [edx - 3]
cmp ecx, 0x38
jge 0x401fd4
mov cl, byte [esp + eax + 0xd2]
jmp 0x401fdb
mov cl, byte [esp + ecx + 0xb8]
lea esi, [edx - 2]
cmp esi, 0x38
mov byte [esp + edi + 0x9c], cl
jge 0x401ff3
mov cl, byte [esp + eax + 0xd3]
jmp 0x401ffa
mov cl, byte [esp + esi + 0xb8]
cmp eax, 0x38
mov byte [esp + edi + 0x9d], cl
jge 0x40200f
mov cl, byte [esp + eax + 0xd4]
jmp 0x402016
mov cl, byte [esp + eax + 0xb8]
cmp edx, 0x38
mov byte [esp + edi + 0x9e], cl
jge 0x40202b
mov cl, byte [esp + eax + 0xd5]
jmp 0x402032
mov cl, byte [esp + edx + 0xb8]
mov byte [esp + edi + 0x9f], cl
add edi, 4
add eax, 4
add edx, 4
cmp edi, 0x38
jl 0x401fc3
xor eax, eax
lea ecx, [ecx]
movzx edx, byte [eax + 0x4bc150]
cmp byte [esp + edx + 0x9c], 0
mov ecx, dword [esp + 0x18]
je 0x40206e
mov edx, dword [eax*4 + 0x4bc0a8]
or dword [ecx], edx
movzx edx, byte [eax + 0x4bc168]
cmp byte [esp + edx + 0x9c], 0
je 0x402088
mov edx, dword [eax*4 + 0x4bc0a8]
or dword [ebx], edx
movzx edx, byte [eax + 0x4bc151]
cmp byte [esp + edx + 0x9c], 0
je 0x4020a2
mov edx, dword [eax*4 + 0x4bc0ac]
or dword [ecx], edx
movzx edx, byte [eax + 0x4bc169]
cmp byte [esp + edx + 0x9c], 0
je 0x4020bc
mov edx, dword [eax*4 + 0x4bc0ac]
or dword [ebx], edx
movzx edx, byte [eax + 0x4bc152]
cmp byte [esp + edx + 0x9c], 0
je 0x4020d6
mov edx, dword [eax*4 + 0x4bc0b0]
or dword [ecx], edx
movzx edx, byte [eax + 0x4bc16a]
cmp byte [esp + edx + 0x9c], 0
je 0x4020f0
mov edx, dword [eax*4 + 0x4bc0b0]
or dword [ebx], edx
movzx edx, byte [eax + 0x4bc153]
cmp byte [esp + edx + 0x9c], 0
je 0x40210a
mov edx, dword [eax*4 + 0x4bc0b4]
or dword [ecx], edx
movzx edx, byte [eax + 0x4bc16b]
cmp byte [esp + edx + 0x9c], 0
je 0x402124
mov edx, dword [eax*4 + 0x4bc0b4]
or dword [ebx], edx
movzx edx, byte [eax + 0x4bc154]
cmp byte [esp + edx + 0x9c], 0
je 0x40213e
mov edx, dword [eax*4 + 0x4bc0b8]
or dword [ecx], edx
movzx edx, byte [eax + 0x4bc16c]
cmp byte [esp + edx + 0x9c], 0
je 0x402158
mov edx, dword [eax*4 + 0x4bc0b8]
or dword [ebx], edx
movzx edx, byte [eax + 0x4bc155]
cmp byte [esp + edx + 0x9c], 0
je 0x402172
mov edx, dword [eax*4 + 0x4bc0bc]
or dword [ecx], edx
movzx ecx, byte [eax + 0x4bc16d]
cmp byte [esp + ecx + 0x9c], 0
je 0x40218c
mov edx, dword [eax*4 + 0x4bc0bc]
or dword [ebx], edx
add eax, 6
cmp eax, 0x18
jl 0x402050
mov eax, dword [esp + 0x14]
inc dword [esp + 0x10]
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x14], eax
jg 0x401ef0
lea ecx, [esp + 0x1c]
call fcn.004021e0
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047c3ff
add esp, 0x100
ret