Function at 0x100d18d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3d8
mov eax, dword [0x1019004]
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 0x100d78a
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 0x100d23a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100d233
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x100d78a
cmp byte [ebp - 0x88], bl
je 0x100d24c
mov esi, 0x8007007a
jmp 0x100d78a
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 0x100d21f
push 0x5c
pop ecx
add eax, eax
push 0x32
mov word [ebp + eax - 0x39e], cx
pop ecx
mov word [ebp + eax - 0x39c], cx
xor ecx, ecx
mov word [ebp + eax - 0x39a], cx
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 0x100d78a
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 0x100d78a
lea eax, [ebp - 0x3cc]
push eax
push 0x100860c
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jle 0x100d2ed
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d78a
lea eax, [ebp - 0x3d0]
push eax
push dword [ebp - 0x3c0]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
cmp esi, ebx
jl 0x100d78a
push dword [ebp - 0x3d0]
lea eax, [ebp - 0x84]
push 0x1008624
push 0x30
push eax
call fcn.0100d12e
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 0x100d870
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0100de8e
mov eax, dword [ebp - 0x3b0]
mov ecx, dword [eax]
add esp, 0x14
push eax
call dword [ecx + 0xc]
mov dword [ebp - 0x3d8], eax
mov dword [ebp - 0x3c4], ebx
cmp eax, ebx
jbe 0x100d78a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov eax, dword [ebp - 0x3bc]
cmp eax, ebx
je 0x100d3c2
cmp dword [ebp - 0x3a8], ebx
je 0x100d3b6
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 0x100d753
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 0x100d753
mov eax, dword [ebp - 0x3a8]
cmp dword [eax + 0x28], 5
jne 0x100d753
test byte [eax + 0x36], 2
je 0x100d753
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 0x100d753
lea eax, [ebp - 0x3d4]
push eax
push dword [ebp - 0x3a8]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
cmp esi, ebx
jl 0x100d789
push dword [ebp - 0x3d4]
lea eax, [ebp - 0x54]
push 0x1008624
push 0x30
push eax
call fcn.0100de8e
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 0x100d502
cmp dword [ebp - 0x3a0], ebx
je 0x100d4b8
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_
pop ecx
mov dword [ebp - 0x3a0], eax
cmp eax, ebx
je 0x100d76c
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 0x100d773
cmp dword [ebp - 0x3a4], ebx
je 0x100d51c
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 0x100d541
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d789
cmp dword [ebp - 0x3ac], ebx
je 0x100d565
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3ac], ebx
lea eax, [ebp - 0x3ac]
push eax
push 0x10085f4
push dword [ebp - 0x3a4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
jle 0x100d58b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d789
lea eax, [ebp - 0x18c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d59e
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 0x100d5c8
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d789
lea eax, [ebp - 0x84]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d5db
sub eax, edx
push eax
lea eax, [ebp - 0x84]
push eax
push 1
push 0x100861c
push dword [ebp - 0x3a4]
call edi
cmp eax, ebx
jle 0x100d609
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d789
lea eax, [ebp - 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d619
sub eax, edx
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0x1008614
push dword [ebp - 0x3a4]
call edi
cmp eax, ebx
jle 0x100d644
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d789
cmp dword [ebp - 0x3a0], ebx
je 0x100d753
mov eax, dword [ebp - 0x3a0]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d663
sub eax, esi
push eax
push dword [ebp - 0x3a0]
push 1
push ebx
push dword [ebp - 0x3a4]
call edi
cmp eax, ebx
jle 0x100d68c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d789
mov eax, dword [ebp - 0x3a0]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d69f
sub eax, esi
push eax
push dword [ebp - 0x3a0]
push 1
push 0x1008604
push dword [ebp - 0x3a4]
call edi
cmp eax, ebx
jle 0x100d6cc
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d789
cmp dword [ebp - 0x3b8], ebx
je 0x100d6f0
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 SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
jle 0x100d716
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d789
lea eax, [ebp - 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d722
sub eax, edx
push eax
lea eax, [ebp - 0x54]
push eax
push 1
push 0x100860c
push dword [ebp - 0x3b8]
call edi
cmp eax, ebx
jle 0x100d74d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d789
inc dword [ebp - 0x3c4]
mov eax, dword [ebp - 0x3c4]
cmp eax, dword [ebp - 0x3d8]
jae 0x100d789
jmp 0x100d38c
mov esi, 0x8007000e
jmp 0x100d789
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100d787
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
pop edi
mov eax, dword [ebp - 0x3c8]
cmp eax, ebx
je 0x100d79a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x3b0]
cmp eax, ebx
je 0x100d7c4
cmp dword [ebp - 0x3c0], ebx
je 0x100d7be
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 0x100d7ee
cmp dword [ebp - 0x3a8], ebx
je 0x100d7e8
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 0x100d802
push dword [ebp - 0x3b8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3ac], ebx
je 0x100d816
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3a4], ebx
je 0x100d82a
push dword [ebp - 0x3a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3cc], ebx
je 0x100d83e
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 0x100d85e
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.01001375
leave
ret