Function at 0x140001ec0
Capabilities:
Accept command line arguments
Acquire debug privileges
Check os version
Create thread
Delete file

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0xba388
call fcn.1400166f0
sub rsp, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x140001f3e
cmp qword [rsp + 0x60], 0
je 0x140001f3e
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r8d, 0x114
xor edx, edx
lea rcx, [rsp + 0x1d0]
call fcn.140001e60
mov dword [rsp + 0x1d0], 0x114
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x44], 0
cmp dword [rsp + 0x1d4], 5
jne 0x140001f91
mov dword [rsp + 0x44], 1
cmp dword [rsp + 0x44], 0
jne 0x140001fbd
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400072f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x140002019
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x140002019
mov ecx, 2
call qword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov r8d, 1
lea rdx, [0x140020020]
mov rcx, qword [rsp + 0x68]
call fcn.140002560
mov r8d, 0xba090
xor edx, edx
lea rcx, [rsp + 0x2f0]
call fcn.140001e60
lea rcx, [rsp + 0x2f0]
call fcn.140002660
mov r8d, 0x64
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
cmp word [rax + rcx*2], 0
jne 0x14000207e
mov rax, qword [rsp + 0x48]
mov dword [rsp + 0x38], eax
jmp 0x1400020a9
mov eax, dword [rsp + 0x38]
dec eax
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jle 0x140002159
movsxd rax, dword [rsp + 0x38]
movzx eax, word [rsp + rax*2 + 0x90]
cmp eax, 0x5c
jne 0x140002154
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x3c], eax
jmp 0x1400020e8
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
movsxd rax, dword [rsp + 0x3c]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x50]
cmp word [rcx + rdx*2], 0
jne 0x140002106
mov rcx, qword [rsp + 0x50]
inc rcx
cmp rax, rcx
jae 0x140002152
movsxd rax, dword [rsp + 0x3c]
movsxd rcx, dword [rsp + 0x40]
movzx eax, word [rsp + rax*2 + 0x90]
mov word [rsp + rcx*2 + 0x160], ax
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
jmp 0x1400020de
jmp 0x140002159
jmp 0x14000209f
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x34], 1
jmp 0x140002175
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 4
jg 0x14000231c
mov dword [rsp + 0x30], 0
jmp 0x140002194
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x64
jge 0x140002317
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x1fc
lea rax, [rsp + rax + 0x2f0]
lea rcx, [rsp + 0x160]
sub rax, rcx
movzx edx, word [rcx]
cmp dx, word [rcx + rax]
jne 0x1400021d4
add rcx, 2
test dx, dx
jne 0x1400021be
xor eax, eax
jmp 0x1400021d9
sbb eax, eax
or eax, 1
test eax, eax
je 0x1400022fa
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x1fc
mov ecx, dword [rsp + 0x34]
cmp dword [rsp + rax + 0x4e8], ecx
jne 0x1400022fa
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x1fc
lea rax, [rsp + rax + 0x2f0]
lea rcx, str.csrss.exe
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x140002232
add rax, 2
test dx, dx
jne 0x14000221c
xor eax, eax
jmp 0x140002237
sbb eax, eax
or eax, 1
test eax, eax
je 0x1400022fa
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x1fc
lea rax, [rsp + rax + 0x2f0]
lea rcx, [0x140020060]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x140002273
add rax, 2
test dx, dx
jne 0x14000225d
xor eax, eax
jmp 0x140002278
sbb eax, eax
or eax, 1
test eax, eax
je 0x1400022fa
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x1fc
lea rax, [rsp + rax + 0x2f0]
lea rcx, [0x140020080]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x1400022b0
add rax, 2
test dx, dx
jne 0x14000229a
xor eax, eax
jmp 0x1400022b5
sbb eax, eax
or eax, 1
test eax, eax
je 0x1400022fa
cmp dword [rsp + 0x44], 0
je 0x1400022c7
cmp dword [rsp + 0x34], 0
je 0x1400022ce
cmp dword [rsp + 0x34], 1
jne 0x1400022d3
jmp 0x14000218a
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x1fc
mov ecx, dword [rsp + rax + 0x4e4]
call fcn.140002c20
mov dword [rsp + 0x5c], eax
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x1fc
cmp dword [rsp + rax + 0x4e4], 0
jne 0x140002312
jmp 0x140002317
jmp 0x14000218a
jmp 0x14000216b
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140005670
mov ecx, 2
call fcn.140003150
xor eax, eax
add rsp, 0xba388
ret