Function at 0x10181ec0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x368
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0x364], eax
push ebx
push ebp
push esi
push edi
xor esi, esi
lea ebx, [ebx]
lea edi, [esp + 0x174]
xor edx, edx
add edi, esi
jmp 0x10181ef0
mov ecx, edx
sar ecx, 1
mov eax, edx
and eax, 1
shl eax, 4
and ecx, 0xf
or ecx, eax
mov eax, edx
and eax, 0x20
or ecx, eax
inc edx
mov al, byte [ecx + esi + 0x106451a8]
mov byte [edi + edx - 1], al
cmp edx, 0x40
jl 0x10181ef0
add esi, 0x40
cmp esi, 0x200
jl 0x10181ee0
lea ecx, [esp + 0x174]
xor ebp, ebp
mov dword [esp + 0x14], ecx
xor eax, eax
lea esi, [ecx + 0x41]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], ecx
mov bl, byte [ecx]
mov edi, eax
shl bl, 4
shl edi, 6
mov edx, 2
movzx ecx, byte [esi - 1]
or cl, bl
lea eax, [edx - 2]
or eax, edi
lea esi, [esi + 4]
mov byte [eax + ebp + 0x1064ad78], cl
movzx ecx, byte [esi - 4]
or cl, bl
lea eax, [edx - 1]
or eax, edi
mov byte [eax + ebp + 0x1064ad78], cl
movzx ecx, byte [esi - 3]
or cl, bl
mov eax, edi
or eax, edx
mov byte [eax + ebp + 0x1064ad78], cl
movzx ecx, byte [esi - 2]
lea eax, [edx + 1]
or eax, edi
or cl, bl
add edx, 4
mov byte [eax + ebp + 0x1064ad78], cl
lea eax, [edx - 2]
cmp eax, 0x40
jl 0x10181f51
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
inc eax
inc ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
cmp eax, 0x40
jl 0x10181f42
mov ecx, dword [esp + 0x14]
add ebp, 0x1000
sub ecx, 0xffffff80
mov dword [esp + 0x14], ecx
cmp ebp, 0x4000
jl 0x10181f31
xor edx, edx
mov ecx, 0x10
or eax, 0xffffffff
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
mov edi, edi
movzx eax, byte [edx + 0x106450f0]
dec eax
movzx ecx, al
mov byte [esp + edx + 0xbc], al
mov byte [esp + ecx + 0xfc], dl
inc edx
cmp edx, 0x40
jl 0x10181ff0
xor edx, edx
mov ecx, 0xe
or eax, 0xffffffff
lea edi, [esp + 0x84]
rep stosd dword es:[edi], eax
mov cl, byte [edx + 0x10645130]
movzx eax, cl
mov byte [esp + eax + 0x43], dl
inc edx
cmp edx, 0x38
jl 0x10182022
xor ecx, ecx
jmp 0x10182040
movzx eax, byte [ecx + 0x10645178]
mov byte [esp + eax + 0x83], cl
inc ecx
cmp ecx, 0x30
jl 0x10182040
movzx eax, byte [0x1064544a]
movzx edi, byte [0x10645449]
mov dword [esp + 0x30], eax
movzx eax, byte [0x1064544b]
mov dword [esp + 0x20], eax
movzx eax, byte [0x1064544c]
mov dword [esp + 0x2c], eax
movzx eax, byte [0x1064544d]
mov dword [esp + 0x24], eax
movzx eax, byte [0x1064544e]
mov dword [esp + 0x28], eax
movzx eax, byte [0x1064544f]
mov dword [esp + 0x1c], eax
xor eax, eax
xor esi, esi
lea ecx, [esp + 0x85]
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebp
jmp 0x101820c0
xor ebx, ebx
mov dword [esi + 0x1064fd78], 0
mov dword [esi + 0x10651d78], 0
mov dword [esi + 0x10653d78], 0
mov dword [esi + 0x10655d78], 0
xor edx, edx
lea esp, [esp]
test byte [edx + 0x10645448], bl
je 0x10182150
lea ecx, [edx + ebp]
movzx ecx, byte [esp + ecx + 0xfc]
cmp ecx, 0x20
jge 0x10182117
mov ecx, dword [ecx*4 + 0x106453c8]
or dword [esi + 0x1064fd78], ecx
jmp 0x10182124
mov ecx, dword [ecx*4 + 0x10645348]
or dword [esi + 0x10651d78], ecx
lea ecx, [edx + ebp]
movzx ecx, byte [esp + ecx + 0xbc]
cmp ecx, 0x20
jge 0x10182143
mov ecx, dword [ecx*4 + 0x106453c8]
or dword [esi + 0x10653d78], ecx
jmp 0x10182150
mov ecx, dword [ecx*4 + 0x10645348]
or dword [esi + 0x10655d78], ecx
inc edx
cmp edx, 8
jl 0x101820f0
inc ebx
add esi, 4
cmp ebx, 0x100
jl 0x101820c2
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x14]
xor edx, edx
mov dword [eax + 0x10657d78], 0
mov dword [eax + 0x10658d78], 0
and edi, edx
je 0x101821b6
movzx ecx, byte [esp + ebp + 0x44]
cmp ecx, 0xff
je 0x101821b6
cmp ecx, 0x1c
jge 0x101821a9
mov ecx, dword [ecx*4 + 0x106453d8]
mov dword [eax + 0x10657d78], ecx
jmp 0x101821b6
mov ecx, dword [ecx*4 + 0x10645368]
mov dword [eax + 0x10658d78], ecx
mov ebx, dword [esp + 0x30]
and ebx, edx
je 0x101821ec
movzx ecx, byte [esp + ebp + 0x45]
cmp ecx, 0xff
je 0x101821ec
cmp ecx, 0x1c
jge 0x101821df
mov ecx, dword [ecx*4 + 0x106453d8]
or dword [eax + 0x10657d78], ecx
jmp 0x101821ec
mov ecx, dword [ecx*4 + 0x10645368]
or dword [eax + 0x10658d78], ecx
mov ebp, dword [esp + 0x20]
and ebp, edx
je 0x10182226
mov ecx, dword [esp + 0x10]
movzx ecx, byte [esp + ecx + 0x46]
cmp ecx, 0xff
je 0x10182226
cmp ecx, 0x1c
jge 0x10182219
mov ecx, dword [ecx*4 + 0x106453d8]
or dword [eax + 0x10657d78], ecx
jmp 0x10182226
mov ecx, dword [ecx*4 + 0x10645368]
or dword [eax + 0x10658d78], ecx
mov ecx, dword [esp + 0x2c]
and ecx, edx
mov dword [esp + 0x14], ecx
je 0x10182264
mov ecx, dword [esp + 0x10]
movzx ecx, byte [esp + ecx + 0x47]
cmp ecx, 0xff
je 0x10182264
cmp ecx, 0x1c
jge 0x10182257
mov ecx, dword [ecx*4 + 0x106453d8]
or dword [eax + 0x10657d78], ecx
jmp 0x10182264
mov ecx, dword [ecx*4 + 0x10645368]
or dword [eax + 0x10658d78], ecx
mov ecx, dword [esp + 0x24]
and ecx, edx
mov dword [esp + 0x34], ecx
je 0x101822a2
mov ecx, dword [esp + 0x10]
movzx ecx, byte [esp + ecx + 0x48]
cmp ecx, 0xff
je 0x101822a2
cmp ecx, 0x1c
jge 0x10182295
mov ecx, dword [ecx*4 + 0x106453d8]
or dword [eax + 0x10657d78], ecx
jmp 0x101822a2
mov ecx, dword [ecx*4 + 0x10645368]
or dword [eax + 0x10658d78], ecx
mov ecx, dword [esp + 0x28]
and ecx, edx
mov dword [esp + 0x40], ecx
je 0x101822e0
mov ecx, dword [esp + 0x10]
movzx ecx, byte [esp + ecx + 0x49]
cmp ecx, 0xff
je 0x101822e0
cmp ecx, 0x1c
jge 0x101822d3
mov ecx, dword [ecx*4 + 0x106453d8]
or dword [eax + 0x10657d78], ecx
jmp 0x101822e0
mov ecx, dword [ecx*4 + 0x10645368]
or dword [eax + 0x10658d78], ecx
mov ecx, dword [esp + 0x1c]
and ecx, edx
mov dword [esp + 0x38], ecx
je 0x1018231e
mov ecx, dword [esp + 0x10]
movzx ecx, byte [esp + ecx + 0x4a]
cmp ecx, 0xff
je 0x1018231e
cmp ecx, 0x1c
jge 0x10182311
mov ecx, dword [ecx*4 + 0x106453d8]
or dword [eax + 0x10657d78], ecx
jmp 0x1018231e
mov ecx, dword [ecx*4 + 0x10645368]
or dword [eax + 0x10658d78], ecx
mov dword [eax + 0x10659d78], 0
mov dword [eax + 0x1065ad78], 0
test edi, edi
je 0x10182363
movzx ecx, byte [esi - 1]
cmp ecx, 0xff
je 0x10182363
cmp ecx, 0x18
jge 0x10182356
mov ecx, dword [ecx*4 + 0x106453e8]
mov dword [eax + 0x10659d78], ecx
jmp 0x10182363
mov ecx, dword [ecx*4 + 0x10645388]
mov dword [eax + 0x1065ad78], ecx
test ebx, ebx
je 0x10182393
movzx ecx, byte [esi]
cmp ecx, 0xff
je 0x10182393
cmp ecx, 0x18
jge 0x10182386
mov ecx, dword [ecx*4 + 0x106453e8]
or dword [eax + 0x10659d78], ecx
jmp 0x10182393
mov ecx, dword [ecx*4 + 0x10645388]
or dword [eax + 0x1065ad78], ecx
test ebp, ebp
je 0x101823c4
movzx ecx, byte [esi + 1]
cmp ecx, 0xff
je 0x101823c4
cmp ecx, 0x18
jge 0x101823b7
mov ecx, dword [ecx*4 + 0x106453e8]
or dword [eax + 0x10659d78], ecx
jmp 0x101823c4
mov ecx, dword [ecx*4 + 0x10645388]
or dword [eax + 0x1065ad78], ecx
cmp dword [esp + 0x14], 0
je 0x101823f8
movzx ecx, byte [esi + 2]
cmp ecx, 0xff
je 0x101823f8
cmp ecx, 0x18
jge 0x101823eb
mov ecx, dword [ecx*4 + 0x106453e8]
or dword [eax + 0x10659d78], ecx
jmp 0x101823f8
mov ecx, dword [ecx*4 + 0x10645388]
or dword [eax + 0x1065ad78], ecx
cmp dword [esp + 0x34], 0
je 0x1018242c
movzx ecx, byte [esi + 3]
cmp ecx, 0xff
je 0x1018242c
cmp ecx, 0x18
jge 0x1018241f
mov ecx, dword [ecx*4 + 0x106453e8]
or dword [eax + 0x10659d78], ecx
jmp 0x1018242c
mov ecx, dword [ecx*4 + 0x10645388]
or dword [eax + 0x1065ad78], ecx
cmp dword [esp + 0x40], 0
je 0x10182460
movzx ecx, byte [esi + 4]
cmp ecx, 0xff
je 0x10182460
cmp ecx, 0x18
jge 0x10182453
mov ecx, dword [ecx*4 + 0x106453e8]
or dword [eax + 0x10659d78], ecx
jmp 0x10182460
mov ecx, dword [ecx*4 + 0x10645388]
or dword [eax + 0x1065ad78], ecx
cmp dword [esp + 0x38], 0
je 0x10182494
movzx ecx, byte [esi + 5]
cmp ecx, 0xff
je 0x10182494
cmp ecx, 0x18
jge 0x10182487
mov ecx, dword [ecx*4 + 0x106453e8]
or dword [eax + 0x10659d78], ecx
jmp 0x10182494
mov ecx, dword [ecx*4 + 0x10645388]
or dword [eax + 0x1065ad78], ecx
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
inc edx
add eax, 4
cmp edx, 0x80
jl 0x10182170
add esi, 7
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x3c]
add ebp, 8
mov dword [esp + 0x10], ebp
cmp esi, 0x2000
jl 0x101820c0
xor ecx, ecx
lea esp, [esp]
movzx eax, byte [ecx + 0x106453a8]
mov byte [esp + eax + 0x83], cl
inc ecx
cmp ecx, 0x20
jl 0x101824d0
movzx edi, byte [0x10645448]
mov ebx, dword [esp + 0x18]
lea esi, [esp + 0x85]
mov ecx, 0x1064ed78
jmp 0x10182500
xor edx, edx
mov dword [ecx], 0
test edx, edi
je 0x10182519
movzx eax, byte [esi - 1]
mov eax, dword [eax*4 + 0x106453c8]
mov dword [ecx], eax
test edx, ebx
je 0x10182529
movzx eax, byte [esi]
mov eax, dword [eax*4 + 0x106453c8]
or dword [ecx], eax
test dword [esp + 0x30], edx
je 0x1018253c
movzx eax, byte [esi + 1]
mov eax, dword [eax*4 + 0x106453c8]
or dword [ecx], eax
test dword [esp + 0x20], edx
je 0x1018254f
movzx eax, byte [esi + 2]
mov eax, dword [eax*4 + 0x106453c8]
or dword [ecx], eax
test dword [esp + 0x2c], edx
je 0x10182562
movzx eax, byte [esi + 3]
mov eax, dword [eax*4 + 0x106453c8]
or dword [ecx], eax
test dword [esp + 0x24], edx
je 0x10182575
movzx eax, byte [esi + 4]
mov eax, dword [eax*4 + 0x106453c8]
or dword [ecx], eax
test dword [esp + 0x28], edx
je 0x10182588
movzx eax, byte [esi + 5]
mov eax, dword [eax*4 + 0x106453c8]
or dword [ecx], eax
test dword [esp + 0x1c], edx
je 0x1018259b
movzx eax, byte [esi + 6]
mov eax, dword [eax*4 + 0x106453c8]
or dword [ecx], eax
inc edx
add ecx, 4
cmp edx, 0x100
jl 0x10182502
add esi, 8
cmp ecx, 0x1064fd78
jl 0x10182500
mov ecx, dword [esp + 0x374]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10311bec
add esp, 0x368
ret