Function at 0x4b9840
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbf7d
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4fc00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4ebd18
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x228], 0
call fcn.00481660
push str.Protocol
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00482920
add esp, 4
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp - 0x244]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b98f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], 0
push eax
lea ecx, [ebp - 0x248]
call fcn.00481660
push 0x4ebd88
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x224]
call fcn.00482920
add esp, 4
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x248]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b9948
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x4ebda0
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x220], 0
call fcn.00481660
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0x24c]
call fcn.00482920
push str.____1_
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x220]
call fcn.00482920
add esp, 8
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b99b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, ebx
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b99d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
lea eax, [ebp - 0x22c]
push eax
push 0xf003f
push esi
push 0x4ebd18
push SysReAllocString
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b9a1e
lea esi, [eax + 1]
jmp 0x4b9c62
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x21c], esi
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4ebd18
push SysReAllocString
call edi
test eax, eax
je 0x4b9a5f
mov esi, 0x80004005
jmp 0x4b9c62
mov eax, dword [ebp - 0x228]
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x240], ecx
jle 0x4b9a8c
push ecx
lea ecx, [ebp - 0x228]
call fcn.0047ed50
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x240]
add ecx, ecx
push ecx
push eax
push 2
push 0
push 0
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4b9ab0
mov esi, 0x80004005
jmp 0x4b9c62
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b9ac0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 2
push 0
push 0x4ebda4
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4b9afd
mov esi, 0x80004005
jmp 0x4b9c62
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x230]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.DefaultIcon
push dword [ebp - 0x22c]
call edi
test eax, eax
je 0x4b9b33
mov esi, 0x80004005
jmp 0x4b9c62
mov eax, dword [ebp - 0x224]
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x240], ecx
jle 0x4b9b60
push ecx
lea ecx, [ebp - 0x224]
call fcn.0047ed50
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x240]
add ecx, ecx
push ecx
push eax
push 2
push 0
push 0
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4b9b84
mov esi, 0x80004005
jmp 0x4b9c62
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x234]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.shell
push dword [ebp - 0x22c]
call edi
test eax, eax
je 0x4b9bba
mov esi, 0x80004005
jmp 0x4b9c62
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.open
push dword [ebp - 0x234]
call edi
test eax, eax
je 0x4b9bed
mov esi, 0x80004005
jmp 0x4b9c62
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x23c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.command
push dword [ebp - 0x238]
call edi
test eax, eax
je 0x4b9c20
mov esi, 0x80004005
jmp 0x4b9c62
mov eax, dword [ebp - 0x220]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x4b9c41
push edi
lea ecx, [ebp - 0x220]
call fcn.0047ed50
mov eax, dword [ebp - 0x220]
lea ecx, [edi + edi]
push ecx
push eax
push 2
push 0
push 0
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 0x80004005
cmovne esi, ecx
mov eax, dword [ebp - 0x22c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4b9c75
push eax
call edi
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x4b9c82
push eax
call edi
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x4b9c8f
push eax
call edi
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x4b9c9c
push eax
call edi
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x4b9ca9
push eax
call edi
cmp esi, 0x80004005
jne 0x4b9cb6
call fcn.004b97d0
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b9cd7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b9cf8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4b9d1a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bde8e
mov esp, ebp
pop ebp
ret