Function at 0x140004890
Capabilities:
Accept command line arguments
Check mutex on windows
Print debug messages

Disassembly:
push rdi
mov eax, 0x10a0
call fcn.140005300
sub rsp, rax
mov rax, qword [0x140024328]
xor rax, rsp
mov qword [rsp + 0x1080], rax
mov rdi, r8
call fcn.140002450
mov rcx, rax
test rax, rax
je 0x140004b30
mov rax, qword [rax]
mov qword [rsp + 0x10b0], rbx
mov qword [rsp + 0x1090], r15
call qword [rax + 0x18]
add rax, 0x18
lea rdx, str.LocalCD75DB97_A285_4BAC_9903_5F4014A46FC2
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
cmp rdx, 0x10000
jae 0x140004903
movzx edx, dx
call fcn.140002ce0
jmp 0x140004908
call fcn.140004650
cmp qword [0x1400242e8], 8
lea r10, [0x1400242d0]
lea rdx, str.DingTalk
cmovae r10, qword [0x1400242d0]
cmp qword [0x1400242e0], 8
jne 0x14000496f
movzx ecx, word [r10]
mov r9d, 0x44
mov r8d, 8
mov rax, rdx
cmp cx, r9w
jb 0x14000496f
sub r10, rdx
cmp cx, r9w
ja 0x14000496f
cmp r8, 1
je 0x140004979
movzx ecx, word [r10 + rax + 2]
add rax, 2
dec r8
movzx r9d, word [rax]
cmp cx, r9w
jae 0x140004950
lea rcx, [rsp + 0x28]
call fcn.140003db0
mov rbx, qword [rsp + 0x28]
xor edx, edx
mov r8, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400049ad
lea rcx, str.Already_exists_DingtalkElevate.exe__Return_directly.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140004acc
lea rdx, [0x1400184d0]
mov rcx, rdi
call fcn.14000b67c
test eax, eax
je 0x140004acc
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x1098], r14
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, dword [rsp + 0x20]
mov r14, rax
test edi, edi
je 0x140004ac4
mov qword [rsp + 0x10b8], rbp
lea rcx, [rsp + 0x30]
mov rbp, qword [rax]
xor edx, edx
mov r8d, 0x1048
mov qword [rsp + 0x10c8], rsi
call fcn.140006680
mov esi, 1
cmp edi, esi
jle 0x140004a80
lea rdi, [r14 + 8]
nop dword [rax + rax]
lea r8, [0x140018afc]
mov edx, 0x824
lea rcx, [rsp + 0x30]
call fcn.14000b294
mov r8, qword [rdi]
lea rcx, [rsp + 0x30]
mov edx, 0x824
call fcn.14000b294
lea r8, [0x140018afc]
mov edx, 0x824
lea rcx, [rsp + 0x30]
call fcn.14000b294
lea r8, [0x140018b00]
mov edx, 0x824
lea rcx, [rsp + 0x30]
call fcn.14000b294
inc esi
lea rdi, [rdi + 8]
cmp esi, dword [rsp + 0x20]
jl 0x140004a20
xor r8d, r8d
lea rdx, [0x140024120]
lea rcx, [0x140024100]
call fcn.140001680
mov rsi, qword [rsp + 0x10c8]
mov rcx, rbp
cmp eax, 1
jne 0x140004ab2
call fcn.1400044f0
test al, al
je 0x140004b21
mov rcx, rbp
lea rdx, [rsp + 0x30]
call fcn.140004790
mov rbp, qword [rsp + 0x10b8]
mov r14, qword [rsp + 0x1098]
test r15, r15
je 0x140004ada
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
mov r15, qword [rsp + 0x1090]
mov rbx, qword [rsp + 0x10b0]
sub eax, 1
jg 0x140004b06
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
mov rcx, qword [rsp + 0x1080]
xor rcx, rsp
call fcn.140005030
add rsp, 0x10a0
pop rdi
ret
lea rcx, str.DingtalkElevate_fail:_file_not_signed_by_alibaba.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140004abc
mov ecx, 0x80004005
call fcn.140002080
int3