Function at 0x106529b
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10652cd
test byte [eax + 0x1c], 1
je 0x10652cd
cmp byte [eax + 0x19], 4
jb 0x10652cd
push 0x1005d4c
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x10652ea
push 0x1006358
push 0x50
push 0x1005f5c
call fcn.0107b644
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
shl eax, 2
push eax
mov dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call edi
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
shl eax, 2
push eax
call edi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], ebx
je 0x106574d
cmp eax, ebx
je 0x106574d
mov eax, dword [esi + 4]
shl eax, 2
push eax
push ebx
push dword [ebp - 4]
call sub.msvcrt.dll_memset
mov eax, dword [esi + 4]
shl eax, 2
push eax
push ebx
push dword [ebp - 0xc]
call sub.msvcrt.dll_memset
add esp, 0x18
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1065377
test byte [eax + 0x1c], 1
je 0x1065377
cmp byte [eax + 0x19], 4
jb 0x1065377
push dword [esi + 4]
push dword [esi]
push 0x1005d4c
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01083f04
lea eax, [ebp - 8]
push eax
push 2
push ebx
push 0x1006210
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
je 0x10653cb
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10653be
test byte [eax + 0x1c], 1
je 0x10653be
cmp byte [eax + 0x19], 2
jb 0x10653be
push 0x1005d4c
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
cmp edi, ebx
jg 0x106573c
jmp 0x1065748
mov dword [ebp - 0x14], ebx
cmp dword [esi + 4], ebx
jbe 0x10654bb
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esi + 8]
add eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x1065507
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 0xc]
shl edi, 2
mov eax, dword [edi + eax]
cmp eax, 1
je 0x1065426
cmp eax, 2
je 0x1065426
push 0x1005fa0
push 0x82
push 0x1005f5c
call fcn.0107b644
mov eax, dword [esi + 0xc]
push dword [eax + edi]
push dword [ebp - 0x20]
push 0x100634c
call dword [sym.imp.msvcrt.dll__scwprintf]
mov ebx, eax
add esp, 0xc
lea eax, [ebx + ebx + 2]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ecx, dword [ebp - 4]
add ecx, edi
mov dword [ebp - 0x24], ecx
mov dword [ecx], eax
test eax, eax
je 0x1065537
lea ecx, [ebx + ebx + 2]
push ecx
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0xc]
push dword [eax + edi]
lea eax, [ebx + 1]
push dword [ebp - 0x20]
push 0x100634c
push eax
mov eax, dword [ebp - 0x24]
push dword [eax]
call fcn.01025c20
add esp, 0x20
mov dword [ebp + 8], eax
test eax, eax
jl 0x1065567
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
inc dword [ebp - 0x14]
add dword [ebp - 0x18], 0x10
mov dword [eax + ecx], ebx
mov eax, dword [ebp - 0x1c]
lea eax, [eax + ebx + 1]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 4]
jb 0x10653e3
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax + 2]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x1065597
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1065777
test byte [eax + 0x1c], 1
je 0x1065777
cmp byte [eax + 0x19], 2
jb 0x1065777
push 0x1005d4c
push 0x11
jmp 0x106576c
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1065777
test byte [eax + 0x1c], 1
je 0x1065777
cmp byte [eax + 0x19], 2
jb 0x1065777
push 0x1005d4c
push 0xe
jmp 0x106576c
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1065777
test byte [eax + 0x1c], 1
je 0x1065777
cmp byte [eax + 0x19], 2
jb 0x1065777
push 0x1005d4c
push 0xf
jmp 0x106576c
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x106577e
test byte [eax + 0x1c], 1
je 0x106577e
cmp byte [eax + 0x19], 2
jb 0x106577e
push 0x1005d4c
push 0x10
jmp 0x10656ba
push dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
push ebx
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], ebx
cmp dword [esi + 4], ebx
jbe 0x1065618
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
sub eax, ebx
mov dword [ebp - 0x24], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10655ec
test byte [eax + 0x1c], 1
je 0x10655ec
cmp byte [eax + 0x19], 4
jb 0x10655ec
push dword [ebx]
mov ecx, dword [ebp - 0x24]
push dword [ecx + ebx]
push 0x1005d4c
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov eax, dword [ebp - 0x24]
push dword [eax + ebx]
mov eax, dword [ebx]
inc eax
push eax
push edi
call fcn.010257dc
test eax, eax
jl 0x106568f
mov eax, dword [ebx]
inc dword [ebp - 0x1c]
lea edi, [edi + eax*2 + 2]
mov eax, dword [ebp - 0x1c]
add ebx, 4
cmp eax, dword [esi + 4]
jb 0x10655ba
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax - 2]
cmp edi, eax
je 0x106563a
push 0x10062e8
push 0xbb
push 0x1005f5c
call fcn.0107b644
push dword [ebp - 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
xor eax, eax
push 7
push eax
push 0x10060cc
mov word [edi], ax
push dword [ebp - 8]
call ebx
mov edi, eax
test edi, edi
je 0x10656ca
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1065688
test byte [eax + 0x1c], 1
je 0x1065688
cmp byte [eax + 0x19], 2
jb 0x1065688
push 0x1005d4c
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
test edi, edi
jmp 0x10653c0
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x106577e
test byte [eax + 0x1c], 1
je 0x106577e
cmp byte [eax + 0x19], 2
jb 0x106577e
push 0x1005d4c
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
jmp 0x106577e
mov eax, dword [esi]
push 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0
push 0x100629c
push dword [ebp - 8]
call ebx
mov edi, eax
mov eax, dword [esi]
cmp eax, 1
je 0x106570a
cmp eax, 2
je 0x106570a
cmp eax, 3
je 0x106570a
push 0x1006100
push 0xdb
push 0x1005f5c
call fcn.0107b644
test edi, edi
je 0x106577e
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1065738
test byte [eax + 0x1c], 1
je 0x1065738
cmp byte [eax + 0x19], 2
jb 0x1065738
push 0x1005d4c
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
test edi, edi
jle 0x1065748
and edi, 0xffff
or edi, 0x80070000
mov dword [ebp + 8], edi
jmp 0x106577e
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1065777
test byte [eax + 0x1c], 1
je 0x1065777
cmp byte [eax + 0x19], 2
jb 0x1065777
push 0x1005d4c
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov dword [ebp + 8], 0x8007000e
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x10657a3
cmp dword [esi + 4], ebx
jbe 0x106579e
mov eax, dword [ebp - 4]
push dword [eax + ebx*4]
call edi
inc ebx
cmp ebx, dword [esi + 4]
jb 0x1065790
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], 0
je 0x10657fa
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
je 0x10657f6
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10657e3
test byte [eax + 0x1c], 1
je 0x10657e3
cmp byte [eax + 0x19], 2
jb 0x10657e3
push esi
push 0x1005d4c
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
test esi, esi
jle 0x10657f3
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp + 8], esi
and dword [ebp - 8], 0
push dword [ebp - 0xc]
call edi
push dword [ebp - 0x10]
call edi
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
jge 0x106583a
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1065864
test byte [eax + 0x1c], 1
je 0x106583f
cmp byte [eax + 0x19], 2
jb 0x106583f
push dword [ebp + 8]
push 0x1005d4c
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1065864
test byte [eax + 0x1c], 1
je 0x1065864
cmp byte [eax + 0x19], 4
jb 0x1065864
push 0x1005d4c
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp + 8]
leave
ret 4