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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x6dd8d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x10c], 0x5a9af8
mov ebx, dword [ebp - 0x10c]
mov edi, dword [ebp - 0x10c]
add edi, 0x14
cmp byte [ebx + 0x13], 0
je 0x40bf75
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 - 0x10c], ecx
test esi, esi
je 0x40bf6c
sub edi, ecx
lea esp, [esp]
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 - 0x10c]
cmp edx, dword [ebx + 0xf]
jb 0x40bf50
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0x124]
push eax
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40bf9f
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x124]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
mov dword [ebp - 0x10c], 0x5a9b50
mov esi, dword [ebp - 0x10c]
mov edi, dword [ebp - 0x10c]
add edi, 0x14
mov dword [ebp - 0x110], esi
cmp byte [esi + 0x13], 0
je 0x40c02c
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 - 0x10c], ecx
test esi, esi
mov esi, dword [ebp - 0x110]
je 0x40c023
mov ebx, eax
sub edi, ebx
lea ebx, [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 0x40c000
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10c]
mov eax, dword [esi + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0x118]
push eax
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40c056
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x118]
call ebx
mov dword [ebp - 0x110], 0x5a9ba8
mov esi, dword [ebp - 0x110]
mov edi, dword [ebp - 0x110]
add edi, 0x14
mov dword [ebp - 0x10c], esi
cmp byte [esi + 0x13], 0
je 0x40c0dc
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 - 0x110], ecx
test esi, esi
mov esi, dword [ebp - 0x10c]
je 0x40c0d3
mov ebx, eax
sub edi, ebx
jmp 0x40c0b0
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 0x40c0b0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x110]
mov eax, dword [esi + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0x11c]
push eax
push 1
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c10a
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x11c]
call ebx
mov dword [ebp - 0x110], 0x5a9c00
mov esi, dword [ebp - 0x110]
mov edi, dword [ebp - 0x110]
add edi, 0x14
mov dword [ebp - 0x10c], esi
cmp byte [esi + 0x13], 0
je 0x40c18c
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 - 0x110], ecx
test esi, esi
mov esi, dword [ebp - 0x10c]
je 0x40c183
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 0x40c160
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x110]
mov eax, dword [esi + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0x114]
push eax
push 1
push 0
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c1ba
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x114]
call ebx
mov dword [ebp - 0x110], 0x5a9c58
mov esi, dword [ebp - 0x110]
mov edi, dword [ebp - 0x110]
add edi, 0x14
mov dword [ebp - 0x10c], esi
cmp byte [esi + 0x13], 0
je 0x40c23c
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 - 0x110], ecx
test esi, esi
mov esi, dword [ebp - 0x10c]
je 0x40c233
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 0x40c210
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x110]
mov eax, dword [esi + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0x120]
push eax
push 0xf013f
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c26d
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x120]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059978a
mov esp, ebp
pop ebp
ret