Function at 0x140001704
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rdi
push r12
push r14
sub rsp, 0x130
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400471f8]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rdi, rcx
xor r9d, r9d
xor r8d, r8d
lea r12d, [r9 + 1]
mov edx, r12d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x2a8], rax
test rax, rax
jne 0x140001796
lea rsi, [0x140047138]
mov rcx, qword [0x140047138]
cmp rcx, rsi
je 0x14000178c
test byte [rcx + 0x1c], r12b
je 0x14000178c
cmp byte [rcx + 0x19], 2
jb 0x14000178c
lea edx, [rax + 0xa]
lea r8, [0x14003e938]
mov rcx, qword [rcx + 0x10]
call fcn.140001618
mov eax, 0x8007000e
jmp 0x140001b5f
mov rax, qword [0x140047008]
movups xmm0, xmmword [rax - 0x10]
movdqu xmmword [rsp + 0x38], xmm0
and qword [0x140047028], 0
and qword [0x140047030], 0
lea r9, [0x140047020]
lea r8, [section..data]
lea rdx, section..text
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventRegister]
test eax, eax
jne 0x1400017f6
mov r8, qword [0x140047008]
movzx r9d, word [r8]
lea edx, [rax + 2]
mov rcx, qword [0x140047020]
call qword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventSetInformation]
call fcn.1400015c4
and qword [rdi + 0x2b0], 0
lea rsi, [0x140047138]
mov rcx, qword [0x140047138]
cmp rcx, rsi
je 0x14000183a
test byte [rcx + 0x1c], r12b
je 0x14000183a
cmp byte [rcx + 0x19], 4
jb 0x14000183a
mov edx, 0xb
mov r9d, eax
lea r8, [0x14003e938]
mov rcx, qword [rcx + 0x10]
call fcn.140001450
mov ecx, 0x198
call fcn.14003b524
test rax, rax
je 0x140001851
mov rcx, rax
call fcn.140003f10
mov qword [0x140047860], rax
test rax, rax
jne 0x140001892
mov rcx, qword [0x140047138]
cmp rcx, rsi
je 0x140001888
test byte [rcx + 0x1c], r12b
je 0x140001888
cmp byte [rcx + 0x19], 2
jb 0x140001888
lea edx, [rax + 0xc]
lea r8, [0x14003e938]
mov rcx, qword [rcx + 0x10]
call fcn.140001618
mov eax, 0x8007000e
jmp 0x140001b5f
mov r9d, 0x64
lea r8, [rsp + 0x50]
lea edx, [r9 + 2]
mov rcx, qword [0x140047868]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadStringW]
test eax, eax
jne 0x1400018fe
lea r8, [0x14003e830]
mov ebx, 0xc8
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140003754
mov rcx, qword [0x140047138]
cmp rcx, rsi
je 0x1400018fe
test byte [rcx + 0x1c], r12b
je 0x1400018fe
cmp byte [rcx + 0x19], 3
jb 0x1400018fe
mov edx, 0xd
mov dword [rsp + 0x20], eax
mov r9d, ebx
lea r8, [0x14003e938]
mov rcx, qword [rcx + 0x10]
call fcn.140001638
lea rdx, [rsp + 0x50]
call fcn.140004088
mov ebx, eax
test eax, eax
jns 0x140001945
mov rcx, qword [0x140047138]
cmp rcx, rsi
je 0x14000193e
test byte [rcx + 0x1c], r12b
je 0x14000193e
cmp byte [rcx + 0x19], 2
jb 0x14000193e
mov edx, 0xe
mov r9d, eax
lea r8, [0x14003e938]
mov rcx, qword [rcx + 0x10]
call fcn.140001450
mov eax, ebx
jmp 0x140001b5f
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rdi
lea r8, [0x140001e50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rdi + 0x2b0], rax
test rax, rax
jne 0x1400019bf
mov rax, qword [0x140047138]
cmp rax, rsi
je 0x1400019ad
test byte [rax + 0x1c], r12b
je 0x1400019ad
cmp byte [rax + 0x19], 2
jb 0x1400019ad
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
mov edx, 0xf
lea r8, [0x14003e938]
mov rcx, qword [0x140047138]
mov rcx, qword [rcx + 0x10]
call fcn.140001450
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.140003930
jmp 0x140001b5f
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
mov dword [rdi + 0x28c], eax
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
test rax, rax
jne 0x1400019f7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140001a08
mov qword [rdi + 0x2a0], rax
mov rcx, rdi
call fcn.140002b54
mov ebx, eax
test ebx, ebx
jne 0x140001a29
lea edx, [rbx + 4]
mov rcx, rdi
call fcn.1400022e4
or edx, 0xffffffff
mov rcx, qword [rdi + 0x2a0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
test ebx, ebx
js 0x140001a77
xor ebx, ebx
mov r14, qword [0x140047c40]
mov rax, qword [0x140047c48]
jmp 0x140001a63
test ebx, ebx
jne 0x140001a68
mov rcx, qword [r14]
test rcx, rcx
je 0x140001a5f
mov ecx, dword [rcx + 0x28]
test ecx, ecx
je 0x140001a5f
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevokeClassObject]
mov ebx, eax
mov rax, qword [0x140047c48]
add r14, 8
cmp r14, rax
jb 0x140001a3d
cmp byte [rdi + 0x60], 0
je 0x140001a77
mov ecx, dword [rdi + 0x5c]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
mov rcx, qword [0x140047860]
test rcx, rcx
je 0x140001ac9
mov rcx, qword [0x140047138]
cmp rcx, rsi
je 0x140001ab0
test byte [rcx + 0x1c], r12b
je 0x140001ab0
cmp byte [rcx + 0x19], 4
jb 0x140001ab0
mov edx, 0x10
lea r8, [0x14003e938]
mov rcx, qword [rcx + 0x10]
call fcn.140001618
mov rcx, qword [rdi + 0x2a8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
call fcn.14000483c
mov rcx, qword [0x140047860]
cmp qword [rdi + 0x2b0], 0
je 0x140001b17
mov rcx, qword [0x140047138]
cmp rcx, rsi
je 0x140001b00
test byte [rcx + 0x1c], r12b
je 0x140001b00
cmp byte [rcx + 0x19], 4
jb 0x140001b00
mov edx, 0x11
lea r8, [0x14003e938]
mov rcx, qword [rcx + 0x10]
call fcn.140001618
or edx, 0xffffffff
mov rcx, qword [rdi + 0x2b0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [0x140047860]
test rcx, rcx
je 0x140001b29
call fcn.140001d58
and qword [0x140047860], 0
mov rcx, qword [0x140047138]
cmp rcx, rsi
je 0x140001b56
test byte [rcx + 0x1c], r12b
je 0x140001b56
cmp byte [rcx + 0x19], 4
jb 0x140001b56
mov edx, 0x12
lea r8, [0x14003e938]
mov rcx, qword [rcx + 0x10]
call fcn.140001618
mov eax, ebx
jmp 0x140001b5f
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14003b910
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rdi
ret