Function at 0x405fc0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4185e6
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x42668c]
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]
xor ebx, ebx
mov dword [ebp - 0x2c8], ebx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x258], ebx
lea edx, [ebp - 0x2c8]
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x2c8], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x248], ebx
call fcn.00405d20
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c8]
cmp eax, 4
jge 0x4060a5
cmp eax, 3
jne 0x40609c
push 0xffffffffffffffff
push str.Windows_Vista
lea ecx, [ebp - 0x2dc]
call fcn.00402130
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x254]
mov ebx, 1
call fcn.004023d0
test al, al
jne 0x4060a5
mov byte [ebp - 0x2c1], 0
jmp 0x4060ac
mov byte [ebp - 0x2c1], 1
test bl, 1
je 0x406109
mov eax, dword [ebp - 0x2dc]
test eax, eax
je 0x4060ce
push eax
call fcn.00408538
add esp, 4
mov dword [ebp - 0x2dc], 0
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2d8], 0
test eax, eax
je 0x406109
push eax
call fcn.00408538
add esp, 4
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 0
cmp byte [ebp - 0x2c1], 0
mov eax, dword [0x428bf4]
je 0x4061c1
test al, 1
jne 0x406162
or eax, 1
mov dword [0x428bf4], eax
mov byte [ebp - 4], 3
sub esp, 8
mov dword [0x428a14], 0
mov dword [0x428a18], 0
mov dword [0x428a1c], 0
call fcn.004019b0
push 0x418790
call fcn.00407612
add esp, 4
mov byte [ebp - 4], 2
push str.after_vista__use_advfirewall
push str.WeChatExtMgr
push 0xc6
push str.WeChatExtMgr.cpp
push 1
push 0x4289f8
call fcn.00401f50
mov eax, dword [esi]
add esp, 0x18
cmp byte [ebp + 0xc], 0
je 0x4061a7
test eax, eax
je 0x406197
cmp word [eax], 0
jne 0x40619c
mov eax, 0x423ff0
push eax
push str._c_netsh_advfirewall_firewall_add_rule_name_WeChat__dirin_program__s__actionallow_protocolTCP_profileany_description_Wechat_
jmp 0x40625f
test eax, eax
je 0x4061b1
cmp word [eax], 0
jne 0x4061b6
mov eax, 0x423ff0
push eax
push str._c_netsh_advfirewall_firewall_delete_rule_name_WeChat__program__s_
jmp 0x40625f
test al, 1
jne 0x406208
or eax, 1
mov dword [0x428bf4], eax
mov byte [ebp - 4], 4
sub esp, 8
mov dword [0x428a14], 0
mov dword [0x428a18], 0
mov dword [0x428a1c], 0
call fcn.004019b0
push 0x418790
call fcn.00407612
add esp, 4
mov byte [ebp - 4], 2
push str.before_vista__use_firewall
push str.WeChatExtMgr
push 0xd2
push str.WeChatExtMgr.cpp
push 1
push 0x4289f8
call fcn.00401f50
mov eax, dword [esi]
add esp, 0x18
cmp byte [ebp + 0xc], 0
je 0x40624a
test eax, eax
je 0x40623d
cmp word [eax], 0
jne 0x406242
mov eax, 0x423ff0
push eax
push str._c_netsh_firewall_add_allowedprogram_program__s__name_WeChat___modeENABLE_profileALL
jmp 0x40625f
test eax, eax
je 0x406254
cmp word [eax], 0
jne 0x406259
mov eax, 0x423ff0
push eax
push str._c_netsh_firewall_delete_allowedprogram_program__s_
lea eax, [ebp - 0x240]
push eax
call fcn.00402480
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0040b380
add esp, 0xc
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x22c]
test eax, eax
je 0x40631d
lea eax, [ebp - 0x218]
push eax
call fcn.00402350
mov eax, dword [ebp - 0x228]
add eax, 0x11
push eax
lea ecx, [ebp - 0x22c]
call fcn.00402570
mov esi, dword [ebp - 0x22c]
push str._system32cmd.exe
push eax
push esi
call fcn.0040825a
add esp, 0xc
add dword [ebp - 0x228], 0x11
jmp 0x40632d
push str.c:windows_system32cmd.exe
call fcn.00402350
mov esi, dword [ebp - 0x22c]
mov ecx, 0x44
lea eax, [ebp - 0x2b0]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x406338
mov edi, dword [ebp - 0x240]
xor eax, eax
mov dword [ebp - 0x2b0], 0x44
mov dword [ebp - 0x284], 1
mov word [ebp - 0x280], ax
test edi, edi
je 0x40636f
cmp word [edi], ax
mov eax, edi
jne 0x406374
mov eax, 0x423ff0
test esi, esi
je 0x406380
cmp word [esi], 0
mov ecx, esi
jne 0x406385
mov ecx, 0x423ff0
lea edx, [ebp - 0x2c0]
push edx
lea edx, [ebp - 0x2b0]
push edx
push 0
push 0
push 0x10
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406445
push 0xffffffffffffffff
push dword [ebp - 0x2c0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x428bf4]
test al, 1
jne 0x406409
or eax, 1
mov dword [0x428bf4], eax
mov byte [ebp - 4], 6
sub esp, 8
mov dword [0x428a14], 0
mov dword [0x428a18], 0
mov dword [0x428a1c], 0
call fcn.004019b0
push 0x418790
call fcn.00407612
add esp, 4
mov byte [ebp - 4], 5
push dword [ebp - 0x2c0]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push str.Process_with_ID:__d_has_exited
push str.WeChatExtMgr
push 0xfd
push str.WeChatExtMgr.cpp
push 1
push 0x4289f8
call fcn.00401f50
add esp, 0x1c
push dword [ebp - 0x2c0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x406452
push esi
call fcn.00408538
add esp, 4
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x406465
push eax
call fcn.00408538
add esp, 4
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x406478
push eax
call fcn.00408538
add esp, 4
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x40648b
push eax
call fcn.00408538
add esp, 4
test edi, edi
je 0x406498
push edi
call fcn.00408538
add esp, 4
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x4064ab
push eax
call fcn.00408538
add esp, 4
mov al, 1
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.00406a3a
mov esp, ebp
pop ebp
ret 8