Function at 0x41df90
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 0x4b59a6
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 0x41e01c
test dx, dx
je 0x41e018
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41e01c
add eax, 4
add ecx, 4
test dx, dx
jne 0x41dff6
xor eax, eax
jmp 0x41e021
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 0x41e047
push SysReAllocString
call fcn.0040ce20
jmp 0x41e059
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040ce20
test eax, eax
jne 0x41e214
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.004421e0
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 0x41e0e9
mov eax, dword [ebp - 0x23c]
cmp eax, 1
je 0x41e0d7
cmp eax, 2
jne 0x41e0e9
cmp dword [ebp - 0x228], 0
jne 0x41e0e9
xor eax, eax
mov word [ebp - 0x218], ax
mov esi, dword [ebp - 0x22c]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0046a6f6
add esp, 8
test eax, eax
je 0x41e139
test esi, esi
je 0x41e139
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e110
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 0x41e187
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 0x41e1d5
push str.Computer_Z
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test ebx, ebx
je 0x41e1e4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
jmp 0x41e1ea
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x41e1f1
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 0x41e20d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x41e216
xor esi, esi
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x41e223
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.0042a265
mov esp, ebp
pop ebp
ret 8