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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x51df94]
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x51df98]
mov dword [ebp - 0x18], ecx
mov edx, dword [0x51df9c]
mov dword [ebp - 0x14], edx
mov ax, word [0x51dfa0]
mov word [ebp - 0x10], ax
mov cl, byte [0x51dfa2]
mov byte [ebp - 0xe], cl
mov dword [ebp - 0xb0], 0x378
mov dword [ebp - 0xac], 0x278
mov dword [ebp - 0xa8], 0x3bc
cmp dword [0x42a164], 0
jne 0x40cd4c
call fcn.0040d268
cmp eax, 0xffffffff
jne 0x40cd4c
or eax, 0xffffffff
jmp 0x40cf8c
cmp dword [ebp + 8], 0
je 0x40cd7f
call fcn.004185ab
push 0x51dfa4
push 0x2b
call fcn.004037fc
mov dword [ebp - 0xa0], eax
call fcn.004185c0
cmp dword [ebp - 0xa0], 0xffffffff
jne 0x40cd7f
or eax, 0xffffffff
jmp 0x40cf8c
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x51dfa8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40cdb5
or eax, 0xffffffff
jmp 0x40cf8c
mov dword [ebp - 0xa4], 0
jmp 0x40cdd0
mov ecx, dword [ebp - 0xa4]
add ecx, 1
mov dword [ebp - 0xa4], ecx
cmp dword [ebp - 0xa4], 3
jge 0x40ce30
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 0x40ce06
jmp 0x40ce30
lea eax, [ebp - 0x1c]
push eax
call fcn.0041bdf0
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 0x40cdc1
mov dword [ebp - 0xb4], 1
push 4
lea edx, [ebp - 0xb4]
push edx
push 4
push 0x51dfe0
push 0x51dfe8
call fcn.004058f6
add esp, 0x14
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0xffffffff
jne 0x40ce78
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x40cf8c
mov dword [ebp - 0xb4], 0xffff
push 4
lea ecx, [ebp - 0xb4]
push ecx
push 4
push 0x51e020
push 0x51e02c
call fcn.004058f6
add esp, 0x14
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0xffffffff
jne 0x40cec0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x40cf8c
push 0x80
push 0x51e064
lea eax, [ebp - 0x9c]
push eax
call fcn.0041cf65
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 0x51e08c
call fcn.004058f6
add esp, 0x14
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0xffffffff
jne 0x40cf20
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x40cf8c
push 0x80
push 0x51e0c4
lea ecx, [ebp - 0x9c]
push ecx
call fcn.0041cf65
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 0x51e0f4
call fcn.004058f6
add esp, 0x14
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0xffffffff
jne 0x40cf80
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x40cf8c
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret