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

Disassembly:
push ebp
lea ebp, [esp - 0x1c8]
sub esp, 0x248
mov eax, dword [0x426040]
xor eax, ebp
mov dword [ebp + 0x1c4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x6c], ax
xor esi, esi
lea eax, [ebp - 0x6a]
push esi
push eax
call fcn.004105d0
add esp, 0xc
xor eax, eax
push 9
mov word [ebp + 0x19c], ax
pop ecx
lea edi, [ebp + 0x19e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x428b28
mov ebx, 0x104
mov eax, edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401dff
sub eax, edx
sar eax, 1
je 0x401e24
push edi
push esi
push 0x20000
call dword [sym.imp.KERNEL32.DLL_OpenEventW]
test eax, eax
jne 0x401fc2
lea eax, [ebp - 0x70]
push eax
push 0xf003f
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401e92
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x19c]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push str.TrayKey
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401e89
lea eax, [ebp + 0x19c]
push eax
push esi
push 0x20000
call dword [sym.imp.KERNEL32.DLL_OpenEventW]
test eax, eax
je 0x401e89
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401fc2
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
push ebx
mov dword [ebp - 0x74], esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401ea5
sub eax, edx
sar eax, 1
lea eax, [ebp - 0x6c]
jne 0x401ee1
push str.sege
push ebx
push eax
call fcn.0040d4b4
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + str.sege]
mov word [ebp + eax + 0x19c], cx
inc eax
inc eax
cmp cx, si
jne 0x401ec9
jmp 0x401f04
push edi
push ebx
push eax
call fcn.0040d4b4
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + 0x428b28]
mov word [ebp + eax + 0x19c], cx
inc eax
inc eax
cmp cx, si
jne 0x401eee
push 0x421d94
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0040d4b4
lea eax, [ebp - 0x74]
push eax
push str.IDR_BINARY
push 0x84
call fcn.004056d0
mov edi, eax
add esp, 0x18
cmp edi, esi
je 0x401fc2
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.004057b0
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 1
push esi
push 0x421ce8
lea eax, [ebp - 0x6c]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0x70]
push eax
push 3
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401fbb
lea eax, [ebp + 0x19c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401f83
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp + 0x19c]
push eax
push 1
push esi
push str.TrayKey
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401fbb
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0040dce2
pop ecx
mov ecx, dword [ebp + 0x1c4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040d4a5
add ebp, 0x1c8
leave
ret