Function at 0x100212c6
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
xor eax, eax
movzx ecx, byte [eax + 0x1004eb08]
mov byte [ecx + 0x10052240], al
inc eax
cmp eax, 0x40
jl 0x100212ce
push ebx
push esi
push edi
push 0x40
push 0
mov esi, 0x10052428
push esi
call fcn.1003e4bd
add esp, 0xc
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x1004e868]
test eax, eax
je 0x10021343
movzx ecx, byte [0x1004e858]
lea edi, [eax + ecx - 1]
mov eax, edi
push 0x1c
cdq
pop ebx
idiv ebx
cmp edx, ecx
jge 0x10021321
sub edi, ebx
movzx eax, byte [edi + str.91__]
test eax, eax
jle 0x1002133a
dec eax
mov ecx, eax
and eax, 7
or ecx, 7
sub ecx, eax
inc ecx
mov eax, ecx
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x10052428], al
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x40
jl 0x100212fa
push 8
push 8
push esi
push 0x10051a40
call fcn.1001ad5a
add esp, 0x10
and dword [ebp - 4], 0
mov dword [ebp - 8], 0x100501c0
push 0x40
xor edi, edi
push edi
push esi
call fcn.1003e4bd
push 0x40
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.1003e4bd
add esp, 0x18
xor eax, eax
movzx ecx, byte [eax + 0x1004e868]
cmp ecx, edi
je 0x10021398
mov dl, al
inc dl
mov byte [ebp + ecx - 0x59], dl
inc eax
cmp eax, 0x40
jl 0x10021385
movzx ecx, byte [edi + 0x1004e868]
test ecx, ecx
je 0x100213c5
add ecx, dword [ebp - 4]
push 0x1c
mov eax, ecx
cdq
pop ebx
idiv ebx
cmp edx, dword [ebp - 4]
jg 0x100213bb
sub ecx, ebx
mov al, byte [ebp + ecx - 0x58]
mov byte [edi + 0x10052428], al
inc edi
cmp edi, 0x40
jl 0x1002139e
push 8
push 8
push esi
push dword [ebp - 8]
call fcn.1001ad5a
add dword [ebp - 8], 0x800
add esp, 0x10
inc dword [ebp - 4]
cmp dword [ebp - 8], 0x100511c0
jl 0x10021369
mov ecx, 0x1004e7f0
dec ecx
mov edi, esi
dec ecx
xor edx, edx
cmp edx, 2
jge 0x10021406
xor eax, eax
jmp 0x10021432
movzx eax, byte [ecx + edx]
movzx eax, byte [eax + str.u:2_]
cmp eax, 0x20
jle 0x1002141b
sub eax, 0x20
jmp 0x10021420
test eax, eax
jle 0x10021432
dec eax
test eax, eax
jle 0x10021432
dec eax
mov ebx, eax
and eax, 7
or ebx, 7
sub ebx, eax
inc ebx
mov eax, ebx
push 8
mov byte [edi + edx], al
inc edx
pop ebx
cmp edx, ebx
jl 0x100213fd
add ecx, 6
add edi, ebx
cmp ecx, 0x1004e81e
jl 0x100213fb
push ebx
push 4
push esi
push 0x1004ed40
call fcn.1001ad5a
mov edi, esi
add esp, 0x10
xor ecx, ecx
dec edi
movzx eax, byte [ecx + 0x1004eac8]
movzx eax, byte [eax + str.u:2_]
test eax, eax
jle 0x10021480
dec eax
mov edx, eax
and eax, 7
or edx, 7
sub edx, eax
inc edx
mov eax, edx
mov dl, cl
inc dl
inc ecx
cmp ecx, 0x40
mov byte [edi + eax], dl
jl 0x10021460
push ebx
push ebx
push esi
push 0x10051240
call fcn.1001ad5a
add esp, 0x10
xor eax, eax
movzx ecx, byte [eax + 0x1004e7f0]
mov cl, byte [ecx + 0x1004eaa7]
mov byte [eax + 0x10052428], cl
inc eax
cmp eax, 0x30
jl 0x1002149f
and dword [ebp - 4], 0
mov dword [ebp - 8], 0x10052408
mov ebx, 0x1004f948
xor esi, esi
mov eax, esi
sar eax, 2
and eax, 4
push 8
pop ecx
mov edx, esi
and edx, ecx
or eax, edx
sar eax, 1
mov edx, esi
and edx, 0x20
or eax, edx
mov edx, esi
and edx, 1
shl edx, 3
mov edi, esi
and edi, 2
or edx, edi
shl edx, 2
sar eax, 1
or eax, edx
mov edx, esi
and edx, 4
or eax, edx
mov edx, dword [ebp - 4]
movzx eax, byte [eax + edx + 0x1004e8a8]
mov edx, eax
sar edx, 2
mov edi, eax
and edi, 4
and edx, 2
or edx, edi
mov edi, eax
and edi, 1
shl edi, 2
and eax, 2
or edi, eax
add edi, edi
sar edx, 1
or edx, edi
xor eax, eax
mov edi, 0x10052408
rep stosd dword es:[edi], eax
xor edi, edi
mov ecx, edi
mov eax, edx
sar eax, cl
mov ecx, dword [ebp - 8]
and al, 1
mov byte [ecx + edi], al
inc edi
cmp edi, 4
jl 0x10021539
push 0x17
pop edx
xor eax, eax
mov ecx, edx
movzx edi, byte [ecx + 0x10052428]
movzx edi, byte [edi + 0x10052407]
add eax, eax
or eax, edi
dec ecx
jns 0x10021554
mov byte [ebp - 0x10], al
sar eax, 6
mov byte [ebp - 0xf], al
sar eax, 6
mov byte [ebp - 0xe], al
sar eax, 6
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 0x10]
mov ecx, 0xff3f3f3f
and eax, ecx
shl eax, 2
mov dword [ebx - 0x800], eax
xor eax, eax
movzx edi, byte [edx + 0x10052440]
movzx edi, byte [edi + 0x10052407]
add eax, eax
or eax, edi
dec edx
jns 0x10021593
mov byte [ebp - 0x18], al
sar eax, 6
mov byte [ebp - 0x17], al
sar eax, 6
mov byte [ebp - 0x16], al
sar eax, 6
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 0x18]
and eax, ecx
shl eax, 2
mov dword [ebx], eax
inc esi
add ebx, 4
cmp esi, 0x40
jl 0x100214ca
add dword [ebp - 8], 4
add dword [ebp - 4], 0x40
cmp ebx, 0x10050148
jl 0x100214c8
pop edi
pop esi
pop ebx
leave
ret