Function at 0x41df50
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5956
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4e43e0]
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
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 4], 0
mov ecx, str.ComputerZ_Tray
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41dfdc
test dx, dx
je 0x41dfd8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41dfdc
add eax, 4
add ecx, 4
test dx, dx
jne 0x41dfb6
xor eax, eax
jmp 0x41dfe1
sbb eax, eax
or eax, 1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x238]
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionRun
test eax, eax
jne 0x41e007
push SysReAllocString
call fcn.0040ce20
jmp 0x41e019
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040ce20
test eax, eax
jne 0x41e1d4
lea ecx, [ebp - 0x22c]
call fcn.00409950
push dword [edi + 8]
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 1
push dword [edi]
push str._s___s_
push eax
call fcn.0040a940
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004421a0
mov edi, dword [ebp - 0x238]
lea eax, [ebp - 0x228]
add esp, 0x1c
mov dword [ebp - 0x228], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x23c]
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e0a9
mov eax, dword [ebp - 0x23c]
cmp eax, 1
je 0x41e097
cmp eax, 2
jne 0x41e0a9
cmp dword [ebp - 0x228], 0
jne 0x41e0a9
xor eax, eax
mov word [ebp - 0x218], ax
mov esi, dword [ebp - 0x22c]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0046a6b6
add esp, 8
test eax, eax
je 0x41e0f9
test esi, esi
je 0x41e0f9
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e0d0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp - 0x240]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
call fcn.0040ce20
mov edi, dword [ebp - 0x224]
test eax, eax
jne 0x41e147
push str.Computer_Z
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
call fcn.0040ce20
mov ebx, dword [ebp - 0x224]
test eax, eax
jne 0x41e195
push str.Computer_Z
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test ebx, ebx
je 0x41e1a4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
jmp 0x41e1aa
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x41e1b1
push edi
call ebx
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41e1cd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x41e1d6
xor esi, esi
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x41e1e3
push eax
call ebx
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.0042a228
mov esp, ebp
pop ebp
ret 8