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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9c80
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.00403ad0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 1
call fcn.0041d690
test al, al
je 0x46e803
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.00403ad0
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.0049ae30
add esp, 0xc
push 0x4c75dc
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.004031e0
push 0
push 1
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x4c]
push reloc.WS2_32.dll_bind
call fcn.0041f830
mov ecx, dword [ebp - 0x48]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x46e7a7
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 0x46e7a7
mov edi, dword [ebp - 0x1c]
mov edx, edi
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46e714
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 0x46e7a7
mov edi, dword [ebp - 0x1c]
mov edx, edi
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46e747
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 0x46e7a7
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 0x46e780
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 0x46e7c7
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 0x46e7e5
cmp ecx, dword [ebp - 0x44]
je 0x46e7de
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.004039a0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], vtable.StringStorage.0
call fcn.004039a0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.StringStorage.0
call fcn.004039a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret