Function at 0x42c0a0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
push 0x20a
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x210]
push ebx
push eax
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x224], ebx
call fcn.0040f160
mov eax, dword [ebp - 0x21c]
add esp, 0xc
test edi, edi
je 0x42c533
test esi, esi
je 0x42c533
test eax, eax
je 0x42c533
push eax
push esi
push edi
push str.VNLAddEventLogFile:_parameters_are__S__S__S
push 0x10
call fcn.004439a0
push edi
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push str.SYSTEMCurrentControlSetServicesEventLog
push str._s_s_s
push 0x105
push eax
call fcn.004159a0
push ebx
lea eax, [ebp - 0x218]
push eax
push 7
lea eax, [ebp - 0x210]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004139c0
add esp, 0x40
mov dword [ebp - 0x220], eax
test eax, eax
je 0x42c17d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x210]
push ecx
push eax
push dword [ebp - 0x220]
push str.VNLAddEventLogFile:_Can_not_create_service_event_log_key:_0x_08x_0x_08x__S
jmp 0x42c53b
lea eax, [ebp - 0x210]
push eax
push str.VNLAddEventLogFile:_created_service_event_log_key:__S
push 0x10
call fcn.004439a0
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c1a0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 2
push 0
push str.EventMessageFile
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x42c209
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.VNLAddEventLogFile:_Can_not_write_EventMessageFile:_0x_08x_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.VNLAddEventLogFile:_created_eventmessagefile_key
push 0x10
call fcn.004439a0
add esp, 8
lea eax, [ebp + 0x14]
push 4
push eax
push 4
push 0
push str.TypesSupported
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x42c248
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.VNLAddEventLogFile:_Can_not_write_TypesSupported:_0x_08x_0x_08x
jmp 0x42c1e0
push str.VNLAddEventLogFile:_created_typessupported_key
push 0x10
call fcn.004439a0
add esp, 8
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0041aef0
test eax, eax
jne 0x42c4fa
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push esi
push str.SYSTEMCurrentControlSetServicesEventLog
push 0x49a55c
push 0x105
push eax
call fcn.004159a0
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
push 7
push 0
lea eax, [ebp - 0x210]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x42c2d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x220]
push esi
push str.VNLAddEventLogFile:_Can_not_open_event_log__S_key:_0x_08x_0x_08x
jmp 0x42c53b
push esi
push str.VNLAddEventLogFile:_opened_event_log__S_key
push 0x10
call fcn.004439a0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0
push str.Sources
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x42c340
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xea
jne 0x42c32d
push dword [ebp - 0x214]
push str.VNLAddEventLogFile:_got_length_of_sources_key:__d
push 0x10
call fcn.004439a0
add esp, 0xc
jmp 0x42c350
push eax
push esi
push str.VNLAddEventLogFile:_could_not_get_length_of_sources_key:_0x_08x_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x42c350
push str.VNLAddEventLogFile:_got_length_of_sources_key
push 0x10
call fcn.004439a0
add esp, 8
nop
test ebx, ebx
je 0x42c35d
push ebx
call fcn.0047b1a0
add esp, 4
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c362
mov eax, dword [ebp - 0x214]
sub ecx, edx
sar ecx, 1
add eax, 2
lea esi, [eax + ecx*2]
push esi
mov dword [ebp - 0x220], esi
call fcn.0047c3b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42c51f
push esi
push 0
push ebx
call fcn.0040f160
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push ebx
push 0
push 0
push str.Sources
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x42c42e
cmp esi, 0xea
jne 0x42c3fa
push dword [ebp - 0x214]
push str.VNLAddEventLogFile:_got_length_of_sources_key:__d
push 0x10
call fcn.004439a0
mov esi, dword [ebp - 0x224]
add esp, 0xc
inc esi
mov dword [ebp - 0x224], esi
cmp esi, 5
jl 0x42c350
jmp 0x42c411
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.VNLAddEventLogFile:_could_not_get_length_of_sources_key:_0x_08x_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
push dword [ebp - 0x21c]
push str.VNLAddEventLogFile:_Can_not_query__S_sources_key
push 1
call fcn.004439a0
push ebx
call fcn.0047b1a0
jmp 0x42c1e7
push str.VNLAddEventLogFile:_read_sources_key
push 0x10
call fcn.004439a0
add esp, 8
mov esi, ebx
cmp word [ebx], 0
je 0x42c47c
push edi
push esi
call fcn.0040ca9a
add esp, 8
test eax, eax
je 0x42c47c
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c460
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 2
cmp word [esi], ax
jne 0x42c445
jmp 0x42c482
cmp word [esi], 0
jne 0x42c4d6
sub esi, edi
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [esi + edi - 2], ax
test ax, ax
jne 0x42c484
push dword [ebp - 0x220]
push ebx
push 7
push 0
push str.Sources
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x42c4cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.VNLAddEventLogFile:_could_not_store_sources_key:_0x_08x_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x42c4e5
push str.VNLAddEventLogFile:_updated_sources_key
jmp 0x42c4db
push str.VNLAddEventLogFile:_source_already_present_in_registry
push 0x10
call fcn.004439a0
add esp, 8
push ebx
call fcn.0047b1a0
add esp, 4
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.VNLAddEventLogFile:_returning
push 0x10
call fcn.004439a0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.VNLAddEventLogFile:_memory_allocation_failed
push 1
call fcn.004439a0
add esp, 8
jmp 0x42c1ea
push eax
push esi
push edi
push str.VNLAddEventLogFile:_Missing_parameters_to_AddEventLogFile:_0x_08x_0x_08x_0x_08x
push 1
call fcn.004439a0
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret