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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x521dec]
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x521df0]
mov dword [ebp - 0x18], ecx
mov edx, dword [0x521df4]
mov dword [ebp - 0x14], edx
mov ax, word [0x521df8]
mov word [ebp - 0x10], ax
mov cl, byte [0x521dfa]
mov byte [ebp - 0xe], cl
mov dword [ebp - 0xb0], 0x378
mov dword [ebp - 0xac], 0x278
mov dword [ebp - 0xa8], 0x3bc
cmp dword [0x42dfbc], 0
jne 0x40f6bc
call fcn.0040fbd8
cmp eax, 0xffffffff
jne 0x40f6bc
or eax, 0xffffffff
jmp 0x40f8fc
cmp dword [ebp + 8], 0
je 0x40f6ef
call fcn.0041af1b
push 0x521dfc
push 0x2b
call fcn.0040616c
mov dword [ebp - 0xa0], eax
call fcn.0041af30
cmp dword [ebp - 0xa0], 0xffffffff
jne 0x40f6ef
or eax, 0xffffffff
jmp 0x40f8fc
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x521e00
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40f725
or eax, 0xffffffff
jmp 0x40f8fc
mov dword [ebp - 0xa4], 0
jmp 0x40f740
mov ecx, dword [ebp - 0xa4]
add ecx, 1
mov dword [ebp - 0xa4], ecx
cmp dword [ebp - 0xa4], 3
jge 0x40f7a0
push 4
mov edx, dword [ebp - 0xa4]
lea eax, [ebp + edx*4 - 0xb0]
push eax
push 4
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40f776
jmp 0x40f7a0
lea eax, [ebp - 0x1c]
push eax
call fcn.0041e7b0
add esp, 4
lea ecx, [ebp + eax - 0x1d]
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0xb8]
mov al, byte [edx]
add al, 1
mov ecx, dword [ebp - 0xb8]
mov byte [ecx], al
jmp 0x40f731
mov dword [ebp - 0xb4], 1
push 4
lea edx, [ebp - 0xb4]
push edx
push 4
push 0x521e38
push 0x521e40
call fcn.00408266
add esp, 0x14
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0xffffffff
jne 0x40f7e8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x40f8fc
mov dword [ebp - 0xb4], 0xffff
push 4
lea ecx, [ebp - 0xb4]
push ecx
push 4
push 0x521e78
push 0x521e84
call fcn.00408266
add esp, 0x14
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0xffffffff
jne 0x40f830
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x40f8fc
push 0x80
push 0x521ebc
lea eax, [ebp - 0x9c]
push eax
call fcn.0041f84b
add esp, 0xc
mov dword [ebp - 0xb4], 0x14
push 4
lea ecx, [ebp - 0xb4]
push ecx
push 4
lea edx, [ebp - 0x9c]
push edx
push 0x521ee4
call fcn.00408266
add esp, 0x14
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0xffffffff
jne 0x40f890
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x40f8fc
push 0x80
push 0x521f1c
lea ecx, [ebp - 0x9c]
push ecx
call fcn.0041f84b
add esp, 0xc
mov dword [ebp - 0xb4], 3
push 4
lea edx, [ebp - 0xb4]
push edx
push 4
lea eax, [ebp - 0x9c]
push eax
push 0x521f4c
call fcn.00408266
add esp, 0x14
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0xffffffff
jne 0x40f8f0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x40f8fc
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret