Function at 0x1400019b0
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x2c0
mov rax, qword [0x1400a1040]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rbx, rcx
lea r9, str.GlobalDarkStart
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1400b8270], rax
test rax, rax
je 0x140001a0e
lea r9, str.GlobalDarkFinished
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1400b8268], rax
test rax, rax
jne 0x140001a22
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140001a22
mov eax, 1
jmp 0x140001cbe
mov r8, qword [rbx + 8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x2d8], rbp
xorps xmm0, xmm0
mov qword [rsp + 0x2e0], rsi
xor esi, esi
mov qword [rsp + 0x2b8], rdi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x2b0], r14
movups xmmword [rsp + 0x30], xmm0
call fcn.140001cf0
mov rax, qword [rbx + 8]
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
lea rcx, [rsp + 0x50]
mov r9, qword [rbx]
cmova rdx, qword [rsp + 0x30]
lea r8, [rax + 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
cmp qword [rsp + 0x48], 7
lea r14, [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov ebp, 2
cmova r14, qword [rsp + 0x30]
mov ecx, ebp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001c4f
xor edx, edx
lea rcx, [rsp + 0x64]
mov r8d, 0x234
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x238
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001c46
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x8c]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], si
jne 0x140001b10
cmp rbx, rax
jne 0x140001c30
lea rax, [rsp + 0x8c]
mov rdx, rbx
test rbx, rbx
je 0x140001b57
lea rcx, [rsp + 0x8c]
mov r8, r14
sub r8, rcx
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x140001c30
add rax, rbp
sub rdx, 1
jne 0x140001b40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x68]
mov dword [0x1400a20a8], eax
test eax, eax
je 0x140001c55
mov rax, qword gs:[0x58]
mov ebx, 4
add rbx, qword [rax]
mov eax, dword [rbx]
cmp dword [0x1400b8320], eax
jle 0x140001bc6
lea rcx, [0x1400b8320]
call fcn.140087688
cmp dword [0x1400b8320], 0xffffffff
jne 0x140001bc6
lea r8, str.GlobalDarkShare
xor edx, edx
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
lea rcx, [0x1400b8320]
mov qword [0x1400b8318], rax
call fcn.14008761c
mov eax, dword [rbx]
cmp dword [0x1400b8310], eax
jle 0x140001c16
lea rcx, [0x1400b8310]
call fcn.140087688
cmp dword [0x1400b8310], 0xffffffff
jne 0x140001c16
mov rcx, qword [0x1400b8318]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], 0x28
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea rcx, [0x1400b8310]
mov qword [0x1400b8308], rax
call fcn.14008761c
mov rax, qword [0x1400b8308]
mov qword [0x1400b8278], rax
test rax, rax
jne 0x140001c57
mov ebp, 3
jmp 0x140001c55
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001b00
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1400a20a8], esi
mov esi, ebp
mov rdx, qword [rsp + 0x48]
mov r14, qword [rsp + 0x2b0]
mov rdi, qword [rsp + 0x2b8]
mov rbp, qword [rsp + 0x2d8]
cmp rdx, 7
jbe 0x140001cb4
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001caf
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001caf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140087744
mov eax, esi
mov rsi, qword [rsp + 0x2e0]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1400875c0
add rsp, 0x2c0
pop rbx
ret