Function at 0x14004a830
Capabilities:
Accept command line arguments
Access the windows event log

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1f90
call fcn.14005efb0
sub rsp, rax
mov qword [rsp + 0x1d8], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1f80], rax
mov word [rsp + 0x70], r9w
mov rbx, r8
mov qword [rsp + 0xa8], rbx
mov dword [rsp + 0x98], edx
mov rdi, rcx
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x90], rbx
lea rax, [0x140004350]
mov qword [rsp + 0xb0], rax
lea rax, [0x140004ac8]
mov qword [rsp + 0xb8], rax
lea rax, [0x140004280]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xc8], 0x8c2
mov dword [rsp + 0xcc], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0xd0], 0xff
xor r13d, r13d
mov dword [rsp + 0x150], 0x1000000
xor edx, edx
lea r8d, [r13 + 0x78]
lea rcx, [rsp + 0xd8]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x160]
call fcn.140052e50
nop
mov qword [rsp + 0x1f0], r13
xor edx, edx
lea r8d, [r13 + 0x78]
lea rcx, [rsp + 0x1f8]
call sub.msvcrt.dll_memset
mov byte [rsp + 0xf70], r13b
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0xf71]
call sub.msvcrt.dll_memset
movzx eax, word [rbx + 0xa0]
inc eax
cmp eax, 0xf
jge 0x1400641bc
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x772]
call sub.msvcrt.dll_memset
mov word [rsp + 0x770], r13w
mov qword [rsp + 0x78], r13
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0x78]
lea edx, [r13 + 8]
lea r8d, [r13 + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_OpenThreadToken]
test eax, eax
jne 0x14004a9c7
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x78]
lea edx, [r13 + 8]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_OpenProcessToken]
test eax, eax
je 0x14004ab14
mov dword [rsp + 0x9c], r13d
lea rax, [rsp + 0x9c]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rsp + 0x270]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_GetTokenInformation]
mov rcx, qword [rsp + 0x78]
test eax, eax
je 0x1400641d8
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
movups xmm0, xmmword [0x1400037a0]
movups xmmword [rsp + 0x370], xmm0
xor edx, edx
mov r8d, 0x1f0
lea rcx, [rsp + 0x380]
call sub.msvcrt.dll_memset
movups xmm0, xmmword [0x1400037a0]
movups xmmword [rsp + 0x570], xmm0
xor edx, edx
mov r8d, 0x1f0
lea rcx, [rsp + 0x580]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x74], 0x100
mov dword [rsp + 0xa0], 0x100
lea rax, [rsp + 0x158]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x370]
lea r8, [rsp + 0x74]
lea rdx, [rsp + 0x570]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.api_ms_win_security_lsalookup_l1_1_1.dll_LookupAccountSidLocalW]
test eax, eax
je 0x14004ab14
mov qword [rsp + 0x80], r13
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertSidToStringSidW]
test eax, eax
je 0x14004ab14
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x570]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x370]
lea r8, [0x1400047f0]
mov edx, 0x400
lea rcx, [rsp + 0x770]
call fcn.14004af20
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rsp + 0x770]
or r12, 0xffffffffffffffff
mov rax, r12
inc rax
cmp word [rcx + rax*2], 0
jne 0x14004ab23
add eax, 7
cdq
and edx, 7
add eax, edx
and eax, 0xfffffff8
mov dword [rsp + 0x74], eax
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetCommandLineW]
mov rbx, r12
nop word [rax + rax]
lea rbx, [rbx + 1]
cmp word [rax + rbx*2], 0
jne 0x14004ab50
mov r14d, dword [rdi + 0x20]
mov r15, qword [rdi + 0x18]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetCommandLineW]
mov rsi, rax
lea eax, [rbx + 7]
cdq
and edx, 7
lea edi, [rdx + rax]
and edi, 0xfffffff8
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcessId]
lea rcx, [rsp + 0x770]
mov qword [rsp + 0x60], rcx
mov ecx, dword [rsp + 0x74]
mov dword [rsp + 0x58], ecx
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r15
mov rdi, qword [rsp + 0xa8]
mov eax, dword [rdi + 0x18]
mov dword [rsp + 0x20], eax
mov r9, qword [rdi + 0x10]
lea r8, [0x140004a70]
mov edx, 0x1000
lea rcx, [rsp + 0xf70]
call fcn.14004a5ac
lea rax, [rsp + 0xf70]
nop dword [rax + rax]
inc r12
cmp byte [rax + r12], 0
jne 0x14004abf0
movzx eax, word [rdi + 0xa0]
lea r15d, [rax + 1]
movzx r14d, r13w
cmp r13w, ax
jb 0x1400641e4
mov qword [rsp + 0x80], r13
mov rcx, qword [rsp + 0x88]
call fcn.14004a620
mov rbx, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x140064206
mov rsi, rax
movzx eax, r14w
mov qword [rsp + rax*8 + 0x1f0], rsi
lea rax, [0x140004350]
mov qword [rsp + 0xb0], rax
lea rax, [0x140004ac8]
mov qword [rsp + 0xb8], rax
lea rax, [0x140004280]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xc8], 0x903
mov dword [rsp + 0xcc], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0xd0], 0xff
mov dword [rsp + 0x150], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0xd8]
call sub.msvcrt.dll_memset
mov r8d, 0x64
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0xb0]
call fcn.14004a7a0
mov r9d, dword [rdi + 0x20]
cmp r9d, 0xff
jne 0x14004ace5
mov r9d, 0x64
mov qword [rsp + 0x28], rsi
lea rcx, [0x140004b60]
mov qword [rsp + 0x20], rcx
lea r8, [0x1400046f8]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.14004d000
mov esi, 0xf
cmp byte [rsp + 0x153], 0
jne 0x140064212
lea rdx, [0x140004da8]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_RegisterEventSourceW]
mov r14, rax
test rax, rax
je 0x140064254
xor r8d, r8d
lea rax, [rsp + 0xf70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r12d
mov word [rsp + 0x28], r15w
mov qword [rsp + 0x20], r13
mov r9d, dword [rsp + 0x98]
movzx edx, word [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_ReportEventW]
lea r15, [0x140004350]
lea r12, [0x140004ac8]
test eax, eax
je 0x140064310
mov rcx, r14
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_DeregisterEventSource]
test eax, eax
je 0x1400643c6
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
nop
mov rbx, r13
mov rcx, qword [rsp + rbx*8 + 0x1a0]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov qword [rsp + rbx*8 + 0x1a0], r13
inc rbx
cmp rbx, 4
jl 0x14004adb2
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetTickCount]
mov r9d, eax
sub r9d, dword [rsp + 0x194]
mov eax, 0x10624dd3
mul r9d
mov r10d, edx
shr r10d, 6
imul ecx, r10d, 0x3e8
mov ebx, r9d
sub ebx, ecx
mov eax, 0x88888889
mul r10d
shr edx, 5
imul eax, edx, 0x3c
sub r10d, eax
mov eax, 0x45e7b273
mul r9d
mov r11d, edx
shr r11d, 0xe
mov eax, 0x88888889
mul r11d
shr edx, 5
imul ecx, edx, 0x3c
sub r11d, ecx
mov eax, 0x95217cb1
mul r9d
mov ecx, edx
shr ecx, 0x15
mov eax, 0x88888889
mul ecx
shr edx, 5
imul eax, edx, 0x3c
sub ecx, eax
mov r8d, dword [rsp + 0x198]
cmp r8d, 0xff
jne 0x14004ae61
mov r8d, RegisterTypeLib
mov eax, dword [rsp + 0x168]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ecx
lea r9, [0x1400043e0]
lea rdx, [0x1400043d0]
lea rcx, [rsp + 0x160]
call fcn.140051070
mov rcx, qword [rsp + 0x1c0]
call qword [sym.imp.VssTrace.DLL_Ordinal_9]
nop
cmp byte [rdi + 0xa3], 0
je 0x14004aed5
lea rbx, [rdi + 0x28]
nop word [rax + rax]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14006448a
add rbx, 8
dec rsi
jne 0x14004aec0
mov rcx, qword [rsp + 0x1f80]
xor rcx, rsp
call fcn.14005dc70
add rsp, 0x1f90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rcx, [rsp + 0x160]
call fcn.140050f50
nop
mov rcx, rbx
call fcn.1400ff75c
nop
jmp 0x14004aed5
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
jmp 0x14004ab14
lea rdx, [rdi + 0x28]
movzx r14d, ax
mov r8d, r14d
shl r8, 3
lea rcx, [rsp + 0x1f0]
call sub.msvcrt.dll_memcpy
nop
jmp 0x14004ac13
lea rsi, [0x140002f18]
jmp 0x14004ac3f
lea r14, [rsp + 0xd8]
mov rax, rsi
mov qword [rsp + 0x88], rax
mov rcx, qword [r14]
test rcx, rcx
je 0x14006423e
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov qword [r14], r13
mov rax, qword [rsp + 0x88]
add r14, 8
dec rax
mov qword [rsp + 0x88], rax
jne 0x140064225
jmp 0x14004ad20
lea rax, [0x140004350]
mov qword [rsp + 0xb0], rax
lea rax, [0x140004ac8]
mov qword [rsp + 0xb8], rax
lea rax, [0x140004280]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xc8], 0x913
mov dword [rsp + 0xcc], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0xd0], 0xff
mov dword [rsp + 0x150], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0xd8]
call sub.msvcrt.dll_memset
mov r8d, 0x64
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0xb0]
call fcn.14004a7a0
mov rbx, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
lea r8, [0x140004b10]
mov rdx, rbx
lea rcx, [rsp + 0x160]
call fcn.1400510b0
lea rcx, [rsp + 0xb0]
call fcn.1400ff75c
call fcn.140100f34
mov qword [rsp + 0xb0], r15
mov qword [rsp + 0xb8], r12
lea rax, [0x140004280]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xc8], 0x924
mov dword [rsp + 0xcc], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0xd0], 0xff
mov dword [rsp + 0x150], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0xd8]
call sub.msvcrt.dll_memset
mov r8d, 0x64
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0xb0]
call fcn.14004a7a0
mov rdi, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
lea r8, [0x140004be0]
mov rdx, rdi
lea rcx, [rsp + 0x160]
call fcn.1400510b0
lea rcx, [rsp + 0xb0]
call fcn.1400ff75c
mov rdi, qword [rsp + 0xa8]
jmp 0x14004ad94
mov qword [rsp + 0xb0], r15
mov qword [rsp + 0xb8], r12
lea rax, [0x140004280]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xc8], 0x92b
mov dword [rsp + 0xcc], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0xd0], 0xff
mov dword [rsp + 0x150], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0xd8]
call sub.msvcrt.dll_memset
mov r8d, 0x64
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0xb0]
call fcn.14004a7a0
mov rbx, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
lea r8, [0x140004b90]
mov rdx, rbx
lea rcx, [rsp + 0x160]
call fcn.1400510b0
lea rcx, [rsp + 0xb0]
call fcn.1400ff75c
call fcn.140100f34
nop
mov rdi, qword [rsp + 0x90]
mov esi, 0xf
xor r13d, r13d
jmp 0x14004adaf
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov qword [rbx], r13
jmp 0x14004aecc