Function at 0x100d191
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 0x100d78e
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 0x100d23e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100d237
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x100d78e
cmp byte [ebp - 0x88], bl
je 0x100d250
mov esi, 0x8007007a
jmp 0x100d78e
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 0x100d223
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 0x100d78e
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 0x100d78e
lea eax, [ebp - 0x3cc]
push eax
push 0x1008614
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jle 0x100d2f1
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d78e
lea eax, [ebp - 0x3d0]
push eax
push dword [ebp - 0x3c0]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
cmp esi, ebx
jl 0x100d78e
push dword [ebp - 0x3d0]
lea eax, [ebp - 0x84]
push 0x100862c
push 0x30
push eax
call fcn.0100d132
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 0x100d874
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0100de92
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 0x100d78e
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov eax, dword [ebp - 0x3bc]
cmp eax, ebx
je 0x100d3c6
cmp dword [ebp - 0x3a8], ebx
je 0x100d3ba
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 0x100d757
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 0x100d757
mov eax, dword [ebp - 0x3a8]
cmp dword [eax + 0x28], 5
jne 0x100d757
test byte [eax + 0x36], 2
je 0x100d757
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 0x100d757
lea eax, [ebp - 0x3d4]
push eax
push dword [ebp - 0x3a8]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
cmp esi, ebx
jl 0x100d78d
push dword [ebp - 0x3d4]
lea eax, [ebp - 0x54]
push 0x100862c
push 0x30
push eax
call fcn.0100de92
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 0x100d506
cmp dword [ebp - 0x3a0], ebx
je 0x100d4bc
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 0x100d770
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 0x100d777
cmp dword [ebp - 0x3a4], ebx
je 0x100d520
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 0x100d545
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d78d
cmp dword [ebp - 0x3ac], ebx
je 0x100d569
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3ac], ebx
lea eax, [ebp - 0x3ac]
push eax
push 0x10085fc
push dword [ebp - 0x3a4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
jle 0x100d58f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d78d
lea eax, [ebp - 0x18c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d5a2
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 0x100d5cc
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d78d
lea eax, [ebp - 0x84]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d5df
sub eax, edx
push eax
lea eax, [ebp - 0x84]
push eax
push 1
push 0x1008624
push dword [ebp - 0x3a4]
call edi
cmp eax, ebx
jle 0x100d60d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d78d
lea eax, [ebp - 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d61d
sub eax, edx
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0x100861c
push dword [ebp - 0x3a4]
call edi
cmp eax, ebx
jle 0x100d648
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d78d
cmp dword [ebp - 0x3a0], ebx
je 0x100d757
mov eax, dword [ebp - 0x3a0]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d667
sub eax, esi
push eax
push dword [ebp - 0x3a0]
push 1
push ebx
push dword [ebp - 0x3a4]
call edi
cmp eax, ebx
jle 0x100d690
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d78d
mov eax, dword [ebp - 0x3a0]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d6a3
sub eax, esi
push eax
push dword [ebp - 0x3a0]
push 1
push 0x100860c
push dword [ebp - 0x3a4]
call edi
cmp eax, ebx
jle 0x100d6d0
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d78d
cmp dword [ebp - 0x3b8], ebx
je 0x100d6f4
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 0x100d71a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d78d
lea eax, [ebp - 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d726
sub eax, edx
push eax
lea eax, [ebp - 0x54]
push eax
push 1
push 0x1008614
push dword [ebp - 0x3b8]
call edi
cmp eax, ebx
jle 0x100d751
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d78d
inc dword [ebp - 0x3c4]
mov eax, dword [ebp - 0x3c4]
cmp eax, dword [ebp - 0x3d8]
jae 0x100d78d
jmp 0x100d390
mov esi, 0x8007000e
jmp 0x100d78d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100d78b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
pop edi
mov eax, dword [ebp - 0x3c8]
cmp eax, ebx
je 0x100d79e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x3b0]
cmp eax, ebx
je 0x100d7c8
cmp dword [ebp - 0x3c0], ebx
je 0x100d7c2
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 0x100d7f2
cmp dword [ebp - 0x3a8], ebx
je 0x100d7ec
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 0x100d806
push dword [ebp - 0x3b8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3ac], ebx
je 0x100d81a
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3a4], ebx
je 0x100d82e
push dword [ebp - 0x3a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3cc], ebx
je 0x100d842
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 0x100d862
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