Function at 0x46e600
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8e40
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x4fb008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], vtable.StringStorage.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
push 1
mov ecx, eax
call fcn.00404970
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
add esp, 0xc
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 1
call fcn.0041d510
test al, al
je 0x46e823
mov dword [ebp - 0x30], vtable.StringStorage.0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
push 0x38
mov ecx, eax
call fcn.00404970
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push str.SYSTEMCurrentControlSet_serviceseventlogApplication_
push ecx
call fcn.0049ae40
add esp, 0xc
push str.tvnserver
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00404080
push 0
push 1
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x4c]
push reloc.WS2_32.dll_bind
call fcn.0041f6b0
mov ecx, dword [ebp - 0x48]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x46e7c7
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push str.CategoryCount
push ecx
call esi
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x46e7c7
mov edi, dword [ebp - 0x1c]
mov edx, edi
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46e734
sub edx, ebx
sar edx, 1
lea eax, [edx*2 + 2]
push eax
push edi
push 1
push 0
push str.CategoryMessageFile
push ecx
call esi
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x46e7c7
mov edi, dword [ebp - 0x1c]
mov edx, edi
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46e767
sub edx, ebx
sar edx, 1
lea eax, [edx*2 + 2]
push eax
push edi
push 1
push 0
push str.EventMessageFile
push ecx
call esi
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x46e7c7
mov edi, dword [ebp - 0x1c]
mov edx, edi
lea ebx, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46e7a0
sub edx, ebx
sar edx, 1
lea eax, [edx*2 + 2]
push eax
push edi
push 1
push 0
push str.ParameterMessageFile
push ecx
call esi
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x10], 7
test ecx, ecx
je 0x46e7e7
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push str.TypesSupported
push ecx
call esi
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], vtable.RegistryKey.0
test ecx, ecx
je 0x46e805
cmp ecx, dword [ebp - 0x44]
je 0x46e7fe
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x40], vtable.StringStorage.0
call fcn.00404840
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], vtable.StringStorage.0
call fcn.00404840
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.StringStorage.0
call fcn.00404840
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret