Function at 0x10016530
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b850
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1003e008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov ecx, 0x78
call fcn.100163c0
mov esi, dword [ebp + 0xc]
mov ebx, eax
mov eax, 0x100380b9
mov dword [ebp - 0x18], ebx
sub eax, ebx
mov dword [ebp - 0x10], 0xe
mov dword [ebp - 0x1c], eax
mov edi, str.91__
mov eax, 0x100380ba
sub edi, ebx
sub eax, ebx
mov edx, ebx
mov dword [ebp - 0x20], eax
mov eax, 0x100380bb
sub eax, ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
nop
movzx ecx, byte [edi + edx]
lea edx, [edx + 4]
dec ecx
mov eax, ecx
and ecx, 7
sar eax, 3
movzx eax, byte [eax + esi]
test byte [ecx*4 + 0x10038058], al
movzx ecx, byte [ebx + edx - 4]
setne al
dec ecx
mov byte [edx - 4], al
mov eax, ecx
sar eax, 3
and ecx, 7
movzx eax, byte [eax + esi]
test byte [ecx*4 + 0x10038058], al
setne al
mov byte [edx - 3], al
mov eax, dword [ebp - 0x20]
movzx ecx, byte [eax + edx - 4]
dec ecx
mov eax, ecx
and ecx, 7
sar eax, 3
movzx eax, byte [eax + esi]
test byte [ecx*4 + 0x10038058], al
setne al
mov byte [edx - 2], al
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + edx - 4]
dec ecx
mov eax, ecx
and ecx, 7
sar eax, 3
movzx eax, byte [eax + esi]
test byte [ecx*4 + 0x10038058], al
setne al
sub dword [ebp - 0x10], 1
mov byte [edx - 1], al
jne 0x100165a0
mov ebx, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x10], edx
lea eax, [edx + 0x1c]
nop dword [eax]
movzx edi, byte [edx + 0x100380a8]
xorps xmm0, xmm0
movq qword [ebx + 0x70], xmm0
xor esi, esi
cmp esi, 0x1c
mov edx, 0x38
mov ecx, edi
cmovl edx, eax
lea eax, [edi - 0x1c]
cmp edi, edx
cmovge ecx, eax
inc edi
mov al, byte [ecx + ebx]
mov byte [esi + ebx + 0x38], al
inc esi
mov eax, 0x1c
cmp esi, 0x38
jl 0x10016651
xor ecx, ecx
nop dword [eax + eax]
movzx eax, byte [ecx + 0x10038078]
cmp byte [eax + ebx + 0x37], 0
je 0x100166b1
mov eax, 0xaaaaaaab
mul ecx
mov eax, ecx
shr edx, 2
lea esi, [edx + ebx]
lea edx, [edx + edx*2]
add edx, edx
sub eax, edx
mov eax, dword [eax*4 + 0x10038058]
sar eax, 2
or byte [esi + 0x70], al
inc ecx
cmp ecx, 0x30
jl 0x10016680
movzx ecx, byte [ebx + 0x70]
movzx eax, byte [ebx + 0x72]
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x74]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x76]
shl ecx, 8
or ecx, eax
mov eax, dword [esi + 0x8c]
mov dword [eax + edx*8], ecx
movzx ecx, byte [ebx + 0x71]
movzx eax, byte [ebx + 0x73]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x75]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x77]
shl ecx, 8
or ecx, eax
mov eax, dword [esi + 0x8c]
mov dword [eax + edx*8 + 4], ecx
inc edx
mov dword [ebp - 0x10], edx
mov eax, 0x1c
cmp edx, 0x10
jl 0x10016640
cmp dword [ebp + 8], 1
jne 0x10016772
xor ebx, ebx
mov edi, 0x7c
nop dword [eax]
mov eax, dword [esi + 0x8c]
mov ecx, dword [eax + ebx]
lea edx, [eax + ebx]
lea esi, [eax + edi]
mov eax, dword [esi - 4]
mov dword [edx], eax
mov dword [esi - 4], ecx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x8c]
mov ecx, dword [eax + ebx + 4]
lea esi, [eax + edi]
sub edi, 8
lea edx, [eax + ebx]
mov eax, dword [esi]
mov dword [edx + 4], eax
lea ebx, [ebx + 8]
mov dword [esi], ecx
mov esi, dword [ebp - 0x14]
cmp edi, 0x3c
jg 0x10016730
mov ebx, dword [ebp - 0x18]
xor al, al
mov edi, ebx
mov ecx, 0x78
rep stosb byte es:[edi], al
push ebx
call fcn.1001b33d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8