Function at 0x4a81e0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x528e88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
push 7
push 0x54cd38
lea ecx, [esp + 0x2c]
call fcn.004f58e0
xor ebx, ebx
push 0xa
push 0x54cd2c
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], ebx
call fcn.004f58e0
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 1
call fcn.004f5870
push ecx
mov byte [esp + 0x3c], 2
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebx
mov byte [esp + 0x20], 0xa8
mov byte [esp + 0x21], 0xb8
mov byte [esp + 0x22], 0x88
mov byte [esp + 0x14], bl
mov word [esp + 0x15], bx
mov byte [esp + 0x1c], bl
mov word [esp + 0x1d], bx
mov byte [esp + 0x18], bl
mov word [esp + 0x19], bx
call fcn.004f5870
lea eax, [esp + 0x20]
lea edx, [esp + 0x28]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0x48], 3
call fcn.004f5850
mov ecx, 0x5574f0
mov byte [esp + 0x44], 2
call fcn.004a3b90
cmp ax, bx
jg 0x4a82ef
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x548208
call fcn.004f58e0
push ecx
mov byte [esp + 0x48], 4
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x54cd24
call fcn.004f58e0
mov ecx, 0x5540a8
mov byte [esp + 0x48], 2
call fcn.004f91a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.004f5980
mov byte [esp + 0x38], bl
jmp 0x4a85a9
push 0x12c
call fcn.00446990
mov esi, esp
mov dword [esp + 0x30], esp
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.004f5850
push esi
mov ecx, 0x5574f0
call fcn.004a4f60
lea ecx, [esp + 0x20]
call fcn.004f5b70
xor edi, edi
xor esi, esi
lea ecx, [edi + 3]
push ecx
lea ecx, [esp + 0x20]
call fcn.004f5b60
mov dl, byte [esp + esi + 0x18]
mov byte [esp + esi + 0xc], al
xor dl, al
inc edi
mov byte [esp + esi + 0x10], dl
inc esi
cmp di, 3
jl 0x4a8328
mov al, byte [esp + 0xc]
cmp al, bl
jne 0x4a83a9
cmp byte [esp + 0xd], bl
jne 0x4a840f
cmp byte [esp + 0xe], bl
jne 0x4a840f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.004f5980
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], bl
call fcn.004f5980
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.004f5980
mov ax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret
mov cl, 0xff
cmp al, cl
jne 0x4a840f
cmp byte [esp + 0xd], cl
jne 0x4a840f
cmp byte [esp + 0xe], cl
jne 0x4a840f
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x548208
call fcn.004f58e0
push ecx
mov byte [esp + 0x48], 5
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x54cd1c
call fcn.004f58e0
mov ecx, 0x5540a8
mov byte [esp + 0x48], 2
call fcn.004f91a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.004f5980
mov byte [esp + 0x38], bl
jmp 0x4a85a9
mov al, byte [esp + 0x12]
mov cl, byte [esp + 0x11]
mov dl, al
and cl, 0xf0
shl dl, 4
or dl, cl
and al, 0xf
mov byte [esp + 0x14], dl
mov dl, byte [esp + 0x10]
mov bl, dl
lea edi, [esp + 0x14]
shr bl, 4
shl dl, 4
or bl, cl
or al, dl
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], al
xor esi, esi
mov al, byte [edi]
lea ecx, [esi + 6]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004f5c80
inc esi
inc edi
cmp si, 3
jl 0x4a8445
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0
call fcn.004f5870
lea edx, [esp + 0x20]
lea eax, [esp + 0x24]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
mov byte [esp + 0x48], 6
call fcn.004f5850
mov bl, 2
mov ecx, 0x5574f0
mov byte [esp + 0x44], bl
call fcn.004a3b90
test ax, ax
jg 0x4a84c3
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x548208
call fcn.004f58e0
push ecx
mov byte [esp + 0x48], 7
mov ecx, esp
mov dword [esp + 0x38], esp
jmp 0x4a857c
push 0x12c
call fcn.00446990
mov esi, esp
mov dword [esp + 0x30], esp
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.004f5850
push esi
mov ecx, 0x5574f0
call fcn.004a4f60
lea ecx, [esp + 0x20]
call fcn.004f5b70
push 1
lea ecx, [esp + 0x20]
call fcn.004f5b60
cmp al, 0x67
jne 0x4a8559
push 3
lea ecx, [esp + 0x20]
call fcn.004f5b60
cmp al, 0x34
jne 0x4a8559
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.004f5980
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.004f5980
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.004f5980
mov ax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x548208
call fcn.004f58e0
push ecx
mov byte [esp + 0x48], 8
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x54cd24
call fcn.004f58e0
mov ecx, 0x5540a8
mov byte [esp + 0x48], bl
call fcn.004f91a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.004f5980
mov byte [esp + 0x38], 0
lea ecx, [esp + 0x20]
call fcn.004f5980
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.004f5980
mov ecx, dword [esp + 0x30]
pop edi
pop esi
xor ax, ax
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret