Function at 0x1400040e8
Capabilities:
Accept command line arguments
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xa80]
sub rsp, 0xb80
mov rax, qword [0x14002b460]
xor rax, rsp
mov qword [rbp + 0xa70], rax
mov rdi, rcx
or r14d, 0xffffffff
xor esi, esi
mov ecx, r14d
mov dword [rsp + 0x38], esi
call qword [sym.imp.IMM32.dll_ImmDisableIME]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [rsp + 0x20], 2
mov rbx, rax
jl 0x14000435d
mov rcx, qword [rax]
lea rdx, str._se1
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140004249
call fcn.140003b8c
test al, al
je 0x14000422c
xor edx, edx
lea rcx, [rbp + 0x230]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x230]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp - 0x68]
call fcn.140005474
lea rdx, [rbp + 0x230]
lea rcx, [rbp - 0x68]
call fcn.1400053e4
lea rdx, [0x140024b08]
lea rcx, [rbp - 0x68]
call fcn.1400053e4
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.1400053e4
lea rdx, [rsp + 0x28]
mov dword [rsp + 0x28], esi
lea rcx, [rbp - 0x68]
call fcn.140003fc8
mov r8d, dword [rsp + 0x28]
test r8d, r8d
je 0x140004223
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x140004213
mov edx, 0x7148
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [rbp - 0x68]
call fcn.14000681c
xor eax, eax
jmp 0x140004360
lea rcx, [rbp - 0x68]
call fcn.14000681c
cmp dword [rsp + 0x20], 3
jne 0x14000435d
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.msvcrt.dll__wtoi]
xor r8d, r8d
jmp 0x140004337
mov rcx, qword [rbx]
lea rdx, str._se2
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140004387
call fcn.140003b8c
test al, al
je 0x140004320
xor edx, edx
lea rcx, [rbp + 0x440]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x440]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp - 0x48]
call fcn.140005474
lea rdx, [rbp + 0x440]
lea rcx, [rbp - 0x48]
call fcn.1400053e4
lea rdx, [0x140024b08]
lea rcx, [rbp - 0x48]
call fcn.1400053e4
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.1400053e4
lea rdx, [rsp + 0x2c]
mov dword [rsp + 0x2c], esi
lea rcx, [rbp - 0x48]
call fcn.140003fc8
mov r8d, dword [rsp + 0x2c]
test r8d, r8d
je 0x140004317
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x14000430e
mov edx, 0x7148
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [rbp - 0x48]
jmp 0x140004217
lea rcx, [rbp - 0x48]
call fcn.14000681c
cmp dword [rsp + 0x20], 3
jne 0x14000435d
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.msvcrt.dll__wtoi]
mov r8d, 1
mov rcx, qword [rbx + 8]
mov edx, eax
call fcn.1400036e8
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14000421c
cmp eax, 0x4c7
je 0x14000421c
or eax, 0xffffffff
mov rcx, qword [rbp + 0xa70]
xor rcx, rsp
call fcn.14001a4a0
lea r11, [rsp + 0xb80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [rbx]
lea rdx, str._sex1
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140004498
cmp dword [rsp + 0x20], 3
jne 0x1400043d9
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.msvcrt.dll__wtoi]
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, eax
call fcn.1400036e8
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14000421c
cmp eax, 0x4c7
je 0x14000421c
call fcn.140003b8c
test al, al
je 0x14000435d
xor edx, edx
lea rcx, [rbp + 0x650]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x650]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp - 0x28]
call fcn.140005474
lea rdx, [rbp + 0x650]
lea rcx, [rbp - 0x28]
call fcn.1400053e4
lea rdx, [0x140024b08]
lea rcx, [rbp - 0x28]
call fcn.1400053e4
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.1400053e4
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], esi
lea rcx, [rbp - 0x28]
call fcn.140003fc8
mov r8d, dword [rsp + 0x30]
test r8d, r8d
je 0x14000448f
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x140004486
mov edx, 0x7148
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [rbp - 0x28]
jmp 0x140004217
lea rcx, [rbp - 0x28]
jmp 0x1400045a7
mov rcx, qword [rbx]
lea rdx, str._sex2
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x1400045b1
cmp dword [rsp + 0x20], 3
jne 0x1400044ed
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.msvcrt.dll__wtoi]
mov rcx, qword [rbx + 8]
mov r8d, 1
mov edx, eax
call fcn.1400036e8
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14000421c
cmp eax, 0x4c7
je 0x14000421c
call fcn.140003b8c
test al, al
je 0x14000435d
xor edx, edx
lea rcx, [rbp + 0x860]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x860]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp - 8]
call fcn.140005474
lea rdx, [rbp + 0x860]
lea rcx, [rbp - 8]
call fcn.1400053e4
lea rdx, [0x140024b08]
lea rcx, [rbp - 8]
call fcn.1400053e4
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.1400053e4
lea rdx, [rsp + 0x34]
mov dword [rsp + 0x34], esi
lea rcx, [rbp - 8]
call fcn.140003fc8
mov r8d, dword [rsp + 0x34]
test r8d, r8d
je 0x1400045a3
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x14000459a
mov edx, 0x7148
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [rbp - 8]
jmp 0x140004217
lea rcx, [rbp - 8]
call fcn.14000681c
jmp 0x14000435d
mov rcx, qword [rbx + 8]
lea rdx, str._se1
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x1400045f6
cmp dword [rsp + 0x20], 4
jne 0x14000435d
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.msvcrt.dll__wtoi]
xor r8d, r8d
mov rcx, qword [rbx + 0x10]
mov edx, eax
call fcn.1400036e8
test eax, eax
sete sil
mov eax, esi
jmp 0x140004360
mov rcx, qword [rbx + 8]
lea rdx, str._se2
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140004628
cmp dword [rsp + 0x20], 4
jne 0x14000435d
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.msvcrt.dll__wtoi]
mov r8d, 1
jmp 0x1400045de
mov rcx, qword [rbx + 8]
lea rdx, str.ieoption
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14000466f
cmp dword [rsp + 0x20], 2
mov edi, esi
jle 0x140004652
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.msvcrt.dll__wtoi]
mov edi, eax
mov ecx, edi
call fcn.1400076f8
test al, al
jne 0x14000421c
mov ecx, edi
call fcn.1400075e0
test al, al
jmp 0x140004768
mov rcx, qword [rbx + 8]
lea rdx, str.uninstallui
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140004698
call fcn.140007378
test al, al
jne 0x14000421c
call fcn.14000727c
jmp 0x140004668
mov rcx, qword [rbx + 8]
lea rdx, str.queryicon
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140004735
lea rdx, str.Program_manager
lea rcx, str.Progman
call qword [sym.imp.USER32.dll_FindWindowW]
lea rdx, str.Program_manager
lea rcx, str.Progman
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x14000435d
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r14d
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [rsp + 0x24], r14d
je 0x14000435d
lea r8, str.360DTA
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventW]
test rax, rax
je 0x140004727
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x14000421c
mov ecx, dword [rsp + 0x24]
call fcn.140003538
jmp 0x14000421c
mov rcx, qword [rbx + 8]
lea rdx, str.ievolume
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140004778
cmp dword [rsp + 0x20], 4
jne 0x140004778
movss xmm2, dword [0x140025c80]
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
call fcn.1400016d8
test eax, eax
jne 0x14000421c
mov eax, 1
jmp 0x140004360
mov rcx, qword [rbx + 8]
lea rdx, str.lockhomepage
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14000479a
mov rcx, rdi
call fcn.140004040
jmp 0x140004360
mov rcx, qword [rbx + 8]
lea rdx, str.lspscan
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140004813
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140024bcc]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x1400047c9
lea edi, [rax + 1]
jmp 0x1400047df
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140024bd4]
call qword [sym.imp.msvcrt.dll__wcsicmp]
mov edi, 2
mov rdx, qword [rbx + 0x18]
lea rcx, [rsp + 0x60]
call fcn.140005224
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.140005350
mov rdx, rax
mov ecx, edi
call fcn.1400028b0
mov rdx, qword [rsp + 0x60]
or r14d, 0xffffffff
jmp 0x140004bb8
mov rcx, qword [rbx + 8]
lea rdx, str.lspfix
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140004885
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140024bcc]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140004842
lea edi, [rax + 1]
jmp 0x140004858
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140024bd4]
call qword [sym.imp.msvcrt.dll__wcsicmp]
mov edi, 2
mov rdx, qword [rbx + 0x18]
lea rcx, [rsp + 0x68]
call fcn.140005224
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x78]
call fcn.140005350
mov rdx, rax
mov ecx, edi
call fcn.1400023b0
mov rdx, qword [rsp + 0x68]
jmp 0x14000480a
mov rcx, qword [rbx + 8]
lea rdx, str.setowner
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x1400049ca
mov rcx, qword [rbx + 0x10]
lea rdx, str.file
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140004902
mov r8, qword [rbx + 0x20]
lea rcx, [rbp + 0x20]
mov r14, qword [rbx + 0x18]
test r8, r8
jne 0x1400048e1
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], 0x101
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x14000421c
jmp 0x1400048eb
mov edx, 0x101
call fcn.140006d60
lea r9, [rbp + 0x20]
mov r8d, 1
mov rdx, r14
call fcn.140006bc4
jmp 0x14000421c
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140024c18]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14000421c
mov rcx, qword [rbx + 0x18]
lea rdx, str.HKCR
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140004939
mov r14, 0xffffffff80000000
jmp 0x140004995
mov rcx, qword [rbx + 0x18]
lea rdx, str.HKCU
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140004957
mov r14, 0xffffffff80000001
jmp 0x140004995
mov rcx, qword [rbx + 0x18]
lea rdx, str.HKLM
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140004975
mov r14, 0xffffffff80000002
jmp 0x140004995
mov rcx, qword [rbx + 0x18]
lea rdx, [0x140024d40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14000435d
mov r14, 0xffffffff80000003
mov rdi, qword [rbx + 0x20]
lea rdx, str.TrustedInstaller
mov rbx, qword [rbx + 0x28]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
lea r9, str.NT_SERVICETrustedInstaller
mov r8, rdi
test eax, eax
mov rdx, r14
cmovne r9, rbx
call fcn.140006a74
jmp 0x14000421c
mov rcx, qword [rbx + 8]
lea rdx, str.EnumProcDLL:
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14000435d
cmp dword [rsp + 0x20], 2
jle 0x14000421c
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x40]
call fcn.140005224
mov rcx, qword [rsp + 0x40]
or r14d, 0xffffffff
cmp dword [rcx - 0x10], esi
jl 0x140004ba3
lea rdx, [0x1400248bc]
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x140004ba3
sub rax, qword [rsp + 0x40]
sar rax, 1
cmp eax, r14d
je 0x140004ba3
xorps xmm0, xmm0
mov qword [rsp + 0x58], rsi
lea rdx, [0x1400248bc]
lea rcx, [rbp - 0x70]
movdqu xmmword [rsp + 0x48], xmm0
call fcn.140005224
mov rdx, rax
lea r8, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.140002c8c
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
sar rax, 3
cmp rax, 2
jbe 0x140004a93
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.msvcrt.dll__wtoi]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
sub rdx, rcx
mov edi, 1
sar rdx, 3
cmp rdx, rdi
jbe 0x140004ab6
lea rdx, [rcx + 8]
lea rcx, [rsp + 0x78]
call fcn.140005350
mov ebx, edi
jmp 0x140004acc
lea rdx, [0x140024d74]
lea rcx, [rsp + 0x70]
call fcn.140005224
mov ebx, 2
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rax]
mov rcx, qword [rcx]
call fcn.1400031e8
test bl, 2
je 0x140004b05
mov rdx, qword [rsp + 0x70]
and ebx, 0xfffffffd
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140004b05
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
test dil, bl
je 0x140004b2b
mov rdx, qword [rsp + 0x78]
mov eax, r14d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140004b2b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140004bb3
mov rdi, qword [rsp + 0x50]
cmp rbx, rdi
je 0x140004b6c
mov rdx, qword [rbx]
mov eax, r14d
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140004b5e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
add rbx, 8
cmp rbx, rdi
jne 0x140004b3f
mov rbx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
mov rax, rbx
sub rdx, rbx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x140004b99
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004bdd
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x140004bb3
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140024d74]
call fcn.1400031e8
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14000421c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
jmp 0x14000421c
call fcn.140016370
int3