Function at 0x494d80
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5107e5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [eax + 0x14]
mov esi, dword [eax]
cmp esi, eax
je 0x4950ec
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.HKEY_LOCAL_MACHINE
push dword [esi + 0x10]
call fcn.004e3717
add esp, 8
test eax, eax
jne 0x494dde
mov edi, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x494e67
push str.HKEY_CLASSES_ROOT
push dword [esi + 0x10]
call fcn.004e3717
add esp, 8
test eax, eax
jne 0x494df9
mov edi, SysReAllocString
jmp 0x494e67
push str.HKEY_CURRENT_USER
push dword [esi + 0x10]
call fcn.004e3717
add esp, 8
test eax, eax
jne 0x494e14
mov edi, SysReAllocString
jmp 0x494e67
push str.HKEY_USERS
push dword [esi + 0x10]
call fcn.004e3717
add esp, 8
test eax, eax
jne 0x494e2f
mov edi, reloc.WS2_32.dll_closesocket
jmp 0x494e67
push str.HKEY_CURRENT_CONFIG
push dword [esi + 0x10]
call fcn.004e3717
add esp, 8
test eax, eax
jne 0x494e4a
mov edi, VariantInit
jmp 0x494e67
push str.HKEY_CURRENT_USER_LOCAL_SETTINGS
push dword [esi + 0x10]
call fcn.004e3717
add esp, 8
test eax, eax
jne 0x4950d8
mov edi, reloc.OLEAUT32.dll_VariantInit
movzx eax, word [esi + 0xa]
cmp eax, dword [ebp + 8]
jne 0x4950d8
movzx eax, word [esi + 8]
sub eax, 0
je 0x494fd3
sub eax, 1
jne 0x4950d8
mov dword [ebp - 4], 1
cmp dword [esi + 0xc], 0
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
je 0x494ee9
cmp dword [0x550c0c], 0xffffffff
jne 0x494ee9
push 0x53661c
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x494edc
push 0x550c0c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
jne 0x494ee6
mov dword [0x550c0c], 0
mov eax, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x494fb0
mov eax, dword [esi + 0x18]
cmp dword [eax - 0xc], 0
jle 0x494fb0
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
push str.HandleRegister_Write_key_s__subkey_s__name_s.
push 0x550bb8
call fcn.0048d900
add esp, 0x14
cmp dword [esi + 0x1c], 4
jne 0x494f57
push dword [esi + 0x20]
call fcn.004e8f3d
mov dword [ebp - 0x1c], eax
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x494fa3
push 4
lea ecx, [ebp - 0x1c]
push ecx
push 4
jmp 0x494f80
mov eax, dword [ebp - 0x10]
mov edi, dword [esi + 0x20]
test eax, eax
je 0x494fa3
mov edx, edi
lea ebx, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x494f66
sub edx, ebx
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push edi
push 1
push 0
push dword [esi + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x494fa9
push eax
call edi
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x494fb9
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x494fb9
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x494fc7
push eax
call edi
mov dword [ebp - 0x10], 0
jmp 0x4950d8
mov eax, dword [esi + 0x18]
cmp dword [eax - 0xc], 0
jne 0x495006
push dword [esi + 0x14]
push dword [esi + 0x10]
push str.HandleRegister_DeleteSubKeyTree_key_s__subkey_s.
push 0x550bb8
call fcn.0048d900
push dword [esi + 0xc]
mov edx, dword [esi + 0x14]
mov ecx, edi
call fcn.0048a290
add esp, 0x14
jmp 0x4950d8
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
push str.HandleRegister_DeleteValue_key_s__subkey_s__name_s.
push 0x550bb8
call fcn.0048d900
add esp, 0x14
mov dword [ebp - 4], 0
cmp dword [esi + 0xc], 0
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
je 0x495084
cmp dword [0x550c0c], 0xffffffff
jne 0x495084
push 0x53661c
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x495071
push 0x550c0c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
jne 0x49507b
mov dword [0x550c0c], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov eax, dword [ebp - 0x14]
jne 0x4950c3
test eax, eax
je 0x4950be
push dword [esi + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4950be
push eax
call ebx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4950d1
push eax
call ebx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x20]
mov esi, dword [esi]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, dword [eax + 0x14]
jne 0x494dc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4