Function at 0x414320
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [0x45106c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor edx, edx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x180], ecx
mov dword [ebp - 0x17c], edi
nop dword [eax]
movzx ecx, byte [edx + str.80_]
mov eax, ecx
and ecx, 7
shr eax, 3
movzx eax, byte [eax + esi]
test byte [ecx*2 + 0x4426f4], al
movzx ecx, byte [edx + 0x4431e9]
setne al
mov byte [ebp + edx - 0x3c], al
mov eax, ecx
shr eax, 3
and ecx, 7
movzx eax, byte [eax + esi]
test byte [ecx*2 + 0x4426f4], al
movzx ecx, byte [edx + 0x4431ea]
setne al
mov byte [ebp + edx - 0x3b], al
mov eax, ecx
shr eax, 3
and ecx, 7
movzx eax, byte [eax + esi]
test byte [ecx*2 + 0x4426f4], al
movzx ecx, byte [edx + 0x4431eb]
setne al
mov byte [ebp + edx - 0x3a], al
mov eax, ecx
shr eax, 3
and ecx, 7
movzx eax, byte [eax + esi]
test byte [ecx*2 + 0x4426f4], al
setne al
mov byte [ebp + edx - 0x39], al
add edx, 4
cmp edx, 0x38
jl 0x414350
mov ecx, 0x1e
push ebx
xor ebx, ebx
mov dword [ebp - 0x178], ecx
nop
cmp edi, 1
lea eax, [ebx + ebx]
lea edi, [ebp - 0xf4]
cmovne ecx, eax
xor eax, eax
lea esi, [ebp + ecx*4 - 0xf0]
lea edi, [edi + ecx*4]
mov dword [esi], 0
movzx ecx, byte [ebx + 0x443320]
mov dword [edi], 0
nop
cmp ecx, 0x1c
jge 0x41442b
mov dl, byte [ebp + ecx - 0x3c]
jmp 0x41442f
mov dl, byte [ebp + ecx - 0x58]
mov byte [ebp + eax - 0x74], dl
inc ecx
inc eax
cmp eax, 0x1c
jl 0x414420
movzx eax, byte [ebx + 0x443320]
mov ecx, 0x1c
add eax, ecx
cmp eax, 0x38
jge 0x414453
mov dl, byte [ebp + eax - 0x3c]
jmp 0x414457
mov dl, byte [ebp + eax - 0x58]
mov byte [ebp + ecx - 0x74], dl
inc eax
inc ecx
cmp ecx, 0x38
jl 0x414448
xor eax, eax
nop dword [eax]
nop dword [eax + eax]
movzx ecx, byte [eax + 0x4431b8]
cmp byte [ebp + ecx - 0x74], 0
je 0x414487
mov ecx, dword [eax*4 + 0x442f58]
or dword [edi], ecx
movzx ecx, byte [eax + 0x4431d0]
cmp byte [ebp + ecx - 0x74], 0
je 0x41449e
mov ecx, dword [eax*4 + 0x442f58]
or dword [esi], ecx
inc eax
cmp eax, 0x18
jl 0x414470
mov ecx, dword [ebp - 0x178]
inc ebx
mov edi, dword [ebp - 0x17c]
sub ecx, 2
mov dword [ebp - 0x178], ecx
cmp ecx, 0xfffffffe
jg 0x4143f0
lea eax, [ebp - 0x174]
mov dword [ebp - 0x17c], 0x10
lea ebx, [ebp - 0xf4]
mov dword [ebp - 0x178], eax
nop
mov edi, dword [ebx + 4]
lea ebx, [ebx + 8]
mov esi, dword [ebx - 8]
mov edx, edi
shr edx, 4
mov eax, edi
and eax, 0xfc0
and edx, 0xfc000
or edx, eax
mov ecx, esi
and ecx, 0xfc0
shr edx, 6
shl ecx, 4
mov eax, esi
and eax, 0xfc0000
or ecx, eax
mov eax, dword [ebp - 0x178]
shl ecx, 6
or edx, ecx
mov ecx, esi
and ecx, 0x3f
and esi, 0x3f000
mov dword [eax], edx
mov edx, eax
shl ecx, 4
mov eax, edi
or ecx, esi
shr eax, 4
shl ecx, 0xc
and eax, 0x3f00
or ecx, eax
and edi, 0x3f
or ecx, edi
mov dword [edx + 4], ecx
add edx, 8
sub dword [ebp - 0x17c], 1
mov dword [ebp - 0x178], edx
jne 0x4144e0
mov eax, dword [ebp - 0x180]
lea ecx, [ebp - 0x174]
xor edx, edx
pop ebx
lea edi, [eax + 4]
add eax, 0x84
cmp eax, edi
sbb esi, esi
and esi, 0xffffffe0
add esi, 0x20
je 0x414591
mov eax, ecx
sub edi, eax
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc edx
mov dword [edi + ecx - 4], eax
cmp edx, esi
jb 0x414583
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00418867
mov esp, ebp
pop ebp
ret 8