Function at 0x40e5a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x190
mov eax, dword [0x450834]
mov dword [esp + 0x110], 0x43424940
mov dword [esp + 0x114], 0
mov ecx, 0x3c96eef0
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx - 0x3c96ede0]
mov ebx, edx
and ebx, ecx
add bl, bl
sub dl, bl
movzx edx, dl
add edx, ecx
add dl, 0x50
mov byte [esp + ecx - 0x3c96ede0], dl
inc ecx
cmp ecx, 0x3c96eef8
jne 0x40e5d0
mov ecx, dword [esp + 0x110]
mov dword [esp + 0x10], 0xf96dfb65
mov dword [esp + 0x14], 0xe50ee76a
mov dword [esp + 0x18], 0xe17ee378
mov dword [esp + 0x1c], 0xed3cef70
mov dword [esp + 0x20], 0xe97eeb00
mov dword [esp + 0x24], 0x9596977c
mov byte [esp + 0x28], 0
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, edx
add bl, 0x2b
xor bl, byte [esp + edx + 0x10]
add bl, 0x29
mov byte [esp + edx + 0x10], bl
inc edx
cmp edx, 0x19
jne case.default.0x40e683
lea esi, [esp + 0x10]
push ecx
push 0
push esi
call eax
mov ecx, 0x4507fc
push eax
call fcn.00440b50
movzx eax, al
mov eax, dword [eax*4 + 0x44aa5c]
mov ecx, 0xc1150816
xor ecx, dword [0x44aa64]
add eax, ecx
inc eax
jmp eax
mov ebx, dword [esp + 4]
mov ecx, ebx
mov edi, dword [esp]
sub ecx, edi
cmp ebx, dword [esp + 0x10]
je 0x440979
mov eax, edi
mov edi, dword [esp + 0x30]
mov dword [eax + ecx], esi
add ebx, 4
mov dword [esp + 4], ebx
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0x40]
add esi, ebx
dec esi
inc esi
cmp esi, dword [esp + 0x18]
jae 0x440b41
test edx, edx
je 0x44092f
cmp byte [edx], 0x3f
je 0x44093a
movzx ecx, byte [esi]
mov edi, dword [esp + 0x3c]
cmp cl, byte [edi]
jne 0x44091b
cmp ebx, 2
jb 0x4408f0
xor ecx, ecx
jmp 0x44096c
movzx edx, byte [esi + ecx + 1]
mov edi, dword [esp + 0x3c]
cmp dl, byte [edi + ecx + 1]
mov edx, dword [esp + 0x44]
jne 0x440a9f
inc ecx
cmp ebp, ecx
je 0x4408f0
test edx, edx
je 0x440950
cmp byte [edx + ecx + 1], 0x3f
jne 0x440950
jmp 0x440967
mov eax, ecx
sar eax, 2
mov dword [esp + 8], ecx
shr ecx, 1
and ecx, 2
xor eax, 1
add eax, ecx
mov ecx, ebx
not ecx
and ecx, edi
mov edx, edi
not edx
and edx, ebx
sub edx, ecx
sar edx, 2
mov ebx, edx
shr ebx, 1
add ebx, edx
cmp ebx, eax
ja 0x4409a9
mov ebx, eax
mov eax, ebx
or eax, 4
mov ecx, ebx
and ecx, 4
imul eax, ecx
mov edx, ebx
and edx, 0xfffffffb
xor ecx, 4
imul ecx, edx
add ecx, eax
push ecx
call fcn.0040ca00
add esp, 4
mov edx, dword [esp]
test edx, edx
mov edi, dword [esp + 0x30]
je 0x440b1d
mov dword [esp + 0x10], ebx
cmp eax, edx
mov ebx, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], eax
jbe 0x440aa6
cmp ebx, eax
jbe 0x440aa6
test ecx, ecx
je 0x440b06
mov eax, dword [esp]
mov edx, dword [esp + 8]
add eax, edx
dec eax
mov ecx, dword [esp + 0xc]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x440a38
neg edi
xor edx, edx
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x440a20
add eax, edx
add ecx, edx
add edx, dword [esp + 8]
mov ebx, dword [esp + 4]
mov edi, dword [esp]
sub edi, ebx
cmp edi, 0xfffffff8
ja 0x440b06
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x440a50
jmp 0x440b06
add esi, ecx
jmp 0x44091b
mov ebx, ecx
shr ecx, 2
mov eax, edx
mov edi, dword [esp + 0xc]
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
xor eax, 3
mov ecx, edx
mov edx, ebx
or ebx, 0xfffffffc
and ebx, eax
mov eax, dword [esp + 0xc]
lea edi, [eax + ebx]
add ebx, ecx
mov ecx, edx
xor ecx, 0xfffffffc
mov eax, edx
or eax, 3
and eax, ecx
mov ecx, eax
shr ecx, 1
mov edx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0x14], edi
mov edx, dword [esp + 4]
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
test byte [esp + 8], 1
je 0x440b06
and eax, 0xfffffffe
movzx ecx, byte [ebx + eax]
mov edx, dword [esp + 0x14]
mov byte [edx + eax], cl
push dword [esp]
call fcn.0040ca10
add esp, 4
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [edi], eax
lea ecx, [eax + ebx*4]
mov ebx, eax
mov edx, dword [esp + 8]
add ebx, edx
mov dword [esp + 0x10], ecx
mov dword [edi + 8], ecx
mov ecx, eax
mov dword [esp], eax
mov ecx, edx
mov edx, dword [esp + 0x44]
jmp 0x440907
mov eax, dword [esp + 0x30]
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret