Function at 0x416140
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x100
mov eax, dword [0x43a14c]
xor eax, esp
mov dword [esp + 0xfc], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor eax, eax
lea esp, [esp]
movzx ecx, byte [eax + 0x43b418]
mov edx, ecx
sar edx, 3
movzx edx, byte [edx + esi]
and ecx, 7
test byte [ecx*2 + 0x43b3a8], dl
setne cl
mov byte [esp + eax + 0xd4], cl
movzx ecx, byte [eax + 0x43b419]
mov edx, ecx
sar edx, 3
movzx edx, byte [edx + esi]
and ecx, 7
test byte [ecx*2 + 0x43b3a8], dl
setne cl
mov byte [esp + eax + 0xd5], cl
movzx ecx, byte [eax + 0x43b41a]
mov edx, ecx
sar edx, 3
movzx edx, byte [edx + esi]
and ecx, 7
test byte [ecx*2 + 0x43b3a8], dl
setne cl
mov byte [esp + eax + 0xd6], cl
movzx ecx, byte [eax + 0x43b41b]
mov edx, ecx
sar edx, 3
movzx edx, byte [edx + esi]
and ecx, 7
test byte [ecx*2 + 0x43b3a8], dl
setne cl
mov byte [esp + eax + 0xd7], cl
add eax, 4
cmp eax, 0x38
jl 0x416160
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0x1e
jmp 0x416214
mov ecx, dword [esp + 0x10]
cmp word [esp + 0x114], 1
mov eax, dword [esp + 0x14]
je 0x416226
lea eax, [ecx + ecx]
movzx ebp, byte [ecx + 0x43b450]
lea ebx, [esp + eax*4 + 0x20]
lea eax, [esp + eax*4 + 0x1c]
mov dword [ebx], 0
mov dword [esp + 0x18], eax
mov dword [eax], 0
xor esi, esi
lea ecx, [ebp + 3]
lea eax, [ebp + 2]
lea ecx, [ecx]
lea edi, [ecx - 3]
cmp edi, 0x1c
jge 0x416261
mov dl, byte [esp + eax + 0xd2]
jmp 0x416268
mov dl, byte [esp + edi + 0xb8]
lea edi, [ecx - 2]
cmp edi, 0x1c
mov byte [esp + esi + 0x9c], dl
jge 0x416280
mov dl, byte [esp + eax + 0xd3]
jmp 0x416287
mov dl, byte [esp + edi + 0xb8]
cmp eax, 0x1c
mov byte [esp + esi + 0x9d], dl
jge 0x41629c
mov dl, byte [esp + eax + 0xd4]
jmp 0x4162a3
mov dl, byte [esp + eax + 0xb8]
cmp ecx, 0x1c
mov byte [esp + esi + 0x9e], dl
jge 0x4162b8
mov dl, byte [esp + eax + 0xd5]
jmp 0x4162bf
mov dl, byte [esp + ecx + 0xb8]
mov byte [esp + esi + 0x9f], dl
add esi, 4
add eax, 4
add ecx, 4
cmp esi, 0x1c
jl 0x416250
mov edi, 0x1c
lea edx, [ebp + 0x1f]
lea eax, [ebp + 0x1e]
lea ecx, [edx - 3]
cmp ecx, 0x38
jge 0x4162f4
mov cl, byte [esp + eax + 0xd2]
jmp 0x4162fb
mov cl, byte [esp + ecx + 0xb8]
lea esi, [edx - 2]
cmp esi, 0x38
mov byte [esp + edi + 0x9c], cl
jge 0x416313
mov cl, byte [esp + eax + 0xd3]
jmp 0x41631a
mov cl, byte [esp + esi + 0xb8]
cmp eax, 0x38
mov byte [esp + edi + 0x9d], cl
jge 0x41632f
mov cl, byte [esp + eax + 0xd4]
jmp 0x416336
mov cl, byte [esp + eax + 0xb8]
cmp edx, 0x38
mov byte [esp + edi + 0x9e], cl
jge 0x41634b
mov cl, byte [esp + eax + 0xd5]
jmp 0x416352
mov cl, byte [esp + edx + 0xb8]
mov byte [esp + edi + 0x9f], cl
add edi, 4
add eax, 4
add edx, 4
cmp edi, 0x38
jl 0x4162e3
xor eax, eax
lea ecx, [ecx]
movzx edx, byte [eax + 0x43b460]
cmp byte [esp + edx + 0x9c], 0
mov ecx, dword [esp + 0x18]
je 0x41638e
mov edx, dword [eax*4 + 0x43b3b8]
or dword [ecx], edx
movzx edx, byte [eax + 0x43b478]
cmp byte [esp + edx + 0x9c], 0
je 0x4163a8
mov edx, dword [eax*4 + 0x43b3b8]
or dword [ebx], edx
movzx edx, byte [eax + 0x43b461]
cmp byte [esp + edx + 0x9c], 0
je 0x4163c2
mov edx, dword [eax*4 + 0x43b3bc]
or dword [ecx], edx
movzx edx, byte [eax + 0x43b479]
cmp byte [esp + edx + 0x9c], 0
je 0x4163dc
mov edx, dword [eax*4 + 0x43b3bc]
or dword [ebx], edx
movzx edx, byte [eax + 0x43b462]
cmp byte [esp + edx + 0x9c], 0
je 0x4163f6
mov edx, dword [eax*4 + 0x43b3c0]
or dword [ecx], edx
movzx edx, byte [eax + 0x43b47a]
cmp byte [esp + edx + 0x9c], 0
je 0x416410
mov edx, dword [eax*4 + 0x43b3c0]
or dword [ebx], edx
movzx edx, byte [eax + 0x43b463]
cmp byte [esp + edx + 0x9c], 0
je 0x41642a
mov edx, dword [eax*4 + 0x43b3c4]
or dword [ecx], edx
movzx edx, byte [eax + 0x43b47b]
cmp byte [esp + edx + 0x9c], 0
je 0x416444
mov edx, dword [eax*4 + 0x43b3c4]
or dword [ebx], edx
movzx edx, byte [eax + 0x43b464]
cmp byte [esp + edx + 0x9c], 0
je 0x41645e
mov edx, dword [eax*4 + 0x43b3c8]
or dword [ecx], edx
movzx edx, byte [eax + 0x43b47c]
cmp byte [esp + edx + 0x9c], 0
je 0x416478
mov edx, dword [eax*4 + 0x43b3c8]
or dword [ebx], edx
movzx edx, byte [eax + 0x43b465]
cmp byte [esp + edx + 0x9c], 0
je 0x416492
mov edx, dword [eax*4 + 0x43b3cc]
or dword [ecx], edx
movzx ecx, byte [eax + 0x43b47d]
cmp byte [esp + ecx + 0x9c], 0
je 0x4164ac
mov edx, dword [eax*4 + 0x43b3cc]
or dword [ebx], edx
add eax, 6
cmp eax, 0x18
jl 0x416370
mov eax, dword [esp + 0x14]
inc dword [esp + 0x10]
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x14], eax
jg 0x416210
lea ecx, [esp + 0x1c]
call fcn.00416500
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00418154
add esp, 0x100
ret