Function at 0x1003740
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x100ffb1
call fcn.01004e6e
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 0x10037ba
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ae7
test dword [eax + 0x1c], 0x800
je 0x1003ae7
push ebx
push edi
push 0x10012b8
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003279
jmp 0x1003ae7
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 0x1003804
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ae7
test dword [eax + 0x1c], 0x800
je 0x1003ae7
push ebx
push edi
push 0x10012b8
push 0x26
jmp 0x10037aa
lea eax, [ebp - 0x18]
push eax
push 0x10013b8
push dword [ebp - 0x20]
call fcn.01004789
mov edi, eax
cmp edi, esi
je 0x1003846
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ae7
test dword [eax + 0x1c], 0x800
je 0x1003ae7
push ebx
push edi
push 0x10012b8
push 0x27
jmp 0x10037aa
push dword [ebp - 0x18]
lea ecx, [ebp + 8]
call fcn.01003709
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.01006057
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 0x10038bb
push esi
call fcn.010036c9
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ae7
test dword [eax + 0x1c], 0x800
je 0x1003ae7
push dword [ebp - 0x18]
push esi
push 0x10012b8
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003279
jmp 0x1003ae7
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 0x1003906
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ae7
test dword [eax + 0x1c], 0x800
je 0x1003ae7
push dword [ebp - 0x10]
push edi
push 0x10012b8
push 0x29
jmp 0x10037aa
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 0x100395c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ae7
test dword [eax + 0x1c], 0x800
je 0x1003ae7
push edi
push 0x10012b8
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003119
jmp 0x1003ae7
cmp dword [ebp - 0x28], edi
je 0x1003aba
mov eax, dword [ebp - 0x2c]
cmp word [eax + 4], 1
jne 0x1003aba
lea ecx, [ebp - 0x30]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x1003990
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1003ae7
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 0x10013b0
push dword [ebp - 0x14]
call esi
mov edi, eax
test edi, edi
je 0x10039dd
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ae7
test dword [eax + 0x1c], 0x800
je 0x1003ae7
push ebx
push edi
push 0x10012b8
push 0x2c
jmp 0x10037aa
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call fcn.010035c3
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantInit]
call ebx
mov ecx, 0x100
cmp eax, ecx
jbe 0x1003a2b
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 0x10013a4
push dword [ebp - 0x14]
call esi
mov edi, eax
test edi, edi
je 0x1003a74
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ae7
test dword [eax + 0x1c], 0x800
je 0x1003ae7
push dword [ebp + 0x10]
push edi
push 0x10012b8
push 0x2d
jmp 0x10037aa
push dword [ebp - 0x24]
call ebx
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x24]
push 1
push 0
push 0x1001398
push dword [ebp - 0x14]
call esi
mov edi, eax
test edi, edi
je 0x1003ae7
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ae7
test dword [eax + 0x1c], 0x800
je 0x1003ae7
push dword [ebp + 0x10]
push edi
push 0x10012b8
push 0x2e
jmp 0x10037aa
push 0x57
pop edi
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003ae7
test dword [eax + 0x1c], 0x800
je 0x1003ae7
push dword [ebp - 0x10]
push 0x10012b8
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003145
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x1003af7
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x18], esi
je 0x1003b06
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 0x1003b16
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x14], 0
je 0x1003b21
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.01004f5a
ret 0x14