Function at 0x1000a038
Capabilities:
Set registry value

Disassembly:
mov eax, 0x1002607b
call fcn.100252dc
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x14
pop esi
mov dword [ebp - 0x30], ecx
call fcn.10002f60
push eax
lea ecx, [ebp - 0x1c]
call fcn.10001cd2
xor edi, edi
mov dword [ebp - 4], edi
call fcn.10002f60
push eax
lea ecx, [ebp - 0x18]
call fcn.10001cd2
mov ebx, dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
cmp dword [ebx], edi
je 0x1000a0aa
mov eax, ebx
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edi
jne 0x1000a086
test ecx, ecx
jle 0x1000a0aa
mov eax, esi
cdq
idiv ecx
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x1000a0a8
mov eax, ecx
cdq
idiv esi
mov dword [ebp - 0x28], eax
xor edi, edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
push ecx
push ecx
movzx eax, al
shl eax, 8
or eax, 0x2001f
mov byte [ebp - 4], 3
push eax
push ecx
push ecx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x54]
call fcn.100046de
mov edi, 0x100364d0
test eax, eax
je 0x1000a0f0
push esi
push 7
push 2
mov ecx, edi
call fcn.1000939c
push esi
push 0x1002eefc
push 0x100364fc
call fcn.100097c8
push 0x10
call fcn.1000f2dd
add esp, 0x10
mov dword [ebp + 0xc], eax
push dword [ebp + 0x14]
mov ecx, eax
mov byte [ebp - 4], 4
push esi
push 0x1002cf6c
call fcn.100099ce
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.10007153
mov byte [ebp - 4], 5
xor eax, eax
mov ecx, dword [ebp - 0x54]
mov esi, eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp + 0xc], eax
add esi, esi
mov edx, dword [ebx + esi*8]
test edx, edx
je 0x1000a32a
test byte [ebx + esi*8 + 0xc], 8
je 0x1000a1e1
cmp ecx, dword [ebp - 0x54]
jne 0x1000a16c
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
jmp 0x1000a177
lea ecx, [ebp - 0x48]
call fcn.10004e0a
mov edx, dword [ebx + esi*8]
push ecx
push ecx
push 0x2001f
push ecx
push ecx
push edx
push dword [ebp - 0x54]
lea ecx, [ebp - 0x48]
call fcn.100046de
test eax, eax
je 0x1000a19e
push dword [ebx + esi*8]
mov ecx, edi
push 7
push 2
call fcn.1000939c
push dword [ebx + esi*8]
lea ecx, [ebp - 0x1c]
call fcn.10008335
push dword [ebx + esi*8]
push 0x1002eefc
push 0x100364fc
call fcn.100097c8
push 0x10
call fcn.1000f2dd
add esp, 0x10
mov dword [ebp - 0x38], eax
push dword [ebp + 0x14]
mov byte [ebp - 4], 6
mov ecx, eax
push dword [ebx + esi*8]
push dword [ebp + 8]
call fcn.100099ce
jmp 0x1000a2da
mov eax, dword [ebx + esi*8 + 0xc]
and eax, 7
sub eax, 1
je 0x1000a230
sub eax, 1
jne 0x1000a25b
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x34]
push dword [ebx + esi*8 + 4]
push dword [ebx + esi*8 + 0xc]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.10006795
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.10001cb7
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
push dword [ebx + esi*8]
call fcn.100047a6
jmp 0x1000a249
mov eax, dword [ebx + esi*8 + 8]
push 4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 4
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1000a25b
push dword [ebx + esi*8]
mov ecx, edi
push 8
push 3
call fcn.1000939c
push dword [ebx + esi*8]
push str.CreateRegistryValue:__s
push 0x100364fc
call fcn.100097c8
push 0x10
call fcn.1000f2dd
add esp, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebx + esi*8]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 9
lea esi, [eax + 4]
mov dword [eax], 0x1002ef9c
call fcn.10002f60
push eax
mov ecx, esi
call fcn.10001cd2
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x24]
add eax, 8
mov dword [ebp - 0x20], eax
call fcn.10002f60
mov ecx, dword [ebp - 0x20]
push eax
call fcn.10001cd2
mov byte [ebp - 4], 0xb
mov ecx, esi
push dword [ebp - 0x1c]
call fcn.10008335
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
call fcn.10008335
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x14]
mov byte [eax + 0xc], cl
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.10007153
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x1000a30b
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1000a31c
mov eax, esi
cdq
idiv ecx
test edx, edx
jne 0x1000a31c
push 1
mov ecx, edi
call fcn.1000959a
inc dword [ebp - 0x14]
jmp 0x1000a31c
mov esi, dword [ebp - 0x2c]
mov ecx, edi
push esi
call fcn.1000959a
add dword [ebp - 0x14], esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x48]
inc esi
mov dword [ebp + 0xc], esi
xor eax, eax
jmp 0x1000a144
test ecx, ecx
je 0x1000a346
cmp ecx, dword [ebp - 0x54]
jne 0x1000a33e
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
jmp 0x1000a346
lea ecx, [ebp - 0x48]
call fcn.10004e0a
lea ecx, [ebp - 0x54]
call fcn.10004e0a
mov ecx, dword [ebp - 0x14]
push 0x14
pop eax
cmp eax, ecx
jle 0x1000a35c
sub eax, ecx
jmp 0x1000a35f
lea eax, [ecx - 0x14]
push eax
mov ecx, edi
call fcn.1000959a
lea ecx, [ebp - 0x48]
call fcn.10004e0a
lea ecx, [ebp - 0x54]
call fcn.10004e0a
lea ecx, [ebp - 0x18]
call fcn.10001cb7
lea ecx, [ebp - 0x1c]
call fcn.10001cb7
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10