Function at 0x440120
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 0x440142
cmp eax, 2
je 0x4401bb
jmp 0x4402d0
push 0xf8eb88df
push dword [0x451d60]
call fcn.00445040
add esp, 8
test eax, eax
je 0x44017f
mov ecx, dword [esi]
test ecx, ecx
je 0x4401af
mov dword [esp], 0
mov edx, esp
push edx
push ecx
call eax
test eax, eax
je 0x44018b
cmp dword [esp], 0
je 0x44018b
mov dword [esi + 4], 3
jmp 0x4401af
mov dword [esi + 4], 1
jmp 0x4402d0
lea eax, [esp + 0x48]
push eax
call fcn.004457c0
add esp, 4
test al, al
je 0x4401af
mov eax, dword [esp + 0x48]
mov ecx, 2
cmp eax, 3
je 0x4401ac
mov ecx, eax
mov dword [esi + 4], ecx
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x4402d0
mov edi, dword [ebp + 0xc]
mov dword [esp], 0x5eb55bb2
mov dword [esp + 4], 0xb35951af
mov dword [esp + 8], 0x56525da7
mov dword [esp + 0xc], 0x9abd5fab
mov dword [esp + 0x10], 0x6a646663
mov byte [esp + 0x14], 0xf0
mov word [esp + 0x15], 0
mov byte [esp + 0x17], 0
mov eax, 0x51
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x51]
mov edx, eax
and edx, ecx
lea ebx, [edx + edx]
not ebx
add ebx, edx
or ecx, eax
and ecx, ebx
add cl, 0x6b
mov byte [esp + eax - 0x51], cl
inc eax
cmp eax, 0x69
jne 0x440200
mov ebx, esp
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.004445f0
add esp, 8
mov eax, dword [esi]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], edi
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.004446c0
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]
mov edx, dword [ebp + 0x1c]
mov dword [edx], ecx
jmp 0x4403a0
mov eax, dword [esi]
mov dword [esp + 0x3c], eax
mov dword [esp], 0x101f1e1d
mov byte [esp + 4], 0
mov eax, 0xc5
mov edx, 0x8746913a
nop
nop
nop
nop
movzx edi, byte [esp + eax - 0xc5]
mov ebx, edi
not ebx
lea ecx, [edx + 0x78b96ee0]
and ecx, 0x1e
mov esi, eax
and esi, 0xc1
or esi, ecx
lea ecx, [ebx + ebx]
xor esi, 0x1e
or esi, ebx
shl ebx, 0x1f
sub ebx, ecx
sub ebx, edi
add ebx, 0x7ffffffe
or ebx, edx
lea edi, [ebx + ebx]
not edi
add edi, ebx
lea ecx, [esi + esi]
not ecx
add ecx, esi
and esi, edi
xor ecx, edi
add ecx, edi
sub ecx, esi
add cl, 0x27
mov byte [esp + eax - 0xc5], cl
inc eax
dec edx
cmp eax, 0xca
jne 0x4402f0
mov eax, dword [esp]
mov ecx, dword [0x451d6c]
test ecx, ecx
je 0x44037e
xor edx, edx
mov esi, dword [0x451d70]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x7b3afdab
je 0x4403aa
inc edx
cmp ecx, edx
jne 0x440370
mov ecx, dword [ebp + 0x10]
mov dword [ecx], ebx
mov dword [ecx + 4], 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edi
mov dword [ecx + 4], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], esi
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x44037e
mov eax, esp
push 0
push 0x1c
push eax
push 0
push dword [ebp + 8]
push dword [esp + 0x50]
push 6
push dword [0x451d74]
push ecx
call fcn.00442ab0
add esp, 0x24
mov ebx, dword [esp]
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
jmp 0x44037e