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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x66c240]
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], 0x58d550
mov ebx, dword [ebp - 0x10c]
mov edi, dword [ebp - 0x10c]
add edi, 0x14
cmp byte [ebx + 0x13], 0
je 0x42329c
mov esi, dword [ebx + 0xf]
lea eax, [esi + 1]
push eax
call fcn.00562163
mov edx, eax
xor eax, eax
mov dword [ebp - 0x10c], eax
pop ecx
test esi, esi
je 0x423293
sub edi, edx
lea ecx, [eax + edx]
and eax, 7
mov al, byte [eax + ebx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x10c]
inc eax
mov dword [ebp - 0x10c], eax
cmp eax, dword [ebx + 0xf]
jb 0x423272
mov eax, dword [ebx + 0xf]
mov edi, edx
mov byte [edx + eax], 0
lea eax, [ebp - 0x128]
push eax
push edi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4232c6
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x128]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov dword [ebp - 0x10c], 0x58d5a8
mov eax, dword [ebp - 0x10c]
mov ebx, dword [ebp - 0x10c]
add ebx, 0x14
mov dword [ebp - 0x110], eax
cmp byte [eax + 0x13], 0
je 0x42335a
mov esi, dword [eax + 0xf]
lea eax, [esi + 1]
push eax
call fcn.00562163
mov edx, dword [ebp - 0x110]
pop ecx
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x10c], eax
test esi, esi
je 0x423351
mov edi, ecx
sub ebx, edi
lea ecx, [eax + edi]
and eax, 7
mov al, byte [eax + edx + 7]
xor al, byte [ebx + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x10c]
inc eax
mov dword [ebp - 0x10c], eax
cmp eax, dword [edx + 0xf]
jb 0x423324
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x114]
mov eax, dword [edx + 0xf]
mov ebx, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0x124]
push eax
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x423384
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x124]
call edi
mov dword [ebp - 0x110], 0x58d5a8
mov eax, dword [ebp - 0x110]
mov ebx, dword [ebp - 0x110]
add ebx, 0x14
mov dword [ebp - 0x10c], eax
cmp byte [eax + 0x13], 0
je 0x423412
mov esi, dword [eax + 0xf]
lea eax, [esi + 1]
push eax
call fcn.00562163
mov edx, dword [ebp - 0x10c]
pop ecx
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], eax
test esi, esi
je 0x423409
mov edi, ecx
sub ebx, edi
lea ecx, [eax + edi]
and eax, 7
mov al, byte [eax + edx + 7]
xor al, byte [ebx + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x110]
inc eax
mov dword [ebp - 0x110], eax
cmp eax, dword [edx + 0xf]
jb 0x4233dc
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x114]
mov eax, dword [edx + 0xf]
mov ebx, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0x11c]
push eax
push 1
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x423440
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x11c]
call edi
mov dword [ebp - 0x110], 0x58d550
mov eax, dword [ebp - 0x110]
mov ebx, dword [ebp - 0x110]
add ebx, 0x14
mov dword [ebp - 0x10c], eax
cmp byte [eax + 0x13], 0
je 0x4234ce
mov esi, dword [eax + 0xf]
lea eax, [esi + 1]
push eax
call fcn.00562163
mov edx, dword [ebp - 0x10c]
pop ecx
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], eax
test esi, esi
je 0x4234c5
mov edi, ecx
sub ebx, edi
lea ecx, [eax + edi]
and eax, 7
mov al, byte [eax + edx + 7]
xor al, byte [ebx + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x110]
inc eax
mov dword [ebp - 0x110], eax
cmp eax, dword [edx + 0xf]
jb 0x423498
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x114]
mov eax, dword [edx + 0xf]
mov ebx, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0x120]
push eax
push 1
push 0
push ebx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4234fc
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x120]
call edi
mov dword [ebp - 0x110], 0x58d5a8
mov eax, dword [ebp - 0x110]
mov ebx, dword [ebp - 0x110]
add ebx, 0x14
mov dword [ebp - 0x10c], eax
cmp byte [eax + 0x13], 0
je 0x42358a
mov esi, dword [eax + 0xf]
lea eax, [esi + 1]
push eax
call fcn.00562163
mov edx, dword [ebp - 0x10c]
pop ecx
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], eax
test esi, esi
je 0x423581
mov edi, ecx
sub ebx, edi
lea ecx, [eax + edi]
and eax, 7
mov al, byte [eax + edx + 7]
xor al, byte [ebx + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x110]
inc eax
mov dword [ebp - 0x110], eax
cmp eax, dword [edx + 0xf]
jb 0x423554
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x114]
mov eax, dword [edx + 0xf]
mov ebx, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0x118]
push eax
push 0xf013f
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4235bb
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x118]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055dcf4
mov esp, ebp
pop ebp
ret