Function at 0x40f490
Capabilities:
Accept command line arguments
Create a process with modified i/o handles and window
Create process on windows
Delete file
Delete registry value
Encode data using xor
Hash data using fnv
Set environment variable
Write and execute a file
Write file on windows

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 0x470e73
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x100
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x47c27c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40fe94
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40fe94
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x40fe94
cmp dword [ebp - 0xb0], 0
je 0x40fe94
push 0x4b0
call fcn.004511c8
add esp, 4
mov dword [ebp - 0x9c], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00429fb0
push 0
push 0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push 0
push 0
mov ecx, esi
call fcn.0042e830
push 0xa
lea eax, [esi + 0x10]
mov dword [ebp - 0x30], 0
push str.Launcher64
lea ecx, [ebp - 0x30]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
call fcn.00411b40
cmp dword [ebp - 0x1c], 8
lea edi, [ebp - 0x30]
mov esi, dword [ebp - 0x30]
mov edx, 0x811c9dc5
mov eax, dword [ebp - 0x20]
setae byte [ebp - 0x91]
cmovae edi, esi
xor ecx, ecx
add eax, eax
je 0x40f5c7
mov esi, eax
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x40f5b3
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xac]
lea eax, [ebp - 0x30]
push edx
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.004149a0
mov edi, dword [eax + 4]
test edi, edi
jne 0x40f5ee
mov eax, dword [ebp - 0xac]
mov edi, dword [eax + 4]
cmp byte [ebp - 0x91], 0
je 0x40f629
mov ecx, dword [ebp - 0x1c]
mov eax, esi
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40f61f
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40febc
push ecx
push esi
call fcn.00451449
add esp, 8
mov eax, dword [ebp - 0xac]
cmp edi, dword [eax + 4]
je 0x40fe94
push 0x2c
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
call fcn.004511c8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 1
mov ecx, dword [edi + 0x20]
push eax
call fcn.00443960
push 0x10
push str.TwitchStudio.exe
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
call fcn.00411b40
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0xa8]
call fcn.00410fd0
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x40f6f1
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f6e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40febc
push edx
push ecx
call fcn.00451449
add esp, 8
mov esi, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xa8]
cmp esi, eax
jne 0x40f70b
mov esi, 0xe0000000
jmp 0x40fe6f
lea ecx, [ebp - 0x30]
call fcn.00418f70
push 0xd
push 0x47c380
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00412220
mov dword [ebp - 0x60], 0
xor ecx, ecx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x60], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x50], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x40f79c
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f792
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40feb7
push edx
push ecx
call fcn.00451449
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x4c], 8
lea edx, [ebp - 0x60]
push str.TwitchStudio.exe
cmovae edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.004185a0
add esp, 4
mov byte [ebp - 4], 5
xor edi, edi
lea ecx, [ebp - 0x90]
call fcn.00418f70
push 0xd
push 0x47c380
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00412220
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x4c]
movq qword [ebp - 0xa0], xmm1
movups xmmword [ebp - 0x28], xmm0
cmp edx, 8
jb 0x40f85b
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f845
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40feb7
push edx
push ecx
call fcn.00451449
movups xmm0, xmmword [ebp - 0x28]
add esp, 8
movq xmm1, qword [ebp - 0xa0]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x7c]
movq qword [ebp - 0x50], xmm1
movups xmmword [ebp - 0x60], xmm0
cmp edx, 8
jb 0x40f8a5
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f89b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40feb7
push edx
push ecx
call fcn.00451449
add esp, 8
test edi, edi
jle 0x40f96a
mov edx, edi
lea ecx, [ebp - 0x30]
call fcn.004016f0
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x40f8c3
mov eax, dword [eax]
cmp dword [ebp - 0x4c], 8
lea edx, [ebp - 0x60]
push eax
cmovae edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x90]
call fcn.004185a0
mov edx, dword [ebp - 0x4c]
add esp, 4
cmp edx, 8
jb 0x40f917
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f90d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40feb7
push edx
push ecx
call fcn.00451449
add esp, 8
movups xmm0, xmmword [ebp - 0x90]
movups xmmword [ebp - 0x60], xmm0
movq xmm0, qword [ebp - 0x80]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1c]
movq qword [ebp - 0x50], xmm0
cmp edx, 8
jb 0x40f96a
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f960
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40feb7
push edx
push ecx
call fcn.00451449
add esp, 8
cmp dword [ebp - 0x4c], 8
lea ecx, [ebp - 0x60]
cmovae ecx, dword [ebp - 0x60]
call fcn.00418880
cmp dword [ebp - 0x4c], 8
lea edx, [ebp - 0x60]
push str.TwitchStudio.exe
cmovae edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x30]
call fcn.004185a0
mov edx, dword [ebp - 0x64]
add esp, 4
cmp edx, 8
jb 0x40f9cf
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f9c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40febc
push edx
push ecx
call fcn.00451449
add esp, 8
movups xmm1, xmmword [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x78]
movq xmm0, qword [ebp - 0x20]
push 0
push 0
push 2
push 0
movd eax, xmm1
push 3
push 0x40000000
cmovae ecx, eax
movq qword [ebp - 0x68], xmm0
push ecx
movups xmmword [ebp - 0x78], xmm1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
mov dword [ebp - 0x9c], edx
test edx, edx
je 0x40fa16
cmp edx, 0xffffffff
jne 0x40fa25
inc edi
cmp edi, 0xa
jl 0x40f7d1
cmp edx, 0xffffffff
je 0x40fa7c
mov dword [ebp - 0xb4], 0
lea edi, [ebp - 0xb4]
mov eax, dword [esi + 0x28]
push 0
push edi
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
push ecx
push dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
cmp dword [ebp - 0xb4], ecx
je 0x40fb0c
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
cmovae eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 0xe0000000
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x40fabb
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fab1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40febc
push edx
push ecx
call fcn.00451449
add esp, 8
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
cmp edx, 8
jb 0x40fe55
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fe4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40febc
jmp 0x40fe4b
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
xor eax, eax
movlpd qword [ebp - 0xfc], xmm0
push eax
push 0x47c32c
lea ecx, [ebp - 0x48]
movlpd qword [ebp - 0xf4], xmm0
movlpd qword [ebp - 0xec], xmm0
movlpd qword [ebp - 0xe4], xmm0
movlpd qword [ebp - 0xdc], xmm0
movlpd qword [ebp - 0xd4], xmm0
movlpd qword [ebp - 0xcc], xmm0
movlpd qword [ebp - 0xc4], xmm0
movups xmmword [ebp - 0x110], xmm0
mov dword [ebp - 0x100], 0x44
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
call fcn.00411b40
push 0x22
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.00411a20
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
push dword [ebp - 0x68]
cmovae eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x48]
push eax
call fcn.00412220
push 0x22
lea ecx, [ebp - 0x48]
call fcn.00411a20
push 0xb
push str.__sourceexe
lea ecx, [ebp - 0x48]
call fcn.00412220
push 2
push 0x494ba8
lea ecx, [ebp - 0x48]
call fcn.00412220
lea ecx, [ebp - 0x90]
call fcn.00419130
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x40fbf0
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00412220
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x7c]
cmp edx, 8
jb 0x40fc3b
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fc31
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fec1
push edx
push ecx
call fcn.00451449
add esp, 8
push 0x22
lea ecx, [ebp - 0x48]
call fcn.00411a20
push 0xf
push str.__destination__
lea ecx, [ebp - 0x48]
call fcn.00412220
cmp dword [0x4d1b50], 8
lea ecx, [ebp - 0x48]
push dword [0x4d1b4c]
mov eax, 0x4d1b3c
cmovae eax, dword [0x4d1b3c]
push eax
call fcn.00412220
push 0x22
lea ecx, [ebp - 0x48]
call fcn.00411a20
push 6
push str.__temp
lea ecx, [ebp - 0x48]
call fcn.00412220
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, 1
mov edi, eax
mov dword [ebp - 0x9c], edi
cmp dword [0x4d31f0], esi
jle 0x40fd13
cmp esi, dword [ebp - 0xb8]
jge 0x40fd13
push 2
push 0x494ba8
lea ecx, [ebp - 0x48]
call fcn.00412220
mov edx, dword [edi + esi*4]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fce1
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.00412220
push 0x22
lea ecx, [ebp - 0x48]
call fcn.00411a20
mov edi, dword [ebp - 0x9c]
inc esi
cmp esi, dword [0x4d31f0]
jl 0x40fcc2
cmp byte [0x4d332a], 0
je 0x40fd5c
push 5
push str._____
lea ecx, [ebp - 0x48]
call fcn.00412220
cmp dword [0x4d1b80], 8
lea ecx, [ebp - 0x48]
push dword [0x4d1b7c]
mov eax, 0x4d1b6c
cmovae eax, dword [0x4d1b6c]
push eax
call fcn.00412220
push 1
push 0x494c78
lea ecx, [ebp - 0x48]
call fcn.00412220
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmovae eax, dword [ebp - 0x78]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push 0x80000001
call esi
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
cmovae eax, dword [ebp - 0x78]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push 0x80000002
call esi
push 0
push str.__COMPAT_LAYER
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp dword [ebp - 0x34], 8
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x100]
push ecx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push 0
push eax
call fcn.0045476b
add esp, 4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40fdf3
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
cmovae eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 0xe0000000
jmp 0x40fdf8
mov esi, 0xe0000001
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x40fe32
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fe28
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40febc
push edx
push ecx
call fcn.00451449
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
jmp 0x40fa81
push edx
push ecx
call fcn.00451449
add esp, 8
xor eax, eax
mov dword [ebp - 0x50], 0
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x4c], 7
push dword [eax + 4]
lea eax, [ebp - 0xa8]
push eax
mov ecx, eax
call fcn.00414430
push 0x2c
push dword [ebp - 0xa8]
call fcn.00451449
add esp, 8
mov eax, esi
jmp 0x40fe99
mov eax, 0xe0000000
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.00450db2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00460976
call fcn.00460976
call fcn.00460976
int3