Function at 0x10036e0
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x100fcc1
call fcn.01004b88
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 0x100375a
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003a87
test dword [eax + 0x1c], 0x800
je 0x1003a87
push ebx
push edi
push 0x10012a8
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003219
jmp 0x1003a87
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 0x10037a4
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003a87
test dword [eax + 0x1c], 0x800
je 0x1003a87
push ebx
push edi
push 0x10012a8
push 0x20
jmp 0x100374a
lea eax, [ebp - 0x18]
push eax
push 0x10013a8
push dword [ebp - 0x20]
call fcn.010044a3
mov edi, eax
cmp edi, esi
je 0x10037e6
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003a87
test dword [eax + 0x1c], 0x800
je 0x1003a87
push ebx
push edi
push 0x10012a8
push 0x21
jmp 0x100374a
push dword [ebp - 0x18]
lea ecx, [ebp + 8]
call fcn.010036a9
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.01005d61
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 0x100385b
push esi
call fcn.01003669
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003a87
test dword [eax + 0x1c], 0x800
je 0x1003a87
push dword [ebp - 0x18]
push esi
push 0x10012a8
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003219
jmp 0x1003a87
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 0x10038a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003a87
test dword [eax + 0x1c], 0x800
je 0x1003a87
push dword [ebp - 0x10]
push edi
push 0x10012a8
push 0x23
jmp 0x100374a
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 0x10038fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003a87
test dword [eax + 0x1c], 0x800
je 0x1003a87
push edi
push 0x10012a8
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010030b9
jmp 0x1003a87
cmp dword [ebp - 0x28], edi
je 0x1003a5a
mov eax, dword [ebp - 0x2c]
cmp word [eax + 4], 1
jne 0x1003a5a
lea ecx, [ebp - 0x30]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x1003930
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1003a87
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 0x100397d
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003a87
test dword [eax + 0x1c], 0x800
je 0x1003a87
push ebx
push edi
push 0x10012a8
push 0x26
jmp 0x100374a
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call fcn.01003563
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantInit]
call ebx
mov ecx, 0x100
cmp eax, ecx
jbe 0x10039cb
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 0x1003a14
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003a87
test dword [eax + 0x1c], 0x800
je 0x1003a87
push dword [ebp + 0x10]
push edi
push 0x10012a8
push 0x27
jmp 0x100374a
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 0x1003a87
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003a87
test dword [eax + 0x1c], 0x800
je 0x1003a87
push dword [ebp + 0x10]
push edi
push 0x10012a8
push 0x28
jmp 0x100374a
push 0x57
pop edi
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003a87
test dword [eax + 0x1c], 0x800
je 0x1003a87
push dword [ebp - 0x10]
push 0x10012a8
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010030e5
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x1003a97
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x18], esi
je 0x1003aa6
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 0x1003ab6
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x14], 0
je 0x1003ac1
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.01004c74
ret 0x14