Function at 0x100731d
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x1011360]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x130], eax
mov eax, dword [section..data]
xor ebx, ebx
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x118], ebx
mov byte [ebp - 0x119], bl
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x100735d
sub eax, ecx
sar eax, 1
mov ecx, eax
mov eax, edi
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
cmp si, bx
jne 0x1007372
sub eax, edx
sar eax, 1
lea eax, [eax + ecx + 1]
push 0x10040b0
push edi
mov dword [ebp - 0x124], eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10073f8
mov esi, dword [ebp - 0x130]
add dword [ebp - 0x124], 0xb
xor eax, eax
mov dword [ebp - 0x114], ebx
lea edi, [ebp - 0x110]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 4
add esi, 0x18
pop ecx
lea edi, [ebp - 0x114]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
mov byte [ebp - 0x119], 1
jne 0x10073f8
cmp dword [ebp + 8], 1
jne 0x10073f8
mov esi, dword [sym.imp.msvcrt.dll_wprintf]
push 0x1004048
call esi
mov dword [esp], 0x1003fb8
call esi
pop ecx
push 0x57
pop eax
jmp 0x100783e
mov esi, dword [ebp - 0x124]
add esi, esi
push esi
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 0x128], edi
jne 0x100741f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100783e
push esi
push ebx
push edi
call sub.msvcrt.dll_memset
mov ecx, dword [section..data]
mov eax, ecx
add esp, 0xc
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
cmp si, bx
jne 0x1007435
sub eax, edx
sar eax, 1
mov esi, eax
lea eax, [esi + esi]
push eax
push ecx
push edi
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x108], eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp byte [ebp - 0x119], bl
je 0x100748e
mov eax, dword [ebp - 0x108]
add edi, eax
add dword [ebp - 0x124], 0xb
push 5
pop ecx
mov esi, 0x1003f9c
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x124]
mov edi, dword [ebp - 0x128]
mov eax, dword [ebp - 0x12c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1007497
sub eax, edx
sar eax, 1
add eax, eax
push eax
push dword [ebp - 0x12c]
lea eax, [edi + esi*2]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x100783e
cmp dword [ebp + 8], 1
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jne 0x1007756
mov edi, dword [ebp - 0x130]
mov eax, dword [edi + 0x30]
cmp eax, ebx
jbe 0x1007527
push 4
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x120]
push eax
push 4
push ebx
push dword [0x1011008]
push dword [ebp - 0x118]
call esi
test eax, eax
jne 0x1007828
mov eax, dword [edi + 0x38]
cmp eax, ebx
jbe 0x1007556
push 4
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x120]
push eax
push 4
push ebx
push dword [0x101100c]
push dword [ebp - 0x118]
call esi
test eax, eax
jne 0x1007828
mov eax, dword [edi + 0x34]
cmp eax, ebx
jbe 0x1007585
push 4
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x120]
push eax
push 4
push ebx
push dword [0x1011010]
push dword [ebp - 0x118]
call esi
test eax, eax
jne 0x1007828
mov eax, dword [edi + 0x44]
cmp eax, ebx
jbe 0x10075b4
push 4
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x120]
push eax
push 4
push ebx
push dword [0x1011014]
push dword [ebp - 0x118]
call esi
test eax, eax
jne 0x1007828
cmp byte [ebp - 0x119], bl
jne 0x10075eb
mov eax, dword [edi + 0x48]
cmp eax, ebx
jbe 0x10075eb
push 4
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x120]
push eax
push 4
push ebx
push dword [0x101101c]
push dword [ebp - 0x118]
call esi
test eax, eax
jne 0x1007828
mov eax, dword [edi + 0x40]
cmp eax, ebx
je 0x100761a
push 4
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x120]
push eax
push 4
push ebx
push dword [0x1011028]
push dword [ebp - 0x118]
call esi
test eax, eax
jne 0x1007828
mov eax, dword [edi + 0x3c]
cmp eax, ebx
je 0x1007649
push 4
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x120]
push eax
push 4
push ebx
push dword [0x1011044]
push dword [ebp - 0x118]
call esi
test eax, eax
jne 0x1007828
mov eax, dword [edi + 0x6c]
cmp eax, ebx
mov dword [ebp - 0x120], ebx
jbe 0x10076a8
add eax, edi
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
movzx eax, word [ebp - 0x10c]
inc eax
inc eax
push eax
push dword [ebp - 0x108]
push 1
push ebx
push dword [0x1011018]
push dword [ebp - 0x118]
call esi
cmp eax, ebx
mov dword [ebp - 0x128], eax
je 0x10076a8
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x128]
jmp 0x100783e
cmp byte [ebp - 0x119], bl
je 0x10077da
push 0xfe
lea eax, [ebp - 0x102]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
add edi, 0x18
push edi
push 0x7f
lea eax, [ebp - 0x102]
push eax
mov word [ebp - 0x104], 0x7b
call fcn.010072c2
lea eax, [ebp - 0x104]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10076ed
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 - 0x104], 0x7d
lea eax, [ebp - 0x104]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x100770e
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x104]
push eax
push 1
push ebx
push dword [0x1011030]
push dword [ebp - 0x118]
call esi
mov edi, eax
cmp edi, ebx
je 0x10077da
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x100783e
push dword [0x1011008]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x118]
call edi
push dword [0x101100c]
push dword [ebp - 0x118]
call edi
push dword [0x1011010]
push dword [ebp - 0x118]
call edi
push dword [0x1011014]
push dword [ebp - 0x118]
call edi
push dword [0x101101c]
push dword [ebp - 0x118]
call edi
push dword [0x1011028]
push dword [ebp - 0x118]
call edi
push dword [0x1011044]
push dword [ebp - 0x118]
call edi
push dword [0x1011018]
push dword [ebp - 0x118]
call edi
push dword [0x1011030]
push dword [ebp - 0x118]
call edi
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jbe 0x1007805
push 4
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x120]
push eax
push 4
push ebx
push dword [0x1011020]
push dword [ebp - 0x118]
call esi
test eax, eax
jne 0x1007828
mov eax, dword [ebp + 8]
push 4
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x120]
push eax
push 4
push ebx
push dword [0x1011004]
push dword [ebp - 0x118]
call esi
cmp dword [ebp - 0x118], ebx
je 0x100783c
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b502
leave
ret 0x10