Function at 0x10651cd
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10651ff
test byte [eax + 0x1c], 1
je 0x10651ff
cmp byte [eax + 0x19], 4
jb 0x10651ff
push 0x1005d4c
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x106521c
push 0x1006358
push 0x50
push 0x1005f5c
call fcn.0107b4be
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 0x106567f
cmp eax, ebx
je 0x106567f
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 [0x111124c]
cmp eax, 0x111124c
je 0x10652a9
test byte [eax + 0x1c], 1
je 0x10652a9
cmp byte [eax + 0x19], 4
jb 0x10652a9
push dword [esi + 4]
push dword [esi]
push 0x1005d4c
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109ba57
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 0x10652fd
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10652f0
test byte [eax + 0x1c], 1
je 0x10652f0
cmp byte [eax + 0x19], 2
jb 0x10652f0
push 0x1005d4c
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
cmp edi, ebx
jg 0x106566e
jmp 0x106567a
mov dword [ebp - 0x14], ebx
cmp dword [esi + 4], ebx
jbe 0x10653ed
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 0x1065439
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 0xc]
shl edi, 2
mov eax, dword [edi + eax]
cmp eax, 1
je 0x1065358
cmp eax, 2
je 0x1065358
push 0x1005fa0
push 0x82
push 0x1005f5c
call fcn.0107b4be
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 0x1065469
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.01025c69
add esp, 0x20
mov dword [ebp + 8], eax
test eax, eax
jl 0x1065499
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 0x1065315
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 0x10654c9
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10656a9
test byte [eax + 0x1c], 1
je 0x10656a9
cmp byte [eax + 0x19], 2
jb 0x10656a9
push 0x1005d4c
push 0x11
jmp 0x106569e
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10656a9
test byte [eax + 0x1c], 1
je 0x10656a9
cmp byte [eax + 0x19], 2
jb 0x10656a9
push 0x1005d4c
push 0xe
jmp 0x106569e
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10656a9
test byte [eax + 0x1c], 1
je 0x10656a9
cmp byte [eax + 0x19], 2
jb 0x10656a9
push 0x1005d4c
push 0xf
jmp 0x106569e
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10656b0
test byte [eax + 0x1c], 1
je 0x10656b0
cmp byte [eax + 0x19], 2
jb 0x10656b0
push 0x1005d4c
push 0x10
jmp 0x10655ec
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 0x106554a
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
sub eax, ebx
mov dword [ebp - 0x24], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x106551e
test byte [eax + 0x1c], 1
je 0x106551e
cmp byte [eax + 0x19], 4
jb 0x106551e
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.010196ed
mov eax, dword [ebp - 0x24]
push dword [eax + ebx]
mov eax, dword [ebx]
inc eax
push eax
push edi
call fcn.01025872
test eax, eax
jl 0x10655c1
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 0x10654ec
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax - 2]
cmp edi, eax
je 0x106556c
push 0x10062e8
push 0xbb
push 0x1005f5c
call fcn.0107b4be
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 0x10655fc
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10655ba
test byte [eax + 0x1c], 1
je 0x10655ba
cmp byte [eax + 0x19], 2
jb 0x10655ba
push 0x1005d4c
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
test edi, edi
jmp 0x10652f2
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10656b0
test byte [eax + 0x1c], 1
je 0x10656b0
cmp byte [eax + 0x19], 2
jb 0x10656b0
push 0x1005d4c
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
jmp 0x10656b0
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 0x106563c
cmp eax, 2
je 0x106563c
cmp eax, 3
je 0x106563c
push 0x1006100
push 0xdb
push 0x1005f5c
call fcn.0107b4be
test edi, edi
je 0x10656b0
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x106566a
test byte [eax + 0x1c], 1
je 0x106566a
cmp byte [eax + 0x19], 2
jb 0x106566a
push 0x1005d4c
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
test edi, edi
jle 0x106567a
and edi, 0xffff
or edi, 0x80070000
mov dword [ebp + 8], edi
jmp 0x10656b0
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10656a9
test byte [eax + 0x1c], 1
je 0x10656a9
cmp byte [eax + 0x19], 2
jb 0x10656a9
push 0x1005d4c
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov dword [ebp + 8], 0x8007000e
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x10656d5
cmp dword [esi + 4], ebx
jbe 0x10656d0
mov eax, dword [ebp - 4]
push dword [eax + ebx*4]
call edi
inc ebx
cmp ebx, dword [esi + 4]
jb 0x10656c2
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], 0
je 0x106572c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
je 0x1065728
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1065715
test byte [eax + 0x1c], 1
je 0x1065715
cmp byte [eax + 0x19], 2
jb 0x1065715
push esi
push 0x1005d4c
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
test esi, esi
jle 0x1065725
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 0x106576c
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1065796
test byte [eax + 0x1c], 1
je 0x1065771
cmp byte [eax + 0x19], 2
jb 0x1065771
push dword [ebp + 8]
push 0x1005d4c
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1065796
test byte [eax + 0x1c], 1
je 0x1065796
cmp byte [eax + 0x19], 4
jb 0x1065796
push 0x1005d4c
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [ebp + 8]
leave
ret 4