Function at 0x40b450
Capabilities:
Delete registry value
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 8], 0x58f9f8
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 8]
add edi, 0x14
cmp byte [ebx + 0x13], 0
je 0x40b4c5
mov esi, dword [ebx + 0xf]
lea eax, [esi + 1]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov ecx, eax
xor edx, edx
mov dword [ebp - 8], ecx
test esi, esi
je 0x40b4bc
sub edi, ecx
mov eax, edx
add ecx, edx
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov ecx, dword [ebp - 8]
cmp edx, dword [ebx + 0xf]
jb 0x40b4a3
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0x14]
push eax
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40b4e9
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
mov dword [ebp - 8], 0x58fa50
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 8]
add edi, 0x14
mov dword [ebp - 4], esi
cmp byte [esi + 0x13], 0
je 0x40b559
mov esi, dword [esi + 0xf]
lea eax, [esi + 1]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov ecx, eax
xor edx, edx
mov dword [ebp - 8], ecx
test esi, esi
mov esi, dword [ebp - 4]
je 0x40b550
mov ebx, eax
sub edi, ebx
nop
mov eax, edx
lea ecx, [edx + ebx]
and eax, 7
inc edx
mov al, byte [eax + esi + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
cmp edx, dword [esi + 0xf]
jb 0x40b530
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, dword [esi + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0x10]
push eax
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40b57d
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x10]
call ebx
mov dword [ebp - 4], 0x58fa50
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 4]
add edi, 0x14
mov dword [ebp - 8], esi
cmp byte [esi + 0x13], 0
je 0x40b5e9
mov esi, dword [esi + 0xf]
lea eax, [esi + 1]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov ecx, eax
xor edx, edx
mov dword [ebp - 4], ecx
test esi, esi
mov esi, dword [ebp - 8]
je 0x40b5e0
mov ebx, eax
sub edi, ebx
lea ecx, [ecx]
mov eax, edx
lea ecx, [edx + ebx]
and eax, 7
inc edx
mov al, byte [eax + esi + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
cmp edx, dword [esi + 0xf]
jb 0x40b5c0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b611
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x18]
call ebx
mov dword [ebp - 4], 0x58f9f8
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 4]
add edi, 0x14
mov dword [ebp - 8], esi
cmp byte [esi + 0x13], 0
je 0x40b67a
mov esi, dword [esi + 0xf]
lea eax, [esi + 1]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov ecx, eax
xor edx, edx
mov dword [ebp - 4], ecx
test esi, esi
mov esi, dword [ebp - 8]
je 0x40b671
mov ebx, eax
sub edi, ebx
mov eax, edx
lea ecx, [edx + ebx]
and eax, 7
inc edx
mov al, byte [eax + esi + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
cmp edx, dword [esi + 0xf]
jb 0x40b651
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b6a2
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0xc]
call ebx
mov dword [ebp - 4], 0x58fa50
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 4]
add edi, 0x14
mov dword [ebp - 8], esi
cmp byte [esi + 0x13], 0
je 0x40b70b
mov esi, dword [esi + 0xf]
lea eax, [esi + 1]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov ecx, eax
xor edx, edx
mov dword [ebp - 4], ecx
test esi, esi
mov esi, dword [ebp - 8]
je 0x40b702
mov ebx, eax
sub edi, ebx
mov eax, edx
lea ecx, [edx + ebx]
and eax, 7
inc edx
mov al, byte [eax + esi + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
cmp edx, dword [esi + 0xf]
jb 0x40b6e2
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0x1c]
push eax
push 0xf013f
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b736
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x1c]
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret