Function at 0x1003730
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x100fd11
call fcn.01004bda
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 1
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
push 0x20019
push esi
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
je 0x10037aa
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ad7
test dword [eax + 0x1c], 0x800
je 0x1003ad7
push ebx
push edi
push 0x10012a8
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003269
jmp 0x1003ad7
push esi
push dword [ebp + 0x18]
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyTransactedW]
mov edi, eax
cmp edi, esi
je 0x10037f4
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ad7
test dword [eax + 0x1c], 0x800
je 0x1003ad7
push ebx
push edi
push 0x10012a8
push 0x20
jmp 0x100379a
lea eax, [ebp - 0x18]
push eax
push 0x10013a8
push dword [ebp - 0x20]
call fcn.010044f6
mov edi, eax
cmp edi, esi
je 0x1003836
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ad7
test dword [eax + 0x1c], 0x800
je 0x1003ad7
push ebx
push edi
push 0x10012a8
push 0x21
jmp 0x100379a
push dword [ebp - 0x18]
lea ecx, [ebp + 8]
call fcn.010036f9
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
push eax
call fcn.01005db1
mov esi, eax
mov byte [ebp - 4], 1
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edi, edi
cmp esi, edi
jge 0x10038ab
push esi
call fcn.010036b9
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ad7
test dword [eax + 0x1c], 0x800
je 0x1003ad7
push dword [ebp - 0x18]
push esi
push 0x10012a8
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003269
jmp 0x1003ad7
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
push dword [ebp - 0x10]
call sub.API_MS_Win_Security_SDDL_L1_1_0.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x10038f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ad7
test dword [eax + 0x1c], 0x800
je 0x1003ad7
push dword [ebp - 0x10]
push edi
push 0x10012a8
push 0x23
jmp 0x100379a
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x100394c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ad7
test dword [eax + 0x1c], 0x800
je 0x1003ad7
push edi
push 0x10012a8
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100323d
jmp 0x1003ad7
cmp dword [ebp - 0x28], edi
je 0x1003aaa
mov eax, dword [ebp - 0x2c]
cmp word [eax + 4], 1
jne 0x1003aaa
lea ecx, [ebp - 0x30]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x1003980
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1003ad7
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax + 2]
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
push ecx
push eax
push 3
push edi
push 0x10013a0
push dword [ebp - 0x14]
call esi
mov edi, eax
test edi, edi
je 0x10039cd
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ad7
test dword [eax + 0x1c], 0x800
je 0x1003ad7
push ebx
push edi
push 0x10012a8
push 0x26
jmp 0x100379a
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call fcn.010035b3
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantInit]
call ebx
mov ecx, 0x100
cmp eax, ecx
jbe 0x1003a1b
mov edx, dword [ebp - 0x10]
push 0x2e
pop eax
mov word [edx + 0x1fa], ax
mov edx, dword [ebp - 0x10]
mov word [edx + 0x1fc], ax
mov edx, dword [ebp - 0x10]
mov word [edx + 0x1fe], ax
mov edx, dword [ebp - 0x10]
xor eax, eax
mov word [edx + 0x200], ax
mov eax, ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x10]
push 1
push 0
push 0x1001394
push dword [ebp - 0x14]
call esi
mov edi, eax
test edi, edi
je 0x1003a64
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ad7
test dword [eax + 0x1c], 0x800
je 0x1003ad7
push dword [ebp + 0x10]
push edi
push 0x10012a8
push 0x27
jmp 0x100379a
push dword [ebp - 0x24]
call ebx
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x24]
push 1
push 0
push 0x1001388
push dword [ebp - 0x14]
call esi
mov edi, eax
test edi, edi
je 0x1003ad7
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ad7
test dword [eax + 0x1c], 0x800
je 0x1003ad7
push dword [ebp + 0x10]
push edi
push 0x10012a8
push 0x28
jmp 0x100379a
push 0x57
pop edi
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ad7
test dword [eax + 0x1c], 0x800
je 0x1003ad7
push dword [ebp - 0x10]
push 0x10012a8
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003109
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x1003ae7
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x18], esi
je 0x1003af6
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebp - 0x20], esi
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
je 0x1003b06
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x14], 0
je 0x1003b11
push dword [ebp - 0x14]
call esi
mov byte [ebp - 4], 0
push dword [ebp - 0x10]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x24]
call esi
mov eax, edi
call fcn.01004cc6
ret 0x14