Function at 0x10129cd
Capabilities:
Set registry value

Disassembly:
mov eax, 0x101ed08
call fcn.0101d748
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
jne 0x10129f6
mov eax, 0x80004005
jmp 0x1012c87
cmp dword [0x10238e8], 1
jne 0x1012c74
push 0x1002b0c
lea ecx, [ebp - 0x34]
call fcn.01011410
push 0x1002b00
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.01011410
mov dword [ebp - 0x24], ebx
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
push esi
mov byte [ebp - 4], 3
call dword [eax + 0x40]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x1012c50
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push dword [ebp - 0x30]
mov byte [ebp - 4], 4
push dword [ebp - 0x34]
push eax
call dword [ecx + 0x3c]
cmp eax, ebx
mov dword [ebp - 0x10], eax
mov esi, 0x1068628
jne 0x1012b46
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x1012b46
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
jle 0x1012b46
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push dword [ebp - 0x14]
push eax
call dword [ecx + 0x20]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x1012b2e
push 8
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x1012abe
mov ecx, eax
call fcn.01011d02
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x28], ebx
je 0x1012b2c
push 0x10686a8
lea ecx, [ebp - 0x1c]
call fcn.010045ba
push 0x6a
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.0100485d
push dword [ebp - 0x2c]
mov ecx, ebx
call fcn.01004c78
lea edi, [ebx + 4]
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push ebx
call fcn.0100d3b4
call fcn.01012242
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x1012b12
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.0100c3bf
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.01011b9e
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.01003fb7
xor ebx, ebx
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
jl 0x1012a8e
mov eax, dword [ebp - 0x18]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x1012b57
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x10], ebx
jne 0x1012c50
call fcn.010128b0
test eax, eax
je 0x1012c50
mov ecx, dword [0x10238e0]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, 0x1058628
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [0x10238e4]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, 0x1060628
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x1002588
push SysReAllocStringLen
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1012c50
cmp dword [ebp - 0x2c], 1
jne 0x1012c47
mov eax, dword [0x106862c]
xor edi, edi
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jbe 0x1012c47
push edi
mov ecx, esi
call fcn.01019604
mov eax, dword [eax]
add eax, 4
mov eax, dword [eax]
mov ebx, dword [eax - 0xc]
push edi
mov ecx, esi
call fcn.01019604
mov ecx, dword [eax]
add ecx, 4
call fcn.010046cc
push edi
mov ecx, esi
mov dword [ebp - 0x28], eax
call fcn.01019604
mov eax, dword [eax]
mov eax, dword [eax]
lea ecx, [ebx + ebx]
push ecx
push dword [ebp - 0x28]
push 1
push 0
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov ecx, esi
call fcn.01019604
mov ecx, dword [eax]
push 0xffffffffffffffff
add ecx, 4
call fcn.0100d340
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x1012be3
xor ebx, ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x1012c61
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x30]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x34]
call esi
mov esi, dword [ebp + 8]
inc dword [0x10238e8]
mov eax, dword [esi]
or dword [ebp - 4], 0xffffffff
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4