Function at 0x40eab0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f59e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4b8
mov eax, dword [0x5f3e24]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x320]
push 0
push eax
call fcn.00564e00
add esp, 0xc
lea eax, [ebp - 0x320]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x320]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x40eb20
mov eax, dword [str.selfCopy.bat]
mov dword [ecx], eax
mov eax, dword [0x5d4250]
mov dword [ecx + 4], eax
mov eax, dword [0x5d4254]
mov dword [ecx + 8], eax
mov al, byte [0x5d4258]
push 0xff
mov byte [ecx + 0xc], al
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00564e00
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0xff
lea ecx, [ebp - 0x118]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xff
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00564e00
add esp, 0xc
call fcn.00411e50
test al, al
je 0x40ebc4
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x118]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x219], al
test al, al
jne 0x40eba0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
jmp 0x40ebed
cmp dword [0x5f48f4], 0x10
lea edx, [ebp - 0x218]
mov ecx, 0x5f48e0
cmovae ecx, dword [0x5f48e0]
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40ebe0
push 0x5f4910
lea ecx, [ebp - 0x3c8]
call fcn.00408220
mov dword [ebp - 4], 0
mov eax, closesocket
mov ecx, dword [ebp - 0x3b8]
sub eax, ecx
cmp eax, 1
jb 0x40f5aa
cmp dword [ebp - 0x3b4], 0x10
lea eax, [ebp - 0x3c8]
push 1
cmovae eax, dword [ebp - 0x3c8]
push 0x5d425c
push ecx
push eax
push ecx
push dword [ebp - 0x414]
lea ecx, [ebp - 0x410]
call fcn.00412360
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x410]
call fcn.00407f70
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x3f8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x3e8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x3fc]
cmp ecx, 0x10
jb 0x40ecc5
mov edx, dword [ebp - 0x410]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ecbb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5af
push ecx
push edx
call fcn.00562bc8
add esp, 8
cmp dword [ebp - 0x3e4], 0x10
lea eax, [ebp - 0x3f8]
mov esi, dword [ebp - 0x3f8]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x400], 0
cmovae eax, esi
mov dword [ebp - 0x3fc], 0xf
mov byte [ebp - 0x410], 0
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40ed20
test dl, dl
je 0x40ed1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40ed20
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ed00
xor eax, eax
jmp 0x40ed25
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f522
xorps xmm0, xmm0
mov dword [ebp - 0x388], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x384], 0
movups xmmword [ebp - 0x398], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ed54
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x398]
call fcn.00408c70
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x384]
mov eax, ecx
mov edx, dword [ebp - 0x388]
sub eax, edx
cmp eax, 0x1b
jb 0x40ee16
cmp ecx, 0x10
lea esi, [ebp - 0x398]
lea eax, [edx + 0x1b]
cmovae esi, dword [ebp - 0x398]
mov dword [ebp - 0x388], eax
cmp esi, 0x5d4407
jae 0x40edce
lea eax, [esi + edx]
cmp eax, str._echo_off_r_nset__sourceFile
jb 0x40edce
cmp esi, str._echo_off_r_nset__sourceFile
ja 0x40edc4
xor edi, edi
jmp 0x40edd3
mov edi, esi
sub edi, str._echo_off_r_nset__sourceFile
jmp 0x40edd3
mov edi, 0x1b
lea eax, [edx + 1]
push eax
lea ecx, [esi + 0x1b]
push esi
push ecx
call fcn.00564880
add esp, 0xc
push edi
push str._echo_off_r_nset__sourceFile
push esi
call fcn.00564880
add esp, 0xc
lea ecx, [esi + edi]
mov eax, 0x1b
sub eax, edi
push eax
lea eax, [edi + 0x5d4407]
push eax
push ecx
call fcn.00564880
add esp, 0xc
lea eax, [ebp - 0x398]
jmp 0x40ee35
push 0x1b
sub esp, 8
mov byte [ebp - 0x414], 0
lea ecx, [ebp - 0x398]
push dword [ebp - 0x414]
push 0x1b
call fcn.00412450
mov dword [ebp - 0x370], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x380], xmm0
mov dword [ebp - 0x36c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x380], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x370], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x36c]
mov eax, edx
mov ecx, dword [ebp - 0x370]
sub eax, ecx
push 0x15
push str.__r_nset__targetFolder
cmp eax, 0x15
jb 0x40eecb
cmp edx, 0x10
lea esi, [ebp - 0x380]
lea eax, [ecx + 0x15]
cmovae esi, dword [ebp - 0x380]
add esi, ecx
mov dword [ebp - 0x370], eax
push esi
call fcn.00564880
add esp, 0xc
mov byte [esi + 0x15], 0
lea eax, [ebp - 0x380]
jmp 0x40eee5
mov byte [ebp - 0x414], 0
lea ecx, [ebp - 0x380]
push dword [ebp - 0x414]
push 0x15
call fcn.00407fe0
mov dword [ebp - 0x358], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x368], xmm0
mov dword [ebp - 0x354], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x368], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x358], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3c8]
cmp dword [ebp - 0x3b4], 0x10
mov esi, dword [ebp - 0x354]
mov eax, esi
cmovae ecx, dword [ebp - 0x3c8]
mov edx, dword [ebp - 0x358]
sub eax, edx
mov edi, dword [ebp - 0x3b8]
push edi
push ecx
cmp edi, eax
ja 0x40ef90
lea eax, [edx + edi]
cmp esi, 0x10
mov dword [ebp - 0x358], eax
lea eax, [ebp - 0x368]
cmovae eax, dword [ebp - 0x368]
lea esi, [eax + edx]
push esi
call fcn.00564880
add esp, 0xc
mov byte [esi + edi], 0
lea eax, [ebp - 0x368]
jmp 0x40efa9
mov byte [ebp - 0x414], 0
lea ecx, [ebp - 0x368]
push dword [ebp - 0x414]
push edi
call fcn.00407fe0
mov dword [ebp - 0x340], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x350], xmm0
mov dword [ebp - 0x33c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x350], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x340], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x33c]
mov eax, edx
mov ecx, dword [ebp - 0x340]
sub eax, ecx
push 0x13
push str.__r_n_r_nset__onlyFile
cmp eax, 0x13
jb 0x40f03f
cmp edx, 0x10
lea esi, [ebp - 0x350]
lea eax, [ecx + 0x13]
cmovae esi, dword [ebp - 0x350]
add esi, ecx
mov dword [ebp - 0x340], eax
push esi
call fcn.00564880
add esp, 0xc
mov byte [esi + 0x13], 0
lea eax, [ebp - 0x350]
jmp 0x40f059
mov byte [ebp - 0x414], 0
lea ecx, [ebp - 0x350]
push dword [ebp - 0x414]
push 0x13
call fcn.00407fe0
mov dword [ebp - 0x3a0], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x3b0], xmm0
mov dword [ebp - 0x39c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x3b0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x3a0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x3b0]
call fcn.00407f70
mov dword [ebp - 0x328], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x338], xmm0
mov dword [ebp - 0x324], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x338], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x328], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x324]
mov eax, edx
mov ecx, dword [ebp - 0x328]
sub eax, ecx
push 0x15d
push str.__r_n_r_nif_not_exist___sourceFile_____r_n____pause_r_n____exit_r_n__r_n_r_nif_not_exist___targetFolder_____r_n____mkdir___targetFolder___r_n__r_n_r_ncopy___sourceFile_____targetFolder__onlyFile___r_n_r_ntaskkill__f__im___onlyFile___r_n_r_n:delExe_r_nif_not_exist__sourceFile__goto_done_r_ndel__f__q__sourceFile__r_ngoto_delExe_r_n_r_n:done_r_n_r_nstart______targetFolder__onlyFile___r_n_r_nexit
cmp eax, 0x15d
jb 0x40f156
cmp edx, 0x10
lea esi, [ebp - 0x338]
lea eax, [ecx + 0x15d]
cmovae esi, dword [ebp - 0x338]
add esi, ecx
mov dword [ebp - 0x328], eax
push esi
call fcn.00564880
add esp, 0xc
mov byte [esi + 0x15d], 0
lea eax, [ebp - 0x338]
jmp 0x40f173
mov byte [ebp - 0x414], 0
lea ecx, [ebp - 0x338]
push dword [ebp - 0x414]
push 0x15d
call fcn.00407fe0
mov dword [ebp - 0x3d0], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x3e0], xmm0
mov dword [ebp - 0x3cc], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x3e0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x3d0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x324]
cmp ecx, 0x10
jb 0x40f1f7
mov edx, dword [ebp - 0x338]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f1ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5b4
push ecx
push edx
call fcn.00562bc8
add esp, 8
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x324], 0xf
mov byte [ebp - 0x338], 0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x39c]
cmp ecx, 0x10
jb 0x40f250
mov edx, dword [ebp - 0x3b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f246
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5b4
push ecx
push edx
call fcn.00562bc8
add esp, 8
mov dword [ebp - 0x3a0], 0
mov dword [ebp - 0x39c], 0xf
mov byte [ebp - 0x3b0], 0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x33c]
cmp ecx, 0x10
jb 0x40f2a9
mov edx, dword [ebp - 0x350]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f29f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5b4
push ecx
push edx
call fcn.00562bc8
add esp, 8
mov dword [ebp - 0x340], 0
mov dword [ebp - 0x33c], 0xf
mov byte [ebp - 0x350], 0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x354]
cmp ecx, 0x10
jb 0x40f302
mov edx, dword [ebp - 0x368]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f2f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5b4
push ecx
push edx
call fcn.00562bc8
add esp, 8
mov dword [ebp - 0x358], 0
mov dword [ebp - 0x354], 0xf
mov byte [ebp - 0x368], 0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x36c]
cmp ecx, 0x10
jb 0x40f35b
mov edx, dword [ebp - 0x380]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f351
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5b4
push ecx
push edx
call fcn.00562bc8
add esp, 8
mov dword [ebp - 0x370], 0
mov dword [ebp - 0x36c], 0xf
mov byte [ebp - 0x380], 0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x384]
cmp ecx, 0x10
jb 0x40f3b4
mov edx, dword [ebp - 0x398]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f3aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5b4
push ecx
push edx
call fcn.00562bc8
add esp, 8
sub esp, 8
mov dword [ebp - 0x388], 0
lea eax, [ebp - 0x320]
mov dword [ebp - 0x384], 0xf
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 0x398], 0
push 2
push eax
call fcn.0040b7f0
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x478], 0
je 0x40f44a
cmp dword [ebp - 0x3cc], 0x10
lea edx, [ebp - 0x3e0]
lea ecx, [ebp - 0x4c8]
cmovae edx, dword [ebp - 0x3e0]
call fcn.00406910
lea ecx, [ebp - 0x4c4]
call fcn.004062a0
test eax, eax
jne 0x40f44a
mov eax, dword [ebp - 0x4c8]
lea ecx, [ebp - 0x4c8]
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.00408920
push 0
push 0
push 0
lea eax, [ebp - 0x320]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 0x4c8]
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 - 0x4c8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x4cc], eax
lea ecx, [ebp - 0x4c4]
call fcn.004059e0
mov eax, dword [ebp - 0x4c8]
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 - 0x4c8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x4cc], eax
lea eax, [ebp - 0x460]
mov byte [ebp - 4], 0x12
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041734a
mov ecx, dword [ebp - 0x3cc]
add esp, 4
cmp ecx, 0x10
jb 0x40f51c
mov edx, dword [ebp - 0x3e0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f512
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5b9
push ecx
push edx
call fcn.00562bc8
add esp, 8
mov esi, dword [ebp - 0x3f8]
mov eax, dword [ebp - 0x3e4]
cmp eax, 0x10
jb 0x40f554
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x40f54a
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5be
push ecx
push esi
call fcn.00562bc8
add esp, 8
mov eax, dword [ebp - 0x3b4]
cmp eax, 0x10
jb 0x40f58c
mov edx, dword [ebp - 0x3c8]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f582
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5be
push ecx
push edx
call fcn.00562bc8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00562bba
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00408ad0
call fcn.005680f5
call fcn.005680f5
call fcn.005680f5
call fcn.005680f5
int3