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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8350
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
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.00403cc0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb34c
push ecx
call fcn.0049a300
add esp, 0xc
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 1
call fcn.0041ca10
test al, al
je 0x46dcd3
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.00403cc0
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.0049a300
add esp, 0xc
push 0x4c55cc
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.004033d0
push 0
push 1
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x4c]
push reloc.WS2_32.dll_bind
call fcn.0041ebb0
mov ecx, dword [ebp - 0x48]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x46dc77
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 0x46dc77
mov edi, dword [ebp - 0x1c]
mov edx, edi
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46dbe4
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 0x46dc77
mov edi, dword [ebp - 0x1c]
mov edx, edi
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46dc17
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 0x46dc77
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 0x46dc50
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 0x46dc97
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 0x46dcb5
cmp ecx, dword [ebp - 0x44]
je 0x46dcae
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.00403b90
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], vtable.StringStorage.0
call fcn.00403b90
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.StringStorage.0
call fcn.00403b90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret