Function at 0x100cd71
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 0x100d36a
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 0x100ce1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100ce17
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x100d36a
cmp byte [ebp - 0x88], bl
je 0x100ce30
mov esi, 0x8007007a
jmp 0x100d36a
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 0x100ce03
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 0x100d36a
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 0x100d36a
lea eax, [ebp - 0x3cc]
push eax
push 0x10085f8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jle 0x100cecd
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d36a
lea eax, [ebp - 0x3d0]
push eax
push dword [ebp - 0x3c0]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
cmp esi, ebx
jl 0x100d36a
push dword [ebp - 0x3d0]
lea eax, [ebp - 0x84]
push 0x1008610
push 0x30
push eax
call fcn.0100cd12
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 0x100d450
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0100da76
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 0x100d36a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov eax, dword [ebp - 0x3bc]
cmp eax, ebx
je 0x100cfa2
cmp dword [ebp - 0x3a8], ebx
je 0x100cf96
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 0x100d333
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 0x100d333
mov eax, dword [ebp - 0x3a8]
cmp dword [eax + 0x28], 5
jne 0x100d333
test byte [eax + 0x36], 2
je 0x100d333
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 0x100d333
lea eax, [ebp - 0x3d4]
push eax
push dword [ebp - 0x3a8]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
cmp esi, ebx
jl 0x100d369
push dword [ebp - 0x3d4]
lea eax, [ebp - 0x54]
push 0x1008610
push 0x30
push eax
call fcn.0100da76
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 0x100d0e2
cmp dword [ebp - 0x3a0], ebx
je 0x100d098
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 0x100d34c
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 0x100d353
cmp dword [ebp - 0x3a4], ebx
je 0x100d0fc
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 0x100d121
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d369
cmp dword [ebp - 0x3ac], ebx
je 0x100d145
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3ac], ebx
lea eax, [ebp - 0x3ac]
push eax
push 0x10085e0
push dword [ebp - 0x3a4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
jle 0x100d16b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d369
lea eax, [ebp - 0x18c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d17e
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 0x100d1a8
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d369
lea eax, [ebp - 0x84]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d1bb
sub eax, edx
push eax
lea eax, [ebp - 0x84]
push eax
push 1
push 0x1008608
push dword [ebp - 0x3a4]
call edi
cmp eax, ebx
jle 0x100d1e9
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d369
lea eax, [ebp - 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d1f9
sub eax, edx
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0x1008600
push dword [ebp - 0x3a4]
call edi
cmp eax, ebx
jle 0x100d224
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d369
cmp dword [ebp - 0x3a0], ebx
je 0x100d333
mov eax, dword [ebp - 0x3a0]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d243
sub eax, esi
push eax
push dword [ebp - 0x3a0]
push 1
push ebx
push dword [ebp - 0x3a4]
call edi
cmp eax, ebx
jle 0x100d26c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d369
mov eax, dword [ebp - 0x3a0]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d27f
sub eax, esi
push eax
push dword [ebp - 0x3a0]
push 1
push 0x10085f0
push dword [ebp - 0x3a4]
call edi
cmp eax, ebx
jle 0x100d2ac
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d369
cmp dword [ebp - 0x3b8], ebx
je 0x100d2d0
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 0x100d2f6
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d369
lea eax, [ebp - 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100d302
sub eax, edx
push eax
lea eax, [ebp - 0x54]
push eax
push 1
push 0x10085f8
push dword [ebp - 0x3b8]
call edi
cmp eax, ebx
jle 0x100d32d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x100d369
inc dword [ebp - 0x3c4]
mov eax, dword [ebp - 0x3c4]
cmp eax, dword [ebp - 0x3d8]
jae 0x100d369
jmp 0x100cf6c
mov esi, 0x8007000e
jmp 0x100d369
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100d367
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
pop edi
mov eax, dword [ebp - 0x3c8]
cmp eax, ebx
je 0x100d37a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x3b0]
cmp eax, ebx
je 0x100d3a4
cmp dword [ebp - 0x3c0], ebx
je 0x100d39e
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 0x100d3ce
cmp dword [ebp - 0x3a8], ebx
je 0x100d3c8
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 0x100d3e2
push dword [ebp - 0x3b8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3ac], ebx
je 0x100d3f6
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3a4], ebx
je 0x100d40a
push dword [ebp - 0x3a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3cc], ebx
je 0x100d41e
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 0x100d43e
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.010016d9
leave
ret