Function at 0x100004b78
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1b0
mov rax, qword [0x100009110]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor r12d, r12d
lea rax, [r11 - 0x158]
lea rcx, [r11 - 0x90]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r12d
lea r13d, [r12 + 1]
mov dword [rsp + 0x30], r12d
mov byte [r11 - 0x98], r12b
mov byte [r11 - 0x97], r12b
mov byte [r11 - 0x96], r12b
mov byte [r11 - 0x95], r12b
mov byte [r11 - 0x94], r12b
mov dl, r13b
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov ebp, r12d
mov qword [r11 - 0x158], r12
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x20], r12d
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
mov rsi, r12
mov rbx, r12
mov byte [r11 - 0x90], r12b
mov byte [r11 - 0x8f], r12b
mov byte [r11 - 0x8e], r12b
mov byte [r11 - 0x8d], r12b
mov byte [r11 - 0x8c], r12b
mov byte [r11 - 0x8b], r13b
mov byte [rsp + 0x145], 5
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea edi, [r12 + 2]
cmp eax, r12d
je 0x100004e44
lea rax, [rsp + 0x68]
lea r8d, [r12 + 0x20]
lea rcx, [rsp + 0x140]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
mov r9d, 0x220
mov dl, dil
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, r12d
je 0x100004e44
lea rax, [rsp + 0x70]
lea r8d, [r12 + 0x12]
lea rcx, [rsp + 0x140]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
xor r9d, r9d
mov dl, dil
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, r12d
je 0x100004e44
lea rcx, [rsp + 0xb0]
xor edx, edx
mov r8d, 0x90
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x80]
mov ecx, 0x101f0003
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x68]
mov dword [rsp + 0xe0], ecx
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x70]
mov dword [rsp + 0xb0], ecx
lea r9, [rsp + 0x78]
lea rdx, [rsp + 0xb0]
lea ecx, [rdi + 1]
xor r8d, r8d
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0x110], 0x1f0000
mov dword [rsp + 0x114], edi
mov dword [rsp + 0x118], r12d
mov dword [rsp + 0x12c], r12d
mov dword [rsp + 0x130], 5
mov dword [rsp + 0xe4], edi
mov dword [rsp + 0xe8], r12d
mov dword [rsp + 0xfc], r12d
mov dword [rsp + 0x100], edi
mov dword [rsp + 0xb4], edi
mov dword [rsp + 0xb8], r12d
mov dword [rsp + 0xcc], r12d
mov dword [rsp + 0xd0], edi
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
cmp eax, r12d
jne 0x100004e44
lea edx, [rdi + 0x76]
lea ecx, [rdi + 0x3e]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
cmp rax, r12
je 0x100004e44
mov edx, r13d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
cmp eax, r12d
je 0x100004e44
mov r8, qword [rsp + 0x78]
xor r9d, r9d
mov edx, r13d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp eax, r12d
je 0x100004e44
lea rsi, [rsp + 0x90]
mov qword [rsp + 0x98], rbx
mov dword [rsp + 0xa0], r12d
mov dword [rsp + 0x90], 0x18
cmp dword [0x100009730], r13d
je 0x100004e72
cmp dword [0x100009174], r13d
je 0x100004e64
mov dword [0x10000917c], r12d
mov dword [0x100009174], r13d
mov dword [0x100009738], r12d
mov dword [0x100009730], r13d
xor edx, edx
lea rcx, [0x100009d80]
lea r8d, [rdx + 0x28]
call sub.msvcrt.dll_memset
lea r14, [0x1000097a0]
cmp dword [0x1000097a8], r12d
jne 0x100004ed3
mov rcx, r14
mov dword [0x1000097a8], r13d
call fcn.1000016c8
cmp eax, r12d
je 0x100004ed3
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x88]
mov rcx, r14
mov dword [0x1000097bc], r13d
call fcn.100001934
mov edx, r12d
cmp eax, r13d
sete dl
mov dword [0x1000097c0], edx
mov rcx, r14
call fcn.100001784
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x100012450], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x100012458], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x100012460], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x100012468], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x100012470], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x100012478], rax
cmp qword [0x100012450], r12
je 0x100005519
cmp qword [0x100012458], r12
je 0x100005519
cmp qword [0x100012460], r12
je 0x100005519
cmp qword [0x100012468], r12
je 0x100005519
cmp qword [0x100012470], r12
je 0x100005519
cmp rax, r12
je 0x100005519
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x100012480], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x100012488], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x100012490], rax
cmp qword [0x100012480], r12
je 0x100005519
cmp qword [0x100012488], r12
je 0x100005519
cmp rax, r12
je 0x100005519
cmp dword [0x1000097bc], r13d
jne 0x1000050f8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x1000124a0], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x1000124a8], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x1000124b0], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x1000124b8], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x1000124c0], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1000124c8], rax
cmp qword [0x1000124a0], r12
je 0x100005519
cmp qword [0x1000124a8], r12
je 0x100005519
cmp qword [0x1000124b0], r12
je 0x100005519
cmp qword [0x1000124b8], r12
je 0x100005519
cmp qword [0x1000124c0], r12
je 0x100005519
cmp rax, r12
je 0x100005519
lea r8, [0x100001428]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x100012438], rax
cmp rax, r12
je 0x100005519
cmp dword [0x1000097bc], r13d
jne 0x100005145
lea r8, [0x100001470]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x100012448], rax
cmp rax, r12
je 0x100005519
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x100012498], rax
cmp rax, r12
je 0x100005519
lea rcx, [0x100009db0]
xor edx, edx
mov r8d, 0x15ec
mov dword [0x10001242c], r12d
call sub.msvcrt.dll_memset
mov dword [0x100009db0], 0x10000
mov dword [0x100009db4], 0x64
mov eax, r12d
lea rcx, [0x100009dbc]
mov r14d, 4
mov dword [rcx], eax
add eax, r13d
add rcx, r14
cmp eax, 0x64
jb 0x1000051a1
lea r15, [0x10000b3a0]
xor edx, edx
mov r8d, 0x708c
mov rcx, r15
mov dword [0x1000124d0], r12d
call sub.msvcrt.dll_memset
mov edx, 0x258
mov dword [0x10000b3a0], 0x10000
mov dword [0x10000b3a4], edx
mov eax, r12d
lea rcx, [0x10000b3ac]
mov dword [rcx], eax
add eax, r13d
add rcx, r14
cmp eax, edx
jb 0x1000051eb
lea rcx, [0x100009740]
xor edx, edx
call fcn.10000272c
lea rcx, [0x100009740]
call fcn.100003490
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x150]
lea rcx, [0x100009740]
call fcn.100002bec
cmp eax, r13d
jne 0x100005273
cmp dword [0x10000973c], r13d
je 0x100005273
lea rcx, [0x1000093c8]
lea rdx, [rsp + 0x150]
mov r8d, 0x47
call sub.msvcrt.dll_memcpy
mov r11d, dword [rsp + 0x60]
mov dword [0x1000093c0], r13d
mov dword [0x100009460], r11d
mov dword [0x100009458], r13d
mov dword [0x10000973c], r13d
lea rdx, [0x100009db0]
lea rcx, [0x100009740]
call fcn.100002cfc
cmp eax, r13d
jne 0x1000052a7
mov eax, dword [0x100009db8]
mov ecx, dword [0x100009db4]
mov dword [0x10001242c], eax
cmp eax, ecx
jb 0x1000052a7
mov dword [0x100009db8], ecx
cmp dword [0x1000097bc], r13d
jne 0x100005378
lea rdi, [0x100009770]
mov rcx, rdi
call fcn.100003914
mov rcx, rdi
call fcn.100004858
mov rdx, r15
mov rcx, rdi
call fcn.100004030
cmp eax, r13d
jne 0x100005373
mov eax, dword [0x10000b3a8]
mov ecx, dword [0x10000b3a4]
mov dword [0x1000124d0], eax
cmp eax, ecx
jb 0x100005300
mov dword [0x10000b3a8], ecx
lea eax, [rcx - 1]
jmp 0x100005302
dec eax
mov eax, dword [r15 + rax*4 + 0xc]
mov ecx, eax
imul rcx, rcx, 0x2c
mov eax, dword [rcx + r15 + 0x980]
movdqu xmm0, xmmword [rcx + r15 + 0x96c]
mov dword [0x100009d94], eax
mov eax, dword [rcx + r15 + 0x984]
movdqu xmmword [0x100009d80], xmm0
mov dword [0x100009d98], eax
mov eax, dword [rcx + r15 + 0x988]
mov dword [0x100009d9c], eax
mov eax, dword [rcx + r15 + 0x98c]
mov dword [0x100009da0], eax
mov eax, dword [rcx + r15 + 0x990]
mov dword [0x100009da4], eax
mov eax, dword [rcx + r15 + 0x994]
mov dword [0x100009da8], eax
mov edi, 2
lea rax, [0x1000124d4]
lea r8, [0x10000626c]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1000124d8], rax
cmp rax, r12
je 0x100005519
lea rax, [0x1000124e8]
lea r8, [0x1000064b0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1000124e0], rax
cmp rax, r12
je 0x100005519
cmp dword [0x1000097bc], r13d
jne 0x100005424
lea rax, [0x1000124ec]
lea r8, [0x100006ad4]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1000124f0], rax
cmp dword [0x1000124ec], r12d
je 0x100005519
lea rax, [0x1000014c0]
xor r9d, r9d
mov r8d, r14d
mov qword [rsp + 0x28], rax
mov rdx, rsi
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], 0x15ec
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [0x100012430], rax
cmp rax, r12
je 0x100005519
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rax
mov qword [rsp + 0x20], 0x15ec
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
cmp rax, r12
je 0x100005519
lea rdx, [0x100009db0]
mov r8d, 0x15ec
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [0x1000097bc], r13d
jne 0x100005516
lea rax, [0x100001510]
mov edi, 0x708c
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8d, r14d
mov rdx, rsi
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [0x100012440], rax
cmp rax, r12
je 0x100005519
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 2]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
cmp rax, r12
je 0x100005519
mov r8d, 0x708c
mov rdx, r15
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebp, r13d
mov rcx, qword [rsp + 0x80]
cmp rcx, r12
je 0x10000552c
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x68]
cmp rcx, r12
je 0x10000553c
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x70]
cmp rcx, r12
je 0x10000554c
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x78]
cmp rcx, r12
je 0x10000555c
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp rbx, r12
je 0x10000556a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebp
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1000077a0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret