Function at 0x180002dd0
Capabilities:
Enumerate threads
Extract resource via kernel32 functions
Get file size
Link many functions at runtime
Read file on windows
Resume thread
Suspend thread
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xdc8]
sub rsp, 0xea0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xd90], rax
mov byte [0x18001db38], 1
xor r14d, r14d
mov word [rbp + 0xb90], r14w
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0xb92]
call fcn.180008f80
lea rcx, str.Loading_configuration..._r_n
call fcn.1800021c0
mov qword [rsp + 0x50], r14
lea r8, [rsp + 0x50]
lea rdx, [0x180002280]
lea ecx, [r14 + 4]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov r8d, 0xff
lea rdx, [rbp + 0xb90]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rbp + 0xb90]
or rdi, 0xffffffffffffffff
mov rdx, rdi
inc rdx
cmp word [rax + rdx*2], r14w
jne 0x180002e83
test edx, edx
je 0x180002ef1
mov eax, edx
lea rcx, [rbp + 0xb90]
lea rcx, [rcx + rax*2]
nop
cmp word [rcx], 0x5c
je 0x180002eb0
sub rcx, 2
dec edx
jne 0x180002ea0
jmp 0x180002ef1
lea eax, [rdx + 1]
lea rbx, [rbp + 0xb90]
lea rbx, [rbx + rax*2]
mov eax, 0xff
sub eax, edx
lea r8d, [rax + rax]
xor edx, edx
mov rcx, rbx
call fcn.180008f80
movups xmm0, xmmword [str.rdpwrap.ini]
movups xmmword [rbx], xmm0
mov eax, dword [0x1800180e8]
mov dword [rbx + 0x10], eax
movzx eax, word [0x1800180ec]
mov word [rbx + 0x14], ax
mov ecx, 0x400
call fcn.1800043e4
mov rbx, rax
lea r8, [rbp + 0xb90]
lea rdx, str.Configuration_file:__S_r_n
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, rbx
call fcn.1800021c0
mov rcx, rbx
call fcn.18000448c
mov ecx, 0x24
call fcn.1800043e4
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x180002fdc
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x20], eax
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rax + 3]
lea rcx, [rbp + 0xb90]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180002fdf
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbx], eax
cmp eax, 0xffffffff
je 0x180002fdf
mov ecx, eax
call fcn.1800043e4
mov qword [rbx + 4], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x50]
mov r8d, dword [rbx]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180002fdf
mov rcx, rbx
call fcn.180001010
mov rcx, rbx
call fcn.180001330
jmp 0x180002fdf
mov rbx, r14
mov qword [0x18001db70], rbx
test rbx, rbx
jne 0x18000304c
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [rbx + 3]
lea rcx, str._rdpwrap.txt
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180004292
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8d, 0x25
lea rdx, str.Error:_Failed_to_load_configuration_r_n
jmp 0x180004276
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp - 0x70]
call fcn.180008f80
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x8f]
call fcn.180008f80
lea r9, [rbp - 0x70]
lea r8, str.LogFile
lea rdx, str.Main
mov rcx, rbx
call fcn.180001850
test al, al
je 0x18000314a
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x790]
call fcn.180008f80
lea rax, [rbp - 0x70]
mov r8, rdi
nop
inc r8
cmp byte [rax + r8], 0
jne 0x1800030b0
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x790]
call fcn.18000b160
lea rax, [rbp + 0x8f]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x1800030d4
lea rdx, [rbp + 0x8f]
lea rcx, [rbp + 0x88f]
call fcn.18000b160
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x990]
call fcn.180008f80
mov r8d, 0xff
lea rdx, [rbp + 0x88f]
lea rcx, [rbp + 0x990]
call fcn.180004fa0
mov rcx, r14
lea rsi, str._rdpwrap.txt
nop dword [rax + rax]
movzx eax, word [rbp + rcx + 0x990]
mov word [rcx + rsi], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180003130
jmp 0x1800031e2
mov qword [rsp + 0x50], r14
lea r8, [rsp + 0x50]
lea rdx, [0x180002280]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov r8d, 0xff
lea rsi, str._rdpwrap.txt
mov rdx, rsi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rdx, rdi
inc rdx
cmp word [rsi + rdx*2], 0
jne 0x180003184
test edx, edx
je 0x1800031e2
mov eax, edx
lea rcx, [rsi + rax*2]
cmp word [rcx], 0x5c
je 0x1800031a8
sub rcx, 2
dec edx
jne 0x180003198
jmp 0x1800031e2
lea eax, [rdx + 1]
lea rbx, [rsi + rax*2]
mov eax, 0xff
sub eax, edx
lea r8d, [rax + rax]
xor edx, edx
mov rcx, rbx
call fcn.180008f80
movups xmm0, xmmword [str.rdpwrap.txt]
movups xmmword [rbx], xmm0
mov eax, dword [0x180018158]
mov dword [rbx + 0x10], eax
movzx eax, word [0x18001815c]
mov word [rbx + 0x14], ax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 3]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180003252
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x50]
mov r8d, 0x1d
lea rdx, str.Initializing_RDP_Wrapper..._r_n
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.termsrv.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x18001db68], rax
test rax, rax
jne 0x1800032c8
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [rax + 3]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180004292
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8d, 0x31
lea rdx, str.Error:_Failed_to_load_Terminal_Services_library_r_n
jmp 0x180004276
lea rdx, [0x1800181d0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18001db48], rax
lea rdx, [0x1800181e0]
mov rcx, qword [0x18001db68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18001db40], rax
mov ecx, 0x1000
call fcn.1800043e4
mov rbx, rax
mov rcx, qword [0x18001db40]
mov r8, qword [0x18001db68]
sub rcx, r8
mov r9, qword [0x18001db48]
sub r9, r8
mov qword [rsp + 0x20], rcx
lea rdx, str.Base_addr:__0x_p_r_nSvcMain:____termsrv.dll0x_p_r_nSvcGlobals:_termsrv.dll0x_p_r_n
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, rbx
call fcn.1800021c0
mov rcx, rbx
call fcn.18000448c
lea rcx, str.termsrv.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x180004222
mov edx, 1
lea r8d, [rdx + 0xf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x180004222
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180004222
mov edx, dword [rax + 0x30]
mov dword [0x18001db50], edx
movzx ecx, word [rax + 0x36]
mov word [0x18001db54], cx
movzx eax, word [rax + 0x34]
mov word [0x18001db56], ax
shr edx, 0x10
movzx r15d, dl
shl r15w, 8
movzx eax, byte [0x18001db50]
or r15w, ax
je 0x180004222
mov ecx, 0x400
call fcn.1800043e4
mov rbx, rax
movzx ecx, word [0x18001db56]
movzx edx, word [0x18001db54]
movzx r9d, word [0x18001db50]
movzx r8d, word [0x18001db52]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea rdx, str.Version:_____d._d._d._d_r_n
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, rbx
call fcn.1800021c0
mov rcx, rbx
call fcn.18000448c
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 3]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18000348f
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x50]
mov r8d, 0x15
lea rdx, str.Freezing_threads..._r_n
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r13d, eax
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x180003522
mov dword [rsp + 0x58], 0x1c
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
nop dword [rax + rax]
mov r8d, dword [rsp + 0x60]
cmp r8d, r12d
je 0x180003507
cmp dword [rsp + 0x64], r13d
jne 0x180003507
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180003507
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x58]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1800034d0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp - 0x70]
call fcn.180008f80
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x8f]
call fcn.180008f80
lea r9, [rbp - 0x70]
lea r8, str.SLPolicyHookNT60
lea rdx, str.Main
mov rcx, qword [0x18001db70]
call fcn.180001850
test al, al
je 0x180003582
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp + 0x8f]
call fcn.1800049f8
test eax, eax
setne al
jmp 0x180003584
mov al, 1
mov ecx, 0x600
lea rbx, [0x1800022d0]
cmp r15w, cx
jne 0x180003650
test al, al
je 0x180003650
lea rcx, str.slc.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x18001db60], rax
lea rdx, str.SLGetWindowsInformationDWORD
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18001db78], rax
cmp rax, 0xffffffffffffffff
je 0x180003650
lea rcx, str.Hook_SLGetWindowsInformationDWORD_r_n
call fcn.1800021c0
mov word [0x18001db80], 0xb848
mov qword [0x18001db82], rbx
mov word [0x18001db8a], 0xc350
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [0x18001db90]
mov rdx, qword [0x18001db78]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [0x18001db80]
mov rdx, qword [0x18001db78]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x190]
call fcn.180008f80
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x28f]
call fcn.180008f80
lea r9, [rbp + 0x190]
lea r8, str.SLPolicyHookNT61
lea rdx, str.Main
mov rcx, qword [0x18001db70]
call fcn.180001850
test al, al
je 0x1800036b6
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp + 0x28f]
call fcn.1800049f8
test eax, eax
setne al
jmp 0x1800036b8
mov al, 1
mov ecx, 0x601
cmp r15w, cx
jne 0x180003783
test al, al
je 0x1800037b9
lea rcx, str.slc.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x18001db60], rax
lea rdx, str.SLGetWindowsInformationDWORD
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18001db78], rax
cmp rax, 0xffffffffffffffff
je 0x1800037b9
lea rcx, str.Hook_SLGetWindowsInformationDWORD_r_n
call fcn.1800021c0
mov word [0x18001db80], 0xb848
mov qword [0x18001db82], rbx
mov word [0x18001db8a], 0xc350
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [0x18001db90]
mov rdx, qword [0x18001db78]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [0x18001db80]
mov rdx, qword [0x18001db78]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x1800037b9
mov eax, 0x602
cmp r15w, ax
jne 0x1800037b9
lea rcx, str.slc.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x18001db60], rax
lea rdx, str.SLGetWindowsInformationDWORD
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18001db78], rax
mov ecx, 0x100
call fcn.1800043e4
mov r14, rax
xor edx, edx
mov r8d, 0x100
mov rcx, rax
call fcn.180008f80
movzx ecx, word [0x18001db56]
movzx edx, word [0x18001db54]
movzx r9d, word [0x18001db50]
movzx r8d, word [0x18001db52]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea rdx, str._d._d._d._d
mov rcx, r14
call qword [sym.imp.USER32.dll_wsprintfA]
mov rdx, r14
mov rbx, qword [0x18001db70]
mov rcx, rbx
call fcn.1800017a0
test rax, rax
je 0x180004115
mov rcx, qword [0x18001db68]
test rcx, rcx
je 0x180004115
movsxd rax, dword [rcx + 0x3c]
mov qword [0x18001db58], rcx
cmp dword [rax + rcx + 0x1c], 0
jbe 0x180004115
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x390]
call fcn.180008f80
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x48f]
call fcn.180008f80
lea r9, [rbp + 0x390]
lea r8, str.LocalOnlyPatch.x64
mov rdx, r14
mov rcx, rbx
call fcn.180001850
test al, al
je 0x1800039ed
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp + 0x48f]
call fcn.1800049f8
test eax, eax
setne al
test al, al
je 0x1800039ed
lea rcx, str.Patch_CEnforcementCore::GetInstanceOfTSLicense_r_n
call fcn.1800021c0
lea r9, [rbp + 0x190]
lea r8, str.LocalOnlyOffset.x64
mov rdx, r14
mov rcx, qword [0x18001db70]
call fcn.180001a00
xor ecx, ecx
test al, al
cmovne ecx, dword [rbp + 0x297]
mov r15d, ecx
add r15, qword [0x18001db58]
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x190]
call fcn.180008f80
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x28f]
call fcn.180008f80
lea r9, [rbp + 0x190]
lea r8, str.LocalOnlyCode.x64
mov rdx, r14
mov rcx, qword [0x18001db70]
call fcn.180001850
test al, al
je 0x1800039ed
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp - 0x70]
call fcn.180008f80
lea rax, [rbp + 0x190]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180003960
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x70]
call fcn.18000b160
lea rax, [rbp + 0x28f]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x180003984
lea rdx, [rbp + 0x28f]
lea rcx, [rbp + 0x8f]
call fcn.18000b160
lea r9, [rbp + 0x590]
lea r8, [rbp + 0x8f]
call fcn.180001b00
test al, al
je 0x1800039ed
cmp r15, qword [0x18001db58]
jbe 0x1800039ed
movzx ebx, byte [rbp + 0x68f]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [rbp + 0x690]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x990]
call fcn.180008f80
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0xa8f]
call fcn.180008f80
lea r9, [rbp + 0x990]
lea r8, str.SingleUserPatch.x64
mov rdx, r14
mov rcx, qword [0x18001db70]
call fcn.180001850
test al, al
je 0x180003b8d
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp + 0xa8f]
call fcn.1800049f8
test eax, eax
setne al
test al, al
je 0x180003b8d
lea rcx, str.Patch_CSessionArbitrationHelper::IsSingleSessionPerUserEnabled_r_n
call fcn.1800021c0
lea r9, [rbp + 0x190]
lea r8, str.SingleUserOffset.x64
mov rdx, r14
mov rcx, qword [0x18001db70]
call fcn.180001a00
xor ecx, ecx
test al, al
cmovne ecx, dword [rbp + 0x297]
mov r15d, ecx
add r15, qword [0x18001db58]
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x190]
call fcn.180008f80
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x28f]
call fcn.180008f80
lea r9, [rbp + 0x190]
lea r8, str.SingleUserCode.x64
mov rdx, r14
mov rcx, qword [0x18001db70]
call fcn.180001850
test al, al
je 0x180003b8d
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp - 0x70]
call fcn.180008f80
lea rax, [rbp + 0x190]
mov r8, rdi
nop
inc r8
cmp byte [rax + r8], 0
jne 0x180003b00
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x70]
call fcn.18000b160
lea rax, [rbp + 0x28f]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x180003b24
lea rdx, [rbp + 0x28f]
lea rcx, [rbp + 0x8f]
call fcn.18000b160
lea r9, [rbp + 0x590]
lea r8, [rbp + 0x8f]
call fcn.180001b00
test al, al
je 0x180003b8d
cmp r15, qword [0x18001db58]
jbe 0x180003b8d
movzx ebx, byte [rbp + 0x68f]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [rbp + 0x690]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x390]
call fcn.180008f80
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x48f]
call fcn.180008f80
lea r9, [rbp + 0x390]
lea r8, str.DefPolicyPatch.x64
mov rdx, r14
mov rcx, qword [0x18001db70]
call fcn.180001850
test al, al
je 0x180003d2d
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp + 0x48f]
call fcn.1800049f8
test eax, eax
setne al
test al, al
je 0x180003d2d
lea rcx, str.Patch_CDefPolicy::Query_r_n
call fcn.1800021c0
lea r9, [rbp + 0x190]
lea r8, str.DefPolicyOffset.x64
mov rdx, r14
mov rcx, qword [0x18001db70]
call fcn.180001a00
xor ecx, ecx
test al, al
cmovne ecx, dword [rbp + 0x297]
mov r15d, ecx
add r15, qword [0x18001db58]
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x190]
call fcn.180008f80
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x28f]
call fcn.180008f80
lea r9, [rbp + 0x190]
lea r8, str.DefPolicyCode.x64
mov rdx, r14
mov rcx, qword [0x18001db70]
call fcn.180001850
test al, al
je 0x180003d2d
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp - 0x70]
call fcn.180008f80
lea rax, [rbp + 0x190]
mov r8, rdi
nop
inc r8
cmp byte [rax + r8], 0
jne 0x180003ca0
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x70]
call fcn.18000b160
lea rax, [rbp + 0x28f]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x180003cc4
lea rdx, [rbp + 0x28f]
lea rcx, [rbp + 0x8f]
call fcn.18000b160
lea r9, [rbp + 0x590]
lea r8, [rbp + 0x8f]
call fcn.180001b00
test al, al
je 0x180003d2d
cmp r15, qword [0x18001db58]
jbe 0x180003d2d
movzx ebx, byte [rbp + 0x68f]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [rbp + 0x690]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x990]
call fcn.180008f80
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0xa8f]
call fcn.180008f80
lea r9, [rbp + 0x990]
lea r8, str.SLPolicyInternal.x64
mov rdx, r14
mov rcx, qword [0x18001db70]
call fcn.180001850
test al, al
je 0x180003f24
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp + 0xa8f]
call fcn.1800049f8
test eax, eax
setne al
test al, al
je 0x180003f24
lea rcx, str.Hook_SLGetWindowsInformationDWORDWrapper_r_n
call fcn.1800021c0
mov ecx, 0x400
call fcn.1800043e4
mov rbx, rax
lea r9, [rbp + 0x190]
lea r8, str.SLPolicyOffset.x64
mov rdx, r14
mov rcx, qword [0x18001db70]
call fcn.180001a00
xor ecx, ecx
test al, al
cmovne ecx, dword [rbp + 0x297]
mov r15d, ecx
add r15, qword [0x18001db58]
mov word [rsp + 0x78], 0xb848
lea r12, [0x180002490]
mov qword [rsp + 0x7a], r12
mov word [rbp - 0x7e], 0xc350
xor edx, edx
mov r8d, 0x400
mov rcx, rbx
call fcn.180008f80
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp - 0x70]
call fcn.180008f80
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x8f]
call fcn.180008f80
lea r9, [rbp - 0x70]
lea r8, str.SLPolicyFunc.x64
mov rdx, r14
mov rcx, qword [0x18001db70]
call fcn.180001850
test al, al
je 0x180003eba
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x390]
call fcn.180008f80
lea rax, [rbp - 0x70]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180003e70
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x390]
call fcn.18000b160
lea rax, [rbp + 0x8f]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x180003e94
lea rdx, [rbp + 0x8f]
lea rcx, [rbp + 0x48f]
call fcn.18000b160
lea r8, [rbp + 0x48f]
jmp 0x180003ec1
lea r8, str.New_Win8SL
mov edx, 0x400
mov rcx, rbx
call fcn.180004d60
lea rdx, str.New_Win8SL
mov rcx, rbx
call fcn.180008e90
mov rcx, qword [rsp + 0x7a]
test eax, eax
cmovne rcx, r12
mov qword [rsp + 0x7a], rcx
mov rcx, rbx
call fcn.18000448c
cmp r15, qword [0x18001db58]
jbe 0x180003f24
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rsp + 0x78]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x390]
call fcn.180008f80
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x48f]
call fcn.180008f80
lea r9, [rbp + 0x390]
lea r8, str.SLInitHook.x64
mov rdx, r14
mov rcx, qword [0x18001db70]
call fcn.180001850
test al, al
je 0x180004115
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp + 0x48f]
call fcn.1800049f8
test eax, eax
setne al
test al, al
je 0x180004115
lea rcx, str.Hook_CSLQuery::Initialize_r_n
call fcn.1800021c0
mov ecx, 0x400
call fcn.1800043e4
mov rbx, rax
lea r9, [rbp + 0x190]
lea r8, str.SLInitOffset.x64
mov rdx, r14
mov rcx, qword [0x18001db70]
call fcn.180001a00
xor ecx, ecx
test al, al
cmovne ecx, dword [rbp + 0x297]
mov r15d, ecx
add r15, qword [0x18001db58]
mov word [rsp + 0x78], 0xb848
lea r12, [0x1800025f0]
mov qword [rsp + 0x7a], r12
mov word [rbp - 0x7e], 0xc350
xor edx, edx
mov r8d, 0x400
mov rcx, rbx
call fcn.180008f80
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp - 0x70]
call fcn.180008f80
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x8f]
call fcn.180008f80
lea r9, [rbp - 0x70]
lea r8, str.SLInitFunc.x64
mov rdx, r14
mov rcx, qword [0x18001db70]
call fcn.180001850
test al, al
je 0x1800040ab
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x990]
call fcn.180008f80
lea rax, [rbp - 0x70]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x180004062
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x990]
call fcn.18000b160
lea rax, [rbp + 0x8f]
inc rdi
cmp byte [rax + rdi], 0
jne 0x180004083
mov r8, rdi
lea rdx, [rbp + 0x8f]
lea rcx, [rbp + 0xa8f]
call fcn.18000b160
lea r8, [rbp + 0xa8f]
jmp 0x1800040b2
lea r8, str.New_CSLQuery_Initialize
mov edx, 0x400
mov rcx, rbx
call fcn.180004d60
lea rdx, str.New_CSLQuery_Initialize
mov rcx, rbx
call fcn.180008e90
mov rcx, qword [rsp + 0x7a]
test eax, eax
cmovne rcx, r12
mov qword [rsp + 0x7a], rcx
mov rcx, rbx
call fcn.18000448c
cmp r15, qword [0x18001db58]
jbe 0x180004115
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rsp + 0x78]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, r14
call fcn.18000448c
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 3]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180004195
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 0x15
lea rdx, str.Resumimg_threads..._r_n
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r14d, eax
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180004292
mov dword [rsp + 0x58], 0x1c
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
mov r8d, dword [rsp + 0x60]
cmp r8d, esi
je 0x18000420b
cmp dword [rsp + 0x64], r14d
jne 0x18000420b
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18000420b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1800041d4
mov rcx, rdi
jmp 0x18000428c
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 3]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180004292
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8d, 0x33
lea rdx, str.Error:_Failed_to_detect_Terminal_Services_version_r_n
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xd90]
xor rcx, rsp
call fcn.180004390
lea r11, [rsp + 0xea0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret