Function at 0x100002300
Capabilities:
Accept command line arguments
Get common file path
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x11b0
call fcn.100003c80
sub rsp, rax
mov rax, qword [0x100005110]
xor rax, rsp
mov qword [rsp + 0x11a0], rax
xor ebp, ebp
mov rdi, rcx
xor r9d, r9d
lea ebx, [rbp + 1]
xor r8d, r8d
xor ecx, ecx
mov edx, ebx
mov r12d, ebp
mov dword [rsp + 0x70], ebp
mov dword [rsp + 0x6c], ebp
mov dword [rsp + 0x88], ebp
mov esi, ebp
mov dword [rsp + 0x74], ebp
mov r13d, ebp
mov dword [rsp + 0x78], ebp
mov r14d, ebp
mov dword [rsp + 0x7c], ebp
mov dword [rsp + 0x60], ebp
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x80], rbp
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea rcx, [rsp + 0x570]
xor edx, edx
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x980]
xor edx, edx
mov r8d, 0x402
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x160]
xor edx, edx
mov r8d, 0x402
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x780]
xor edx, edx
mov r8d, 0x200
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0xd90]
xor edx, edx
mov r8d, 0x402
call sub.msvcrt.dll_memset
mov rax, qword [0x100005830]
mov qword [0x100005820], rdi
mov rdi, rbp
cmp rax, rbp
jne 0x100002451
lea rcx, [0x100001380]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
cmp rax, rbp
je 0x100002449
lea rdx, [0x1000013a0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x100005830], rax
cmp rax, rbp
jne 0x100002451
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100002455
xor ecx, ecx
call rax
cmp rdi, rbp
je 0x100002463
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x100005828], rax
cmp rax, 0xffffffffffffffff
jne 0x100002494
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r8d, ax
or r8d, 0x80070000
cmp eax, ebp
cmovle r8d, eax
jmp 0x100002497
mov r8d, ebp
cmp r8d, ebp
jne 0x1000029e2
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x64]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor r10d, r10d
mov r15, rax
cmp rax, r10
jne 0x1000024ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, edx
jmp 0x1000029d7
mov r9d, dword [rsp + 0x64]
mov r8d, ebx
mov dword [rsp + 0x68], ebx
cmp r9d, ebx
mov ebp, ebx
jle 0x1000028ae
lea r13, [rax + 8]
lea r12, [rsp + 0xc0]
lea r11, [0x100005120]
mov rdi, qword [r13]
cmp word [rdi], 0x2f
jne 0x100002896
movzx ecx, word [rdi + 2]
cmp ecx, 0x65
jg 0x100002551
je 0x10000251b
sub ecx, 0x45
je 0x10000251b
sub ecx, 9
jmp 0x100002554
cmp esi, r10d
mov edx, r10d
jle 0x100002541
lea rcx, [rsp + 0xc0]
mov eax, dword [rcx]
cmp dword [r11 + rax*4], r10d
je 0x100002837
add edx, ebx
add rcx, 4
cmp edx, esi
jl 0x10000252b
mov dword [r12], r10d
mov dword [rsp + 0x88], ebx
jmp 0x10000281b
sub ecx, 0x6e
je 0x10000279a
sub ecx, 2
je 0x100002766
sub ecx, 3
je 0x1000026bd
sub ecx, ebx
je 0x10000263d
cmp ecx, ebx
jne 0x100002ef9
cmp esi, r10d
mov edx, r10d
jle 0x1000025a6
lea rcx, [rsp + 0xc0]
mov eax, dword [rcx]
cmp dword [r11 + rax*4 + 0xb4], r10d
je 0x100002837
add edx, ebx
add rcx, 4
cmp edx, esi
jl 0x10000258c
mov dword [r12], 5
add rdi, 4
jmp 0x1000025c2
cmp ax, r10w
je 0x100002ef9
add rdi, 2
movzx eax, word [rdi]
cmp ax, 0x3a
jne 0x1000025b4
add rdi, 2
lea rax, [rsp + 0x160]
mov edx, 0x201
mov qword [rsp + 0x90], rdi
lea rcx, [rsp + 0x160]
mov r8d, r10d
sub rdi, rax
lea rax, [rdx + 0x7ffffdfd]
cmp rax, r10
je 0x100002614
movzx eax, word [rdi + rcx]
cmp ax, r10w
je 0x100002614
mov word [rcx], ax
add rcx, 2
sub rdx, rbx
jne 0x1000025f2
cmp rdx, r10
jne 0x100002623
sub rcx, 2
mov r8d, 0x8007007a
cmp r8d, r10d
mov word [rcx], r10w
jl 0x100002841
mov r8d, dword [rsp + 0x68]
mov r14d, ebx
jmp 0x10000281b
cmp esi, r10d
mov edx, r10d
jle 0x100002667
lea rcx, [rsp + 0xc0]
mov eax, dword [rcx]
cmp dword [r11 + rax*4 + 0x90], r10d
je 0x100002837
add edx, ebx
add rcx, 4
cmp edx, esi
jl 0x10000264d
mov dword [r12], 4
lea rcx, [rdi + 4]
jmp 0x100002683
cmp ax, r10w
je 0x100002ef9
add rcx, 2
movzx eax, word [rcx]
cmp ax, 0x3a
jne 0x100002675
xor edx, edx
add rcx, 2
lea r8d, [rdx + 0x10]
call qword [sym.imp.msvcrt.dll_wcstoul]
mov r9d, dword [rsp + 0x64]
mov r8d, dword [rsp + 0x68]
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x74], ebx
xor r10d, r10d
lea r11, [0x100005120]
jmp 0x10000281b
movzx eax, word [rdi + 4]
cmp eax, 0x41
je 0x100002726
cmp eax, 0x48
je 0x100002851
cmp eax, 0x4d
je 0x1000026eb
cmp eax, 0x61
je 0x100002726
cmp eax, 0x68
je 0x100002851
cmp eax, 0x6d
jne 0x10000281b
cmp esi, r10d
mov edx, r10d
jle 0x100002715
lea rcx, [rsp + 0xc0]
mov eax, dword [rcx]
cmp dword [r11 + rax*4 + 0xd8], r10d
je 0x100002837
add edx, ebx
add rcx, 4
cmp edx, esi
jl 0x1000026fb
or dword [rsp + 0x60], ebx
mov dword [r12], 6
jmp 0x10000281b
cmp esi, r10d
mov edx, r10d
jle 0x100002750
lea rcx, [rsp + 0xc0]
mov eax, dword [rcx]
cmp dword [r11 + rax*4 + 0x120], r10d
je 0x100002837
add edx, ebx
add rcx, 4
cmp edx, esi
jl 0x100002736
or dword [rsp + 0x60], 2
mov dword [r12], 8
mov dword [rsp + 0x7c], ebx
jmp 0x10000281b
cmp esi, r10d
mov edx, r10d
jle 0x10000278d
lea rcx, [rsp + 0xc0]
mov eax, dword [rcx]
cmp dword [r11 + rax*4 + 0x6c], r10d
je 0x100002837
add edx, ebx
add rcx, 4
cmp edx, esi
jl 0x100002776
mov dword [r12], 3
jmp 0x10000281b
movzx eax, word [rdi + 4]
cmp eax, 0x45
je 0x1000027e7
cmp eax, 0x4f
je 0x1000027b6
cmp eax, 0x65
je 0x1000027e7
cmp eax, 0x6f
jne 0x100002ef9
cmp esi, r10d
mov edx, r10d
jle 0x1000027d9
lea rcx, [rsp + 0xc0]
mov eax, dword [rcx]
cmp dword [r11 + rax*4 + 0x48], r10d
je 0x100002837
add edx, ebx
add rcx, 4
cmp edx, esi
jl 0x1000027c6
mov dword [r12], 2
and r8d, 0xfffffffe
jmp 0x100002816
cmp esi, r10d
mov edx, r10d
jle 0x10000280a
lea rcx, [rsp + 0xc0]
mov eax, dword [rcx]
cmp dword [r11 + rax*4 + 0x24], r10d
je 0x100002837
add edx, ebx
add rcx, 4
cmp edx, esi
jl 0x1000027f7
and r8d, 0xfffffffe
mov dword [r12], ebx
or r8d, 2
mov dword [rsp + 0x68], r8d
add ebp, ebx
add esi, ebx
add r12, 4
add r13, 8
cmp ebp, r9d
jl 0x1000024f8
mov r13d, dword [rsp + 0x78]
jmp 0x1000028a5
call fcn.1000021dc
jmp 0x100002f1e
mov ecx, 0x800
mov r8d, 0x57
jmp 0x100002db1
lea edi, [rbp - 1]
mov ecx, r10d
cmp edi, r10d
jle 0x10000287a
lea rdx, [rsp + 0xc0]
mov eax, dword [rdx]
cmp dword [r11 + rax*4 + 0xfc], r10d
je 0x100002837
add ecx, ebx
add rdx, 4
cmp ecx, edi
jl 0x100002864
movsxd rax, ebp
mov dword [rsp + rax*4 + 0xbc], 7
call fcn.100001f84
xor edx, edx
mov ebx, edx
jmp 0x100002efe
lea eax, [r9 - 1]
cmp ebp, eax
jne 0x100002ef9
mov r13d, ebx
mov r12d, dword [rsp + 0x70]
mov esi, dword [rsp + 0x74]
mov r8d, dword [rsp + 0x60]
and r8d, ebx
je 0x100002910
lea rdi, [rsp + 0x160]
lea rax, [rsp + 0x570]
mov edx, 0x104
sub rdi, rax
lea rcx, [rsp + 0x570]
lea rax, [rdx + 0x7ffffefa]
cmp rax, r10
je 0x1000028fa
movzx eax, word [rcx + rdi]
cmp ax, r10w
je 0x1000028fa
mov word [rcx], ax
add rcx, 2
sub rdx, rbx
jne 0x1000028d8
cmp rdx, r10
jne 0x100002903
sub rcx, 2
mov word [rcx], r10w
mov word [rsp + 0x160], r10w
cmp r13d, r10d
je 0x100002ef9
cmp r14d, r10d
jne 0x10000292c
cmp esi, r10d
jne 0x10000292c
cmp r8d, r10d
je 0x100002ef9
mov edi, 0x68
lea rcx, [rsp + 0xf0]
xor edx, edx
mov r8, rdi
call sub.msvcrt.dll_memset
xor edx, edx
mov dword [rsp + 0xf0], edi
mov qword [rsp + 0xa8], rdx
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0xb8], rdx
cmp esi, ebx
jne 0x100002a80
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x160]
lea ecx, [rdi - 0x66]
mov dword [rsp + 0x78], 0x201
call sub.Secur32.dll_GetUserNameExW
xor ebp, ebp
cmp al, bpl
je 0x1000029cf
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
cmp rax, rbp
jne 0x1000029bd
mov ecx, 0x800
lea r8d, [rdi - 0x60]
jmp 0x100002db1
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebp
jne 0x1000029ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
mov ecx, 0x80004005
cmove eax, ecx
mov r8d, eax
mov ecx, 0x800
jmp 0x100002db1
movsxd rax, dword [rsp + 0x64]
lea rcx, [rsp + 0x160]
mov edi, 0x800
mov r9, qword [r15 + rax*8 - 8]
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x80]
mov edx, 0x1f41
mov ecx, edi
call fcn.100001914
cmp eax, ebp
jne 0x100002a38
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
mov ecx, 0x80004005
cmove eax, ecx
mov r8d, eax
jmp 0x100002daf
mov rax, qword [rsp + 0x80]
movsxd r8, dword [rsp + 0x64]
mov r9, rsi
mov qword [rsp + 0x108], rax
mov r8, qword [r15 + r8*8 - 8]
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xf0]
xor edx, edx
mov ecx, r12d
mov qword [rsp + 0x20], rax
call fcn.100001e98
mov esi, eax
jmp 0x100002df7
movsxd rbp, dword [rsp + 0x88]
movsxd r12, dword [rsp + 0x7c]
mov r13d, dword [rsp + 0x60]
mov r14d, dword [rsp + 0x68]
mov edi, 0x800
xor esi, esi
mov dword [rsp + 0x40], 0x201
lea rax, [rsp + 0xd90]
lea r9, [rsp + 0x160]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x980]
mov dword [rsp + 0x30], 0x201
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x780]
mov r8d, 0x100
mov ecx, r13d
mov dword [rsp + 0x20], 0x201
call fcn.100001968
cmp eax, esi
jne 0x100002eed
movsxd rax, dword [rsp + 0x64]
lea rcx, [rsp + 0x980]
lea r8, [rsp + 0x80]
mov r9, qword [r15 + rax*8 - 8]
mov qword [rsp + 0x20], rcx
mov edx, 0x1f42
mov ecx, edi
call fcn.100001914
cmp eax, esi
je 0x100002ee0
mov rax, qword [rsp + 0x80]
lea rcx, [rsp + 0x160]
mov qword [rsp + 0x108], rax
cmp word [rsp + 0x160], si
je 0x100002c23
cmp word [rcx], 0x5c
je 0x100002b63
add rcx, 2
cmp word [rcx], si
jne 0x100002b4f
jmp 0x100002c23
lea r9, [rsp + 0x160]
lea rax, [rsp + 0x570]
mov word [rcx], si
add rcx, 2
mov r8d, 0x104
lea rdx, [rsp + 0x570]
sub r9, rax
mov r10d, esi
lea rax, [r8 + 0x7ffffefa]
cmp rax, rsi
je 0x100002bb0
movzx eax, word [rdx + r9]
cmp ax, si
je 0x100002bb0
mov word [rdx], ax
add rdx, 2
sub r8, rbx
jne 0x100002b8e
cmp r8, rsi
jne 0x100002bbf
sub rdx, 2
mov r10d, 0x8007007a
cmp r10d, esi
mov word [rdx], si
jl 0x100002da9
lea rax, [rsp + 0x160]
mov r8d, 0x201
lea rdx, [rsp + 0x160]
sub rcx, rax
mov r9d, esi
lea rax, [r8 + 0x7ffffdfd]
cmp rax, rsi
je 0x100002c08
movzx eax, word [rdx + rcx]
cmp ax, si
je 0x100002c08
mov word [rdx], ax
add rdx, 2
sub r8, rbx
jne 0x100002be7
cmp r8, rsi
jne 0x100002c17
sub rdx, 2
mov r9d, 0x8007007a
cmp r9d, esi
mov word [rdx], si
jl 0x100002da9
movsxd r8, dword [rsp + 0x64]
lea r9, [rsp + 0x980]
mov edx, 0x1f44
mov r8, qword [r15 + r8*8 - 8]
mov ecx, edi
call fcn.100001884
cmp rbp, rsi
je 0x100002c98
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x98], rax
cmp rax, rsi
je 0x100002dcb
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, esi
je 0x100002dc0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
bts dword [rsp + 0x6c], 0xa
mov qword [rsp + 0xa0], rax
movsxd rcx, dword [rsp + 0x64]
lea rax, [rsp + 0xa8]
lea r8, [rsp + 0x780]
mov rcx, qword [r15 + rcx*8 - 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x98]
lea rdx, [rsp + 0x570]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa0]
mov r9d, r14d
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x160]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
mov esi, eax
xor eax, eax
cmp r12, rax
je 0x100002df5
test r13b, 2
je 0x100002dd3
cmp esi, eax
jne 0x100002eab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sub.credui.dll_SspiIsPromptingNeeded
xor edx, edx
cmp al, dl
je 0x100002df5
mov r8, qword [rsp + 0x90]
and r13d, 0xfffffffd
xor esi, esi
lea rax, [rsp + 0x160]
or r13d, 4
mov edx, 0x201
lea rcx, [rsp + 0x160]
mov r9d, esi
sub r8, rax
lea rax, [rdx + 0x7ffffdfd]
cmp rax, rsi
je 0x100002d8e
movzx eax, word [rcx + r8]
cmp ax, si
je 0x100002d8e
mov word [rcx], ax
add rcx, 2
sub rdx, rbx
jne 0x100002d6c
cmp rdx, rsi
jne 0x100002d9d
sub rcx, 2
mov r9d, 0x8007007a
cmp r9d, esi
mov word [rcx], si
jge 0x100002a9e
mov r8d, 0x57
mov ecx, edi
mov edx, 0x1f43
call fcn.100001884
jmp 0x100002efe
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100002a30
mov r8d, 8
jmp 0x100002daf
lea r9, [rsp + 0x780]
lea r8, [rsp + 0x570]
lea rcx, [rsp + 0x160]
mov edx, 0x201
call fcn.100001c7c
xor ebp, ebp
cmp esi, ebp
jne 0x100002ead
mov qword [rsp + 0x90], rbp
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
cmp eax, ebp
jne 0x100002e55
mov rcx, qword [rsp + 0xa8]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x60]
cmp eax, ebp
jne 0x100002e55
mov rcx, qword [rsp + 0xb0]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [rsp + 0x60]
mov ecx, 0x80004005
cmp eax, ebp
cmove eax, ecx
mov dword [rsp + 0x60], eax
movsxd r9, dword [rsp + 0x64]
lea r8, [rsp + 0x90]
mov edx, eax
mov r9, qword [r15 + r9*8 - 8]
mov ecx, 0x1000
call fcn.100001914
mov ecx, edi
cmp eax, ebp
jne 0x100002e83
mov r8d, dword [rsp + 0x60]
jmp 0x100002db1
movsxd r8, dword [rsp + 0x64]
mov rax, qword [rsp + 0x90]
mov r9d, dword [rsp + 0x60]
mov r8, qword [r15 + r8*8 - 8]
mov edx, 0x1f45
mov qword [rsp + 0x20], rax
call fcn.100001884
jmp 0x100002efe
xor ebp, ebp
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
cmp rcx, rbp
je 0x100002edc
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, ebp
jmp 0x100002efe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jmp 0x100002a28
mov ecx, 0x1bc0
call fcn.1000017dc
jmp 0x100002efe
call fcn.1000021dc
xor eax, eax
lea rdi, [rsp + 0x780]
mov ecx, 0x200
rep stosb byte [rdi], al
lea rdi, [rsp + 0xd90]
mov ecx, 0x402
rep stosb byte [rdi], al
mov eax, ebx
mov rcx, qword [rsp + 0x11a0]
xor rcx, rsp
call fcn.1000032e0
lea r11, [rsp + 0x11b0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret