Function at 0x680110ae
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x680110cc
sub eax, ecx
push edi
add eax, 0x33
push eax
call fcn.68021ec0
mov edx, eax
cmp edx, ebx
mov dword [ebp - 0x14], edx
je 0x680111d5
mov eax, dword [ebp + 8]
push 0xc
pop ecx
mov esi, 0x68001598
mov edi, edx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x68011100
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x6801110c
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push 0x68001597
push ebx
push edx
and ecx, 3
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp._CADVAPI.DLL_RegCreateKeyExA]
cmp eax, ebx
jne 0x6801129f
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x68011151
sub eax, ecx
inc eax
push eax
push dword [ebp + 0xc]
push 1
push ebx
mov ebx, dword [sym.imp._CADVAPI.DLL_RegSetValueExA]
push 0x6800158c
push dword [ebp - 4]
call ebx
xor edi, edi
cmp eax, edi
jne 0x6801129f
push 4
pop esi
push esi
lea eax, [ebp + 0x18]
push eax
push esi
push edi
push 0x68001584
push dword [ebp - 4]
call ebx
cmp eax, edi
jne 0x6801129f
cmp dword [ebp + 0x24], edi
je 0x680111dd
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push 0x68001578
push dword [ebp - 4]
call ebx
cmp eax, edi
jne 0x6801129f
mov eax, dword [ebp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x680111bc
sub eax, edx
add eax, 0x3a
push eax
call fcn.68021ec0
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x680111ed
push 8
pop esi
jmp 0x680112a1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 3
push edi
push 0x6800156c
jmp 0x680111a9
push 0xe
pop ecx
mov esi, 0x68001530
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x1c]
movsb byte es:[edi], byte [esi]
mov esi, ecx
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x680111ff
sub ecx, esi
mov edi, eax
mov edx, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x6801120d
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
xor esi, esi
push esi
push 0xf003f
push esi
push 0x68001597
push esi
push eax
push 0x80000002
call dword [sym.imp._CADVAPI.DLL_RegCreateKeyExA]
cmp eax, esi
jne 0x6801129f
cmp dword [ebp - 0x10], 1
je 0x68011255
cmp dword [ebp + 0x28], esi
je 0x680112a1
mov eax, dword [ebp + 8]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6801125b
sub eax, edi
inc eax
push eax
push dword [ebp + 8]
push 1
push esi
push 0x68001528
push dword [ebp - 8]
call ebx
cmp eax, esi
jne 0x6801129f
mov eax, dword [ebp + 0x20]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x68011280
sub eax, edi
inc eax
push eax
push dword [ebp + 0x20]
push 1
push esi
push 0x6800151c
push dword [ebp - 8]
call ebx
cmp eax, esi
je 0x680112a1
mov esi, eax
mov edi, dword [sym.imp._CADVAPI.DLL_RegCloseKey]
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x680112b3
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x680112bd
push dword [ebp - 8]
call edi
cmp dword [ebp - 0x14], ebx
pop edi
je 0x680112cb
push dword [ebp - 0x14]
call fcn.68021f03
cmp dword [ebp - 0xc], ebx
je 0x680112d8
push dword [ebp - 0xc]
call fcn.68021f03
mov eax, esi
pop esi
pop ebx
leave
ret 0x24