Function at 0x4b0520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4f70
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4fb614]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x2c]
mov dword [ebx], 0x4efd40
test eax, eax
je 0x4b07ef
cmp byte [ebx + 4], 0
je 0x4b07e8
mov esi, dword [0x4fd9a8]
mov eax, esi
mov edx, dword [0x4fd9ac]
mov ecx, edx
shld ecx, eax, 2
shl eax, 2
add esi, eax
adc edx, ecx
mov ecx, ebx
shld edx, esi, 1
push edx
add esi, esi
push esi
call fcn.004b0480
test al, al
jne 0x4b07e5
push 0x30
mov dword [ebp - 4], 0xffffffff
call fcn.004aa4a0
push 0x2c
mov esi, eax
mov dword [ebp - 0x30], 0x2c
push 0
push esi
mov dword [ebp - 0x2c], 0x2f
call fcn.004d0920
mov byte [esi + 0x2c], 0
lea eax, [ebp - 0x40]
add esp, 0xc
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x2c], 0x10
jb 0x4b05da
movsx ecx, byte [esi]
jmp 0x4b05e0
movsx ecx, byte [eax]
lea esi, [ebp - 0x40]
mov edi, 0x4f4a70
add ecx, 0x256c39
sub edi, esi
mov edx, 0x2c
mov eax, ecx
lea esi, [esi + 1]
imul ecx, ecx, 0xe4f5
shr eax, 5
xor al, byte [edi + esi - 1]
mov byte [esi - 1], al
add ecx, 0x1e6d27e
sub edx, 1
jne 0x4b05f2
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0x5c], eax
push 0x50
mov dword [ebp - 4], 0xffffffff
call fcn.004aa4a0
push 0x43
mov esi, eax
mov dword [ebp - 0x48], 0x43
push 0
push esi
mov dword [ebp - 0x44], 0x4f
call fcn.004d0920
mov byte [esi + 0x43], 0
mov edi, 0x4f49d0
mov dword [ebp - 0x58], esi
add esp, 0xc
movsx ecx, byte [esi]
mov edx, 0x43
add ecx, 0x256c39
sub edi, esi
nop word [eax + eax]
mov eax, ecx
lea esi, [esi + 1]
imul ecx, ecx, 0xfbf5
shr eax, 5
xor al, byte [edi + esi - 1]
mov byte [esi - 1], al
add ecx, 0x1e6d27e
sub edx, 1
jne 0x4b0670
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
push 0x40
mov dword [ebp - 4], 0xffffffff
call fcn.004aa4a0
push 0x34
mov esi, eax
mov dword [ebp - 0x18], 0x34
push 0
push esi
mov dword [ebp - 0x14], 0x3f
call fcn.004d0920
mov byte [esi + 0x34], 0
lea eax, [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x14], 0x10
jb 0x4b06de
movsx ecx, byte [esi]
jmp 0x4b06e4
movsx ecx, byte [eax]
lea esi, [ebp - 0x28]
mov edi, 0x4f48d0
add ecx, 0x256c39
sub edi, esi
mov edx, 0x34
nop word [eax + eax]
mov eax, ecx
lea esi, [esi + 1]
imul ecx, ecx, 0xecf5
shr eax, 5
xor al, byte [edi + esi - 1]
mov byte [esi - 1], al
add ecx, 0x1e6d27e
sub edx, 1
jne 0x4b0700
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x60]
cmovae ecx, dword [ebp - 0x28]
push 0x18
push dword [ebp - 0x5c]
push 1
push 1
call int.004ace20
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp edx, 0x10
jb 0x4b0773
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b0769
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b0812
push edx
push ecx
call fcn.004cf4f2
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x4b07b5
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b07ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b0812
push edx
push ecx
call fcn.004cf4f2
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x4b07e5
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b07db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b0812
push edx
push ecx
call fcn.004cf4f2
add esp, 8
mov eax, dword [ebx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle_1]
mov ecx, ebx
call fcn.004afea0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cf4aa
mov esp, ebp
pop ebp
ret
call fcn.004d4192
int3