Function at 0x14009e0d0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x278]
sub rsp, 0x350
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov r13, rdx
mov qword [rsp + 0x68], rdx
mov qword [rbp - 0x58], rdx
xor r15b, r15b
xor r14d, r14d
mov word [rbp + 0x30], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x32]
call sub.MSVCR100.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x60], rsi
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x70], rbx
lea rcx, [rbp + 0x30]
lea rax, [rbp + 0x30]
or r12, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x14009e1bb
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x14009e2c2
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140001f70
jmp 0x14009e2c2
xor eax, eax
mov rcx, r12
lea rdi, [rbp + 0x30]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14009e239
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14009e2c2
cmp dword [rdx + 0x10], eax
jge 0x14009e206
cmp dword [rbx - 0xc], eax
jge 0x14009e1f9
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x14009e2c2
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14009e21d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov rsi, qword [rsp + 0x60]
jmp 0x14009e2c2
mov r14d, dword [rbx - 0x10]
lea r13, [rbp + 0x30]
sub r13, rbx
sar r13, 1
test ecx, ecx
jns 0x14009e256
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14009e278
mov edx, edi
lea rcx, [rsp + 0x70]
call fcn.140001c20
mov rbx, qword [rsp + 0x70]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r13, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x14009e29d
lea r8, [rbx + r13*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x14009e2a7
lea r8, [rbp + 0x30]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp edi, dword [rbx - 0xc]
jg 0x14009e5fa
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r14 + rbx], ax
mov r13, qword [rsp + 0x68]
xor r14d, r14d
mov edx, 0x5c
mov rcx, rsi
call qword [sym.imp.MSVCR100.dll_wcsrchr]
test rax, rax
jne 0x14009e2da
mov eax, r12d
jmp 0x14009e2e0
sub rax, rsi
sar rax, 1
mov r8d, eax
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.140001d30
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rsi, 0xffffffffffffffe8
cmp rcx, rsi
je 0x14009e34c
cmp dword [rsi + 0x10], 0
jl 0x14009e33d
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x14009e33d
call fcn.140001b90
mov rdi, rax
mov ecx, r12d
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14009e332
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x60], rax
jmp 0x14009e34c
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x60]
call fcn.140001e80
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14009e36b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x60]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x70]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14009e3cb
cmp dword [rdi + 0x10], 0
jl 0x14009e3bd
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14009e3bd
call fcn.140001b90
mov rbx, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14009e3b2
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x70], rax
jmp 0x14009e3cb
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x70]
call fcn.140001e80
mov r8d, 1
lea rdx, [0x1400ddd20]
lea rcx, [rsp + 0x60]
call fcn.140003c10
mov r8d, Ordinal_17
lea rdx, str.VAIOUpdt.exe
lea rcx, [rsp + 0x60]
call fcn.140003c10
mov qword [rsp + 0x78], r14
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rsp + 0x78]
call sub.WTSAPI32.dll_WTSQueryUserToken
cmp qword [rsp + 0x78], 0
je 0x14009e593
lea rdi, [rbp - 0x78]
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rdi, [rbp - 0x40]
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rbp - 0x40], 0x68
lea rax, str.WinSta0Default
mov qword [rbp - 0x30], rax
lea r8, reloc.ATL100.DLL_Ordinal_32
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.140002ce0
nop
mov r8, r13
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140008ad0
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14009e48c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r8, qword [rsp + 0x68]
cmp dword [r8 - 0x10], 0
je 0x14009e562
cmp dword [r8 - 8], 1
jle 0x14009e4b6
mov edx, dword [r8 - 0x10]
lea rcx, [rsp + 0x68]
call fcn.140001930
mov r8, qword [rsp + 0x68]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], 0x4000428
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
setne r15b
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14009e512
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x78], r14
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x14009e525
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x70], r14
mov rcx, qword [rsp + 0x68]
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.MSVCR100.dll_wcsnlen]
mov rdx, rax
test eax, eax
js 0x14009e557
mov rax, qword [rsp + 0x68]
cmp edx, dword [rax - 0xc]
jg 0x14009e557
mov dword [rax - 0x10], edx
movsxd rcx, edx
mov rax, qword [rsp + 0x68]
mov word [rax + rcx*2], r14w
jmp 0x14009e562
mov ecx, 0x80070057
call fcn.140001000
int3
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], r14
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14009e593
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14009e5b4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14009e5d5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r13]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x14009e5f4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movzx eax, r15b
jmp 0x14009e605
mov ecx, 0x80070057
call fcn.140001000
nop
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1400cafa0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret