Function at 0x40a260
Capabilities:
Execute command
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac624
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x4cfaa8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], 0
cmp dword [esi + 0x28], 0
je 0x40ac9e
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov dword [ebp - 4], 1
lea ecx, [esi + 0x18]
cmp byte [esi + 0xa9], 0
je 0x40a76f
lea eax, [esi + 0x78]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00406ed0
mov edi, eax
lea eax, [esi + 0x18]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00406ed0
mov esi, eax
mov dword [ebp - 0xf8], 0
push 5
push 0x4b5044
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
mov byte [ebp - 4], 3
call fcn.0040ea00
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00406ed0
push 5
push str.type
push 0
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.004118a0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x98], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x88], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push str.sid
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 9
call fcn.0040d910
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x140], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x130], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push esi
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 0xc
push eax
push dword [ebp - 0x70]
lea ecx, [ebp - 0x110]
call fcn.00411970
push str.iv
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 0xd
call fcn.0040d910
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x128], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x118], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push edi
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 0x10
push eax
push dword [ebp - 0x70]
lea ecx, [ebp - 0xe0]
call fcn.00411970
lea eax, [ebp - 0xe0]
mov edi, 0x7c
push eax
lea ecx, [ebp - 0x58]
call fcn.0040dad0
mov ecx, dword [ebp - 0xcc]
cmp ecx, 0x10
jb 0x40a4a1
mov edx, dword [ebp - 0xe0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a497
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a706
push ecx
push edx
call fcn.004a964d
add esp, 8
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x114]
cmp ecx, 0x10
jb 0x40a4df
mov edx, dword [ebp - 0x128]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a4d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a706
push ecx
push edx
call fcn.004a964d
add esp, 8
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0xfc]
cmp ecx, 0x10
jb 0x40a51d
mov edx, dword [ebp - 0x110]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a513
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a706
push ecx
push edx
call fcn.004a964d
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], 0
cmp ecx, 0x10
jb 0x40a576
mov edx, dword [ebp - 0x140]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a56c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a706
push ecx
push edx
call fcn.004a964d
add esp, 8
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x84]
cmp ecx, 0x10
jb 0x40a5b4
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a5aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a706
push ecx
push edx
call fcn.004a964d
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
cmp ecx, 0x10
jb 0x40a60d
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a603
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a706
push ecx
push edx
call fcn.004a964d
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0xf
mov byte [ebp - 0xb0], 0
cmp ecx, 0x10
jb 0x40a666
mov edx, dword [ebp - 0xf8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a65c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a706
push ecx
push edx
call fcn.004a964d
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
cmp ecx, 0x10
jb 0x40a6bb
mov edx, dword [ebp - 0xc8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a6b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a706
push ecx
push edx
call fcn.004a964d
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0xf
mov byte [ebp - 0xc8], 0
cmp ecx, 0x10
jb 0x40a716
mov edx, dword [ebp - 0x158]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a70c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a70c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004a964d
add esp, 8
mov esi, dword [ebp - 0x78]
sub esp, 0x18
lea eax, [ebp - 0x58]
mov ecx, esp
push eax
call fcn.0040dc80
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00405110
sub esp, 0x18
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x80], esp
lea eax, [esi + 0x60]
mov dword [ebp - 0x70], esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x7c], esp
push eax
call fcn.0040dc80
mov byte [ebp - 4], 0x12
mov ecx, closesocket
mov edx, dword [esi + 0x88]
sub ecx, edx
cmp ecx, 1
jb 0x40accf
jmp 0x40a7f9
mov edx, dword [ecx + 0x10]
mov eax, closesocket
sub eax, edx
cmp eax, 0xf
jb 0x40acd4
cmp dword [ecx + 0x14], 0x10
jb 0x40a78a
mov ecx, dword [ecx]
push edx
push ecx
push 0xf
push str.typeclosesid
push ecx
push dword [ebp - 0x70]
lea ecx, [ebp - 0xe0]
call fcn.00411b80
lea eax, [ebp - 0xe0]
mov edi, 0x80
push eax
lea ecx, [ebp - 0x58]
call fcn.0040dad0
mov ecx, dword [ebp - 0xcc]
cmp ecx, 0x10
jb 0x40a719
mov edx, dword [ebp - 0xe0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a7ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac71
push ecx
push edx
call fcn.004a964d
add esp, 8
jmp 0x40a719
cmp dword [esi + 0x8c], 0x10
lea ecx, [esi + 0x78]
jb 0x40a808
mov ecx, dword [esi + 0x78]
push 1
push 0x4b4a94
push edx
push ecx
push ecx
push dword [ebp - 0x80]
lea ecx, [ebp - 0xe0]
call fcn.00411b80
or edi, 0x100
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov esi, esp
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x74], esi
push eax
call fcn.0040d9e0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
or edi, 0x200
mov byte [ebp - 4], 0x13
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
push dword [ebp - 0x70]
mov byte [ebp - 4], 0x16
call fcn.00405c40
sub esp, 0x18
mov byte [ebp - 4], 0x17
mov ecx, esp
push 0x4cfaec
call fcn.0040dc80
mov ecx, 0x40
mov byte [ebp - 4], 0x16
call fcn.004052d0
add esp, 0x30
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0xcc]
test al, al
sete al
mov byte [ebp - 0x69], al
cmp ecx, 0x10
jb 0x40a901
mov edx, dword [ebp - 0xe0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a8f4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a8f4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004a964d
mov al, byte [ebp - 0x69]
add esp, 8
test al, al
je 0x40a928
push str.start_cmd.exe__c__Echo_ERROR_WHILE_LOADING_INTERTWINED._INVALID_RETURN_HASH._PLEASE_TRY_AGAIN__timeout_5_
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0x7fff
idiv ecx
push edx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov esi, dword [ebp - 0x78]
cmp byte [esi + 0xa9], 0
je 0x40a986
sub esp, 0x18
lea eax, [esi + 0x78]
mov ecx, esp
mov dword [ebp - 0x80], esp
push eax
call fcn.0040dc80
sub esp, 0x18
mov byte [ebp - 4], 0x18
lea eax, [esi + 0x60]
mov dword [ebp - 0x70], esp
mov ecx, esp
push eax
call fcn.0040dc80
sub esp, 0x18
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.0040dc80
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 0x11
push eax
call fcn.00406be0
mov ecx, eax
mov eax, dword [ebp - 0x74]
or eax, 1
jmp 0x40a99d
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040dc80
mov ecx, eax
mov eax, dword [ebp - 0x74]
or eax, 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov dword [ebp - 4], 0x1d
test al, 2
je 0x40aa39
mov ecx, dword [ebp - 0xb4]
and eax, 0xfffffffd
mov dword [ebp - 0x74], eax
cmp ecx, 0x10
jb 0x40aa1e
mov edx, dword [ebp - 0xc8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40aa11
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aa6d
push ecx
push edx
call fcn.004a964d
mov eax, dword [ebp - 0x74]
add esp, 8
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0xf
mov byte [ebp - 0xc8], 0
mov byte [ebp - 4], 0x1e
test al, 1
je 0x40aa98
mov ecx, dword [ebp - 0x9c]
cmp ecx, 0x10
jb 0x40aa7d
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40aa73
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40aa73
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004a964d
add esp, 8
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0xf
mov byte [ebp - 0xb0], 0
push 0
push 1
sub esp, 0x28
lea edx, [ebp - 0x28]
mov eax, esp
lea ecx, [ebp - 0x68]
mov dword [eax + 0x24], 0
call fcn.0040f840
add esp, 0x30
push str.success
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x1f
call fcn.0040f960
mov ecx, eax
call fcn.0040fbd0
lea ecx, [ebp - 0x68]
test al, al
jne 0x40abbe
push str.error
call fcn.0040f960
push eax
lea ecx, [esi + 0x90]
call fcn.00415080
lea ecx, [ebp - 0x68]
call fcn.0040d880
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x40ab2b
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ab21
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac71
push ecx
push edx
call fcn.004a964d
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x40ab71
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ab67
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac71
push ecx
push edx
call fcn.004a964d
add esp, 8
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0x10
jb 0x40abb7
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40abad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac71
push ecx
push edx
call fcn.004a964d
add esp, 8
xor al, al
jmp 0x40ac83
call fcn.0040d880
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x40abf7
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40abed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac71
push ecx
push edx
call fcn.004a964d
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x40ac39
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ac2f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac71
push ecx
push edx
call fcn.004a964d
add esp, 8
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0x10
jb 0x40ac81
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ac77
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ac77
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004a964d
add esp, 8
mov al, 1
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.004a93ad
mov esp, ebp
pop ebp
ret
push str.Please_initiate_a_session_before_attempting_to_upgrade.
lea ecx, [esi + 0x90]
call fcn.0040da50
push str.Please_initiate_a_session_before_attempting_to_upgrade.
lea ecx, [ebp - 0x8c]
call fcn.00401610
push 0x4be0fc
lea eax, [ebp - 0x8c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.004015a0
call fcn.004015a0
int3