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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc510
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x554008]
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.00403af0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x524da8
push ecx
call fcn.0049dfe0
add esp, 0xc
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 1
call fcn.0041da00
test al, al
je 0x4719e3
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.00403af0
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.0049dfe0
add esp, 0xc
push 0x4c959c
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00403200
push 0
push 1
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x4c]
push reloc.WS2_32.dll_bind
call fcn.0041fbb0
mov ecx, dword [ebp - 0x48]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x471987
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 0x471987
mov edi, dword [ebp - 0x1c]
mov edx, edi
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4718f4
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 0x471987
mov edi, dword [ebp - 0x1c]
mov edx, edi
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x471927
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 0x471987
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 0x471960
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 0x4719a7
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 0x4719c5
cmp ecx, dword [ebp - 0x44]
je 0x4719be
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.004039c0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], vtable.StringStorage.0
call fcn.004039c0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.StringStorage.0
call fcn.004039c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret