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

Disassembly:
sub esp, 0x120
mov eax, dword [0x10030a98]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp + 0x10], 0x1001d628
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
add esi, 0x14
cmp byte [ebx + 0x13], 0
je 0x100054bc
mov eax, dword [ebx + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov ebp, dword [ebx + 0xf]
add esp, 4
xor edx, edx
mov edi, eax
test ebp, ebp
je 0x100054b6
sub esi, edi
nop
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
cmp edx, ebp
jb 0x100054a0
mov byte [edi + ebp], 0
mov esi, edi
lea eax, [esp + 0x14]
push eax
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x100054e2
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x18]
call ebx
push dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov dword [esp + 0x10], 0x1001d680
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
add esi, 0x14
cmp byte [ebp + 0x13], 0
je 0x10005554
mov eax, dword [ebp + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov ebx, eax
add esp, 4
mov eax, dword [ebp + 0xf]
xor edx, edx
mov dword [esp + 0x10], eax
test eax, eax
je 0x10005548
sub esi, ebx
mov edi, eax
mov eax, edx
lea ecx, [edx + ebx]
and eax, 7
inc edx
mov al, byte [eax + ebp + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
cmp edx, edi
jb 0x10005528
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov byte [eax + ebx], 0
mov esi, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [esp + 0x18]
push eax
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10005574
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x1c]
call ebx
push dword [esp + 0x18]
call edi
mov dword [esp + 0x10], 0x1001d6d8
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
add esi, 0x14
cmp byte [ebp + 0x13], 0
je 0x100055da
mov eax, dword [ebp + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov ebx, eax
add esp, 4
mov eax, dword [ebp + 0xf]
xor edx, edx
mov dword [esp + 0x10], eax
test eax, eax
je 0x100055d4
sub esi, ebx
mov edi, eax
mov eax, edx
lea ecx, [edx + ebx]
and eax, 7
inc edx
mov al, byte [eax + ebp + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
cmp edx, edi
jb 0x100055b4
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov byte [eax + ebx], 0
mov esi, ebx
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10005602
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [esp + 0x1c]
call edi
mov dword [esp + 0x10], 0x1001d730
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
add esi, 0x14
cmp byte [ebp + 0x13], 0
je 0x10005668
mov eax, dword [ebp + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov ebx, eax
add esp, 4
mov eax, dword [ebp + 0xf]
xor edx, edx
mov dword [esp + 0x10], eax
test eax, eax
je 0x10005662
sub esi, ebx
mov edi, eax
mov eax, edx
lea ecx, [edx + ebx]
and eax, 7
inc edx
mov al, byte [eax + ebp + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
cmp edx, edi
jb 0x10005642
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov byte [eax + ebx], 0
mov esi, ebx
lea eax, [esp + 0x20]
push eax
push 1
push 0
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10005690
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [esp + 0x20]
call edi
mov dword [esp + 0x10], 0x1001d788
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
add esi, 0x14
cmp byte [ebp + 0x13], 0
je 0x100056f6
mov eax, dword [ebp + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov ebx, eax
add esp, 4
mov eax, dword [ebp + 0xf]
xor edx, edx
mov dword [esp + 0x10], eax
test eax, eax
je 0x100056f0
sub esi, ebx
mov edi, eax
mov eax, edx
lea ecx, [edx + ebx]
and eax, 7
inc edx
mov al, byte [eax + ebp + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
cmp edx, edi
jb 0x100056d0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov byte [eax + ebx], 0
mov esi, ebx
lea eax, [esp + 0x24]
push eax
push 0xf013f
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10005721
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [esp + 0x24]
call edi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100194a0
add esp, 0x120
ret