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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4235e6
mov eax, dword fs:[0]
push eax
sub esp, 0xbfc
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.00410a20
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.00410a20
add esp, 0xc
lea eax, [ebp - 0xb17]
push 0x3ff
push 0
push eax
mov byte [ebp - 0xb18], 0
call fcn.00410a20
mov al, byte [0x42abbc]
movq xmm0, qword [str.pgH0BwW]
add esp, 0xc
mov byte [ebp - 0x18], al
xor eax, eax
push 0x103
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
mov byte [ebp - 0x30], al
mov dword [ebp - 0x27], eax
mov word [ebp - 0x23], ax
mov byte [ebp - 0x21], al
mov byte [ebp - 0x200], al
movq qword [ebp - 0x20], xmm0
lea eax, [ebp - 0x1ff]
xorps xmm0, xmm0
push 0
push eax
movq qword [ebp - 0x2f], xmm0
xor bl, bl
call fcn.00410a20
add esp, 0xc
lea eax, [ebp - 0x407]
push 0x103
push 0
push eax
mov byte [ebp - 0x408], bl
call fcn.00410a20
add esp, 0xc
lea eax, [ebp - 0x617]
push 0x103
push 0
push eax
mov byte [ebp - 0x618], bl
call fcn.00410a20
add esp, 0xc
lea eax, [ebp - 0x50f]
push 0x103
push 0
push eax
mov byte [ebp - 0x510], bl
call fcn.00410a20
add esp, 0xc
lea eax, [ebp - 0x408]
push 0x42fa58
push 0x104
push eax
call fcn.0040bc49
add esp, 0xc
lea eax, [ebp - 0x408]
push str._bin
push 0x104
push eax
call fcn.0040bc9e
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x618]
push 0x104
push eax
call fcn.0040bc49
add esp, 0xc
lea eax, [ebp - 0x618]
push str.options
push 0x104
push eax
call fcn.0040bc9e
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x510]
push 0x104
push eax
call fcn.0040bc49
add esp, 0xc
lea eax, [ebp - 0x510]
push 0x42a924
push 0x104
push eax
call fcn.0040bc9e
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push 0x104
push 0x431198
call fcn.0040bc49
add esp, 0xc
push 0x42a924
push 0x104
push 0x431198
call fcn.0040bc9e
add esp, 0xc
lea eax, [ebp - 0x200]
push 0x42fa58
push 0x104
push eax
call fcn.0040bc49
add esp, 0xc
lea eax, [ebp - 0x200]
push str.data_0.bin
push 0x104
push eax
call fcn.0040bc9e
add esp, 0xc
mov dword [ebp - 0xb1c], 0xf
mov dword [ebp - 0xb20], 0
mov byte [ebp - 0xb30], bl
cmp byte [ebp - 0x20], bl
jne 0x406ac5
xor ecx, ecx
jmp 0x406ad9
lea ecx, [ebp - 0x20]
lea edx, [ecx + 1]
jmp 0x406ad0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406ad0
sub ecx, edx
push ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xb30]
call fcn.00404770
lea edx, [ebp - 0xb30]
lea ecx, [ebp - 0xb48]
mov dword [ebp - 4], 0
call fcn.00405e50
cmp dword [eax + 0x14], 0x10
jb 0x406b09
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x30]
push 0x10
push eax
call fcn.0040d88d
add esp, 0x10
cmp dword [ebp - 0xb34], 0x10
jb 0x406b31
push dword [ebp - 0xb48]
call fcn.0040bee9
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xb1c], 0x10
mov dword [ebp - 0xb34], 0xf
mov dword [ebp - 0xb38], 0
mov byte [ebp - 0xb48], 0
jb 0x406b6a
push dword [ebp - 0xb30]
call fcn.0040bee9
add esp, 4
push 0
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x50]
call fcn.00409380
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.0040db60
add esp, 8
lea ecx, [ebp - 0x300]
test eax, eax
je 0x406b9e
lea eax, [ebp - 0x50]
push eax
jmp 0x406ba3
push str.other
push esi
call fcn.00406550
add esp, 8
mov ecx, 0x42abe0
lea eax, [ebp - 0x300]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406bd7
test dl, dl
je 0x406bd3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406bd7
add eax, 2
add ecx, 2
test dl, dl
jne 0x406bb7
xor eax, eax
jmp 0x406bdc
sbb eax, eax
or eax, 1
test eax, eax
jne 0x406c1d
push eax
push eax
mov dword [0x431194], eax
mov byte [0x43129c], al
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
lea edx, [ebp - 0xd8]
mov ecx, 9
call fcn.00405660
add esp, 4
test al, al
je 0x406c16
lea ecx, [ebp - 0xd8]
call fcn.00409c70
xor eax, eax
jmp 0x407052
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
lea esp, [esp]
push 0x100
lea edx, [ebp - 0x718]
mov ecx, 4
call fcn.00405660
add esp, 4
lea ecx, [ebp - 0x300]
test al, al
je 0x406d14
lea eax, [ebp - 0x718]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406c80
test dl, dl
je 0x406c7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406c80
add eax, 2
add ecx, 2
test dl, dl
jne 0x406c60
xor eax, eax
jmp 0x406c85
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x200]
je 0x406cfa
push eax
mov bl, 1
call esi
lea edx, [ebp - 0x200]
lea ecx, [ebp - 0x300]
call fcn.00407b60
test al, al
je 0x406d39
push 0
push 0
mov dword [0x431194], 0
mov byte [0x43129c], 0
call edi
push 0
lea edx, [ebp - 0xd8]
mov ecx, 9
call fcn.00405660
add esp, 4
test al, al
je 0x406ce8
lea ecx, [ebp - 0xd8]
call fcn.00409c70
mov edx, 0x42ac08
lea ecx, [ebp - 0x408]
call fcn.00409b40
jmp 0x406d25
push 0x42b168
push eax
call fcn.0040e222
add esp, 8
test eax, eax
je 0x406c94
push eax
call fcn.0040d2d0
jmp 0x406d36
lea edx, [ebp - 0x200]
mov bl, 1
call fcn.00407b60
test al, al
je 0x406d39
push ecx
lea edx, [ebp - 0x300]
mov ecx, 4
call fcn.004058f0
add esp, 4
push ecx
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x200]
call fcn.0040a600
add esp, 4
test eax, eax
lea eax, [ebp - 0x200]
je 0x406d68
push eax
call esi
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406c30
push 0x42b168
push eax
call fcn.0040e222
add esp, 8
test eax, eax
je 0x406d94
push eax
call fcn.0040d2d0
add esp, 4
lea edx, [ebp - 0x408]
lea ecx, [ebp - 0x200]
call fcn.00401230
sub esp, 8
lea eax, [ebp - 0x618]
push 1
push eax
lea ecx, [ebp - 0xc08]
call fcn.00402020
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xc08]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xbfc], 6
jne 0x406fd4
push 0
push 0x400
lea eax, [ebp - 0xb18]
push eax
lea ecx, [ebp - 0xc08]
call fcn.00401cf0
lea ecx, [ebp - 0xbf8]
call fcn.00402ea0
test eax, eax
jne 0x406e23
mov eax, dword [ebp - 0xc08]
lea ecx, [ebp - 0xc08]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x406e11
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x406e23
push 0
call fcn.00404ab0
lea ecx, [ebp - 0x510]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406e30
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.00407270
mov ecx, 0x431198
add esp, 8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406e67
sub ecx, edx
sub esi, ecx
lea eax, [ecx + 0x431198]
push esi
push eax
mov edx, str.main_exe
lea ecx, [ebp - 0xb18]
call fcn.00407270
lea eax, [ebp - 0xf8]
push 0x20
push eax
mov edx, str.main_exe
lea ecx, [ebp - 0xb18]
call fcn.00407270
push 0x104
push 0x4312a0
mov edx, str.parameters
lea ecx, [ebp - 0xb18]
call fcn.00407270
lea eax, [ebp - 0x510]
push 0x42b168
push eax
call fcn.0040e222
add esp, 0x20
test eax, eax
je 0x406f86
push eax
call fcn.0040d2d0
add esp, 4
lea eax, [ebp - 0x94]
push 0x40
push 0
push eax
mov dword [ebp - 0x98], 0x44
call fcn.00410a20
add esp, 0xc
xor eax, eax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0xb28]
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 - 0xb4c]
cmp eax, 0x666666
mov esi, 0
cmovne esi, dword [ebp - 0xb28]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
jne 0x406f86
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x200]
lea ecx, [ebp - 0x300]
call fcn.00407b60
lea edx, [ebp - 0x408]
lea ecx, [ebp - 0x200]
call fcn.00401230
push ecx
lea edx, [ebp - 0xf8]
mov ecx, 9
mov byte [0x43129c], 1
call fcn.004058f0
add esp, 4
lea edx, [ebp - 0x98]
push 0
mov ecx, 9
call fcn.00405660
add esp, 4
test al, al
je 0x406fcd
lea ecx, [ebp - 0x98]
call fcn.00409d70
test al, al
je 0x406fcd
test bl, bl
je 0x406fd4
mov esi, 1
jmp 0x406fd6
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc08]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc08], 0x42aa04
mov eax, dword [ebp - 0xc08]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xc0c], eax
lea ecx, [ebp - 0xbf8]
call fcn.00402130
mov eax, dword [ebp - 0xc08]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc08], 0x42aa14
mov ecx, dword [ebp - 0xc08]
lea eax, [ebp - 0xb98]
mov edx, dword [ecx + 4]
push eax
lea ecx, [edx - 0x18]
mov dword [ebp + edx - 0xc0c], ecx
mov dword [ebp - 0xb98], 0x42ab20
call fcn.0040afc0
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.0040bbef
mov esp, ebp
pop ebp
ret