Function at 0x100282a
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
push 0x2001f
push 0
mov ebx, 0x1001200
push ebx
mov edi, 0x80000002
push edi
call esi
test eax, eax
je 0x100285d
xor al, al
jmp 0x1002ad2
xor eax, eax
movzx ecx, byte [eax + 0x100602c]
mov edx, dword [ebp + 8]
mov cl, byte [ecx + edx]
mov byte [ebp + eax - 0x38], cl
inc eax
cmp eax, 0x10
jl 0x100285f
lea eax, [ebp + 8]
push eax
push 0x2001f
push 0
push ebx
push edi
call esi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x10028c2
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x100126c
push dword [ebp + 8]
call esi
push 0x1001264
push dword [ebp + 8]
call esi
push 0x1001260
push dword [ebp + 8]
call esi
push 0x100125c
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call edi
and byte [ebp - 0x10], 0
push 0x10
lea eax, [ebp - 0x28]
push eax
call fcn.010025ef
xor ebx, ebx
lea ecx, [ebp - 0x18]
xor esi, esi
movzx eax, byte [ebp + esi - 0x38]
mov edx, eax
shr edx, 4
mov dl, byte [edx + str.0123456789abcdef]
and eax, 0xf
mov al, byte [eax + str.0123456789abcdef]
mov byte [ecx], dl
inc ecx
mov byte [ecx], al
inc ecx
inc esi
cmp esi, 4
jl 0x10028d8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x100125c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1002ac9
push 6
lea eax, [ebp - 0x28]
push eax
push 3
push ebx
push 0x1001298
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call edi
lea esi, [ebp - 0x18]
mov dword [ebp + 8], ebx
push 0x10
lea eax, [ebp - 0x28]
push eax
call fcn.010025ef
mov eax, dword [ebp + 8]
movzx eax, byte [ebp + eax - 0x34]
mov ecx, eax
shr ecx, 4
mov cl, byte [ecx + str.0123456789abcdef]
and eax, 0xf
mov al, byte [eax + str.0123456789abcdef]
mov byte [esi], cl
inc esi
mov byte [esi], al
inc esi
inc dword [ebp + 8]
cmp dword [ebp + 8], 4
jl 0x1002949
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x1001264
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10029c1
push 0x10
lea eax, [ebp - 0x28]
push eax
push 3
push ebx
push 0x100128c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call edi
push 0x10
lea eax, [ebp - 0x28]
push eax
call fcn.010025ef
xor esi, esi
lea ecx, [ebp - 0x18]
movzx eax, byte [ebp + esi - 0x30]
mov edx, eax
shr edx, 4
mov dl, byte [edx + str.0123456789abcdef]
and eax, 0xf
mov al, byte [eax + str.0123456789abcdef]
mov byte [ecx], dl
inc ecx
mov byte [ecx], al
inc ecx
inc esi
cmp esi, 4
jl 0x10029d1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x1001260
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1002a38
push 9
lea eax, [ebp - 0x28]
push eax
push 3
push ebx
push 0x100127c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call edi
push 8
lea eax, [ebp - 0x38]
push eax
call fcn.010025ef
push 0x10
lea eax, [ebp - 0x28]
push eax
lea esi, [ebp - 0x18]
call fcn.010025ef
xor ecx, ecx
movzx eax, byte [ebp + ecx - 0x2c]
mov edx, eax
shr edx, 4
mov dl, byte [edx + str.0123456789abcdef]
and eax, 0xf
mov al, byte [eax + str.0123456789abcdef]
mov byte [esi], dl
inc esi
mov byte [esi], al
inc esi
inc ecx
cmp ecx, 4
jl 0x1002a53
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x100126c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1002ac5
push 0x10
lea eax, [ebp - 0x38]
push eax
call fcn.010025ef
push 0x40
lea eax, [ebp - 0x28]
push eax
push 3
push ebx
push 0x1001274
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call edi
mov bl, 1
jmp 0x1002acb
xor bl, bl
push dword [ebp - 8]
call edi
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 4