Function at 0x401d18
Capabilities:
Accept command line arguments
Check mutex on windows
Create process on windows
Delete directory
Delete file
Enumerate files on windows
Get common file path
Get file attributes
Persist via run registry key
Query or enumerate registry value
Resume thread
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov eax, 0x2dec
lea ebp, [esp - 0x68]
call fcn.00404f00
push ebx
push esi
push edi
push 1
push str.ConnectionInfo
mov ebx, str.SoftwareCitrixGoToAssist
push ebx
mov edi, str.SoftwareExpertcity
push edi
call fcn.00401294
push 1
push str.AuthInfoS_DTS
push ebx
push edi
call fcn.00401294
push 1
push str.AuthInfo
push ebx
push edi
call fcn.00401294
add esp, 0x30
lea ecx, [ebp + 0x44]
call fcn.004011dd
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x2d84]
push eax
call sub.MSVCRT.dll_strcpy
xor ebx, ebx
pop ecx
xor esi, esi
xor edi, edi
cmp byte [ebp - 0x2d84], bl
pop ecx
lea eax, [ebp - 0x2d84]
je 0x401dec
cmp esi, 0x20
jge 0x401dec
cmp byte [eax], 0x20
mov byte [ebp + 0x67], bl
jne 0x401dac
mov ecx, eax
sub ecx, edi
mov byte [ecx], bl
inc eax
inc ecx
cmp byte [eax], 0x20
je 0x401da3
mov cl, byte [eax]
cmp cl, bl
je 0x401dec
mov edx, eax
sub edx, edi
mov dword [ebp + esi*4 - 0x1300], edx
inc esi
mov edx, eax
sub edx, edi
mov byte [edx], cl
mov cl, byte [eax]
cmp cl, 0x22
jne 0x401dd7
inc edi
cmp byte [ebp + 0x67], bl
sete cl
mov byte [ebp + 0x67], cl
jmp 0x401de1
cmp byte [ebp + 0x67], bl
jne 0x401de1
cmp cl, 0x20
je 0x401de8
inc eax
mov cl, byte [eax]
cmp cl, bl
jne 0x401dbe
cmp byte [eax], bl
jne 0x401d92
sub eax, edi
mov byte [eax], bl
push 1
lea eax, [ebp - 0x1300]
push eax
push esi
lea ecx, [ebp + 0x44]
call fcn.00401010
test al, al
jne 0x401e24
push 0x11030
push 0x406250
push str.Error:_Invalid_command_line.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
or ebx, 0xffffffff
jmp 0x402b33
push dword [0x40b044]
lea ecx, [ebp + 0x44]
call fcn.0040122f
cmp eax, 0xffffffff
mov dword [ebp + 0x58], eax
je 0x40202c
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x58]
push dword [eax + ecx*4 + 4]
lea eax, [ebp - 0x464]
push eax
call sub.MSVCRT.dll_strcpy
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
pop ecx
pop ecx
lea eax, [ebp - 0x464]
push eax
call edi
cmp eax, ebx
lea esi, [ebp + eax - 0x464]
jle 0x401e79
cmp byte [esi - 1], 0x5c
je 0x401e79
mov byte [esi], bl
inc esi
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x158]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x158]
push eax
call edi
sub eax, 2
js 0x401ead
lea ecx, [ebp + eax - 0x158]
cmp byte [ecx], 0x5c
je 0x401ead
dec eax
mov byte [ecx], bl
jns 0x401e9c
push 0x406d1c
push esi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x1440]
push eax
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x60], eax
je 0x401ff9
cmp byte [ebp - 0x1414], 0x2e
je 0x401fe1
push dword [0x40b02c]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [0x40b02c]
lea eax, [ebp - 0x1414]
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x401fc1
mov eax, dword [str.unknown]
mov dword [ebp - 0x14], eax
mov eax, dword [0x406d18]
mov dword [ebp - 0x10], eax
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0xc]
rep stosd dword es:[edi], eax
xor edi, edi
inc edi
cmp dword [ebp + 0x44], edi
jle 0x401f57
mov eax, dword [ebp + 0x48]
mov eax, dword [eax + edi*4]
push 0xc
push str.SessionIdStr
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x401f82
inc edi
cmp edi, dword [ebp + 0x44]
jl 0x401f36
xor edi, edi
inc edi
cmp dword [ebp + 0x44], edi
jle 0x401fa2
mov eax, dword [ebp + 0x48]
mov eax, dword [eax + edi*4]
push 9
push str.SessionId
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x401f8d
inc edi
cmp edi, dword [ebp + 0x44]
jl 0x401f5f
jmp 0x401fa2
mov eax, dword [ebp + 0x48]
mov eax, dword [eax + edi*4]
add eax, 0xd
jmp 0x401f96
mov eax, dword [ebp + 0x48]
mov eax, dword [eax + edi*4]
add eax, 0xa
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x464]
push eax
mov byte [esi], bl
call fcn.00401c60
add esp, 0xc
movzx edi, al
lea eax, [ebp - 0x1414]
push eax
push esi
call sub.MSVCRT.dll_strcpy
cmp edi, ebx
pop ecx
pop ecx
jne 0x401fe1
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x1440]
push eax
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401eda
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x464]
mov byte [esi], bl
push eax
mov byte [esi - 1], bl
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, dword [ebp + 0x58]
lea eax, [esi + 1]
push eax
lea ecx, [ebp + 0x44]
call fcn.00401267
push esi
lea ecx, [ebp + 0x44]
call fcn.00401267
push dword [0x40b048]
lea ecx, [ebp + 0x44]
call fcn.0040122f
mov esi, eax
cmp esi, 0xffffffff
je 0x402056
lea eax, [esi + 1]
push eax
lea ecx, [ebp + 0x44]
call fcn.00401267
push esi
lea ecx, [ebp + 0x44]
call fcn.00401267
push 0x40
pop edx
xor eax, eax
mov word [ebp - 0x670], bx
mov ecx, edx
lea edi, [ebp - 0x66e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x97c], bx
mov ecx, edx
lea edi, [ebp - 0x97a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x878], bx
mov ecx, edx
lea edi, [ebp - 0x876]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x774], bx
mov ecx, edx
lea edi, [ebp - 0x772]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0xa80]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
push str.ProxyHost_xxxxxxxxxxxxxxxxxxxx
push str.__ProxyHost_216.115.223.42_216.115.222.42_216.115.221.42__________ProxyPort_8200_80_443_____________TunnelPort_80_______SessionId_1772136657______________ServerId_9783653_________________BrowserId_______________LocalName_Customer___________FullControl_true_____CreateShortcut__________PassSysInfo__________SessionIdStr_25697722________________BrokerUrl_https:__broker.gotoassist.com_ds_end_ConnectionKey1772136657_sid9783653_3A9F3DB294FE64203Token3757099976EF069DB731018F67801E03Portalramquest_________________________________________________________________________________________________________________SessionKey_6f322a535ba5e966c0289ce84bccd529____________________________________SharedVarKey_79b30fb8c5ef0816f7c31ffeaad222a5____Cipher_____________________InitControl_shared________LEK_a14c2a235ece963bb3671b459b2a9e1b____EnhancedPM_false____EnableDebug_0________EnableRemote_terse_________CustomParams__________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
call esi
neg eax
sbb al, al
inc al
push 0x41
mov byte [ebp + 0x66], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x56c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x56c]
push str.GOTOASSIST_CUSTOMER_
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
cmp byte [ebp + 0x66], bl
je 0x40212b
push str._SessionId
push str.__ProxyHost_216.115.223.42_216.115.222.42_216.115.221.42__________ProxyPort_8200_80_443_____________TunnelPort_80_______SessionId_1772136657______________ServerId_9783653_________________BrowserId_______________LocalName_Customer___________FullControl_true_____CreateShortcut__________PassSysInfo__________SessionIdStr_25697722________________BrokerUrl_https:__broker.gotoassist.com_ds_end_ConnectionKey1772136657_sid9783653_3A9F3DB294FE64203Token3757099976EF069DB731018F67801E03Portalramquest_________________________________________________________________________________________________________________SessionKey_6f322a535ba5e966c0289ce84bccd529____________________________________SharedVarKey_79b30fb8c5ef0816f7c31ffeaad222a5____Cipher_____________________InitControl_shared________LEK_a14c2a235ece963bb3671b459b2a9e1b____EnhancedPM_false____EnableDebug_0________EnableRemote_terse_________CustomParams__________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
call esi
cmp eax, ebx
pop ecx
pop ecx
je 0x40216e
add eax, 0xb
push 0x14
push eax
lea eax, [ebp - 0x56c]
push eax
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
jmp 0x40216e
xor edi, edi
inc edi
cmp dword [ebp + 0x44], edi
jle 0x40216e
mov eax, dword [ebp + 0x48]
mov eax, dword [eax + edi*4]
push 9
push str.SessionId
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x402156
inc edi
cmp edi, dword [ebp + 0x44]
jl 0x402133
jmp 0x40216e
mov eax, dword [ebp + 0x48]
mov eax, dword [eax + edi*4]
add eax, 0xa
push eax
lea eax, [ebp - 0x56c]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x56c]
push eax
call edi
jmp 0x40218d
lea ecx, [ebp + eax - 0x56c]
cmp byte [ecx], 0x20
jne 0x402190
mov byte [ecx], bl
dec eax
jns 0x40217f
cmp byte [ebp + 0x66], bl
mov byte [ebp - 0x469], bl
mov byte [ebp - 0x58], bl
je 0x4021cb
push str._SessionIdStr
push str.__ProxyHost_216.115.223.42_216.115.222.42_216.115.221.42__________ProxyPort_8200_80_443_____________TunnelPort_80_______SessionId_1772136657______________ServerId_9783653_________________BrowserId_______________LocalName_Customer___________FullControl_true_____CreateShortcut__________PassSysInfo__________SessionIdStr_25697722________________BrokerUrl_https:__broker.gotoassist.com_ds_end_ConnectionKey1772136657_sid9783653_3A9F3DB294FE64203Token3757099976EF069DB731018F67801E03Portalramquest_________________________________________________________________________________________________________________SessionKey_6f322a535ba5e966c0289ce84bccd529____________________________________SharedVarKey_79b30fb8c5ef0816f7c31ffeaad222a5____Cipher_____________________InitControl_shared________LEK_a14c2a235ece963bb3671b459b2a9e1b____EnhancedPM_false____EnableDebug_0________EnableRemote_terse_________CustomParams__________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
call esi
cmp eax, ebx
pop ecx
pop ecx
je 0x4021f4
add eax, 0xe
push 0x14
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
call edi
jmp 0x40222a
xor esi, esi
inc esi
cmp dword [ebp + 0x44], esi
jle 0x4021f4
mov eax, dword [ebp + 0x48]
mov eax, dword [eax + esi*4]
push 0xc
push str.SessionIdStr
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x402208
inc esi
cmp esi, dword [ebp + 0x44]
jl 0x4021d3
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x58]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x40222d
mov eax, dword [ebp + 0x48]
mov eax, dword [eax + esi*4]
add eax, 0xd
push eax
lea eax, [ebp - 0x58]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
jmp 0x4021c3
lea ecx, [ebp + eax - 0x58]
cmp byte [ecx], 0x20
jne 0x40222d
mov byte [ecx], bl
dec eax
jns 0x40221f
lea eax, [ebp - 0x56c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402267
push 0x11030
push 0x406250
push str.There_is_another_instance_of_this_session_already_running_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40233f
cmp dword [ebp + 0x44], 2
jg 0x402283
cmp byte [ebp + 0x66], bl
jne 0x402283
push 0x11030
push 0x406250
push str.The_screen_sharing_plug_in_can_only_be_started_nafter_selecting_an_expert_through_the_web_browser._n_nPlease_go_to_http:__www.citrixonline.com_for_more_information_
jmp 0x40225b
push str.c:copilotCE.log
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x1544]
push eax
call fcn.004014f5
push dword [0x40b024]
mov byte [ebp + 0x57], al
lea eax, [ebp - 0x260]
push eax
mov esi, str._s_s
lea eax, [ebp - 0x97c]
push esi
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x18
lea eax, [ebp - 0x97c]
push eax
call edi
cmp eax, 0x80
je 0x4022f5
cmp eax, 1
je 0x4022f5
push 1
lea eax, [ebp - 0x97c]
push eax
push 0x67
call fcn.00401681
add esp, 0xc
push dword [0x40b028]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x878]
push esi
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x878]
push eax
call edi
cmp eax, 0x80
je 0x402347
cmp eax, 1
je 0x402347
push 1
lea eax, [ebp - 0x878]
push eax
push 0x6c
call fcn.00401681
add esp, 0xc
test eax, eax
je 0x402347
or ebx, 0xffffffff
jmp 0x402b2a
push dword [0x40b020]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x670]
push esi
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x670]
push eax
call edi
cmp eax, 0x80
je 0x402391
cmp eax, 1
je 0x402391
push 1
lea eax, [ebp - 0x670]
push eax
push 0x68
call fcn.00401681
add esp, 0xc
test eax, eax
jne 0x40233f
push 0x40
xor eax, eax
pop ecx
mov word [ebp - 0x364], bx
lea edi, [ebp - 0x362]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xa80]
push eax
lea eax, [ebp - 0x364]
push eax
call sub.MSVCRT.dll_strcpy
mov edi, dword [sym.imp.MSVCRT.dll_strrchr]
lea eax, [ebp - 0x364]
push 0x5c
push eax
call edi
add esp, 0x10
cmp eax, ebx
jne 0x4023dd
mov byte [ebp - 0x364], bl
jmp 0x402553
push dword [0x40b03c]
inc eax
push eax
mov dword [ebp + 0x60], eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov dword [ebp + 0x5c], ebx
push ebx
push 0x8000080
xor esi, esi
inc esi
push esi
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x58], eax
jne 0x402449
cmp dword [ebp + 0x5c], 9
je 0x4023d2
push dword [0x40b040]
push dword [ebp + 0x60]
call sub.MSVCRT.dll_strcpy
inc dword [ebp + 0x5c]
mov al, byte [ebp + 0x5c]
push 0x2e
push dword [ebp + 0x60]
add al, 0x30
mov byte [ebp + 0x67], al
call edi
mov cl, byte [ebp + 0x67]
add esp, 0x10
mov byte [eax - 1], cl
jmp 0x4023f2
cmp byte [ebp + 0x57], bl
mov byte [ebp - 0x1280], bl
je 0x40249e
push dword [0x40b044]
lea eax, [ebp - 0x1280]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x1280]
push 0x406710
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x1280]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x1280]
push 0x40670c
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x20
push dword [0x40b048]
lea eax, [ebp - 0x1280]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x1280]
push 0x406708
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0xa80]
push eax
lea eax, [ebp - 0x1280]
push eax
call sub.MSVCRT.dll_strcat
mov edi, 0x406704
lea eax, [ebp - 0x1280]
push edi
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x20
cmp dword [ebp + 0x44], esi
jle 0x402527
lea eax, [ebp - 0x1280]
push 0x406700
push eax
call sub.MSVCRT.dll_strcat
mov eax, dword [ebp + 0x48]
push dword [eax + esi*4]
lea eax, [ebp - 0x1280]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x1280]
push edi
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x18
inc esi
cmp esi, dword [ebp + 0x44]
jl 0x4024ee
push ebx
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0x1280]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x1280]
push eax
push dword [ebp + 0x58]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x406700
lea eax, [ebp - 0x774]
push esi
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x774]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x774]
push esi
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x18
cmp byte [ebp - 0x774], bl
mov byte [ebp + 0x67], bl
je 0x4029bc
xor eax, eax
mov byte [ebp - 0x1d44], bl
mov ecx, 0x1ff
lea edi, [ebp - 0x1d43]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x774]
push eax
lea eax, [ebp - 0xe80]
push eax
mov dword [ebp + 0x5c], ebx
call sub.MSVCRT.dll_strcpy
push 0x40
pop ecx
xor eax, eax
mov word [ebp - 0x15c], bx
lea edi, [ebp - 0x15a]
rep stosd dword es:[edi], eax
push str.g2a_customer.exe
push str.CustomerAgent
stosw word es:[edi], ax
lea eax, [ebp - 0x15c]
push str.Plugin_sPath_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0xe80]
push 0x406708
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xe80]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x28
cmp byte [ebp + 0x66], bl
je 0x402711
push 0x4066c4
push str.__ProxyHost_216.115.223.42_216.115.222.42_216.115.221.42__________ProxyPort_8200_80_443_____________TunnelPort_80_______SessionId_1772136657______________ServerId_9783653_________________BrowserId_______________LocalName_Customer___________FullControl_true_____CreateShortcut__________PassSysInfo__________SessionIdStr_25697722________________BrokerUrl_https:__broker.gotoassist.com_ds_end_ConnectionKey1772136657_sid9783653_3A9F3DB294FE64203Token3757099976EF069DB731018F67801E03Portalramquest_________________________________________________________________________________________________________________SessionKey_6f322a535ba5e966c0289ce84bccd529____________________________________SharedVarKey_79b30fb8c5ef0816f7c31ffeaad222a5____Cipher_____________________InitControl_shared________LEK_a14c2a235ece963bb3671b459b2a9e1b____EnhancedPM_false____EnableDebug_0________EnableRemote_terse_________CustomParams__________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
jmp 0x4026fe
mov eax, dword [ebp + 0x60]
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
add eax, 2
push 0x20
push eax
mov dword [ebp + 0x58], eax
call edi
push 0x22
push dword [ebp + 0x58]
mov esi, eax
call edi
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x402711
cmp esi, ebx
jne 0x402666
mov esi, edi
push 0xc
push str.CustomParams
push dword [ebp + 0x58]
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x40269f
cmp esi, edi
je 0x4026f6
sub edi, esi
dec edi
push edi
inc esi
lea eax, [ebp - 0x1d44]
push esi
push eax
mov byte [ebp - 0x1d44], bl
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
jmp 0x4026f6
lea eax, [ebp - 0xe80]
push 0x4065a0
push eax
call sub.MSVCRT.dll_strcat
mov eax, esi
sub eax, dword [ebp + 0x60]
dec eax
dec eax
push eax
push dword [ebp + 0x58]
lea eax, [ebp - 0xe80]
push eax
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0x14
cmp esi, edi
je 0x4026f6
lea eax, [ebp - 0xe80]
push 0x40658c
push eax
call sub.MSVCRT.dll_strcat
sub edi, esi
dec edi
push edi
inc esi
lea eax, [ebp - 0xe80]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0x14
push 0x4066c4
push dword [ebp + 0x58]
call dword [sym.imp.MSVCRT.dll_strstr]
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp + 0x60], eax
jne 0x402636
xor esi, esi
inc esi
cmp dword [ebp + 0x44], esi
jle 0x4027c3
mov eax, dword [ebp + 0x48]
mov eax, dword [eax + esi*4]
push 0x20
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x402736
mov byte [edi], bl
mov eax, dword [ebp + 0x48]
mov eax, dword [eax + esi*4]
push 0xc
push str.CustomParams
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x40276d
cmp edi, ebx
je 0x4027b9
inc edi
lea eax, [ebp - 0x1d44]
push edi
push eax
mov byte [ebp - 0x1d44], bl
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
jmp 0x4027b9
lea eax, [ebp - 0xe80]
push 0x4065a0
push eax
call sub.MSVCRT.dll_strcat
mov eax, dword [ebp + 0x48]
push dword [eax + esi*4]
lea eax, [ebp - 0xe80]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
cmp edi, ebx
je 0x4027b9
lea eax, [ebp - 0xe80]
push 0x40658c
push eax
call sub.MSVCRT.dll_strcat
inc edi
lea eax, [ebp - 0xe80]
push edi
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
inc esi
cmp esi, dword [ebp + 0x44]
jl 0x40271d
cmp byte [ebp - 0x364], bl
je 0x4027f2
lea eax, [ebp - 0xe80]
push str.RestartParamFile
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0xe80]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0xe80]
push eax
lea eax, [ebp - 0x1d44]
push eax
call fcn.00401af5
lea eax, [ebp - 0xe80]
push 0x406700
push eax
call sub.MSVCRT.dll_strcat
push 0x44
pop esi
push esi
lea eax, [ebp - 0x18]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x1c
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xe80]
push eax
push ebx
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40292e
push 0xffffffffffffffff
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x5c]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
mov dword [ebp + 0x5c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x4028d1
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp + 0x60]
push eax
push ebx
push dword [0x40b04c]
mov dword [ebp + 0x58], 0x104
push dword [ebp + 0x5c]
mov dword [ebp + 0x60], 1
call edi
push dword [ebp + 0x5c]
mov dword [ebp + 0x40], eax
call esi
cmp dword [ebp + 0x40], ebx
jne 0x4028d1
cmp dword [ebp + 0x60], 1
jne 0x4028d1
mov byte [ebp + 0x67], 1
jmp 0x402947
lea eax, [ebp + 0x5c]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
mov dword [ebp + 0x5c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402947
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp + 0x60]
push eax
push ebx
push dword [0x40b04c]
mov dword [ebp + 0x40], 0x104
push dword [ebp + 0x5c]
mov dword [ebp + 0x60], 1
call edi
push dword [ebp + 0x5c]
mov edi, eax
call esi
cmp edi, ebx
jne 0x402947
cmp dword [ebp + 0x60], 1
jne 0x402947
jmp 0x4028cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_create_process.
push str.Error
call fcn.00401625
add esp, 0xc
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x670]
push eax
call esi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x1544]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00401c60
add esp, 0xc
lea eax, [ebp - 0x97c]
push eax
call esi
lea eax, [ebp - 0x878]
push eax
call esi
push str.c:copilotCE.log
call esi
cmp byte [ebp + 0x67], bl
jne 0x4029aa
cmp byte [ebp - 0x364], bl
je 0x4029aa
lea eax, [ebp - 0x364]
push eax
call esi
cmp byte [ebp + 0x57], bl
je 0x4029bc
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp dword [ebp + 0x44], 3
jg 0x402b2a
cmp byte [ebp + 0x67], bl
jne 0x402b2a
lea eax, [ebp - 0x260]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
xor edi, edi
push edi
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x15c]
push str._sJDX_05x.bat
push eax
call esi
add esp, 0x10
push ebx
push 0x8000080
push 1
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x60], eax
jne 0x402a34
inc edi
cmp edi, 0xfffff
jb 0x4029e9
jmp 0x402b2a
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x260]
push eax
call edi
lea eax, [ebp + eax - 0x261]
cmp byte [eax], 0x5c
jne 0x402a51
mov byte [eax], bl
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xa80]
push eax
push eax
lea eax, [ebp - 0xdcc]
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_ndel_c:copilotCE.log_r_ndel___s_
push eax
call esi
add esp, 0x14
push ebx
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0xdcc]
push eax
call edi
push eax
lea eax, [ebp - 0xdcc]
push eax
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x18]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x406244
push ebx
push edi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x15c]
push eax
push ebx
mov dword [ebp - 0x18], edi
mov dword [ebp + 0x14], 1
mov word [ebp + 0x18], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402b1d
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push dword [ebp + 0x30]
call edi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [ebp + 0x2c]
call esi
push dword [ebp + 0x30]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp + 0x30]
call esi
jmp 0x402b2a
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0x44]
call fcn.004011fd
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x68
leave
ret 0x10