Function at 0x4847b0
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push 0xffffffffffffffff
push 0x4e107b
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x518334]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x518334]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x158]
mov eax, dword [esp + 0x154]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18], eax
mov esi, edx
je 0x484809
cmp ebp, ebx
ja 0x484810
xor eax, eax
jmp 0x484ace
xor eax, eax
push 0x10
push ecx
mov dword [esp + 0x135], eax
mov dword [esp + 0x139], eax
mov dword [esp + 0x13d], eax
mov word [esp + 0x141], ax
mov byte [esp + 0x143], al
lea eax, [esp + 0x134]
push 0x10
push eax
mov byte [esp + 0x13c], bl
call fcn.00497101
push 0xec
lea ecx, [esp + 0x4c]
push ebx
push ecx
mov dword [esp + 0x50], ebx
call fcn.00497210
add esp, 0x1c
cmp esi, ebx
mov dword [esp + 0x124], ebx
je 0x484a20
mov edx, dword [esi]
push 8
push edx
mov dword [esp + 0x12c], 0xa
call fcn.0049c38e
mov edi, eax
mov eax, dword [esi]
push 8
push eax
and edi, 0xff00ff00
call fcn.0049c39c
mov ecx, dword [esi + 4]
and eax, 0xff00ff
or eax, edi
push 8
push ecx
mov dword [esp + 0x4c], eax
call fcn.0049c38e
mov edx, dword [esi + 4]
mov edi, eax
push 8
push edx
and edi, 0xff00ff00
call fcn.0049c39c
and eax, 0xff00ff
or eax, edi
mov dword [esp + 0x58], eax
mov eax, dword [esi + 8]
push 8
push eax
call fcn.0049c38e
mov ecx, dword [esi + 8]
mov edi, eax
push 8
push ecx
and edi, 0xff00ff00
call fcn.0049c39c
mov edx, dword [esi + 0xc]
and eax, 0xff00ff
or eax, edi
push 8
push edx
mov dword [esp + 0x74], eax
call fcn.0049c38e
mov edi, eax
mov eax, dword [esi + 0xc]
push 8
push eax
and edi, 0xff00ff00
call fcn.0049c39c
and eax, 0xff00ff
or eax, edi
mov dword [esp + 0x80], eax
movzx ecx, byte [esp + 0x82]
mov ecx, dword [ecx*4 + 0x4f0968]
xor ecx, 0x1000000
and ecx, 0xff000000
movzx edx, ah
mov edx, dword [edx*4 + 0x4f0d68]
and edx, 0xff0000
xor ecx, edx
mov edx, eax
shr edx, 0x18
movzx edx, byte [edx*4 + 0x4f0568]
xor ecx, edx
mov edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x4f0168]
and edx, 0xff00
xor ecx, edx
xor ecx, dword [esp + 0x74]
add esp, 0x40
mov dword [esp + 0x44], ecx
xor ecx, dword [esp + 0x38]
mov esi, 0x4f226c
mov dword [esp + 0x48], ecx
xor ecx, dword [esp + 0x3c]
mov dword [esp + 0x4c], ecx
xor ecx, eax
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x38]
mov edx, dword [ecx + 0x18]
add ecx, 0x10
mov edi, edx
movzx eax, dh
mov eax, dword [eax*4 + 0x4f0d68]
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4f0968]
and eax, 0xff0000
and edi, 0xff000000
xor eax, edi
mov edi, edx
and edx, 0xff
mov edx, dword [edx*4 + 0x4f0168]
shr edi, 0x18
movzx edi, byte [edi*4 + 0x4f0568]
xor eax, edi
and edx, 0xff00
xor eax, edx
xor eax, dword [ecx - 4]
add esi, 4
xor eax, dword [esi - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ecx]
xor edx, eax
mov dword [ecx + 0x10], edx
mov eax, dword [ecx + 4]
xor eax, edx
mov dword [ecx + 0x14], eax
mov edx, dword [ecx + 8]
xor edx, eax
cmp esi, 0x4f2290
mov dword [ecx + 0x18], edx
jne 0x4849a2
lea eax, [esp + 0x17]
push eax
mov byte [esp + 0x1b], bl
lea eax, [ebp + ebp*4]
add eax, eax
lea ebx, [esp + 0x28]
call fcn.0045698e
xor ebx, ebx
mov dword [esp + 0x14c], ebx
mov esi, dword [esp + 0x28]
cmp esi, ebx
mov edi, dword [esp + 0x2c]
je 0x484a53
mov ecx, edi
sub ecx, esi
jne 0x484a58
call fcn.004949bc
push ebp
push ebx
push esi
call fcn.00497210
add esp, 0xc
cmp esi, ebx
mov dword [esp + 0x1c], ebx
je 0x484a71
mov edx, edi
sub edx, esi
jne 0x484a76
call fcn.004949bc
mov eax, dword [esp + 0x15c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebp
push eax
lea eax, [esp + 0x140]
mov ecx, esi
call fcn.0045a889
add esp, 0x14
cmp esi, ebx
je 0x484aa7
sub edi, esi
jne 0x484aac
call fcn.004949bc
mov ecx, dword [esp + 0x18]
push ebp
push esi
push ebp
push ecx
call fcn.00497101
add esp, 0x10
cmp esi, ebx
je 0x484ac9
push esi
call fcn.00494c70
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0049c88a
add esp, 0x13c
ret