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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7f60
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x4f8008]
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 0x4cb33c
push ecx
call fcn.00499f60
add esp, 0xc
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 1
call fcn.0041c620
test al, al
je 0x46d923
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.00499f60
add esp, 0xc
push 0x4c55bc
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.0041e7c0
mov ecx, dword [ebp - 0x48]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x46d8c7
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 0x46d8c7
mov edi, dword [ebp - 0x1c]
mov edx, edi
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46d834
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 0x46d8c7
mov edi, dword [ebp - 0x1c]
mov edx, edi
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46d867
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 0x46d8c7
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 0x46d8a0
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 0x46d8e7
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 0x46d905
cmp ecx, dword [ebp - 0x44]
je 0x46d8fe
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