Function at 0x40ddf0
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 0x58ce5e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4b8
mov eax, dword [0x5f0e24]
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.005640c0
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 0x40de60
mov eax, dword [str.selfCopy.bat]
mov dword [ecx], eax
mov eax, dword [0x5d0f44]
mov dword [ecx + 4], eax
mov eax, dword [0x5d0f48]
mov dword [ecx + 8], eax
mov al, byte [0x5d0f4c]
push 0xff
mov byte [ecx + 0xc], al
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.005640c0
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.005640c0
add esp, 0xc
call fcn.00411190
test al, al
je 0x40df04
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 0x40dee0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
jmp 0x40df2d
cmp dword [0x5f18f4], 0x10
lea edx, [ebp - 0x218]
mov ecx, 0x5f18e0
cmovae ecx, dword [0x5f18e0]
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40df20
push 0x5f1910
lea ecx, [ebp - 0x3c8]
call fcn.00407c10
mov dword [ebp - 4], 0
mov eax, closesocket
mov ecx, dword [ebp - 0x3b8]
sub eax, ecx
cmp eax, 1
jb 0x40e8ea
cmp dword [ebp - 0x3b4], 0x10
lea eax, [ebp - 0x3c8]
push 1
cmovae eax, dword [ebp - 0x3c8]
push 0x5d0f50
push ecx
push eax
push ecx
push dword [ebp - 0x414]
lea ecx, [ebp - 0x410]
call fcn.004116a0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x410]
call fcn.00407960
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 0x40e005
mov edx, dword [ebp - 0x410]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40dffb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e8ef
push ecx
push edx
call fcn.00561e8b
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 0x40e060
test dl, dl
je 0x40e05c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40e060
add eax, 2
add ecx, 2
test dl, dl
jne 0x40e040
xor eax, eax
jmp 0x40e065
sbb eax, eax
or eax, 1
test eax, eax
je 0x40e862
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 0x40e094
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x398]
call fcn.00408660
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 0x40e156
cmp ecx, 0x10
lea esi, [ebp - 0x398]
lea eax, [edx + 0x1b]
cmovae esi, dword [ebp - 0x398]
mov dword [ebp - 0x388], eax
cmp esi, 0x5d10ff
jae 0x40e10e
lea eax, [esi + edx]
cmp eax, str._echo_off_r_nset__sourceFile
jb 0x40e10e
cmp esi, str._echo_off_r_nset__sourceFile
ja 0x40e104
xor edi, edi
jmp 0x40e113
mov edi, esi
sub edi, str._echo_off_r_nset__sourceFile
jmp 0x40e113
mov edi, 0x1b
lea eax, [edx + 1]
push eax
lea ecx, [esi + 0x1b]
push esi
push ecx
call fcn.00563b40
add esp, 0xc
push edi
push str._echo_off_r_nset__sourceFile
push esi
call fcn.00563b40
add esp, 0xc
lea ecx, [esi + edi]
mov eax, 0x1b
sub eax, edi
push eax
lea eax, [edi + 0x5d10ff]
push eax
push ecx
call fcn.00563b40
add esp, 0xc
lea eax, [ebp - 0x398]
jmp 0x40e175
push 0x1b
sub esp, 8
mov byte [ebp - 0x414], 0
lea ecx, [ebp - 0x398]
push dword [ebp - 0x414]
push 0x1b
call fcn.00411790
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 0x40e20b
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.00563b40
add esp, 0xc
mov byte [esi + 0x15], 0
lea eax, [ebp - 0x380]
jmp 0x40e225
mov byte [ebp - 0x414], 0
lea ecx, [ebp - 0x380]
push dword [ebp - 0x414]
push 0x15
call fcn.004079d0
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 0x40e2d0
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.00563b40
add esp, 0xc
mov byte [esi + edi], 0
lea eax, [ebp - 0x368]
jmp 0x40e2e9
mov byte [ebp - 0x414], 0
lea ecx, [ebp - 0x368]
push dword [ebp - 0x414]
push edi
call fcn.004079d0
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 0x40e37f
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.00563b40
add esp, 0xc
mov byte [esi + 0x13], 0
lea eax, [ebp - 0x350]
jmp 0x40e399
mov byte [ebp - 0x414], 0
lea ecx, [ebp - 0x350]
push dword [ebp - 0x414]
push 0x13
call fcn.004079d0
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.00407960
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 0x40e496
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.00563b40
add esp, 0xc
mov byte [esi + 0x15d], 0
lea eax, [ebp - 0x338]
jmp 0x40e4b3
mov byte [ebp - 0x414], 0
lea ecx, [ebp - 0x338]
push dword [ebp - 0x414]
push 0x15d
call fcn.004079d0
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 0x40e537
mov edx, dword [ebp - 0x338]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e52d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e8f4
push ecx
push edx
call fcn.00561e8b
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 0x40e590
mov edx, dword [ebp - 0x3b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e586
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e8f4
push ecx
push edx
call fcn.00561e8b
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 0x40e5e9
mov edx, dword [ebp - 0x350]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e5df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e8f4
push ecx
push edx
call fcn.00561e8b
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 0x40e642
mov edx, dword [ebp - 0x368]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e638
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e8f4
push ecx
push edx
call fcn.00561e8b
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 0x40e69b
mov edx, dword [ebp - 0x380]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e691
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e8f4
push ecx
push edx
call fcn.00561e8b
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 0x40e6f4
mov edx, dword [ebp - 0x398]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e6ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e8f4
push ecx
push edx
call fcn.00561e8b
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.0040a950
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x478], 0
je 0x40e78a
cmp dword [ebp - 0x3cc], 0x10
lea edx, [ebp - 0x3e0]
lea ecx, [ebp - 0x4c8]
cmovae edx, dword [ebp - 0x3e0]
call fcn.0040aee0
lea ecx, [ebp - 0x4c4]
call fcn.00406020
test eax, eax
jne 0x40e78a
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.00408310
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.00405760
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.00416494
mov ecx, dword [ebp - 0x3cc]
add esp, 4
cmp ecx, 0x10
jb 0x40e85c
mov edx, dword [ebp - 0x3e0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e852
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e8f9
push ecx
push edx
call fcn.00561e8b
add esp, 8
mov esi, dword [ebp - 0x3f8]
mov eax, dword [ebp - 0x3e4]
cmp eax, 0x10
jb 0x40e894
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x40e88a
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e8fe
push ecx
push esi
call fcn.00561e8b
add esp, 8
mov eax, dword [ebp - 0x3b4]
cmp eax, 0x10
jb 0x40e8cc
mov edx, dword [ebp - 0x3c8]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e8c2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e8fe
push ecx
push edx
call fcn.00561e8b
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.00561e7d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004084c0
call fcn.005673a5
call fcn.005673a5
call fcn.005673a5
call fcn.005673a5
int3