Function at 0x4127d0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x14c
mov eax, dword [0x45c5d0]
xor eax, esp
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x150]
push ebx
push ebp
mov ebp, dword [esp + 0x15c]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea ecx, [esp + 0x10]
push ecx
push 0x20000
xor ebx, ebx
push ebx
push 0x450ef8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ebx
call esi
test eax, eax
jne 0x412a16
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push ebx
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push 4
push 4
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
je 0x41285d
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x412a16
xor eax, eax
push 3
push 2
push 0xf003f
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
push str.Everyone
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameA]
lea ecx, [esp + 0x1c]
push ecx
push ebx
lea edx, [esp + 0x30]
push edx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x4128c8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x412a10
mov edx, dword [esp + 0x1c]
push ebx
push edx
push ebx
push ebx
push 4
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
test eax, eax
je 0x4128ef
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x412a0b
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push ebx
push 0x450ef8
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x412938
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push ebx
push edx
push ebx
push ebx
push 4
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x412a10
push 0x103
lea edx, [esp + 0x4d]
push ebx
push edx
mov byte [esp + 0x54], bl
call fcn.00434d10
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x4c]
push ecx
push ebx
push ebx
push esi
push edx
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4129ce
lea ecx, [esp + 0x48]
mov eax, ebp
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4129a0
cmp dl, bl
je 0x41299c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4129a0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x412980
xor eax, eax
jmp 0x4129a5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4129ce
mov eax, dword [esp + 0x10]
push eax
call edi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ebx
push ecx
push ebx
push ebx
push 4
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov eax, dword [esp + 0x14]
push eax
jmp 0x412a10
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4129d3
mov ecx, dword [esp + 0x10]
sub eax, edx
push eax
push ebp
push 1
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push ebx
push edx
push ebx
push ebx
push 4
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043164a
add esp, 0x14c
ret 8