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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, 0x4dc25c
lea ecx, [ebp - 0x20]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov dx, word [eax + 0xc]
mov word [ecx + 0xc], dx
mov al, byte [eax + 0xe]
mov byte [ecx + 0xe], al
mov dword [ebp - 0x10], 0x378
mov dword [ebp - 0xc], 0x278
mov dword [ebp - 8], 0x3bc
cmp dword [0x43acf4], 0
jne 0x40e778
call fcn.0040ecd9
cmp eax, 0xffffffff
jne 0x40e778
mov eax, 0xffffffff
jmp 0x40e9f0
cmp dword [ebp + 8], 0
je 0x40e7b5
call fcn.00419745
push 0x4dc26c
push 0x2b
call fcn.00405af8
mov dword [ebp - 0xa4], eax
call fcn.0041975a
cmp dword [ebp - 0xa4], 0xffffffff
jne 0x40e7b5
mov eax, 0xffffffff
jmp 0x40e9f0
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xb0]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4dc270
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
je 0x40e7fd
mov eax, 0xffffffff
jmp 0x40e9f0
mov dword [ebp - 0xac], 0
jmp 0x40e812
inc dword [ebp - 0xac]
cmp dword [ebp - 0xac], 3
jge 0x40e87a
push 4
mov eax, dword [ebp - 0xac]
lea eax, [ebp + eax*4 - 0x10]
push eax
push 4
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xb0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
je 0x40e859
jmp 0x40e87a
lea eax, [ebp - 0x20]
push eax
call fcn.0041d0c4
add esp, 4
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
inc byte [ebp + eax - 0x21]
jmp 0x40e80c
mov dword [ebp - 4], 1
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0x4dc2a8
push 0x4dc2b0
call fcn.00407a18
add esp, 0x14
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0xffffffff
jne 0x40e8c5
mov eax, dword [ebp - 0xb0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x40e9f0
mov dword [ebp - 4], 0xffff
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0x4dc2e8
push 0x4dc2f4
call fcn.00407a18
add esp, 0x14
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0xffffffff
jne 0x40e910
mov eax, dword [ebp - 0xb0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x40e9f0
push pe_nt_image_headers32
push 0x4dc32c
lea eax, [ebp - 0xa0]
push eax
call fcn.0041da30
add esp, 0xc
mov dword [ebp - 4], 0x14
push 4
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0xa0]
push eax
push 0x4dc354
call fcn.00407a18
add esp, 0x14
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0xffffffff
jne 0x40e976
mov eax, dword [ebp - 0xb0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x40e9f0
push pe_nt_image_headers32
push 0x4dc38c
lea eax, [ebp - 0xa0]
push eax
call fcn.0041da30
add esp, 0xc
mov dword [ebp - 4], 3
push 4
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0xa0]
push eax
push 0x4dc3bc
call fcn.00407a18
add esp, 0x14
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0xffffffff
jne 0x40e9dc
mov eax, dword [ebp - 0xb0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x40e9f0
mov eax, dword [ebp - 0xb0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40e9f0
pop edi
pop esi
pop ebx
leave
ret