Function at 0x4b8050
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffe0
sub esp, 0x118
mov eax, dword [0x53c158]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
push 8
push eax
lea eax, [esp + 0x100]
push 0x21
push eax
call fcn.004b9a10
movzx edx, byte [esp + 0x108]
mov ecx, 0xff
and edx, 0x7f
add edx, edx
mov eax, edx
sub ecx, edx
shr eax, 7
dec eax
mov esi, eax
and eax, edx
not esi
and ecx, esi
or ecx, eax
mov eax, ecx
and ecx, 1
shr eax, 1
add eax, ecx
push eax
lea eax, [esp + 0x94]
push 0x50a000
push eax
call fcn.004b73f0
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.004ad0f0
and esi, 1
lea eax, [esp + 0xfc]
dec esi
shr esi, 0x1f
dec esi
push esi
push eax
lea eax, [esp + 0xcc]
push eax
call fcn.004b8450
mov eax, dword [esp + 0xb0]
mov esi, dword [esp + 0xcc]
mov edi, dword [esp + 0xe0]
mov edx, dword [esp + 0xe4]
mov ecx, dword [esp + 0xe8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x44], eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
or dword [esp + 0x44], esi
mov esi, dword [esp + 0x44]
or esi, dword [esp + 0xc8]
or esi, dword [esp + 0xc4]
or esi, dword [esp + 0xc0]
or esi, dword [esp + 0xbc]
or esi, dword [esp + 0xb8]
or esi, dword [esp + 0xb4]
or esi, dword [esp + 0xb0]
or esi, eax
mov dword [esp + 0x90], 1
or esi, ecx
mov dword [esp + 0x94], 0
or esi, edx
mov dword [esp + 0x98], 0
or esi, edi
mov dword [esp + 0x9c], 0xffffffff
or esi, dword [esp + 0xdc]
or esi, dword [esp + 0xd8]
or esi, dword [esp + 0xd4]
mov dword [esp + 0xa0], 0xffffffff
mov dword [esp + 0xa4], 0xffffffff
mov dword [esp + 0xa8], 0xfffffffe
lea eax, [esi - 1]
mov dword [esp + 0xac], 0
shr eax, 0x1f
not esi
shr esi, 0x1f
and eax, esi
neg eax
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.004b8450
add esp, 0x3c
mov dword [esp + 0x14], 0x24
mov esi, 6
mov edi, 0x50b000
mov eax, esi
mov ecx, esi
shr eax, 3
and ecx, 7
add esi, 7
mov dword [esp + 0x18], esi
movzx edx, byte [esp + eax + 0xf9]
movzx eax, byte [esp + eax + 0xf8]
shl edx, 8
or edx, eax
shr edx, cl
mov ecx, 0xff
movzx edx, dl
mov eax, edx
sub ecx, edx
shr eax, 7
dec eax
mov esi, eax
and eax, edx
not esi
and ecx, esi
or ecx, eax
mov eax, ecx
and ecx, 1
shr eax, 1
add eax, ecx
push eax
lea eax, [esp + 0x84]
push edi
push eax
call fcn.004b73f0
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0xe8]
push eax
call fcn.004ad0f0
and esi, 1
add esp, 0x14
dec esi
shr esi, 0x1f
dec esi
xor eax, eax
movd xmm0, esi
not esi
pshufd xmm3, xmm0, 0
movd xmm0, esi
pshufd xmm4, xmm0, 0
movups xmm0, xmmword [esp + eax + 0xa0]
movups xmm2, xmmword [esp + eax + 0xd8]
movaps xmm1, xmm4
pand xmm2, xmm3
pand xmm1, xmm0
pxor xmm2, xmm1
movups xmmword [esp + eax + 0xa0], xmm2
add eax, 0x10
cmp eax, 0x20
jl 0x4b8330
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x24]
push eax
push eax
call fcn.004ad7e0
mov esi, dword [esp + 0x24]
add esp, 0xc
add edi, 0x1000
sub dword [esp + 0x14], 1
jne 0x4b82a0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x24]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 0x28], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0x2c], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0x34], eax
mov eax, dword [esp + 0x50]
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x54]
mov dword [ecx + 0x3c], eax
mov eax, dword [esp + 0x58]
mov dword [ecx + 0x40], eax
mov eax, dword [esp + 0x5c]
mov dword [ecx + 0x44], eax
mov eax, dword [esp + 0x60]
mov dword [ecx + 0x48], eax
mov eax, dword [esp + 0x64]
mov dword [ecx + 0x4c], eax
mov eax, dword [esp + 0x68]
mov dword [ecx + 0x50], eax
mov eax, dword [esp + 0x6c]
mov dword [ecx + 0x54], eax
mov eax, dword [esp + 0x70]
mov dword [ecx + 0x58], eax
mov eax, dword [esp + 0x74]
mov dword [ecx + 0x5c], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004b9fa8
mov esp, ebp
pop ebp
ret