Function at 0x100ce65
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3d8
mov eax, dword [0x1019008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
lea eax, [ebp - 0x3c8]
push eax
push 1
mov dword [ebp - 0x3b4], ebx
mov dword [ebp - 0x3c8], ebx
mov dword [ebp - 0x3b0], ebx
mov dword [ebp - 0x3bc], ebx
mov dword [ebp - 0x3c0], ebx
mov dword [ebp - 0x3a8], ebx
mov dword [ebp - 0x3a0], ebx
mov dword [ebp - 0x3cc], ebx
mov dword [ebp - 0x3a4], ebx
mov dword [ebp - 0x3b8], ebx
mov dword [ebp - 0x3ac], ebx
call dword [sym.imp.ole32.dll_CoGetMalloc]
mov esi, eax
cmp esi, ebx
jl 0x100d45e
mov esi, 0x105
push esi
lea eax, [ebp - 0x18c]
push eax
push ebx
mov byte [ebp - 0x88], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100cf12
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100cf0b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x100d45e
cmp byte [ebp - 0x88], bl
je 0x100cf24
mov esi, 0x8007007a
jmp 0x100d45e
push esi
lea eax, [ebp - 0x39c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x100cef7
add eax, eax
mov word [ebp + eax - 0x39e], 0x5c
mov word [ebp + eax - 0x39c], 0x32
mov word [ebp + eax - 0x39a], bx
lea eax, [ebp - 0x3b0]
push eax
push 1
lea eax, [ebp - 0x39c]
push eax
call dword [sym.imp.OLEAUT32.dll_SystemTimeToVariantTime]
mov esi, eax
cmp esi, ebx
jl 0x100d45e
mov eax, dword [ebp - 0x3b0]
mov ecx, dword [eax]
lea edx, [ebp - 0x3c0]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jl 0x100d45e
lea eax, [ebp - 0x3cc]
push eax
push 0x10086b8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jle 0x100cfc1
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d45e
lea eax, [ebp - 0x3d0]
push eax
push dword [ebp - 0x3c0]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
cmp esi, ebx
jl 0x100d45e
push dword [ebp - 0x3d0]
lea eax, [ebp - 0x84]
push 0x10086d0
push 0x30
push eax
call fcn.0100ce06
mov eax, dword [ebp - 0x3c8]
mov ecx, dword [eax]
add esp, 0x10
push dword [ebp - 0x3d0]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x3c0]
movzx ecx, word [eax + 0x1a]
movzx eax, word [eax + 0x18]
push ecx
push eax
push 0x100d544
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0100db6a
mov eax, dword [ebp - 0x3b0]
mov ecx, dword [eax]
add esp, 0x14
push eax
call dword [ecx + 0xc]
cmp eax, ebx
mov dword [ebp - 0x3d8], eax
mov dword [ebp - 0x3c4], ebx
jbe 0x100d45e
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov eax, dword [ebp - 0x3bc]
cmp eax, ebx
je 0x100d096
cmp dword [ebp - 0x3a8], ebx
je 0x100d08a
push dword [ebp - 0x3a8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x3bc]
mov dword [ebp - 0x3a8], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x3bc], ebx
mov eax, dword [ebp - 0x3b0]
mov ecx, dword [eax]
lea edx, [ebp - 0x3bc]
push edx
push dword [ebp - 0x3c4]
push eax
call dword [ecx + 0x10]
mov esi, eax
cmp esi, ebx
jl 0x100d427
mov eax, dword [ebp - 0x3bc]
mov ecx, dword [eax]
lea edx, [ebp - 0x3a8]
push edx
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, ebx
jl 0x100d427
mov eax, dword [ebp - 0x3a8]
cmp dword [eax + 0x28], 5
jne 0x100d427
test byte [eax + 0x36], 2
je 0x100d427
push dword [ebp - 0x3b4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x3b0]
push ebx
push ebx
push ebx
lea edx, [ebp - 0x3b4]
push edx
push dword [ebp - 0x3c4]
mov dword [ebp - 0x3b4], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov esi, eax
cmp esi, ebx
jl 0x100d427
lea eax, [ebp - 0x3d4]
push eax
push dword [ebp - 0x3a8]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
cmp esi, ebx
jl 0x100d45d
push dword [ebp - 0x3d4]
lea eax, [ebp - 0x54]
push 0x10086d0
push 0x30
push eax
call fcn.0100db6a
mov eax, dword [ebp - 0x3c8]
mov ecx, dword [eax]
add esp, 0x10
push dword [ebp - 0x3d4]
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x3b4], ebx
je 0x100d1d6
cmp dword [ebp - 0x3a0], ebx
je 0x100d18c
push dword [ebp - 0x3a0]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x3b4]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
lea eax, [esi + 1]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 0x3a0], eax
je 0x100d440
push ebx
push ebx
push esi
push eax
push 0xffffffffffffffff
push dword [ebp - 0x3b4]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x100d447
cmp dword [ebp - 0x3a4], ebx
je 0x100d1f0
push dword [ebp - 0x3a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3a4], ebx
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x3cc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
jle 0x100d215
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d45d
cmp dword [ebp - 0x3ac], ebx
je 0x100d239
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3ac], ebx
lea eax, [ebp - 0x3ac]
push eax
push 0x10086a0
push dword [ebp - 0x3a4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
jle 0x100d25f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d45d
lea eax, [ebp - 0x18c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d272
sub eax, edx
push eax
lea eax, [ebp - 0x18c]
push eax
push 1
push ebx
push dword [ebp - 0x3ac]
call edi
cmp eax, ebx
jle 0x100d29c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d45d
lea eax, [ebp - 0x84]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d2af
sub eax, edx
push eax
lea eax, [ebp - 0x84]
push eax
push 1
push 0x10086c8
push dword [ebp - 0x3a4]
call edi
cmp eax, ebx
jle 0x100d2dd
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d45d
lea eax, [ebp - 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d2ed
sub eax, edx
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0x10086c0
push dword [ebp - 0x3a4]
call edi
cmp eax, ebx
jle 0x100d318
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d45d
cmp dword [ebp - 0x3a0], ebx
je 0x100d427
mov eax, dword [ebp - 0x3a0]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d337
sub eax, esi
push eax
push dword [ebp - 0x3a0]
push 1
push ebx
push dword [ebp - 0x3a4]
call edi
cmp eax, ebx
jle 0x100d360
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d45d
mov eax, dword [ebp - 0x3a0]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d373
sub eax, esi
push eax
push dword [ebp - 0x3a0]
push 1
push 0x10086b0
push dword [ebp - 0x3a4]
call edi
cmp eax, ebx
jle 0x100d3a0
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d45d
cmp dword [ebp - 0x3b8], ebx
je 0x100d3c4
push dword [ebp - 0x3b8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3b8], ebx
lea eax, [ebp - 0x3b8]
push eax
push dword [ebp - 0x3a0]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
jle 0x100d3ea
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d45d
lea eax, [ebp - 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d3f6
sub eax, edx
push eax
lea eax, [ebp - 0x54]
push eax
push 1
push 0x10086b8
push dword [ebp - 0x3b8]
call edi
cmp eax, ebx
jle 0x100d421
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d45d
inc dword [ebp - 0x3c4]
mov eax, dword [ebp - 0x3c4]
cmp eax, dword [ebp - 0x3d8]
jae 0x100d45d
jmp 0x100d060
mov esi, 0x8007000e
jmp 0x100d45d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100d45b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
pop edi
mov eax, dword [ebp - 0x3c8]
cmp eax, ebx
je 0x100d46e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x3b0]
cmp eax, ebx
je 0x100d498
cmp dword [ebp - 0x3c0], ebx
je 0x100d492
push dword [ebp - 0x3c0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x3b0]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x3bc]
cmp eax, ebx
je 0x100d4c2
cmp dword [ebp - 0x3a8], ebx
je 0x100d4bc
push dword [ebp - 0x3a8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x3bc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x3b8], ebx
je 0x100d4d6
push dword [ebp - 0x3b8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3ac], ebx
je 0x100d4ea
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3a4], ebx
je 0x100d4fe
push dword [ebp - 0x3a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3cc], ebx
je 0x100d512
push dword [ebp - 0x3cc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x3b4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x3a0], ebx
je 0x100d532
push dword [ebp - 0x3a0]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001508
leave
ret