Function at 0x40da90
Capabilities:
Hide graphical window
Set current directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549b36
mov eax, dword fs:[0]
push eax
sub esp, 0x6a8
mov eax, dword [0x5ac7dc]
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 eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x278]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x6b0], eax
xor eax, eax
push 0xf
push str.ResetNetWork_Ex
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], 0
mov word [ebp - 0x278], ax
call fcn.00407c40
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
push dword [ebp - 0x268]
cmovae eax, dword [ebp - 0x278]
push eax
call fcn.00477d30
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004d3150
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.004d2398
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 4
call fcn.004ae1fe
mov edi, eax
add esp, 4
test edi, edi
je 0x40db95
mov ecx, dword [0x5ac004]
mov dword [edi], ecx
mov ecx, edi
push 0x585b2c
call fcn.004071c0
jmp 0x40db97
xor edi, edi
lea eax, [ebp - 0x6a0]
mov dword [ebp - 0x6ac], 0
push eax
mov dword [ebp - 0x6a8], 0
mov dword [ebp - 0x6a0], 0
call fcn.004ad3e4
add esp, 4
lea eax, [ebp - 0x6a8]
mov ecx, edi
push eax
call fcn.0040d300
mov ecx, dword [ebp - 0x6a0]
push dword [ebp - 0x6a8]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 0xe8
call fcn.004ae1fe
add esp, 4
test eax, eax
je 0x40dc1e
push 0
lea ecx, [ebp - 0x6b4]
mov dword [ebp - method.SOUI::SObjectDefaultRegister.virtual_0], vtable.SOUI::SObjectDefaultRegister.0
push ecx
push str.SOUIHOST
push ebx
push dword [ebp - 0x6a0]
mov ecx, eax
call fcn.00414c71
mov esi, eax
jmp 0x40dc20
xor esi, esi
lea eax, [ebp - 0x69c]
mov dword [ebp - 0x69c], 0
push eax
push 0
call fcn.0042ad0a
mov ecx, dword [ebp - 0x69c]
add esp, 8
mov eax, dword [ecx]
push 0
push ebx
call dword [eax + 0xc]
push 1
push 9
push 0x585170
mov ecx, esi
call fcn.0041a060
push str.uidef:xml_init
push dword [ebp - 0x69c]
lea ecx, [esi + 0x10]
call fcn.00412ccd
mov ebx, dword [ebp - 0x6b0]
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [ebx], ax
jne 0x40dc98
xor ecx, ecx
jmp 0x40dcaf
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dca0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x248]
call fcn.00407c40
push 5
push ecx
push str._kill
lea ecx, [ebp - 0x248]
call fcn.0040e430
push 8
push ecx
push 0x585d90
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x6b0], eax
call fcn.0040e430
mov dword [ebp - 0x6a4], eax
lea ecx, [ebp - 0x230]
push 0xa
xor eax, eax
mov dword [ebp - 0x21c], 7
push str.xunyou.exe
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00407c40
lea ecx, [ebp - 0x230]
call fcn.0040d770
mov ecx, dword [ebp - 0x21c]
mov ebx, eax
cmp ecx, 8
jb 0x40dd48
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.00408c90
test ebx, ebx
je 0x40ddb2
cmp dword [ebp - 0x6b0], 0xffffffff
jne 0x40dd76
push 0x64
push 0x31
push 0x585dbc
push 0x585dd0
push 0
call fcn.0042a66d
add esp, 0x14
cmp eax, 1
jne 0x40de33
push ebx
push 0
push 0x42b
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x40dd95
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40ddb2
push 0x64
push 0x30
push 0x585dbc
push 0x585e10
push 0
call fcn.0042a66d
add esp, 0x14
jmp 0x40de33
lea ecx, [ebp - 0x698]
call fcn.00404780
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x698]
call fcn.00426211
push 0
push 0
push 0x110
push dword [ebp - 0x450]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x450]
lea ecx, [ebp - 0x45c]
call fcn.00410b76
xor eax, eax
cmp dword [ebp - 0x238], eax
setne al
push eax
push dword [ebp - 0x450]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x450]
mov ecx, esi
call fcn.0041bf92
lea ecx, [ebp - 0x698]
mov dword [ebp - 0x6ac], eax
call fcn.00404850
cmp dword [ebp - 0x6a4], 0xffffffff
je 0x40e081
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
cmp word [ebp - 0x218], ax
jne 0x40de6a
xor ecx, ecx
jmp 0x40de82
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40de73
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.00407c40
push 1
xor eax, eax
mov dword [ebp - 0x21c], 7
push 0x585e74
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00407c40
push str._restart
lea eax, [ebp - 0x260]
push str.update.exe_
push eax
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x2c0]
call fcn.0040e510
add esp, 4
lea ecx, [ebp - 0x2a8]
mov edx, eax
call fcn.0040e5a0
add esp, 4
lea ecx, [ebp - 0x290]
mov edx, eax
call fcn.0040e5a0
mov eax, dword [ebp - 0x294]
add esp, 4
cmp eax, 8
jb 0x40df27
inc eax
lea ecx, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2a8]
call fcn.00408c90
xor eax, eax
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x298], 0
cmp eax, 8
jb 0x40df62
inc eax
lea ecx, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c0]
call fcn.00408c90
xor eax, eax
mov dword [ebp - 0x2ac], 7
mov word [ebp - 0x2c0], ax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x2b0], 0
cmp eax, 8
jb 0x40df9d
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00408c90
sub esp, 0x18
mov eax, esp
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x40dfb8
mov eax, dword [eax]
sub esp, 0x18
mov byte [eax], 0
mov ebx, esp
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x40dfdd
mov eax, dword [ecx]
jmp 0x40dfdf
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x290]
push edx
push eax
call fcn.00407d40
mov ecx, ebx
call fcn.0040d650
add esp, 0x18
xor edx, edx
push 0
push 0
call fcn.0040d840
mov eax, dword [ebp - 0x27c]
add esp, 0x38
cmp eax, 8
jb 0x40e029
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.00408c90
xor eax, eax
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x280], 0
cmp eax, 8
jb 0x40e064
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00408c90
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x40e09f
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00408c90
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
test esi, esi
je 0x40e0c8
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov ecx, dword [ebp - 0x69c]
test ecx, ecx
je 0x40e0d7
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x6a0]
test ecx, ecx
je 0x40e0e6
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x6a8]
test ecx, ecx
je 0x40e0f5
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x40e12c
mov dword [ebp - 4], 0
mov esi, dword [edi]
sub esi, 0xc
cmp esi, dword [section..data]
je 0x40e121
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40e121
push esi
call fcn.00410a27
add esp, 4
push 4
push edi
call fcn.004ae244
add esp, 8
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x40e150
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00408c90
mov eax, dword [ebp - 0x6ac]
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.004ae22e
mov esp, ebp
pop ebp
ret 0x10