Function at 0x24d976ea
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x30], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x24d97710
xor eax, eax
jmp 0x24d97b6f
push edi
push edi
lea eax, [ebp - 0xbc]
push pe_nt_image_headers32
push eax
push 0xffffffffffffffff
push dword [esi + 8]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esi + 0x30]
mov eax, dword [eax]
cmp eax, edi
jle 0x24d97b6a
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
add eax, 7
push eax
push edi
push dword [0x24d9fcc0]
call ebx
add dword [esi + 0x30], 4
push dword [esi + 0x30]
mov dword [ebp - 0x18], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [ebp - 0x18]
or ecx, 0xffffffff
xor eax, eax
push str.Addins
repne scasb al, byte es:[edi]
push dword [ebp - 0x18]
not ecx
add dword [esi + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x18]
push eax
call fcn.24d97579
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x30]
pop ecx
mov ecx, dword [eax]
test ecx, ecx
jle 0x24d977bb
push ecx
push 0
push dword [0x24d9fcc0]
call ebx
add dword [esi + 0x30], 4
push dword [esi + 0x30]
mov edi, eax
push edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add dword [esi + 0x30], ecx
jmp 0x24d977ca
add eax, 4
mov dword [esi + 0x30], eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
test ecx, ecx
jle 0x24d977ff
push ecx
push 0
push dword [0x24d9fcc0]
call ebx
add dword [esi + 0x30], 4
push dword [esi + 0x30]
mov edi, eax
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add dword [esi + 0x30], ecx
jmp 0x24d97805
add eax, 4
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
add eax, 4
mov dword [ebp - 0x2c], ecx
mov dword [esi + 0x30], eax
mov ecx, dword [eax]
test ecx, ecx
jle 0x24d97845
push ecx
push 0
push dword [0x24d9fcc0]
call ebx
add dword [esi + 0x30], 4
push dword [esi + 0x30]
mov edi, eax
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add dword [esi + 0x30], ecx
jmp 0x24d9784b
add eax, 4
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
test ecx, ecx
jle 0x24d9788e
push ecx
push 0
push dword [0x24d9fcc0]
call ebx
add dword [esi + 0x30], 4
push dword [esi + 0x30]
mov dword [ebp - 0x10], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [ebp - 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
lea eax, [ebp - 0x10]
not ecx
add dword [esi + 0x30], ecx
push eax
call fcn.24d97579
pop ecx
mov dword [ebp - 0x30], eax
jmp 0x24d97894
add eax, 4
mov dword [esi + 0x30], eax
add dword [esi + 0x30], 4
mov eax, dword [esi + 0x30]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [eax]
add eax, 4
mov dword [ebp - 0x3c], ecx
mov dword [esi + 0x30], eax
mov ecx, dword [eax]
add eax, 4
mov dword [ebp - 0x24], ecx
mov dword [esi + 0x30], eax
mov ecx, dword [eax]
add eax, 4
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
xor eax, eax
push eax
push 0xf003f
push eax
push 0x24d9fa2c
push eax
mov dword [ebp - 0x28], ecx
push dword [ebp - 0x18]
push dword [ebp - 0x34]
call edi
xor ecx, ecx
cmp eax, ecx
jne 0x24d97b6f
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 8]
push eax
push ecx
push 0xf003f
push ecx
push 0x24d9fa2c
lea eax, [ebp - 0xbc]
push ecx
push eax
push dword [ebp - 0x1c]
call edi
mov edi, eax
test edi, edi
jne 0x24d97b3b
mov edi, dword [ebp - 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push dword [ebp - 0xc]
push 1
push eax
push str.FriendlyName
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
jne 0x24d97b3b
cmp dword [ebp - 4], eax
je 0x24d9796f
mov edi, dword [ebp - 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push dword [ebp - 4]
push 1
push eax
push str.Description
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
jne 0x24d97b3b
cmp dword [ebp - 8], 0
je 0x24d979a1
mov edi, dword [ebp - 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push dword [ebp - 8]
push 1
push eax
push str.SatelliteDllName
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
jne 0x24d97b3b
lea eax, [ebp - 0x2c]
push 4
push eax
push 4
push 0
push str.LoadBehavior
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
jne 0x24d97b3b
lea eax, [ebp - 0x3c]
push 4
push eax
push 4
push edi
push str.CommandLineSafe
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
jne 0x24d97b3b
cmp dword [ebp - 0x10], eax
je 0x24d97a16
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0xf003f
push eax
push 0x24d9fa2c
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
test edi, edi
jne 0x24d97b3b
jmp 0x24d97a1c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0
jle 0x24d97ac9
mov eax, dword [esi + 0x30]
mov eax, dword [eax]
test eax, eax
jle 0x24d97a5d
push eax
push 0
push dword [0x24d9fcc0]
call ebx
add dword [esi + 0x30], 4
push dword [esi + 0x30]
mov edi, eax
push edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add dword [esi + 0x30], ecx
mov eax, dword [esi + 0x30]
mov eax, dword [eax]
test eax, eax
jle 0x24d97a90
push eax
push 0
push dword [0x24d9fcc0]
call ebx
add dword [esi + 0x30], 4
push dword [esi + 0x30]
mov edi, eax
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add dword [esi + 0x30], ecx
mov edi, dword [ebp - 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push dword [ebp - 8]
push 1
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
jne 0x24d97b3b
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x24]
jl 0x24d97a2a
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0
jle 0x24d97b3b
mov eax, dword [esi + 0x30]
mov eax, dword [eax]
test eax, eax
jle 0x24d97b06
push eax
push 0
push dword [0x24d9fcc0]
call ebx
add dword [esi + 0x30], 4
push dword [esi + 0x30]
mov edi, eax
push edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add dword [esi + 0x30], ecx
mov eax, dword [esi + 0x30]
push 4
mov ecx, dword [eax]
add eax, 4
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x38]
push eax
push 4
push 0
mov dword [ebp - 0x38], ecx
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
jne 0x24d97b3b
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x28]
jl 0x24d97ad3
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x24d97b50
cmp eax, dword [ebp + 8]
je 0x24d97b50
push eax
call esi
cmp dword [ebp + 8], 0
je 0x24d97b5b
push dword [ebp + 8]
call esi
cmp dword [ebp - 0x1c], 0
je 0x24d97b66
push dword [ebp - 0x1c]
call esi
mov eax, edi
jmp 0x24d97b6f
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret 4