Function at 0x1003dd8
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push edi
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
push 0x80000002
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyTransactedW]
mov esi, eax
cmp esi, edi
je 0x1003e48
mov eax, dword [section..data]
cmp eax, section..data
je 0x100422e
test dword [eax + 0x1c], 0x800
je 0x100422e
push dword [ebp + 0xc]
push esi
push 0x10012b8
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003279
jmp 0x100422e
push ebx
push 1
call dword [sym.imp.USERENV.dll_EnterCriticalPolicySection]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x1003e65
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100421e
mov ebx, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
mov edi, 0x1001438
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], 8
call ebx
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x1003ec2
cmp esi, 2
je 0x1003ece
mov eax, dword [section..data]
cmp eax, section..data
je 0x100421e
test dword [eax + 0x1c], 0x800
je 0x100421e
push edi
push dword [ebp + 0xc]
push esi
push 0x10012b8
push 0x14
jmp 0x1003f31
cmp dword [ebp - 0x1c], 0xb
jne 0x1003ece
cmp dword [ebp - 0x14], 8
je 0x1003ed8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 1
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov edi, 0x100141c
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], 8
call ebx
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x1003f41
cmp esi, 2
jne 0x1003f08
xor esi, esi
jmp 0x1003f4d
mov eax, dword [section..data]
cmp eax, section..data
je 0x100421e
test dword [eax + 0x1c], 0x800
je 0x100421e
push edi
push dword [ebp + 0xc]
push esi
push 0x10012b8
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010032ec
jmp 0x100421e
cmp dword [ebp - 0x1c], 0xb
jne 0x1003f4d
cmp dword [ebp - 0x14], 8
je 0x1003f53
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x34]
jne 0x1003f97
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x30]
jne 0x1003f97
mov eax, dword [section..data]
cmp eax, section..data
je 0x100421e
test dword [eax + 0x1c], 0x800
je 0x100421e
push 0x10012b8
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010030f3
jmp 0x100421e
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
call fcn.0100486e
mov ebx, 0x10012b8
mov edi, 0x103
jmp 0x100406c
test esi, esi
jne 0x10041f4
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyTransactedW]
mov esi, eax
test esi, esi
jne 0x100401b
push eax
push dword [ebp - 0x18]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteTreeW]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
test esi, esi
je 0x1004045
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004045
test dword [eax + 0x1c], 0x800
je 0x1004045
push dword [ebp - 8]
push dword [ebp + 0xc]
push esi
push ebx
push 0x18
jmp 0x100403a
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004045
test dword [eax + 0x1c], 0x800
je 0x1004045
push dword [ebp - 8]
push dword [ebp + 0xc]
push esi
push ebx
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010032ec
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
test esi, esi
jne 0x100421e
inc dword [ebp - 0xc]
and dword [ebp - 0x18], esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.0100486e
mov esi, eax
cmp esi, edi
jne 0x1003fb9
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x10040d7
cmp esi, 2
jne 0x10040a3
xor esi, esi
jmp 0x100421e
mov eax, dword [section..data]
cmp eax, section..data
je 0x100421e
test dword [eax + 0x1c], 0x800
je 0x100421e
push dword [ebp + 8]
push esi
push ebx
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003279
jmp 0x100421e
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], eax
push eax
jmp 0x1004125
test esi, esi
jne 0x10041d3
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.01003b48
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
test esi, esi
jne 0x100421e
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x20], eax
inc dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.0100486e
mov esi, eax
cmp esi, edi
jne 0x10040e4
push dword [ebp - 0x24]
call dword [sym.imp.USERENV.dll_LeaveCriticalPolicySection]
mov edi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
push 8
lea eax, [ebp - 0x2c]
push eax
push 0xb
push 0
push 0x100141c
push dword [ebp - 4]
call edi
mov esi, eax
test esi, esi
je 0x1004187
mov eax, dword [section..data]
cmp eax, section..data
je 0x100422d
test dword [eax + 0x1c], 0x800
je 0x100422d
push 0x100141c
push dword [ebp + 0xc]
push esi
push ebx
push 0x1c
jmp 0x10041c6
push 4
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push 0x1001408
push dword [ebp - 4]
call edi
mov esi, eax
test esi, esi
je 0x100422d
mov eax, dword [section..data]
cmp eax, section..data
je 0x100422d
test dword [eax + 0x1c], 0x800
je 0x100422d
push 0x1001408
push dword [ebp + 0xc]
push esi
push ebx
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010032ec
jmp 0x100422d
mov eax, dword [section..data]
cmp eax, section..data
je 0x100421e
test dword [eax + 0x1c], 0x800
je 0x100421e
push dword [ebp - 0xc]
push dword [ebp + 8]
push esi
push ebx
push 0x1b
jmp 0x1004213
mov eax, dword [section..data]
cmp eax, section..data
je 0x100421e
test dword [eax + 0x1c], 0x800
je 0x100421e
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push esi
push ebx
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010033b9
cmp dword [ebp - 0x24], 0
je 0x100422d
push dword [ebp - 0x24]
call dword [sym.imp.USERENV.dll_LeaveCriticalPolicySection]
pop ebx
cmp dword [ebp - 0x10], 0
je 0x100423d
push dword [ebp - 0x10]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x100424c
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret 0xc