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

Disassembly:
push 0xffffffffffffffff
push 0x41bda3
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x422158]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x422158]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
lea eax, [esp + 0x24]
push eax
xor esi, esi
lea ecx, [esp + 0x18]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push 0x41f6b8
push 0x80000001
mov dword [esp + 0x264], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4074cc
or edi, 0xffffffff
mov dword [esp + 0x240], edi
mov eax, dword [esp + 0x248]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x4074c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40765c
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
push esi
push eax
mov dword [esp + 0x38], 0x104
call ebp
or edi, 0xffffffff
cmp eax, 0x103
je 0x4075dd
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
add esi, 1
call fcn.00401790
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x244], 1
call fcn.00407690
mov eax, dword [eax]
test eax, eax
jne 0x40752b
mov eax, edi
jmp 0x407551
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
jge 0x407539
mov eax, edi
jmp 0x407551
push eax
push ecx
call fcn.0040b4d9
add esp, 8
test eax, eax
jne 0x40754b
mov eax, edi
jmp 0x407551
sub eax, dword [esp + 0x1c]
sar eax, 1
test eax, eax
mov eax, dword [esp + 0x20]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407575
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x407589
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov byte [esp + 0x240], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0x104
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4075b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
push esi
push eax
call ebp
cmp eax, 0x103
jne 0x4074fe
mov esi, dword [esp + 0x248]
mov eax, dword [esi - 0xc]
mov edx, dword [esp + 0x14]
lea ecx, [eax + eax]
push ecx
push esi
push 1
push 0
push str.pwPresnenter
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40762c
lea eax, [esi - 0x10]
mov dword [esp + 0x240], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x4074c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40765c
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov dword [esp + 0x240], edi
lea edx, [esi + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x407657
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, 1
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0040a3a1
add esp, 0x230
ret 4