Function at 0x1007c28
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x1011360]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x124], eax
mov eax, dword [section..data]
push esi
mov dword [ebp - 0x110], edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1007c58
sub eax, esi
sar eax, 1
mov ecx, eax
mov eax, edx
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x1007c6d
sub eax, edx
sar eax, 1
add eax, ecx
lea eax, [eax + eax + 0x116]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x118], eax
jne 0x1007ca1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1007f42
mov ecx, dword [section..data]
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1007cac
push ebx
sub eax, esi
sar eax, 1
push edi
mov ebx, eax
lea edi, [ebx + ebx]
push edi
push ecx
push dword [ebp - 0x118]
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x110]
add esp, 0xc
push 5
add edi, edx
pop ecx
mov esi, 0x1003f9c
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
add ebx, 0xb
lea ecx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x1007cf1
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push dword [ebp - 0x110]
lea eax, [edx + ebx*2]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x110]
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1007d1d
sub eax, ecx
sar eax, 1
add ebx, eax
mov eax, dword [ebp - 0x118]
xor edi, edi
mov word [eax + ebx*2], 0x5c
inc ebx
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x110], edi
jbe 0x1007f3e
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x110]
push dword [eax + ecx*4]
lea eax, [ebp - 0x102]
push 0x7f
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, di
jne 0x1007d80
sub eax, edx
sar eax, 1
add eax, eax
mov word [ebp + eax - 0x104], 0x7d
mov word [ebp + eax - 0x102], di
lea eax, [ebp - 0x104]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1007dab
sub eax, ecx
sar eax, 1
add eax, eax
push eax
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 0x118]
lea eax, [eax + ebx*2]
push eax
call sub.msvcrt.dll_memcpy
lea eax, [ebp - 0x104]
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1007dde
sub eax, ecx
sar eax, 1
lea ecx, [eax + ebx]
mov eax, dword [ebp - 0x118]
mov word [eax + ecx*2], di
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x108]
push ecx
push edi
push 3
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x1007f40
mov eax, dword [ebp + 0x14]
push 4
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push 4
push edi
push dword [0x1011034]
push dword [ebp - 0x108]
call esi
cmp eax, edi
mov dword [ebp - 0x10c], eax
jne 0x1007f51
push 4
lea eax, [ebp - 0x114]
push eax
push 4
push edi
push dword [0x101102c]
mov dword [ebp - 0x114], 1
push dword [ebp - 0x108]
call esi
cmp eax, edi
mov dword [ebp - 0x10c], eax
jne 0x1007f51
mov eax, dword [ebp + 0x28]
push 4
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push 4
push edi
push dword [0x1011038]
push dword [ebp - 0x108]
call esi
cmp eax, edi
mov dword [ebp - 0x10c], eax
jne 0x1007f51
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + 0x1c]
push 8
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x120]
push eax
push 0xb
push edi
push dword [0x101103c]
push dword [ebp - 0x108]
call esi
cmp eax, edi
mov dword [ebp - 0x10c], eax
jne 0x1007f51
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + 0x24]
push 8
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x120]
push eax
push 0xb
push edi
push dword [0x1011040]
push dword [ebp - 0x108]
call esi
cmp eax, edi
push dword [ebp - 0x108]
mov dword [ebp - 0x10c], eax
jne 0x1007f57
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x110]
mov eax, dword [ebp - 0x110]
cmp eax, dword [ebp + 0x10]
jb 0x1007d51
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100b502
leave
ret 0x24
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10c]
jmp 0x1007f40