Function at 0x440290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, ecx
mov eax, dword [ecx + 4]
test eax, eax
je 0x4402b2
cmp eax, 2
je 0x44032b
jmp 0x440463
push 0xf8eb88df
push dword [0x451fb0]
call fcn.00444af0
add esp, 8
test eax, eax
je 0x4402ef
mov ecx, dword [esi]
test ecx, ecx
je 0x44031f
mov dword [esp], 0
mov edx, esp
push edx
push ecx
call eax
test eax, eax
je 0x4402fb
cmp dword [esp], 0
je 0x4402fb
mov dword [esi + 4], 3
jmp 0x44031f
mov dword [esi + 4], 1
jmp 0x440463
lea eax, [esp + 0x48]
push eax
call fcn.00445340
add esp, 4
test al, al
je 0x44031f
mov eax, dword [esp + 0x48]
mov ecx, 2
cmp eax, 3
je 0x44031c
mov ecx, eax
mov dword [esi + 4], ecx
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x440463
mov dword [esp], 0x1a27152a
mov dword [esp + 4], 0x391b1b09
mov dword [esp + 8], 0x2021f09
mov dword [esp + 0xc], 0x163f192d
mov dword [esp + 0x10], 0xe081a1d
mov byte [esp + 0x14], 0x84
mov dword [esp + 0x15], 0
mov word [esp + 0x19], 0
mov eax, esp
mov ecx, 0x4746a5d9
nop
nop
nop
movzx ebx, byte [eax]
mov edx, ecx
or edx, ebx
lea edi, [ecx - 0x4746a500]
and edi, ebx
not edx
or edx, edi
add edx, 0xd1183332
mov edi, edx
and edi, 0xe4613d41
xor edx, 0x64613d41
lea edx, [edx + edi*2]
mov edi, edx
and edi, 0x4e
xor edx, 0xce
lea edx, [edx + edi*2]
inc dl
mov byte [eax], dl
inc eax
dec ecx
cmp ecx, 0x4746a5be
jne 0x440370
mov ebx, esp
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.00444120
add esp, 8
mov eax, dword [esi]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0x30
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
lea eax, [esp + 0x48]
push 6
push eax
push dword [esp + 0x4c]
push dword [esp + 0x4c]
call fcn.00444200
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov esi, dword [ebp + 0x10]
mov dword [esi + 4], edx
mov dword [esi], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov esi, dword [ebp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x18]
mov dword [edx], ecx
mov ecx, dword [esp + 0x24]
jmp 0x4404fb
mov edi, dword [esi]
mov dword [esp], 0x70605
mov dword [esp + 4], 0
mov esi, 1
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + esi - 1]
mov ebx, edx
and ebx, esi
mov eax, ebx
or al, 0xfd
inc al
mov ecx, ebx
and cl, 0xd
mul cl
mov ecx, eax
add cl, dl
mov eax, ebx
shr al, 1
and al, 1
or bl, 2
mul bl
add al, al
sub cl, al
movzx eax, cl
add eax, esi
add al, 0xfb
mov byte [esp + esi - 1], al
inc esi
cmp esi, 9
jne 0x440480
mov eax, dword [esp]
mov ecx, dword [0x451fbc]
test ecx, ecx
je 0x4404de
xor edx, edx
mov esi, dword [0x451fc0]
nop
cmp dword [esi + edx*8], 0x7b3afdab
je 0x44050a
inc edx
cmp ecx, edx
jne 0x4404d0
mov edx, dword [ebp + 0x10]
mov dword [edx], ebx
mov dword [edx + 4], 0
mov edx, dword [ebp + 0x14]
mov dword [edx], edi
mov dword [edx + 4], 0
mov edx, dword [ebp + 0x18]
mov dword [edx], esi
mov edx, dword [ebp + 0x1c]
mov dword [edx], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
mov dword [esp + 0x3c], edi
mov edx, dword [esi + edx*8 + 4]
cmp edx, eax
je 0x4404de
mov eax, esp
push 0
push 0x1c
push eax
push 0
push dword [ebp + 8]
push dword [esp + 0x50]
push 6
push dword [0x451fc4]
push edx
call fcn.004426e0
add esp, 0x24
mov ebx, dword [esp]
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x4404de