Function at 0x41ed30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x461fec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x110]
push ecx
push 0x20006
push 0
push edi
push 0x80000000
mov dword [ebp - 0x10c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41ed98
push 0
lea edx, [ebp - 0x110]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41eda2
mov edi, dword [ebp - 0x110]
test edi, edi
jne 0x41edb4
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 1
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x110]
push eax
push 0x20006
push 0
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41ee18
push 0
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41efa3
mov ebx, dword [ebp - 0x110]
mov dword [ebp - 0x114], ebx
test ebx, ebx
je 0x41efa3
push esi
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x108]
push eax
call esi
xor ecx, ecx
test eax, eax
jle 0x41ee67
nop
cmp byte [ebp + ecx - 0x108], 0x2e
jne 0x41ee62
mov byte [ebp + ecx - 0x108], 0x20
inc ecx
cmp ecx, eax
jl 0x41ee50
push eax
lea ecx, [ebp - 0x108]
push ecx
push 1
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov edi, dword [ebp - 0x10c]
test edi, edi
je 0x41efe5
push edi
call esi
test eax, eax
je 0x41efe5
push edi
lea edx, [ebp - 0x108]
push str.__s_____1_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push 0x20006
push 0
push str.shellOpencommand
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41eef1
push 0
lea ecx, [ebp - 0x10c]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.shellOpencommand
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41ef9c
mov esi, dword [ebp - 0x10c]
test esi, esi
je 0x41ef9c
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41efdf
push eax
push edi
lea ecx, [ebp - 0x108]
push str.__s___d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [ebp - 0x114]
add esp, 0x10
lea edx, [ebp - 0x10c]
push edx
push 0x20006
push 0
push str.DefaultIcon
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41ef92
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.DefaultIcon
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41ef9c
mov esi, dword [ebp - 0x10c]
test esi, esi
jne 0x41efb6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x108]
push edx
push 1
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41efe5
mov ebx, dword [ebp - 0x114]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00435c3d
mov esp, ebp
pop ebp
ret