Function at 0x10001050
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x84
mov eax, dword [0x10035204]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 4], ebx
test ebx, ebx
jne 0x1000108f
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.10012840
add esp, 0x84
ret 8
push 0x80
push 0
push ebx
call fcn.10012850
mov edx, dword [esp + 0x9c]
add esp, 0xc
push ebp
push esi
xor eax, eax
push edi
jmp 0x100010b0
movsx ecx, byte [eax + str.91__]
dec ecx
mov esi, ecx
sar esi, 3
movsx esi, byte [esi + edx]
and ecx, 7
test dword [ecx*4 + 0x1002b688], esi
setne cl
mov byte [esp + eax + 0x58], cl
movsx ecx, byte [eax + 0x1002b3f1]
dec ecx
mov esi, ecx
sar esi, 3
movsx esi, byte [esi + edx]
and ecx, 7
test dword [ecx*4 + 0x1002b688], esi
setne cl
mov byte [esp + eax + 0x59], cl
movsx ecx, byte [eax + 0x1002b3f2]
dec ecx
mov esi, ecx
sar esi, 3
movsx esi, byte [esi + edx]
and ecx, 7
test dword [ecx*4 + 0x1002b688], esi
setne cl
mov byte [esp + eax + 0x5a], cl
movsx ecx, byte [eax + 0x1002b3f3]
dec ecx
mov esi, ecx
sar esi, 3
movsx esi, byte [esi + edx]
and ecx, 7
test dword [ecx*4 + 0x1002b688], esi
setne cl
mov byte [esp + eax + 0x5b], cl
add eax, 4
cmp eax, 0x38
jl 0x100010b0
xor edi, edi
jmp 0x10001150
movsx ecx, byte [edi + 0x1002b428]
xor eax, eax
sub ecx, 0x1a
lea esp, [esp]
xor edx, edx
cmp eax, 0x1c
setge dl
lea esi, [ecx + 0x1a]
dec edx
and edx, 0xffffffe4
add edx, 0x38
cmp esi, edx
jl 0x10001179
lea esi, [ecx - 2]
mov dl, byte [esp + esi + 0x58]
lea esi, [esp + 0x20]
mov byte [esi + eax], dl
xor edx, edx
cmp eax, 0x1b
setge dl
lea esi, [ecx + 0x1b]
dec edx
and edx, 0xffffffe4
add edx, 0x38
cmp esi, edx
jl 0x1000119d
lea esi, [ecx - 1]
mov dl, byte [esp + esi + 0x58]
mov byte [esp + eax + 0x21], dl
lea edx, [eax + 2]
mov dword [esp + 0x14], eax
xor eax, eax
cmp edx, 0x1c
setge al
lea esi, [ecx + 0x1c]
dec eax
and eax, 0xffffffe4
add eax, 0x38
cmp esi, eax
mov eax, dword [esp + 0x14]
jl 0x100011c8
mov esi, ecx
mov dl, byte [esp + esi + 0x58]
lea esi, [esp + 0x22]
mov byte [esi + eax], dl
xor edx, edx
cmp eax, 0x19
setge dl
lea esi, [ecx + 0x1d]
dec edx
and edx, 0xffffffe4
add edx, 0x38
cmp esi, edx
jl 0x100011ec
lea esi, [ecx + 1]
mov dl, byte [esp + esi + 0x58]
mov byte [esp + eax + 0x23], dl
add eax, 4
add ecx, 4
cmp eax, 0x38
jl 0x10001160
xor ecx, ecx
mov dword [esp + 0x14], 5
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], 3
lea ebp, [ecx + 2]
mov esi, 1
jmp 0x10001230
movsx eax, byte [esi + 0x1002b437]
cmp byte [esp + eax + 0x1f], 0
je 0x10001266
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
lea eax, [edx + edi*8]
add eax, ebx
lea edx, [edx + edx*2]
add edx, edx
mov ebx, ecx
sub ebx, edx
mov edx, dword [ebx*4 + 0x1002b688]
mov ebx, dword [esp + 0x10]
sar edx, 2
or byte [eax], dl
movsx eax, byte [esi + 0x1002b438]
cmp byte [esp + eax + 0x1f], 0
je 0x1000129c
mov eax, 0xaaaaaaab
mul esi
shr edx, 2
lea eax, [edx + edi*8]
add eax, ebx
lea edx, [edx + edx*2]
add edx, edx
mov ebx, ecx
sub ebx, edx
mov edx, dword [ebx*4 + 0x1002b68c]
mov ebx, dword [esp + 0x10]
sar edx, 2
or byte [eax], dl
movsx eax, byte [ebp + 0x1002b438]
cmp byte [esp + eax + 0x1f], 0
je 0x100012d2
mov eax, 0xaaaaaaab
mul ebp
shr edx, 2
lea eax, [edx + edi*8]
add eax, ebx
lea edx, [edx + edx*2]
add edx, edx
mov ebx, ecx
sub ebx, edx
mov edx, dword [ebx*4 + 0x1002b690]
mov ebx, dword [esp + 0x10]
sar edx, 2
or byte [eax], dl
mov edx, dword [esp + 0x1c]
movsx eax, byte [edx + 0x1002b438]
cmp byte [esp + eax + 0x1f], 0
je 0x1000130c
mov eax, 0xaaaaaaab
mul edx
shr edx, 2
lea eax, [edx + edi*8]
add eax, ebx
lea edx, [edx + edx*2]
add edx, edx
mov ebx, ecx
sub ebx, edx
mov edx, dword [ebx*4 + 0x1002b694]
mov ebx, dword [esp + 0x10]
sar edx, 2
or byte [eax], dl
mov edx, dword [esp + 0x18]
movsx eax, byte [edx + 0x1002b438]
cmp byte [esp + eax + 0x1f], 0
je 0x10001346
mov eax, 0xaaaaaaab
mul edx
shr edx, 2
lea eax, [edx + edi*8]
add eax, ebx
lea edx, [edx + edx*2]
add edx, edx
mov ebx, ecx
sub ebx, edx
mov edx, dword [ebx*4 + 0x1002b698]
mov ebx, dword [esp + 0x10]
sar edx, 2
or byte [eax], dl
mov edx, dword [esp + 0x14]
movsx eax, byte [edx + 0x1002b438]
cmp byte [esp + eax + 0x1f], 0
je 0x10001380
mov eax, 0xaaaaaaab
mul edx
shr edx, 2
lea eax, [edx + edi*8]
add eax, ebx
lea edx, [edx + edx*2]
add edx, edx
mov ebx, ecx
sub ebx, edx
mov edx, dword [ebx*4 + 0x1002b69c]
mov ebx, dword [esp + 0x10]
sar edx, 2
or byte [eax], dl
mov eax, 6
add dword [esp + 0x1c], eax
add dword [esp + 0x18], eax
add dword [esp + 0x14], eax
add esi, eax
add ecx, eax
add ebp, eax
cmp esi, 0x31
jl 0x10001230
inc edi
cmp edi, 0x10
jl 0x10001150
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10012840
add esp, 0x84
ret 8