Function at 0xffdf5ee
Capabilities:
Set registry value

Disassembly:
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 0xffdf60a
sub eax, ecx
push edi
add eax, 0x33
push eax
call fcn.0ffe82b0
mov edx, eax
cmp edx, ebx
mov dword [ebp - 0x14], edx
je 0xffdf713
mov eax, dword [ebp + 8]
push 0xc
pop ecx
mov esi, 0xffd14f8
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 0xffdf63e
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xffdf64a
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 0xffd14f7
push ebx
push edx
and ecx, 3
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0xffdf7dd
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0xffdf68f
sub eax, ecx
inc eax
push eax
push dword [ebp + 0xc]
push 1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xffd14ec
push dword [ebp - 4]
call ebx
xor edi, edi
cmp eax, edi
jne 0xffdf7dd
push 4
pop esi
push esi
lea eax, [ebp + 0x18]
push eax
push esi
push edi
push 0xffd14e4
push dword [ebp - 4]
call ebx
cmp eax, edi
jne 0xffdf7dd
cmp dword [ebp + 0x24], edi
je 0xffdf71b
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push 0xffd14d8
push dword [ebp - 4]
call ebx
cmp eax, edi
jne 0xffdf7dd
mov eax, dword [ebp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xffdf6fa
sub eax, edx
add eax, 0x3a
push eax
call fcn.0ffe82b0
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0xffdf72b
push 8
pop esi
jmp 0xffdf7df
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 3
push edi
push 0xffd14cc
jmp 0xffdf6e7
push 0xe
pop ecx
mov esi, 0xffd1490
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 0xffdf73d
sub ecx, esi
mov edi, eax
mov edx, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xffdf74b
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 0xffd14f7
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0xffdf7dd
cmp dword [ebp - 0x10], 1
je 0xffdf793
cmp dword [ebp + 0x28], esi
je 0xffdf7df
mov eax, dword [ebp + 8]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xffdf799
sub eax, edi
inc eax
push eax
push dword [ebp + 8]
push 1
push esi
push 0xffd1488
push dword [ebp - 8]
call ebx
cmp eax, esi
jne 0xffdf7dd
mov eax, dword [ebp + 0x20]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xffdf7be
sub eax, edi
inc eax
push eax
push dword [ebp + 0x20]
push 1
push esi
push 0xffd147c
push dword [ebp - 8]
call ebx
cmp eax, esi
je 0xffdf7df
mov esi, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0xffdf7f1
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0xffdf7fb
push dword [ebp - 8]
call edi
cmp dword [ebp - 0x14], ebx
pop edi
je 0xffdf809
push dword [ebp - 0x14]
call fcn.0ffe82e0
cmp dword [ebp - 0xc], ebx
je 0xffdf816
push dword [ebp - 0xc]
call fcn.0ffe82e0
mov eax, esi
pop esi
pop ebx
leave
ret 0x24