Function at 0x402030
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movq xmm1, qword [ebp + 0x28]
mov edx, ecx
movd xmm0, dword [ebp + 8]
mov ecx, 1
mov eax, dword [ebp + 0x14]
and eax, dword [ebp + 0x2c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
and edi, dword [ebp + 0x28]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], edi
mov dword [ebp - 4], eax
mov dword [ebp + 0x2c], ecx
psrlq xmm1, xmm0
movq qword [ebp - 0x28], xmm1
mov esi, dword [ebp - 0x28]
cmp edx, ecx
jb 0x40221f
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
nop dword [eax]
movq xmm2, qword [ebp + 0x30]
mov eax, 0x40
movq xmm1, qword [ebp + 0x30]
sub eax, ecx
movd xmm0, eax
psllq xmm2, xmm0
movd xmm0, ecx
psrlq xmm1, xmm0
movq xmm0, qword [ebp - 0x28]
orps xmm2, xmm1
xorps xmm2, xmm0
movq qword [ebp - 0x18], xmm2
mov edx, dword [ebp - 0x18]
mov edi, edx
mov ecx, dword [ebp - 0x14]
mov ebx, edx
mov eax, ecx
shrd edi, eax, 0x18
mov eax, ecx
shrd ebx, eax, 0x10
mov eax, edx
and edi, 0x3f
shrd eax, ecx, 8
and ebx, 0x3f
and edx, 0x3f
and eax, 0x3f
test byte [ebp + 0x2c], 1
je 0x4020fd
mov ecx, dword [edx*4 + 0x4458f0]
xor ecx, dword [ebx*4 + 0x445af0]
xor ecx, dword [eax*4 + 0x4457f0]
xor ecx, dword [edi*4 + 0x4456f0]
jmp 0x402119
mov ecx, dword [edx*4 + 0x4459f0]
xor ecx, dword [ebx*4 + 0x445bf0]
xor ecx, dword [eax*4 + 0x4454e8]
xor ecx, dword [edi*4 + 0x4455f0]
mov ebx, dword [ebp + 0x2c]
xor eax, eax
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x34]
adc eax, dword [ebp - 4]
inc ebx
and ecx, dword [ebp + 0x10]
and eax, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
mov ecx, 0x40
mov dword [ebp - 4], eax
sub ecx, ebx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x14], esi
mov dword [ebp + 0x2c], ebx
call fcn.00444640
mov edi, eax
mov esi, edx
mov eax, dword [ebp + 0x30]
mov ecx, ebx
mov edx, dword [ebp + 0x34]
call fcn.004447f0
mov ecx, dword [ebp + 0x2c]
or edi, eax
xor edi, dword [ebp - 8]
or esi, edx
xor esi, dword [ebp - 4]
mov edx, edi
mov eax, esi
mov ebx, edi
shrd edx, eax, 0x18
mov eax, esi
shrd ebx, eax, 0x10
mov eax, edi
and edx, 0x3f
shrd eax, esi, 8
and ebx, 0x3f
and edi, 0x3f
and eax, 0x3f
test cl, 1
je 0x4021b2
mov esi, dword [edi*4 + 0x4458f0]
xor esi, dword [eax*4 + 0x4457f0]
xor esi, dword [ebx*4 + 0x445af0]
xor esi, dword [edx*4 + 0x4456f0]
jmp 0x4021ce
mov esi, dword [edi*4 + 0x4459f0]
xor esi, dword [eax*4 + 0x4454e8]
xor esi, dword [ebx*4 + 0x445bf0]
xor esi, dword [edx*4 + 0x4455f0]
mov eax, dword [ebp - 4]
xor ebx, ebx
add esi, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
adc ebx, dword [ebp - 0xc]
inc ecx
and ebx, dword [ebp + 0x24]
and esi, dword [ebp + 0x20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp + 0x2c], ecx
cmp ecx, dword [ebp - 0x1c]
jbe 0x402080
mov dword [ebp - 4], eax
mov edi, edx
lea eax, [ecx - 1]
test al, 1
je 0x402222
mov ecx, dword [ebp + 8]
mov eax, edx
mov edx, dword [ebp - 0x14]
call fcn.00444640
add eax, esi
adc edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov eax, esi
mov edx, ebx
call fcn.00444640
add eax, edi
pop edi
adc edx, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret