Function at 0x403cf0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5596f5
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x5d061c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x90], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push str.C:WindowsSystem32driversetchosts
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
call fcn.00406920
sub esp, 0xc
mov byte [ebp - 4], 1
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x22c]
push eax
call fcn.00406610
cmp dword [ebp - 0x1d0], 0
je 0x404676
mov dword [ebp - 0x130], 0x5a6ae0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
push ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x90], 1
mov dword [ebp - 0xe0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0xe4], 0x48
call fcn.00408fb0
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x130]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x130], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x134], eax
lea ecx, [ebp - 0x12c]
call fcn.00408e60
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 4
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x130]
call fcn.00405360
mov byte [ebp - 4], 7
xorps xmm0, xmm0
mov edx, dword [ebp - 0xf0]
mov eax, edx
and al, 0x22
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x90], 9
movq qword [ebp - 0x68], xmm0
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x40], 0
cmp al, 2
je 0x403eb7
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax]
test ecx, ecx
je 0x403eb7
mov eax, dword [ebp - 0x11c]
cmp ecx, dword [ebp - 0xf4]
cmovb ecx, dword [ebp - 0xf4]
mov edx, dword [eax]
sub ecx, edx
jmp 0x403ee4
test dl, 4
jne 0x403ede
mov eax, dword [ebp - 0x110]
mov esi, dword [eax]
test esi, esi
je 0x403ede
mov eax, dword [ebp - 0x120]
mov edx, dword [eax]
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax]
sub ecx, edx
add ecx, esi
jmp 0x403ee4
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x68]
test edx, edx
je 0x403ef2
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.004091d0
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x403f2d
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403f23
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404793
push ecx
push edx
call fcn.004cc152
add esp, 8
movups xmm0, xmmword [ebp - 0x40]
lea ecx, [ebp - 0x21c]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x18], xmm0
call fcn.00407d50
test eax, eax
jne 0x403f77
mov eax, dword [ebp - 0x22c]
lea ecx, [ebp - 0x22c]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004035d0
mov eax, dword [ebp - 0x22c]
lea ecx, [ebp - 0x22c]
xor edx, edx
mov edi, 4
push 0
add ecx, dword [eax + 4]
mov eax, edi
cmp dword [ecx + 0x38], edx
cmovne eax, edx
push eax
call fcn.004035d0
cmp byte [ebp + 8], 0
je 0x404296
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], esi
cmp esi, 0x18
jb 0x404070
lea eax, [esi - 0x17]
add eax, ecx
mov dword [ebp - 0x98], eax
sub eax, ecx
push eax
push 0xa
push ecx
call fcn.004d2750
mov edi, eax
add esp, 0xc
test edi, edi
je 0x404070
nop dword [eax]
mov ecx, edi
mov edx, 0x5a6904
mov esi, 0x14
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x404015
add ecx, 4
add edx, 4
sub esi, 4
jae 0x404000
xor eax, eax
jmp 0x40403a
cmp al, byte [edx]
jne 0x404035
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x404035
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x404035
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x404035
xor eax, eax
jmp 0x40403a
sbb eax, eax
or eax, 1
test eax, eax
je 0x40405b
mov eax, dword [ebp - 0x98]
inc edi
sub eax, edi
push eax
push 0xa
push edi
call fcn.004d2750
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x403ff0
jmp 0x40406a
sub edi, dword [ebp - 0x94]
cmp edi, 0xffffffff
jne 0x404167
mov esi, dword [ebp - 0x90]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmovae ecx, edx
mov dword [ebp - 0x98], ecx
cmp esi, 0x18
jb 0x404122
lea eax, [ecx - 0x17]
add eax, esi
mov dword [ebp - 0x94], eax
sub eax, ecx
push eax
push 0x23
push ecx
call fcn.004d2750
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40411f
nop dword [eax + eax]
mov ecx, edi
mov edx, 0x5a6920
mov esi, 0x14
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4040d5
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4040c0
xor eax, eax
jmp 0x4040fa
cmp al, byte [edx]
jne 0x4040f5
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4040f5
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4040f5
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4040f5
xor eax, eax
jmp 0x4040fa
sbb eax, eax
or eax, 1
test eax, eax
je 0x40415c
mov eax, dword [ebp - 0x94]
inc edi
sub eax, edi
push eax
push 0x23
push edi
call fcn.004d2750
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4040b0
mov esi, dword [ebp - 0x90]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov eax, ecx
sub eax, esi
push 0x18
push 0x5a6904
cmp eax, 0x18
jb 0x40424e
lea eax, [esi + 0x18]
cmp ecx, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, edx
add esi, eax
push esi
call fcn.004cef60
add esp, 0xc
mov byte [esi + 0x18], 0
jmp 0x404265
sub edi, dword [ebp - 0x98]
cmp edi, 0xffffffff
je 0x404119
xorps xmm0, xmm0
lea ecx, [ebp - 0x40]
push 0x20
movups xmmword [ebp - 0x40], xmm0
call fcn.00408780
movups xmm0, xmmword [str.127.0.0.1_dldir1.qq.com]
mov edx, eax
mov dword [ebp - 0x30], 0x17
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x2c], 0x1f
movups xmmword [edx], xmm0
mov ecx, dword [0x5a694c]
mov dword [edx + 0x10], ecx
mov cx, word [0x5a6950]
mov word [edx + 0x14], cx
mov al, byte [0x5a6952]
mov byte [edx + 0x16], al
mov byte [edx + 0x17], 0
xorps xmm0, xmm0
mov byte [ebp - 4], 8
push 0x20
lea ecx, [ebp - 0x74]
movups xmmword [ebp - 0x74], xmm0
call fcn.00408780
movups xmm0, xmmword [0x5a6920]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x64], 0x18
movups xmmword [eax], xmm0
mov dword [ebp - 0x60], 0x1f
movq xmm0, qword [0x5a6930]
movq qword [eax + 0x10], xmm0
mov byte [eax + 0x18], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 9
push eax
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x28]
call fcn.00403b70
add esp, 4
lea ecx, [ebp - 0x74]
call fcn.00406c70
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x404265
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404242
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404789
push ecx
push edx
call fcn.004cc152
add esp, 8
jmp 0x404265
mov byte [ebp - 0x94], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x94]
push 0x18
call fcn.00409fa0
push str.C:ProgramDataTencentWeChatPatch
lea ecx, [ebp - 0x5c]
call fcn.00406920
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x5c]
call fcn.004068c0
mov edi, 4
jmp 0x404375
xorps xmm0, xmm0
lea ecx, [ebp - 0x5c]
push 0x20
movups xmmword [ebp - 0x5c], xmm0
call fcn.00408780
movups xmm0, xmmword [str._n127.0.0.1_dldir1.qq.com]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x4c], 0x19
movups xmmword [eax], xmm0
mov dword [ebp - 0x48], 0x1f
movq xmm0, qword [0x5a69b0]
movq qword [eax + 0x10], xmm0
mov cl, byte [0x5a69b8]
mov byte [eax + 0x18], cl
mov byte [eax + 0x19], 0
xorps xmm0, xmm0
mov byte [ebp - 4], 0xa
push 0x20
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
call fcn.00408780
movups xmm0, xmmword [0x5a6904]
mov esi, eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x2c], 0x1f
movups xmmword [esi], xmm0
movq xmm0, qword [0x5a6914]
movq qword [esi + 0x10], xmm0
mov byte [esi + 0x18], 0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0xb
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00403b70
push 0x20
push esi
call fcn.004cc152
mov byte [ebp - 4], 6
add esp, 0xc
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x404375
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40436b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404793
push ecx
push edx
call fcn.004cc152
add esp, 8
sub esp, 0xc
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x2dc]
push eax
call fcn.004049e0
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x2dc]
push dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
call fcn.0040a700
add esp, 4
lea ecx, [ebp - 0x2d8]
call fcn.00407d50
test eax, eax
jne 0x4043e2
mov eax, dword [ebp - 0x2dc]
lea ecx, [ebp - 0x2dc]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004035d0
mov eax, dword [ebp - 0x2dc]
lea ecx, [ebp - 0x2dc]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
cmovne edi, eax
push edi
call fcn.004035d0
push str.ipconfig__flushdns
lea ecx, [ebp - 0x5c]
call fcn.00406920
push 0
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0xc
push eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x64], 0
push eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x60], 1
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40444c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404550
xorps xmm0, xmm0
mov dword [ebp - 0x174], 0x44
lea eax, [ebp - 0x174]
movlpd qword [ebp - 0x170], xmm0
push eax
movlpd qword [ebp - 0x168], xmm0
movlpd qword [ebp - 0x160], xmm0
movlpd qword [ebp - 0x158], xmm0
movlpd qword [ebp - 0x150], xmm0
movlpd qword [ebp - 0x148], xmm0
movlpd qword [ebp - 0x140], xmm0
movlpd qword [ebp - 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x134], eax
push ecx
push 0
push 0
push 0
mov dword [ebp - 0x138], eax
xor eax, eax
cmp dword [ebp - 0x48], 8
push 1
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push 0
push 0
push eax
push 0
mov dword [ebp - 0x148], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404516
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x98]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x90]
jmp 0x40454e
push dword [ebp - 0x90]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x98]
call esi
push dword [ebp - 0x34]
call esi
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp - 0x48]
cmp ecx, 8
jb 0x40458a
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404580
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40478e
push ecx
push edx
call fcn.004cc152
add esp, 8
mov eax, dword [ebp - 0x2dc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2dc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x2e0], eax
lea ecx, [ebp - 0x2d8]
call fcn.00406190
mov eax, dword [ebp - 0x2dc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2dc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x2e0], eax
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 0xd
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004981c1
mov eax, dword [ebp - 0x130]
add esp, 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x130], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x134], eax
lea ecx, [ebp - 0x12c]
call fcn.00405060
mov eax, dword [ebp - 0x130]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x130], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x134], eax
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 0xe
push eax
mov dword [ebp - 0xe0], vtable.std::ios_base.0
call fcn.004981c1
add esp, 4
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x230], eax
lea ecx, [ebp - 0x21c]
call fcn.00406190
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x230], eax
lea eax, [ebp - 0x1bc]
mov byte [ebp - 4], 0xf
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004981c1
mov ecx, dword [ebp - 0x78]
add esp, 4
cmp ecx, 8
jb 0x404725
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40471b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404793
push ecx
push edx
call fcn.004cc152
add esp, 8
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
cmp ecx, 0x10
jb 0x40476c
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404762
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404793
push ecx
push edx
call fcn.004cc152
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cc144
mov esp, ebp
pop ebp
ret 4
call fcn.004f7b3a
call fcn.004f7b3a
call fcn.004f7b3a
int3