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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x300], ax
xor ebx, ebx
lea eax, [ebp - 0x2fe]
push ebx
push eax
call fcn.00407ee0
add esp, 0xc
xor eax, eax
push 9
mov word [ebp - 0x2c], ax
pop ecx
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x417a08
mov eax, edi
mov dword [ebp - 0x310], ebx
mov dword [ebp - 0x30c], 0x104
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4013fe
mov esi, dword [sym.imp.KERNEL32.DLL_OpenEventW]
sub eax, edx
sar eax, 1
je 0x401426
push edi
push ebx
push 0x20000
call esi
test eax, eax
jne 0x4015eb
lea eax, [ebp - 0x304]
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40148f
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x310]
push eax
push ebx
push str.TrayKey
push dword [ebp - 0x304]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401483
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x20000
call esi
test eax, eax
jne 0x4015df
push dword [ebp - 0x304]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x300]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4014a7
sub eax, edx
sar eax, 1
jne 0x4014e8
push str.ahnlab
push 0x41335c
mov edi, 0x417c80
push edi
call fcn.00401b0a
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + str.ahnlab]
mov word [ebp + eax - 0x2c], cx
add eax, 2
cmp cx, bx
jne 0x4014d2
jmp 0x401512
push edi
push 0x41335c
mov edi, 0x417c80
push edi
call fcn.00401b0a
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + 0x417a08]
mov word [ebp + eax - 0x2c], cx
add eax, 2
cmp cx, bx
jne 0x4014fe
push edi
lea eax, [ebp - 0x300]
push esi
push eax
call fcn.00404597
add esp, 0xc
cmp dword [0x415f10], 3
jne 0x401533
push 0x2b66
jmp 0x401538
push 0x2b70
call fcn.0040169a
pop ecx
cmp eax, ebx
jne 0x4015eb
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 1
push ebx
push 0x41326c
lea eax, [ebp - 0x300]
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 - 0xf8]
rep movsd dword es:[edi], dword [esi]
push 0x5e
lea eax, [ebp - 0x8e]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.00407ee0
add esp, 0xc
lea eax, [ebp - 0x304]
push eax
push 3
push ebx
lea eax, [ebp - 0xf8]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4015eb
lea eax, [ebp - 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4015af
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x2c]
push eax
push 1
push ebx
push str.TrayKey
push dword [ebp - 0x304]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4015eb
push dword [ebp - 0x304]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00404588
leave
ret