Function at 0x4d4090
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x5a0a27
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x60aecc]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x34], edi
lea ecx, [esp + 0x4c]
call fcn.004ac1c0
xor ebx, ebx
lea ecx, [edi + 0x14]
mov dword [esp + 0xcc], ebx
call fcn.00496eb0
test eax, eax
jbe 0x4d4252
lea ecx, [esp + 0x88]
call fcn.004ac1c0
lea ecx, [edi + 0x18]
mov byte [esp + 0xcc], 1
call fcn.00496ed0
push eax
lea ecx, [esp + 0x8c]
call fcn.004ab580
push str.data1
lea ecx, [esp + 0x8c]
call fcn.004ab820
push str.data2
lea ecx, [esp + 0x8c]
mov esi, eax
call fcn.004ab820
cmp esi, ebx
mov dword [esp + 0x20], eax
je 0x4d423c
cmp eax, ebx
je 0x4d423c
push ebx
push str.data
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.004ab970
lea ecx, [esp + 0x18]
mov byte [esp + 0xcc], 2
call fcn.00496ed0
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00496da0
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.004decd0
lea ecx, [esp + 0x14]
mov byte [esp + 0xcc], 3
call fcn.00496eb0
mov ebp, eax
xor esi, esi
test ebp, ebp
jbe 0x4d41c3
jmp 0x4d41a0
lea ecx, [esp + 0x14]
call fcn.00496ed0
movsx edx, byte [eax + esi]
mov ecx, esi
and ecx, 3
add ecx, ecx
add ecx, ecx
add ecx, ecx
shl edx, cl
add esi, 1
xor ebx, edx
cmp esi, ebp
jb 0x4d41a0
mov ecx, dword [esp + 0x20]
push 0
push str.data
lea eax, [esp + 0x24]
push eax
call fcn.004ab970
lea ecx, [esp + 0x1c]
mov byte [esp + 0xcc], 4
call fcn.00496ed0
push eax
call fcn.0055e717
add esp, 4
cmp eax, ebx
jne 0x4d4209
lea ecx, [esp + 0x14]
call fcn.00496ed0
push eax
lea ecx, [esp + 0x50]
call fcn.004ab4c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xcc], 3
call fcn.00497320
lea ecx, [esp + 0x14]
mov byte [esp + 0xcc], 2
call fcn.00497320
lea ecx, [esp + 0x18]
mov byte [esp + 0xcc], 1
call fcn.00497320
lea ecx, [esp + 0x88]
mov byte [esp + 0xcc], 0
call fcn.004abf30
jmp 0x4d4264
lea ecx, [edi + 0x18]
call fcn.00496ed0
push eax
lea ecx, [esp + 0x50]
call fcn.004ab580
push 1
push str.install.txt
call fcn.004bbf90
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4d43ce
push 2
push 0
push ebp
call fcn.004b9ab0
push ebp
call fcn.004b9ad0
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x4d42e7
push 1
push 0
push ebp
call fcn.004b9ab0
add ebx, 1
push ebx
call fcn.0055ce46
push ebx
mov esi, eax
push 0
push esi
call fcn.0055da20
mov ecx, dword [esp + 0x3c]
push ecx
push esi
push ebp
call fcn.004b9ae0
add esp, 0x28
lea ebx, [edi + 0x1c]
push esi
mov ecx, ebx
call fcn.00497d30
mov ecx, ebx
call fcn.00497f40
push esi
call fcn.0055f5cf
add esp, 4
jmp 0x4d43c5
lea ecx, [esp + 0x4c]
call fcn.004ab8b0
lea ecx, [esp + 0x14]
call fcn.00496d90
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0xd4], 5
call fcn.004ab8c0
test al, al
je 0x4d43b4
lea esp, [esp]
push str.install
lea ecx, [esp + 0x20]
call fcn.00496da0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0xd0], 6
call fcn.004972e0
lea ecx, [esp + 0x1c]
mov bl, al
mov byte [esp + 0xcc], 5
call fcn.00497320
test bl, bl
jne 0x4d4374
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x54]
call fcn.004ab8c0
test al, al
jne 0x4d4320
jmp 0x4d43b4
push 0
push str.pfinstallkey
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004ab970
lea esi, [edi + 0x1c]
push eax
mov ecx, esi
mov byte [esp + 0xd0], 7
call fcn.00497360
lea ecx, [esp + 0x20]
mov byte [esp + 0xcc], 5
call fcn.00497320
mov ecx, esi
call fcn.00497f40
lea ecx, [esp + 0x14]
mov byte [esp + 0xcc], 0
call fcn.00497320
push ebp
call fcn.004b9a90
add esp, 4
lea ecx, [esp + 0x4c]
call fcn.004ab8b0
lea ecx, [esp + 0x24]
call fcn.00496d90
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0xd4], 8
call fcn.004ab8c0
test al, al
je 0x4d4653
jmp 0x4d4410
push str.install
lea ecx, [esp + 0x24]
call fcn.00496da0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0xd0], 9
call fcn.004972e0
lea ecx, [esp + 0x20]
mov bl, al
mov byte [esp + 0xcc], 8
call fcn.00497320
test bl, bl
je 0x4d4638
mov ecx, dword [esp + 0x28]
xor ebp, ebp
push ebp
push str.pfinstallkey
lea edx, [esp + 0x20]
push edx
call fcn.004ab970
lea ecx, [esp + 0x18]
mov byte [esp + 0xcc], 0xa
call fcn.00497f40
mov ecx, dword [esp + 0x28]
call fcn.004ab8b0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.004ab8c0
test al, al
je 0x4d4627
mov dword [esp + 0x1c], ebp
mov edi, edi
lea ecx, [esp + 0x30]
call fcn.00496d90
lea ecx, [esp + 0x14]
mov byte [esp + 0xcc], 0xb
call fcn.00496d90
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0xcc], 0xc
call fcn.004aba80
lea edx, [esp + 0x18]
push edx
lea ecx, [edi + 4]
call fcn.004d3f90
sub esp, 0xc
mov esi, esp
mov ecx, esi
mov edi, eax
mov dword [esp + 0x54], esp
call fcn.004cff20
mov dword [esi + 4], eax
mov byte [eax + 0x21], 1
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
lea ebx, [ebp + 1]
mov dword [eax + 8], eax
push ebx
mov ecx, edi
mov dword [esi + 8], 0
call fcn.004d3320
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004aba90
test al, al
je 0x4d45df
nop
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.004d1790
add esp, 8
mov edi, eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
add ecx, 4
mov byte [esp + 0xd0], 0xd
call fcn.004d3f90
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4d457f
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x4d4584
call fcn.0055d776
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x1c]
push edi
lea edx, [esp + 0x34]
push edx
call fcn.004d24d0
mov ecx, eax
call fcn.004d1170
mov eax, dword [esp + 0x3c]
xor esi, esi
cmp eax, esi
mov byte [esp + 0xcc], 0xc
je 0x4d45b8
push eax
call fcn.0055d39b
add esp, 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call fcn.004aba90
test al, al
jne 0x4d4530
add dword [esp + 0x1c], 0xc
lea ecx, [esp + 0x14]
mov ebp, ebx
mov byte [esp + 0xcc], 0xb
call fcn.00497320
lea ecx, [esp + 0x30]
mov byte [esp + 0xcc], 0xa
call fcn.00497320
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004ab8c0
test al, al
mov edi, dword [esp + 0x34]
jne 0x4d44a0
lea ecx, [esp + 0x18]
mov byte [esp + 0xcc], 8
call fcn.00497320
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x54]
call fcn.004ab8c0
test al, al
jne 0x4d4410
lea eax, [edi + 0x1c]
push eax
lea ecx, [edi + 4]
call fcn.004d3f90
lea ecx, [esp + 0x24]
mov dword [edi + 0x10], eax
mov byte [esp + 0xcc], 0
call fcn.00497320
lea ecx, [esp + 0x4c]
mov dword [esp + 0xcc], 0xffffffff
call fcn.004abf30
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret