Function at 0x4277b0
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 [0x4a39f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x208
lea edx, [ebp - 0x20e]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x210], cx
call fcn.00405300
add esp, 0xc
test edi, edi
je 0x427cac
test esi, esi
je 0x427cac
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x427cb2
push eax
push esi
push edi
push str.VNLAddEventLogFile:_parameters_are__S__S__S
push 0x10
call fcn.004343f0
mov eax, dword [ebp - 0x218]
push edi
push eax
push str.SYSTEMCurrentControlSetServicesEventLog
push str._s_s_s
lea ecx, [ebp - 0x210]
push 0x105
push ecx
call fcn.00457d45
push ebx
lea edx, [ebp - 0x214]
push edx
push 7
lea eax, [ebp - 0x210]
push eax
push 0x80000002
call fcn.00410720
mov edi, eax
add esp, 0x40
test edi, edi
je 0x427894
call dword [0x4651b0]
lea ecx, [ebp - 0x210]
push ecx
push eax
push edi
push str.VNLAddEventLogFile:_Can_not_create_service_event_log_key:_0x_08x_0x_08x__S
jmp 0x427cba
lea edx, [ebp - 0x210]
push edx
push str.VNLAddEventLogFile:_created_service_event_log_key:__S
push 0x10
call fcn.004343f0
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4278b0
mov ecx, dword [ebp - 0x214]
mov edi, dword [0x465094]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 2
push 0
push str.EventMessageFile
push ecx
call edi
mov esi, eax
test esi, esi
je 0x42791a
call dword [0x4651b0]
push eax
push esi
push str.VNLAddEventLogFile:_Can_not_write_EventMessageFile:_0x_08x_0x_08x
push 1
call fcn.004343f0
mov edx, dword [ebp - 0x214]
add esp, 0x10
push edx
call dword [0x4650d0]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
push str.VNLAddEventLogFile:_created_eventmessagefile_key
push 0x10
call fcn.004343f0
mov ecx, dword [ebp - 0x214]
add esp, 8
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push str.TypesSupported
push ecx
call edi
mov esi, eax
test esi, esi
je 0x42797e
call dword [0x4651b0]
push eax
push esi
push str.VNLAddEventLogFile:_Can_not_write_TypesSupported:_0x_08x_0x_08x
push 1
call fcn.004343f0
mov edx, dword [ebp - 0x214]
add esp, 0x10
push edx
call dword [0x4650d0]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
push str.VNLAddEventLogFile:_created_typessupported_key
push 0x10
call fcn.004343f0
mov eax, dword [ebp - 0x214]
add esp, 8
push eax
call dword [0x4650d0]
call fcn.00412ab0
test eax, eax
jne 0x427c87
mov edi, dword [ebp - 0x218]
push edi
push str.SYSTEMCurrentControlSetServicesEventLog
push 0x46c138
lea ecx, [ebp - 0x210]
push 0x105
push ecx
call fcn.00457d45
add esp, 0x14
lea edx, [ebp - 0x214]
push edx
push 7
push 0
lea eax, [ebp - 0x210]
push eax
push 0x80000002
call dword [0x4650cc]
mov esi, eax
test esi, esi
je 0x427a02
call dword [0x4651b0]
push eax
push esi
push edi
push str.VNLAddEventLogFile:_Can_not_open_event_log__S_key:_0x_08x_0x_08x
jmp 0x427cba
push edi
push str.VNLAddEventLogFile:_opened_event_log__S_key
push 0x10
call fcn.004343f0
mov edx, dword [ebp - 0x214]
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push 0
push str.Sources
push edx
call dword [0x4650c4]
mov esi, eax
test esi, esi
je 0x427a70
call dword [0x4651b0]
cmp esi, 0xea
jne 0x427a5d
mov eax, dword [ebp - 0x21c]
push eax
push str.VNLAddEventLogFile:_got_length_of_sources_key:__d
push 0x10
call fcn.004343f0
add esp, 0xc
jmp 0x427a80
push eax
push esi
push str.VNLAddEventLogFile:_could_not_get_length_of_sources_key:_0x_08x_0x_08x
push 1
call fcn.004343f0
add esp, 0x10
jmp 0x427a80
push str.VNLAddEventLogFile:_got_length_of_sources_key
push 0x10
call fcn.004343f0
add esp, 8
nop
test ebx, ebx
je 0x427a8d
push ebx
call fcn.00403d53
add esp, 4
mov eax, dword [ebp - 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x427a96
mov ecx, dword [ebp - 0x21c]
sub eax, edx
sar eax, 1
lea edi, [ecx + eax*2 + 2]
push edi
call fcn.00405d04
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x427bd8
push edi
push 0
push ebx
call fcn.00405300
mov eax, dword [ebp - 0x214]
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push ebx
push 0
push 0
push str.Sources
push eax
call dword [0x4650c4]
mov esi, eax
test esi, esi
je 0x427b66
cmp esi, 0xea
jne 0x427bbc
mov ecx, dword [ebp - 0x21c]
push ecx
push str.VNLAddEventLogFile:_got_length_of_sources_key:__d
push 0x10
call fcn.004343f0
mov eax, dword [ebp - 0x224]
inc eax
add esp, 0xc
cmp eax, 5
mov dword [ebp - 0x224], eax
jl 0x427a80
mov eax, dword [ebp - 0x218]
push eax
push str.VNLAddEventLogFile:_Can_not_query__S_sources_key
push 1
call fcn.004343f0
push ebx
call fcn.00403d53
mov ecx, dword [ebp - 0x214]
add esp, 0x10
push ecx
call dword [0x4650d0]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
push str.VNLAddEventLogFile:_read_sources_key
push 0x10
call fcn.004343f0
add esp, 8
cmp word [ebx], 0
mov esi, ebx
je 0x427c07
mov edx, dword [ebp - 0x220]
push edx
push esi
call fcn.00458117
add esp, 8
test eax, eax
je 0x427c07
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x427ba0
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x427b81
jmp 0x427c0d
call dword [0x4651b0]
push eax
push esi
push str.VNLAddEventLogFile:_could_not_get_length_of_sources_key:_0x_08x_0x_08x
push 1
call fcn.004343f0
add esp, 0x10
jmp 0x427b2a
push str.VNLAddEventLogFile:_memory_allocation_failed
push 1
call fcn.004343f0
mov edx, dword [ebp - 0x214]
add esp, 8
push edx
call dword [0x4650d0]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
cmp word [esi], 0
jne 0x427c62
mov eax, dword [ebp - 0x220]
sub esi, eax
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
test cx, cx
jne 0x427c15
mov eax, dword [ebp - 0x214]
push edi
push ebx
push 7
push 0
push str.Sources
push eax
call dword [0x465094]
mov esi, eax
test esi, esi
je 0x427c5b
call dword [0x4651b0]
push eax
push esi
push str.VNLAddEventLogFile:_could_not_store_sources_key:_0x_08x_0x_08x
push 1
call fcn.004343f0
add esp, 0x10
jmp 0x427c71
push str.VNLAddEventLogFile:_updated_sources_key
jmp 0x427c67
push str.VNLAddEventLogFile:_source_already_present_in_registry
push 0x10
call fcn.004343f0
add esp, 8
push ebx
call fcn.00403d53
mov ecx, dword [ebp - 0x214]
add esp, 4
push ecx
call dword [0x4650d0]
push str.VNLAddEventLogFile:_returning
push 0x10
call fcn.004343f0
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x218]
push eax
push esi
push edi
push str.VNLAddEventLogFile:_Missing_parameters_to_AddEventLogFile:_0x_08x_0x_08x_0x_08x
push 1
call fcn.004343f0
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040506e
mov esp, ebp
pop ebp
ret