Function at 0x140018990
Capabilities:
Check if file exists
Create process on windows
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7e0]
sub rsp, 0x8e0
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov byte [rsp + 0x50], dl
mov rax, rcx
mov qword [rbp - 0x80], rcx
xor ecx, ecx
mov dword [rsp + 0x54], ecx
lea r8, [0x140286a30]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.14000c820
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov r12, 0xffffffffffffffff
test eax, eax
jne 0x140018a0b
xor bl, bl
jmp 0x140019275
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax - 0x18]
test rcx, rcx
je 0x140018a27
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
test rax, rax
jne 0x140018a38
call fcn.140004c80
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov rcx, rax
test rcx, rcx
je 0x1400192dd
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x54], 2
mov r14, qword [rsp + 0x60]
movsxd r15, dword [r14 - 0x10]
lea rdx, [0x140286ab4]
mov rdi, r12
nop dword [rax + rax]
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x140018a70
lea esi, [rdi + r15]
test esi, esi
js 0x1400192d2
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or ecx, eax
jge 0x140018aaf
mov edx, esi
lea rcx, [rsp + 0x68]
call fcn.140005960
mov rbx, qword [rsp + 0x68]
lea rdx, [0x140286ab4]
movsxd rax, edi
lea rdi, [rax + rax]
test rdi, rdi
je 0x140018add
test rbx, rbx
jne 0x140018ad2
call fcn.14025224c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14024809c
jmp 0x140018add
mov r8, rdi
mov rcx, rbx
call fcn.1402430d0
lea rcx, [rdi + rbx]
mov r8, r15
add r8, r8
je 0x140018b14
test rcx, rcx
je 0x140018b04
test r14, r14
je 0x140018afd
mov rdx, r14
call fcn.1402430d0
jmp 0x140018b14
xor edx, edx
call fcn.140243780
call fcn.14025224c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14024809c
lea r13, [rbx - 0x18]
cmp esi, dword [r13 + 0xc]
jg 0x1400192d2
mov dword [r13 + 8], esi
movsxd rax, esi
xor ecx, ecx
mov word [rbx + rax*2], cx
mov rcx, qword [r13]
test rcx, rcx
je 0x140018b46
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
test rax, rax
jne 0x140018b57
call fcn.140004c80
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov rcx, rax
test rcx, rcx
je 0x1400192e8
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x54], 6
mov rsi, r12
lea rax, [0x140286ab4]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140018b81
movsxd r15, dword [rbx - 0x10]
lea r14d, [rsi + r15]
test r14d, r14d
js 0x1400192c7
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, r14d
or eax, ecx
jge 0x140018bc0
mov edx, r14d
lea rcx, [rsp + 0x70]
call fcn.140005960
mov rdi, qword [rsp + 0x70]
add r15, r15
je 0x140018bea
test rdi, rdi
jne 0x140018bdc
call fcn.14025224c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14024809c
jmp 0x140018bea
mov r8, r15
mov rdx, rbx
mov rcx, rdi
call fcn.1402430d0
lea rcx, [r15 + rdi]
movsxd r8, esi
add r8, r8
je 0x140018c19
test rcx, rcx
jne 0x140018c0d
call fcn.14025224c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14024809c
jmp 0x140018c19
lea rdx, [0x140286ab4]
call fcn.1402430d0
cmp r14d, dword [rdi - 0xc]
jg 0x1400192c7
mov dword [rdi - 0x10], r14d
movsxd rax, r14d
xor ecx, ecx
mov word [rdi + rax*2], cx
mov rcx, qword [rdi - 0x18]
test rcx, rcx
je 0x140018c47
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
test rax, rax
jne 0x140018c58
call fcn.140004c80
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov rcx, rax
test rcx, rcx
je 0x1400192f3
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x54], reloc.WLDAP32.dll_Ordinal_14
lea rax, str.__check_dingding_packages__package_dir__
mov rsi, r12
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140018c82
movsxd r12, dword [rdi - 0x10]
lea r14d, [rsi + r12]
test r14d, r14d
js 0x140019310
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r14d
or eax, ecx
jge 0x140018cc1
mov edx, r14d
lea rcx, [rsp + 0x78]
call fcn.140005960
mov rbx, qword [rsp + 0x78]
add r12, r12
je 0x140018ceb
test rbx, rbx
jne 0x140018cdd
call fcn.14025224c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14024809c
jmp 0x140018ceb
mov r8, r12
mov rdx, rdi
mov rcx, rbx
call fcn.1402430d0
lea rcx, [r12 + rbx]
movsxd r8, esi
add r8, r8
je 0x140018d1a
test rcx, rcx
jne 0x140018d0e
call fcn.14025224c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14024809c
jmp 0x140018d1a
lea rdx, str.__check_dingding_packages__package_dir__
call fcn.1402430d0
cmp r14d, dword [rbx - 0xc]
jg 0x140019310
mov dword [rbx - 0x10], r14d
movsxd rax, r14d
xor esi, esi
mov word [rbx + rax*2], si
mov qword [rbp + 0x140], rsi
mov qword [rbp + 0x150], rsi
mov qword [rbp + 0x158], 7
mov word [rbp + 0x140], si
mov r12, 0xffffffffffffffff
mov r8, r12
nop dword [rax + rax]
inc r8
cmp word [rbx + r8*2], si
jne 0x140018d60
mov rdx, rbx
lea rcx, [rbp + 0x140]
call fcn.14000a410
nop
mov eax, r12d
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x140018d96
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + ioctlsocket]
nop
mov eax, r12d
lock xadd dword [rdi - 8], eax
sub eax, 1
jg 0x140018db2
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + ioctlsocket]
nop
mov eax, r12d
lock xadd dword [r13 + 0x10], eax
sub eax, 1
jg 0x140018dcd
mov rcx, qword [r13]
mov rax, qword [rcx]
mov rdx, r13
call qword [rax + ioctlsocket]
mov rdx, qword [rbp - 0x80]
mov rdx, qword [rdx]
mov r8, r12
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140018de0
lea rcx, [rbp + 0x140]
call fcn.14000a290
mov r8d, 1
lea rdx, [0x140286ab4]
lea rcx, [rbp + 0x140]
call fcn.14000a290
cmp byte [rsp + 0x50], 0
je 0x140018e30
mov r8d, 0xa
lea rdx, [0x140286ab8]
lea rcx, [rbp + 0x140]
call fcn.14000a290
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp + 4], xmm0
movups xmmword [rbp + 0x14], xmm0
movups xmmword [rbp + 0x24], xmm0
mov dword [rbp + 0x34], eax
mov dword [rbp - 0x30], 0x68
mov eax, 0x30
mov word [rbp + 0x3c0], ax
xor edx, edx
mov r8d, 0x40e
lea rcx, [rbp + 0x3c2]
call fcn.140243780
lea r8, [rbp + 0x140]
cmp qword [rbp + 0x158], 8
cmovae r8, qword [rbp + 0x140]
mov r9, qword [rbp + 0x150]
mov edx, 0x208
lea rcx, [rbp + 0x3c0]
call fcn.140254320
mov dword [rsp + 0x58], esi
lea rax, [rbp - 0x48]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x3c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14001907f
mov edx, 0x30d40
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140018f16
lea rdx, [rsp + 0x58]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x14001906b
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov r14, rsi
mov qword [rbp - 0x68], rsi
mov dword [rsp + 0x54], reloc.WS2_32.dll_recv
xor edx, edx
lea ecx, [rdx + 0xf]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
mov dword [rbp + 0x180], 0x238
lea rdx, [rbp + 0x180]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
mov rdi, qword [rbp - 0x70]
test eax, eax
je 0x140018fbc
nop dword [rax + rax]
lea rdx, str.DingTalkCheck.exe
lea rcx, [rbp + 0x1ac]
call fcn.140253dc4
test eax, eax
jne 0x140018fa9
cmp rdi, r14
je 0x140018f8e
mov eax, dword [rbp + 0x188]
mov dword [rdi], eax
add rdi, 4
mov qword [rbp - 0x70], rdi
jmp 0x140018fa9
lea r8, [rbp + 0x188]
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.140014b20
mov r14, qword [rbp - 0x68]
mov rdi, qword [rbp - 0x70]
lea rdx, [rbp + 0x180]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140018f60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r12d, eax
mov r15, qword [rbp - 0x78]
sub rdi, r15
sar rdi, 2
test rdi, rdi
je 0x140019021
nop
mov r8d, dword [r15 + rsi*4]
cmp r8d, r12d
je 0x140019019
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, 0x3e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc rsi
cmp rsi, rdi
jb 0x140018fe0
test r15, r15
je 0x140019062
sub r14, r15
sar r14, 2
lea rdx, [r14*4]
mov rax, r15
cmp rdx, 0x1000
jb 0x14001905a
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400192fe
mov rcx, r15
call fcn.140240d18
mov r12, 0xffffffffffffffff
xor esi, esi
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 1
lea rcx, [rbp + 0x40]
call fcn.140015ea0
nop
lea rdx, str.CreateProcess_Code:
lea rcx, [rbp + 0x50]
call fcn.140014560
mov edx, dword [rsp + 0x58]
mov rcx, rax
call fcn.140017530
lea rbx, [rbp + 0x140]
cmp qword [rbp + 0x158], 8
cmovae rbx, qword [rbp + 0x140]
mov qword [rbp + 0x160], rsi
mov qword [rbp + 0x170], rsi
mov r9d, 7
mov qword [rbp + 0x178], r9
mov word [rbp + 0x160], si
mov dword [rsp + 0x54], 0x40
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
mov rcx, qword [rbp + 0xc8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140019140
mov rax, qword [rbp + 0x98]
mov r8, qword [rax]
test r8, r8
je 0x140019140
mov rax, qword [rbp + 0x78]
mov rdx, qword [rax]
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x80], r8
cmp r8, qword [rbp + 0xc0]
cmovb r8, qword [rbp + 0xc0]
sub r8, rdx
sar r8, 1
mov qword [rbp - 0x58], r8
jmp 0x140019183
test cl, 4
jne 0x14001917b
mov rax, qword [rbp + 0x90]
mov rcx, qword [rax]
test rcx, rcx
je 0x14001917b
mov rax, qword [rbp + 0x70]
mov rdx, qword [rax]
mov qword [rbp - 0x60], rdx
mov rax, qword [rbp + 0xa8]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
mov qword [rbp - 0x58], r8
jmp 0x140019183
mov r8, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
test rdx, rdx
je 0x14001919b
lea rcx, [rbp + 0x160]
call fcn.14000a410
mov r9, qword [rbp + 0x178]
lea rcx, [rbp + 0x160]
cmp r9, 8
cmovae rcx, qword [rbp + 0x160]
mov r8, rbx
lea rdx, str.CheckFilesIsOk
call fcn.140036e10
nop
mov rdx, qword [rbp + 0x178]
cmp rdx, 8
jb 0x140019204
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400191ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019304
call fcn.140240d18
cmp dword [rsp + 0x58], 1
sete bl
lea rcx, [rbp + 0x40]
call fcn.140017f40
nop
mov rdx, qword [rbp + 0x158]
cmp rdx, 8
jb 0x14001925c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x140]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019257
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001930a
call fcn.140240d18
mov qword [rbp + 0x150], rsi
mov qword [rbp + 0x158], 7
mov word [rbp + 0x140], si
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
sub r12d, 1
jg 0x140019294
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rioctlsocket + 8]
movzx eax, bl
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.140240e30
lea r11, [rsp + 0x8e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80070057
call fcn.140004b00
nop
mov ecx, 0x80070057
call fcn.140004b00
nop
mov ecx, 0x80004005
call fcn.140004b00
nop
mov ecx, 0x80004005
call fcn.140004b00
nop
mov ecx, 0x80004005
call fcn.140004b00
nop
call fcn.1402480bc
nop
call fcn.1402480bc
nop
call fcn.1402480bc
nop
mov ecx, 0x80070057
call fcn.140004b00
int3