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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4a39f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push 0x208
lea ecx, [ebp - 0x20e]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x21c], edi
mov word [ebp - 0x210], ax
call fcn.00405300
add esp, 0xc
test ebx, ebx
je 0x42811f
test esi, esi
je 0x42811f
push esi
push ebx
push str.VNLRemoveEventLogFile:_instructed_to_remove:__S__S
push 0x20
call fcn.004343f0
push ebx
push esi
push str.SYSTEMCurrentControlSetServicesEventLog
push str._s_s_s
lea edx, [ebp - 0x210]
push 0x105
push edx
call fcn.00457d45
push 1
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.00416cd0
add esp, 0x34
test eax, eax
jne 0x427d8f
lea ecx, [ebp - 0x210]
push ecx
push str.VNLRemoveEventLogFile:_could_not_delete_service_key:__S
push 1
jmp 0x427d9d
lea edx, [ebp - 0x210]
push edx
push str.VNLRemoveEventLogFile:_deleted_key:__S
push 0x10
call fcn.004343f0
add esp, 0xc
call fcn.00412ab0
test eax, eax
jne 0x427fe2
push esi
push str.SYSTEMCurrentControlSetServicesEventLog
push 0x46c138
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00457d45
add esp, 0x14
lea ecx, [ebp - 0x218]
push ecx
push 7
push 0
lea edx, [ebp - 0x210]
push edx
push 0x80000002
call dword [0x4650cc]
mov ebx, eax
test ebx, ebx
je 0x427e26
call dword [0x4651b0]
lea ecx, [ebp - 0x210]
push ecx
push eax
push ebx
push esi
push str.VNLRemoveEventLogFile:_could_not_open__S_key:_0x_08x_0x_08x__S
push 1
call fcn.004343f0
add esp, 0x18
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 esi
push str.VNLRemoveEventLogFile:_opened__S_key
push 0x10
call fcn.004343f0
mov eax, dword [ebp - 0x218]
mov ebx, dword [0x4650c4]
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
push 0
push 0
push 0
push str.Sources
push eax
call ebx
mov esi, eax
test esi, esi
je 0x427e96
call dword [0x4651b0]
cmp esi, 0xea
jne 0x427e83
mov ecx, dword [ebp - 0x214]
push ecx
push str.VNLRemoveEventLogFile:_got_length_of_sources_key:__d
push 0x10
call fcn.004343f0
add esp, 0xc
jmp 0x427ea5
push eax
push esi
push str.VNLRemoveEventLogFile:_could_not_get_length_of_sources_key:_0x_08x_0x_08x
push 1
call fcn.004343f0
add esp, 0x10
jmp 0x427ea5
push str.VNLRemoveEventLogFile:_got_length_of_sources_key
push 0x10
call fcn.004343f0
add esp, 8
test edi, edi
je 0x427eb2
push edi
call fcn.00403d53
add esp, 4
mov esi, dword [ebp - 0x214]
push esi
call fcn.00405d04
mov edi, eax
add esp, 4
test edi, edi
je 0x428023
push esi
push 0
push edi
call fcn.00405300
mov eax, dword [ebp - 0x218]
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
push edi
push 0
push 0
push str.Sources
push eax
call ebx
mov esi, eax
test esi, esi
je 0x427f6b
cmp esi, 0xea
jne 0x428007
mov ecx, dword [ebp - 0x214]
push ecx
push str.VNLRemoveEventLogFile:_got_length_of_sources_key:__d
push 0x10
call fcn.004343f0
mov eax, dword [ebp - 0x21c]
inc eax
add esp, 0xc
cmp eax, 5
mov dword [ebp - 0x21c], eax
jl 0x427ea5
call dword [0x4651b0]
push eax
push str.key_read_had_issues:_0x_08x
push 1
call fcn.004343f0
push edi
call fcn.00403d53
mov eax, dword [ebp - 0x218]
add esp, 0x10
push eax
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.VNLRemoveEventLogFile:_read_sources_key
push 0x10
call fcn.004343f0
add esp, 8
cmp word [edi], 0
mov esi, edi
je 0x428052
mov ecx, dword [ebp - 0x220]
push ecx
push esi
call fcn.00458117
add esp, 8
test eax, eax
je 0x428052
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x427fa3
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x427f86
push str.VNLRemoveEventLogFile:_service_not_found_in_sources_key
push 4
call fcn.004343f0
add esp, 8
push edi
call fcn.00403d53
mov ecx, dword [ebp - 0x218]
add esp, 4
push ecx
call dword [0x4650d0]
push str.VNLRemoveEventLogFile:_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
call dword [0x4651b0]
push eax
push esi
push str.VNLRemoveEventLogFile:_could_not_get_length_of_sources_key:_0x_08x_0x_08x
push 1
call fcn.004343f0
add esp, 0x10
jmp 0x427f2f
mov edx, dword [ebp - 0x218]
push edx
call dword [0x4650d0]
push str.VNLRemoveEventLogFile:_memory_allocation_failed
push 1
call fcn.004343f0
add esp, 8
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
je 0x427fbd
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x428061
sub eax, edx
mov edx, dword [ebp - 0x214]
sar eax, 1
lea eax, [esi + eax*2 + 2]
sub edx, eax
add edx, edi
push edx
push eax
push esi
call fcn.004072f0
mov eax, dword [ebp - 0x220]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x428092
sub eax, edx
mov edx, dword [ebp - 0x218]
sar eax, 1
add eax, eax
mov ecx, 0xfffffffe
sub ecx, eax
mov eax, dword [ebp - 0x214]
add eax, ecx
push eax
push edi
push 7
push 0
push str.Sources
push edx
mov dword [ebp - 0x214], eax
call dword [0x465094]
mov esi, eax
test esi, esi
je 0x428113
call dword [0x4651b0]
push eax
push esi
push str.VNLRemoveEventLogFile:_key_set_had_issues:_0x_08x_0x_08x
push 1
call fcn.004343f0
push edi
call fcn.00403d53
mov eax, dword [ebp - 0x218]
add esp, 0x14
push eax
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.VNLRemoveEventLogFile:_sources_key_written
push 0x10
jmp 0x427fc4
push esi
push ebx
push str.VNLRemoveEventLogFile:_got_invalid_parameters:_0x_08x_0x_08x
push 1
call fcn.004343f0
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040506e
mov esp, ebp
pop ebp
ret