Function at 0x40afb0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
setne al
lea ecx, [esp + 8]
push esi
add eax, 0x80000001
push ecx
push 0x414410
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x40affd
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret

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

Disassembly:
sub esp, 0x614
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [esp + 0x120]
push 0x104
push ecx
push eax
call fcn.0040b010
mov dx, word [0x43244c]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2a]
mov word [esp + 0x28], dx
add esp, 0xc
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
or ecx, 0xffffffff
mov edi, 0x41b6bc
xor eax, eax
lea ebx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov word [esp + 0x224], dx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.___bg
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [esp + 0x62c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xff
lea edi, [esp + 0x226]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
test ebp, ebp
setne al
lea edx, [esp + 0x10]
add eax, 0x80000001
push edx
push 0x414410
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [esp + 0x628]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x224]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push esi
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b1c4
lea ecx, [esp + 0x224]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.0040c0c5
add esp, 8
test eax, eax
je 0x40b1b4
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x614
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x614
ret