Function at 0x432850
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 [0x4ed018]
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 - 0x218], eax
lea eax, [ebp - 0x210]
push ebx
push eax
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x224], ebx
call fcn.00411960
mov eax, dword [ebp - 0x218]
add esp, 0xc
test edi, edi
je 0x432ce3
test esi, esi
je 0x432ce3
test eax, eax
je 0x432ce3
push eax
push esi
push edi
push str.VNLAddEventLogFile:_parameters_are__S__S__S
push 0x10
call fcn.00446b80
push edi
push dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push str.SYSTEMCurrentControlSetServicesEventLog
push str._s_s_s
push 0x105
push eax
call fcn.00419510
push ebx
lea eax, [ebp - 0x214]
push eax
push 7
lea eax, [ebp - 0x210]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00417370
add esp, 0x40
mov dword [ebp - 0x220], eax
test eax, eax
je 0x43292d
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 0x432ceb
lea eax, [ebp - 0x210]
push eax
push str.VNLAddEventLogFile:_created_service_event_log_key:__S
push 0x10
call fcn.00446b80
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 0x432950
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 - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x4329b9
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.00446b80
add esp, 0x10
push dword [ebp - 0x214]
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.00401bd5
mov esp, ebp
pop ebp
ret
push str.VNLAddEventLogFile:_created_eventmessagefile_key
push 0x10
call fcn.00446b80
add esp, 8
lea eax, [ebp + 0x14]
push 4
push eax
push 4
push 0
push str.TypesSupported
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x4329f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.VNLAddEventLogFile:_Can_not_write_TypesSupported:_0x_08x_0x_08x
jmp 0x432990
push str.VNLAddEventLogFile:_created_typessupported_key
push 0x10
call fcn.00446b80
add esp, 8
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0041ebd0
test eax, eax
jne 0x432caa
mov esi, dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push esi
push str.SYSTEMCurrentControlSetServicesEventLog
push 0x4a190c
push 0x105
push eax
call fcn.00419510
add esp, 0x14
lea eax, [ebp - 0x214]
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 0x432a84
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 0x432ceb
push esi
push str.VNLAddEventLogFile:_opened_event_log__S_key
push 0x10
call fcn.00446b80
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0
push str.Sources
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x432af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xea
jne 0x432add
push dword [ebp - 0x21c]
push str.VNLAddEventLogFile:_got_length_of_sources_key:__d
push 0x10
call fcn.00446b80
add esp, 0xc
jmp 0x432b00
push eax
push esi
push str.VNLAddEventLogFile:_could_not_get_length_of_sources_key:_0x_08x_0x_08x
push 1
call fcn.00446b80
add esp, 0x10
jmp 0x432b00
push str.VNLAddEventLogFile:_got_length_of_sources_key
push 0x10
call fcn.00446b80
add esp, 8
nop
test ebx, ebx
je 0x432b0d
push ebx
call fcn.0047ee40
add esp, 4
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x432b12
mov eax, dword [ebp - 0x21c]
sub ecx, edx
sar ecx, 1
add eax, 2
lea esi, [eax + ecx*2]
push esi
mov dword [ebp - 0x220], esi
call fcn.0047ee60
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x432ccf
push esi
push 0
push ebx
call fcn.00411960
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0
push 0
push str.Sources
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x432bde
cmp esi, 0xea
jne 0x432baa
push dword [ebp - 0x21c]
push str.VNLAddEventLogFile:_got_length_of_sources_key:__d
push 0x10
call fcn.00446b80
mov esi, dword [ebp - 0x224]
add esp, 0xc
inc esi
mov dword [ebp - 0x224], esi
cmp esi, 5
jl 0x432b00
jmp 0x432bc1
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.00446b80
add esp, 0x10
push dword [ebp - 0x218]
push str.VNLAddEventLogFile:_Can_not_query__S_sources_key
push 1
call fcn.00446b80
push ebx
call fcn.0047ee40
jmp 0x432997
push str.VNLAddEventLogFile:_read_sources_key
push 0x10
call fcn.00446b80
add esp, 8
mov esi, ebx
cmp word [ebx], 0
je 0x432c2c
push edi
push esi
call fcn.0040e1c8
add esp, 8
test eax, eax
je 0x432c2c
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x432c10
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 2
cmp word [esi], ax
jne 0x432bf5
jmp 0x432c32
cmp word [esi], 0
jne 0x432c86
sub esi, edi
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [esi + edi - 2], ax
test ax, ax
jne 0x432c34
push dword [ebp - 0x220]
push ebx
push 7
push 0
push str.Sources
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x432c7f
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.00446b80
add esp, 0x10
jmp 0x432c95
push str.VNLAddEventLogFile:_updated_sources_key
jmp 0x432c8b
push str.VNLAddEventLogFile:_source_already_present_in_registry
push 0x10
call fcn.00446b80
add esp, 8
push ebx
call fcn.0047ee40
add esp, 4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.VNLAddEventLogFile:_returning
push 0x10
call fcn.00446b80
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push str.VNLAddEventLogFile:_memory_allocation_failed
push 1
call fcn.00446b80
add esp, 8
jmp 0x43299a
push eax
push esi
push edi
push str.VNLAddEventLogFile:_Missing_parameters_to_AddEventLogFile:_0x_08x_0x_08x_0x_08x
push 1
call fcn.00446b80
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00401bd5
mov esp, ebp
pop ebp
ret