Function at 0x405f10
Capabilities:
Create directory
Create process on windows
Delete file
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422adb
mov eax, dword fs:[0]
push eax
sub esp, 0xbcc
mov eax, dword [0x42e6dc]
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 esi, ecx
push 0xff
lea eax, [ebp - 0x2ff]
push 0
push eax
mov byte [ebp - 0x300], 0
call fcn.0040fde0
add esp, 0xc
xorps xmm0, xmm0
push 0xff
lea eax, [ebp - 0x717]
push 0
push eax
mov byte [ebp - 0x50], 0
movq qword [ebp - 0x4f], xmm0
movq qword [ebp - 0x47], xmm0
movq qword [ebp - 0x3f], xmm0
mov dword [ebp - 0x37], 0
mov word [ebp - 0x33], 0
mov byte [ebp - 0x31], 0
mov byte [ebp - 0x718], 0
call fcn.0040fde0
add esp, 0xc
lea eax, [ebp - 0xb17]
push 0x3ff
push 0
push eax
mov byte [ebp - 0xb18], 0
call fcn.0040fde0
mov al, byte [0x429c78]
movq xmm0, qword [str.pgH0BwW]
add esp, 0xc
mov byte [ebp - 0x28], al
xor eax, eax
push 0x103
mov dword [ebp - 0x27], eax
mov word [ebp - 0x23], ax
mov byte [ebp - 0x21], al
mov byte [ebp - 0x20], al
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
mov byte [ebp - 0x200], al
movq qword [ebp - 0x30], xmm0
lea eax, [ebp - 0x1ff]
xorps xmm0, xmm0
push 0
push eax
movq qword [ebp - 0x1f], xmm0
xor bl, bl
call fcn.0040fde0
add esp, 0xc
lea eax, [ebp - 0x407]
push 0x103
push 0
push eax
mov byte [ebp - 0x408], bl
call fcn.0040fde0
add esp, 0xc
lea eax, [ebp - 0x617]
push 0x103
push 0
push eax
mov byte [ebp - 0x618], bl
call fcn.0040fde0
add esp, 0xc
lea eax, [ebp - 0x50f]
push 0x103
push 0
push eax
mov byte [ebp - 0x510], bl
call fcn.0040fde0
add esp, 0xc
lea eax, [ebp - 0x408]
push str.v:Intel
push 0x104
push eax
call fcn.0040b139
add esp, 0xc
lea eax, [ebp - 0x408]
push str._bin
push 0x104
push eax
call fcn.0040b18e
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x618]
push 0x104
push eax
call fcn.0040b139
add esp, 0xc
lea eax, [ebp - 0x618]
push str.options
push 0x104
push eax
call fcn.0040b18e
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x510]
push 0x104
push eax
call fcn.0040b139
add esp, 0xc
lea eax, [ebp - 0x510]
push 0x429924
push 0x104
push eax
call fcn.0040b18e
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push 0x104
push 0x4311a0
call fcn.0040b139
add esp, 0xc
push 0x429924
push 0x104
push 0x4311a0
call fcn.0040b18e
add esp, 0xc
lea eax, [ebp - 0x200]
push str.v:Intel
push 0x104
push eax
call fcn.0040b139
add esp, 0xc
lea eax, [ebp - 0x200]
push str.data_0.bin
push 0x104
push eax
call fcn.0040b18e
lea edx, [ebp - 0x30]
add esp, 0xc
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x406168
lea eax, [ebp - 0x20]
sub edx, ecx
push 0x10
push eax
lea ecx, [ebp - 0x30]
call fcn.00405760
add esp, 8
lea eax, [ebp - 0x408]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x50]
call fcn.0040a0b0
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.0040cb10
add esp, 8
lea ecx, [ebp - 0x300]
test eax, eax
je 0x4061b6
lea eax, [ebp - 0x50]
push eax
jmp 0x4061bb
push str.other
push esi
call fcn.00405c10
add esp, 8
mov ecx, 0x429c9c
lea eax, [ebp - 0x300]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4061f0
test dl, dl
je 0x4061ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4061f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4061d0
xor eax, eax
jmp 0x4061f5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x406236
push eax
push eax
mov dword [0x431194], eax
mov byte [0x431198], al
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
lea edx, [ebp - 0xd8]
mov ecx, 9
call fcn.00404f70
add esp, 4
test al, al
je 0x40622f
lea ecx, [ebp - 0xd8]
call fcn.00409050
xor eax, eax
jmp 0x406675
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x406250
push 0x100
lea edx, [ebp - 0x718]
mov ecx, 4
call fcn.00404f70
add esp, 4
test al, al
je 0x406334
lea eax, [ebp - 0x300]
lea ecx, [ebp - 0x718]
lea esp, [esp]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4062a0
test dl, dl
je 0x40629c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4062a0
add ecx, 2
add eax, 2
test dl, dl
jne 0x406280
xor eax, eax
jmp 0x4062a5
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x200]
je 0x40631a
push eax
mov bl, 1
call esi
lea edx, [ebp - 0x200]
lea ecx, [ebp - 0x300]
call fcn.00407190
test al, al
je 0x40635f
push 0
push 0
mov dword [0x431194], 0
mov byte [0x431198], 0
call edi
push 0
lea edx, [ebp - 0xd8]
mov ecx, 9
call fcn.00404f70
add esp, 4
test al, al
je 0x406308
lea ecx, [ebp - 0xd8]
call fcn.00409050
mov edx, 0x429cc4
lea ecx, [ebp - 0x408]
call fcn.00408db0
jmp 0x40634b
push 0x42a248
push eax
call fcn.0040d3e3
add esp, 8
test eax, eax
je 0x4062b4
push eax
call fcn.0040c7c0
jmp 0x40635c
lea edx, [ebp - 0x200]
lea ecx, [ebp - 0x300]
mov bl, 1
call fcn.00407190
test al, al
je 0x40635f
push ecx
lea edx, [ebp - 0x300]
mov ecx, 4
call fcn.00405200
add esp, 4
push ecx
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x200]
call fcn.004099d0
add esp, 4
test eax, eax
lea eax, [ebp - 0x200]
je 0x40638e
push eax
call esi
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406250
push 0x42a248
push eax
call fcn.0040d3e3
add esp, 8
test eax, eax
je 0x4063ba
push eax
call fcn.0040c7c0
add esp, 4
lea edx, [ebp - 0x408]
lea ecx, [ebp - 0x200]
call fcn.004011d0
sub esp, 8
lea eax, [ebp - 0x618]
push 1
push eax
lea ecx, [ebp - 0xbd8]
call fcn.00402020
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xbd8]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xbcc], 6
jne 0x4065f7
push 0
push 0x400
lea eax, [ebp - 0xb18]
push eax
lea ecx, [ebp - 0xbd8]
call fcn.00401cf0
lea ecx, [ebp - 0xbc8]
call fcn.00402ea0
test eax, eax
jne 0x406449
mov eax, dword [ebp - 0xbd8]
lea ecx, [ebp - 0xbd8]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x406437
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x406449
push 0
call fcn.00404aa0
lea ecx, [ebp - 0x510]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406452
sub ecx, edx
mov esi, 0x104
mov eax, esi
sub eax, ecx
push eax
lea eax, [ebp - 0x510]
add eax, ecx
push eax
mov edx, str.pre_exe
lea ecx, [ebp - 0xb18]
call fcn.004068a0
mov ecx, 0x4311a0
add esp, 8
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406490
sub ecx, edx
sub esi, ecx
lea eax, [ecx + 0x4311a0]
push esi
push eax
mov edx, str.main_exe
lea ecx, [ebp - 0xb18]
call fcn.004068a0
lea eax, [ebp - 0xf8]
push 0x20
push eax
mov edx, str.main_exe
lea ecx, [ebp - 0xb18]
call fcn.004068a0
push 0x104
push 0x4312a8
mov edx, str.parameters
lea ecx, [ebp - 0xb18]
call fcn.004068a0
lea eax, [ebp - 0x510]
push 0x42a248
push eax
call fcn.0040d3e3
add esp, 0x20
test eax, eax
je 0x4065a9
push eax
call fcn.0040c7c0
add esp, 4
lea eax, [ebp - 0x94]
push 0x40
push 0
push eax
mov dword [ebp - 0x98], 0x44
call fcn.0040fde0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x98]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x510]
push eax
push 0
mov dword [ebp - 0x6c], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea eax, [ebp - 0xb1c]
cmp eax, 0x666666
mov esi, 0
cmovne esi, dword [ebp - 0x20]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
jne 0x4065a9
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x200]
lea ecx, [ebp - 0x300]
call fcn.00407190
lea edx, [ebp - 0x408]
lea ecx, [ebp - 0x200]
call fcn.004011d0
push ecx
lea edx, [ebp - 0xf8]
mov ecx, 9
mov byte [0x431198], 1
call fcn.00405200
add esp, 4
lea edx, [ebp - 0x98]
push 0
mov ecx, 9
call fcn.00404f70
add esp, 4
test al, al
je 0x4065f0
lea ecx, [ebp - 0x98]
call fcn.00409150
test al, al
je 0x4065f0
test bl, bl
je 0x4065f7
mov esi, 1
jmp 0x4065f9
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xbd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xbd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xbdc], eax
lea ecx, [ebp - 0xbc8]
call fcn.00402130
mov eax, dword [ebp - 0xbd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov ecx, dword [ebp - 0xbd8]
lea eax, [ebp - 0xb68]
mov edx, dword [ecx + 4]
push eax
lea ecx, [edx - 0x18]
mov dword [ebp + edx - 0xbdc], ecx
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::ios_base.0
call fcn.0040a4b0
add esp, 4
mov ax, si
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.0040b0df
mov esp, ebp
pop ebp
ret