Function at 0x10001000
Capabilities:
Set registry value

Disassembly:
sub esp, 0x114
push ebx
mov ebx, dword [esp + 0x11c]
test ebx, ebx
push esi
je 0x100015ae
mov esi, dword [esp + 0x124]
test esi, esi
je 0x100015ae
mov eax, dword [ebx]
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [eax + 0x1c]
test eax, eax
jge 0x10001045
pop esi
mov eax, 0x80004005
pop ebx
add esp, 0x114
ret 0xc
mov eax, dword [esp + 0x18]
push ebp
lea edx, [esp + 0xa8]
push edi
mov cx, word [eax + 0x1a]
push edx
mov dx, word [eax + 0x18]
push ecx
push edx
push eax
call fcn.100015c0
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0xac]
mov dword [esp + 0x18], 0
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100012fb
mov edx, dword [ebx]
push 0
lea eax, [esp + 0x20]
push 0
push eax
push 0
push 0xffffffffffffffff
push ebx
call dword [edx + 0x24]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jl 0x100010f8
mov ecx, dword [esp + 0x1c]
push ecx
call ebp
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x1c]
push edx
push eax
push 1
push 0
push 0
push ecx
call edi
test eax, eax
mov ebx, 0x80004005
je 0x100010eb
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x10001105
mov dword [esp + 0x18], 0x80004005
mov ebx, 0x80004005
lea eax, [esp + 0x8c]
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
push ecx
push edx
call fcn.10001650
add esp, 0xc
test eax, eax
je 0x100012e1
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x100012e1
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0x20006
push 0
push 0
lea ecx, [esp + 0xa4]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100012e1
push esi
call ebp
mov ecx, dword [esp + 0x10]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push 0
push ecx
call edi
test eax, eax
je 0x10001182
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x100012e7
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.FLAGS
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100012e7
mov eax, dword [esp + 0x20]
xor edx, edx
lea ecx, [esp + 0x3c]
mov dx, word [eax + 0x1c]
push edx
push 0x100beda0
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esp + 0x20]
add esp, 0x10
lea eax, [eax + eax + 2]
lea ecx, [esp + 0x3c]
push eax
push ecx
push 1
push 0
push 0
push edx
call edi
test eax, eax
je 0x1000120f
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
push eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x100012e7
lea ecx, [esp + 0x30]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 0x20006
push 0
push 0
push 0
push str.HELPDIR
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100012e7
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x130]
xor ebx, ebx
cmp eax, 1
jne 0x1000128f
test esi, esi
jne 0x10001293
mov ecx, dword [esp + 0x12c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
test eax, eax
je 0x1000128a
mov word [eax], bx
mov ebx, 1
test esi, esi
je 0x100012b5
push esi
call ebp
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push edx
push esi
push 1
push 0
push 0
push eax
call edi
test eax, eax
je 0x100012b5
mov dword [esp + 0x18], 0x80004005
test ebx, ebx
je 0x100012c0
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov ebx, dword [esp + 0x128]
jmp 0x10001309
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
push edx
call esi
mov ebx, dword [esp + 0x128]
jmp 0x10001309
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], 0x80004005
mov eax, dword [ebx]
push ebx
call dword [eax + 0xc]
xor ebp, ebp
mov dword [esp + 0x34], eax
test eax, eax
mov dword [esp + 0x2c], ebp
jbe 0x10001592
mov ecx, dword [ebx]
lea edx, [esp + 0x38]
push edx
push ebp
push ebx
call dword [ecx + 0x14]
test eax, eax
jl 0x10001581
mov ecx, dword [ebx]
xor eax, eax
push eax
push eax
lea edx, [esp + 0x24]
push eax
push edx
push ebp
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
call dword [ecx + 0x24]
mov eax, dword [esp + 0x38]
sub eax, 3
je 0x10001368
dec eax
jne 0x10001374
mov eax, dword [ebx]
lea ecx, [esp + 0x24]
push ecx
push ebp
push ebx
call dword [eax + 0x10]
jmp 0x10001374
mov edx, dword [ebx]
lea eax, [esp + 0x24]
push eax
push ebp
push ebx
call dword [edx + 0x10]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10001576
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1000156c
test word [eax + 0x36], 0x140
je 0x10001561
lea ecx, [esp + 0xac]
push ecx
push eax
call fcn.100016a0
add esp, 8
lea edx, [esp + 0x14]
lea eax, [esp + 0xac]
push 0
push edx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1000155d
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10001418
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
push eax
call ebp
mov edx, dword [esp + 0x20]
add esp, 4
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x14]
push ecx
push edx
push 1
push 0
push 0
push eax
call edi
jmp 0x1000141e
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.ProxyStubClsid
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1000145f
push 0x4e
push str.00020424_0000_0000_C000_000000000046
push 1
push eax
push eax
mov eax, dword [esp + 0x24]
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
push 0
push 0x20006
push 0
push 0
push 0
push str.ProxyStubClsid32
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100014a0
mov ecx, dword [esp + 0x10]
push 0x4e
push str.00020424_0000_0000_C000_000000000046
push 1
push eax
push eax
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.TypeLib
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1000154c
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push 0x28
push edx
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea ecx, [esp + 0x3c]
push ecx
call ebp
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [eax + eax + 2]
lea eax, [esp + 0x3c]
push edx
push eax
push 1
push 0
push 0
push ecx
call edi
mov eax, dword [esp + 0x20]
xor edx, edx
xor ecx, ecx
mov dx, word [eax + 0x1a]
mov cx, word [eax + 0x18]
push edx
push ecx
lea edx, [esp + 0x44]
push str._u._u
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
lea eax, [esp + 0x4c]
push eax
call ebp
add esp, 0x14
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x3c]
push ecx
push edx
push 1
push 0
push str.Version
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
jmp 0x10001561
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x4c]
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x34]
inc ebp
cmp ebp, eax
mov dword [esp + 0x2c], ebp
jb 0x10001321
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx]
push ecx
push ebx
call dword [eax + 0x30]
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x114
ret 0xc
pop esi
mov eax, 0x80070057
pop ebx
add esp, 0x114
ret 0xc