Function at 0x1800029e0
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 qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xda0]
sub rsp, 0xea0
mov rax, qword [0x180020008]
xor rax, rsp
mov qword [rbp + 0xd90], rax
mov byte [0x180021e80], 1
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0xb90]
call fcn.180005fa0
lea rcx, str.Loading_configuration..._r_n
call fcn.180001e30
xor r12d, r12d
mov qword [rsp + 0x48], r12
lea r8, [rsp + 0x48]
lea rdx, [0x180001ef0]
lea ecx, [r12 + 4]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov r15d, 0xff
mov r8d, r15d
lea rdx, [rbp + 0xb90]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rbp + 0xb90]
mov rdi, 0xffffffffffffffff
mov rdx, rdi
nop word [rax + rax]
inc rdx
cmp word [rax + rdx*2], r12w
jne 0x180002a90
test edx, edx
je 0x180002b00
mov eax, edx
lea rcx, [rbp + 0xb90]
lea rcx, [rcx + rax*2]
nop dword [rax + rax]
cmp word [rcx], 0x5c
je 0x180002ac1
sub rcx, 2
add edx, 0xffffffff
jne 0x180002ab0
jmp 0x180002b00
lea eax, [rdx + 1]
lea rbx, [rbp + 0xb90]
lea rbx, [rbx + rax*2]
mov eax, r15d
sub eax, edx
lea r8d, [rax + rax]
xor edx, edx
mov rcx, rbx
call fcn.180005fa0
movups xmm0, xmmword [str.rdpwrap.ini]
movups xmmword [rbx], xmm0
mov eax, dword [0x18001cbf8]
mov dword [rbx + 0x10], eax
movzx eax, word [0x18001cbfc]
mov word [rbx + 0x14], ax
mov ecx, 0x400
call fcn.180003db4
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.180001e30
mov rcx, rbx
call fcn.180003dbc
mov ecx, 0x24
call fcn.180003dc4
mov rbx, rax
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov dword [rbx + 0x20], eax
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x30], r12
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 0x180002c69
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbx], eax
cmp eax, 0xffffffff
je 0x180002c69
mov ecx, eax
call fcn.180003db4
mov qword [rbx + 4], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x48]
mov r8d, dword [rbx]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180002c69
mov ecx, 1
mov edx, dword [rbx]
test edx, edx
je 0x180002bfc
mov rax, qword [rbx + 4]
cmp byte [rax], 0xd
jne 0x180002bf3
cmp byte [rax + 1], 0xa
jne 0x180002bf3
inc ecx
inc rax
sub rdx, 1
jne 0x180002be6
mov dword [rbx + 0xc], ecx
mov eax, 4
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.180003db4
mov qword [rbx + 0x10], rax
mov dword [rax], r12d
mov r9d, 1
mov edx, r12d
cmp dword [rbx], r12d
jbe 0x180002c60
nop dword [rax + rax]
mov r8, qword [rbx + 4]
mov eax, edx
cmp byte [rax + r8], 0xd
jne 0x180002c5a
lea r10d, [rdx + 2]
lea eax, [r10 - 1]
cmp byte [rax + r8], 0xa
jne 0x180002c5a
mov ecx, r9d
mov rax, qword [rbx + 0x10]
mov dword [rax + rcx*4], r10d
inc r9d
inc edx
cmp edx, dword [rbx]
jb 0x180002c30
mov rcx, rbx
call fcn.1800010e0
nop
mov qword [0x180021eb8], rbx
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x190]
call fcn.180005fa0
lea r9, [rbp + 0x190]
lea r8, str.LogFile
lea rdx, str.Main
mov rcx, rbx
call fcn.1800016d0
test al, al
jne 0x180002d4f
mov qword [rsp + 0x48], r12
lea r8, [rsp + 0x48]
lea rdx, [0x180001ef0]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov r8d, r15d
lea r14, str._rdpwrap.txt
mov rdx, r14
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rdx, rdi
inc rdx
cmp word [r14 + rdx*2], 0
jne 0x180002ce0
test edx, edx
je 0x180002e07
mov eax, edx
lea rcx, [r14 + rax*2]
nop dword [rax]
cmp word [rcx], 0x5c
je 0x180002d14
sub rcx, 2
add edx, 0xffffffff
jne 0x180002d00
jmp 0x180002e07
lea eax, [rdx + 1]
lea rbx, [r14 + rax*2]
sub r15d, edx
lea r8d, [r15 + r15]
xor edx, edx
mov rcx, rbx
call fcn.180005fa0
movups xmm0, xmmword [str.rdpwrap.txt]
movups xmmword [rbx], xmm0
mov eax, dword [0x18001cc40]
mov dword [rbx + 0x10], eax
movzx eax, word [0x18001cc44]
mov word [rbx + 0x14], ax
jmp 0x180002e07
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x790]
call fcn.180005fa0
lea rax, [rbp + 0x190]
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180002d70
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x790]
call fcn.180009880
lea rax, [rbp + 0x28f]
mov r8, rdi
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180002da0
lea rdx, [rbp + 0x28f]
lea rcx, [rbp + 0x88f]
call fcn.180009880
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x990]
call fcn.180005fa0
mov r8, r15
lea rdx, [rbp + 0x88f]
lea rcx, [rbp + 0x990]
call fcn.18000a9c0
mov rcx, r12
lea r14, str._rdpwrap.txt
movzx eax, word [rbp + rcx + 0x990]
mov word [rcx + r14], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180002df1
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 3]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180002e77
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x48]
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 [0x180021eb0], rax
test rax, rax
jne 0x180002eed
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [rax + 3]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180003ca0
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 0x180003c84
lea rdx, [0x18001ccb8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180021e90], rax
lea rdx, [0x18001ccc8]
mov rcx, qword [0x180021eb0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180021e88], rax
mov ecx, 0x1000
call fcn.180003db4
mov rbx, rax
mov rcx, qword [0x180021e88]
mov r8, qword [0x180021eb0]
sub rcx, r8
mov r9, qword [0x180021e90]
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.180001e30
mov rcx, rbx
call fcn.180003dbc
lea rcx, str.termsrv.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x180003c30
mov edx, 1
lea r8d, [rdx + 0xf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x180003c30
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180003c30
mov edx, dword [rax + 0x30]
mov dword [0x180021e98], edx
movzx ecx, word [rax + 0x36]
mov word [0x180021e9c], cx
movzx eax, word [rax + 0x34]
mov word [0x180021e9e], ax
mov eax, edx
shr eax, 0x10
movzx r15d, al
shl r15w, 8
movzx eax, dl
or r15w, ax
je 0x180003c30
mov ecx, 0x400
call fcn.180003db4
mov rbx, rax
movzx ecx, word [0x180021e9e]
movzx edx, word [0x180021e9c]
movzx r9d, word [0x180021e98]
movzx r8d, word [0x180021e9a]
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.180001e30
mov rcx, rbx
call fcn.180003dbc
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 3]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800030b2
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x48]
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 rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180003142
mov dword [rsp + 0x50], 0x1c
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
nop
mov r8d, dword [rsp + 0x58]
cmp r8d, r12d
je 0x180003127
cmp dword [rsp + 0x5c], r13d
jne 0x180003127
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180003127
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1800030f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x190]
call fcn.180005fa0
lea r9, [rbp + 0x190]
lea r8, str.SLPolicyHookNT60
lea rdx, str.Main
mov rcx, qword [0x180021eb8]
call fcn.1800016d0
test al, al
jne 0x18000317f
mov al, 1
jmp 0x180003196
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp + 0x28f]
call fcn.18000a3d0
test eax, eax
setne al
mov ecx, 0x600
lea rbx, [0x180002180]
cmp r15w, cx
jne 0x180003262
test al, al
je 0x180003262
lea rcx, str.slc.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x180021ea8], rax
lea rdx, str.SLGetWindowsInformationDWORD
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180021ec0], rax
cmp rax, 0xffffffffffffffff
je 0x180003262
lea rcx, str.Hook_SLGetWindowsInformationDWORD_r_n
call fcn.180001e30
mov word [0x180021ec8], 0xb848
mov qword [0x180021eca], rbx
mov word [0x180021ed2], 0xc350
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [0x180021ed8]
mov rdx, qword [0x180021ec0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [0x180021ec8]
mov rdx, qword [0x180021ec0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp - 0x70]
call fcn.180005fa0
lea r9, [rbp - 0x70]
lea r8, str.SLPolicyHookNT61
lea rdx, str.Main
mov rcx, qword [0x180021eb8]
call fcn.1800016d0
test al, al
jne 0x180003299
mov al, 1
jmp 0x1800032b0
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp + 0x8f]
call fcn.18000a3d0
test eax, eax
setne al
mov ecx, 0x601
cmp r15w, cx
jne 0x18000337b
test al, al
je 0x1800033b1
lea rcx, str.slc.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x180021ea8], rax
lea rdx, str.SLGetWindowsInformationDWORD
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180021ec0], rax
cmp rax, 0xffffffffffffffff
je 0x1800033b1
lea rcx, str.Hook_SLGetWindowsInformationDWORD_r_n
call fcn.180001e30
mov word [0x180021ec8], 0xb848
mov qword [0x180021eca], rbx
mov word [0x180021ed2], 0xc350
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [0x180021ed8]
mov rdx, qword [0x180021ec0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [0x180021ec8]
mov rdx, qword [0x180021ec0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x1800033b1
mov eax, 0x602
cmp r15w, ax
jne 0x1800033b1
lea rcx, str.slc.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x180021ea8], rax
lea rdx, str.SLGetWindowsInformationDWORD
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180021ec0], rax
mov ecx, 0x100
call fcn.180003db4
mov rsi, rax
xor edx, edx
mov r8d, 0x100
mov rcx, rax
call fcn.180005fa0
movzx ecx, word [0x180021e9e]
movzx edx, word [0x180021e9c]
movzx r9d, word [0x180021e98]
movzx r8d, word [0x180021e9a]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea rdx, str._d._d._d._d
mov rcx, rsi
call qword [sym.imp.USER32.dll_wsprintfA]
mov rdx, rsi
mov rbx, qword [0x180021eb8]
mov rcx, rbx
call fcn.180001610
test rax, rax
je 0x180003b23
mov rcx, qword [0x180021eb0]
test rcx, rcx
je 0x180003b23
movsxd rax, dword [rcx + 0x3c]
mov qword [0x180021ea0], rcx
cmp dword [rax + rcx + 0x1c], 0
jbe 0x180003b23
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x390]
call fcn.180005fa0
lea r9, [rbp + 0x390]
lea r8, str.LocalOnlyPatch.x64
mov rdx, rsi
mov rcx, rbx
call fcn.1800016d0
test al, al
je 0x1800035af
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp + 0x48f]
call fcn.18000a3d0
test eax, eax
setne al
test al, al
je 0x1800035af
lea rcx, str.Patch_CEnforcementCore::GetInstanceOfTSLicense_r_n
call fcn.180001e30
lea r9, [rbp - 0x70]
lea r8, str.LocalOnlyOffset.x64
mov rdx, rsi
mov rcx, qword [0x180021eb8]
call fcn.180001950
xor ecx, ecx
test al, al
cmovne ecx, dword [rbp + 0x97]
mov r15d, ecx
add r15, qword [0x180021ea0]
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp - 0x70]
call fcn.180005fa0
lea r9, [rbp - 0x70]
lea r8, str.LocalOnlyCode.x64
mov rdx, rsi
mov rcx, qword [0x180021eb8]
call fcn.1800016d0
test al, al
je 0x1800035af
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x190]
call fcn.180005fa0
lea rax, [rbp - 0x70]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x180003522
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x190]
call fcn.180009880
lea rax, [rbp + 0x8f]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x180003546
lea rdx, [rbp + 0x8f]
lea rcx, [rbp + 0x28f]
call fcn.180009880
lea r9, [rbp + 0x590]
lea r8, [rbp + 0x28f]
call fcn.180001a40
test al, al
je 0x1800035af
cmp r15, qword [0x180021ea0]
jbe 0x1800035af
movzx ebx, byte [rbp + 0x68f]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp - 0x80]
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, 0x1fe
lea rcx, [rbp + 0x990]
call fcn.180005fa0
lea r9, [rbp + 0x990]
lea r8, str.SingleUserPatch.x64
mov rdx, rsi
mov rcx, qword [0x180021eb8]
call fcn.1800016d0
test al, al
je 0x18000371d
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp + 0xa8f]
call fcn.18000a3d0
test eax, eax
setne al
test al, al
je 0x18000371d
lea rcx, str.Patch_CSessionArbitrationHelper::IsSingleSessionPerUserEnabled_r_n
call fcn.180001e30
lea r9, [rbp - 0x70]
lea r8, str.SingleUserOffset.x64
mov rdx, rsi
mov rcx, qword [0x180021eb8]
call fcn.180001950
xor ecx, ecx
test al, al
cmovne ecx, dword [rbp + 0x97]
mov r15d, ecx
add r15, qword [0x180021ea0]
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp - 0x70]
call fcn.180005fa0
lea r9, [rbp - 0x70]
lea r8, str.SingleUserCode.x64
mov rdx, rsi
mov rcx, qword [0x180021eb8]
call fcn.1800016d0
test al, al
je 0x18000371d
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x190]
call fcn.180005fa0
lea rax, [rbp - 0x70]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x180003690
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x190]
call fcn.180009880
lea rax, [rbp + 0x8f]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x1800036b4
lea rdx, [rbp + 0x8f]
lea rcx, [rbp + 0x28f]
call fcn.180009880
lea r9, [rbp + 0x590]
lea r8, [rbp + 0x28f]
call fcn.180001a40
test al, al
je 0x18000371d
cmp r15, qword [0x180021ea0]
jbe 0x18000371d
movzx ebx, byte [rbp + 0x68f]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp - 0x80]
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, 0x1fe
lea rcx, [rbp + 0x390]
call fcn.180005fa0
lea r9, [rbp + 0x390]
lea r8, str.DefPolicyPatch.x64
mov rdx, rsi
mov rcx, qword [0x180021eb8]
call fcn.1800016d0
test al, al
je 0x18000388c
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp + 0x48f]
call fcn.18000a3d0
test eax, eax
setne al
test al, al
je 0x18000388c
lea rcx, str.Patch_CDefPolicy::Query_r_n
call fcn.180001e30
lea r9, [rbp - 0x70]
lea r8, str.DefPolicyOffset.x64
mov rdx, rsi
mov rcx, qword [0x180021eb8]
call fcn.180001950
xor ecx, ecx
test al, al
cmovne ecx, dword [rbp + 0x97]
mov r15d, ecx
add r15, qword [0x180021ea0]
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp - 0x70]
call fcn.180005fa0
lea r9, [rbp - 0x70]
lea r8, str.DefPolicyCode.x64
mov rdx, rsi
mov rcx, qword [0x180021eb8]
call fcn.1800016d0
test al, al
je 0x18000388c
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x190]
call fcn.180005fa0
lea rax, [rbp - 0x70]
mov r8, rdi
nop
inc r8
cmp byte [rax + r8], 0
jne 0x180003800
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x190]
call fcn.180009880
lea rax, [rbp + 0x8f]
inc rdi
cmp byte [rax + rdi], 0
jne 0x180003821
mov r8, rdi
lea rdx, [rbp + 0x8f]
lea rcx, [rbp + 0x28f]
call fcn.180009880
lea r9, [rbp + 0x590]
lea r8, [rbp + 0x28f]
call fcn.180001a40
test al, al
je 0x18000388c
cmp r15, qword [0x180021ea0]
jbe 0x18000388c
movzx ebx, byte [rbp + 0x68f]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp - 0x80]
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, 0x1fe
lea rcx, [rbp + 0x990]
call fcn.180005fa0
lea r9, [rbp + 0x990]
lea r8, str.SLPolicyInternal.x64
mov rdx, rsi
mov rcx, qword [0x180021eb8]
call fcn.1800016d0
test al, al
je 0x1800039c8
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp + 0xa8f]
call fcn.18000a3d0
test eax, eax
setne al
test al, al
je 0x1800039c8
lea rcx, str.Hook_SLGetWindowsInformationDWORDWrapper_r_n
call fcn.180001e30
mov ecx, 0x400
call fcn.180003db4
mov rbx, rax
lea r9, [rbp - 0x70]
lea r8, str.SLPolicyOffset.x64
mov rdx, rsi
mov rcx, qword [0x180021eb8]
call fcn.180001950
xor ecx, ecx
test al, al
cmovne ecx, dword [rbp + 0x97]
mov edi, ecx
add rdi, qword [0x180021ea0]
mov word [rsp + 0x70], 0xb848
lea rax, [0x1800022f0]
mov qword [rsp + 0x72], rax
mov word [rsp + 0x7a], 0xc350
xor edx, edx
mov r8d, 0x400
mov rcx, rbx
call fcn.180005fa0
lea r9, [rbp + 0x390]
lea r8, str.SLPolicyFunc.x64
mov rdx, rsi
mov rcx, qword [0x180021eb8]
call fcn.180001880
mov rcx, rbx
test al, al
lea r8, str.New_Win8SL
je 0x180003987
lea r8, [rbp + 0x48f]
mov edx, 0x400
call fcn.18000a760
mov rcx, rbx
call fcn.180003dbc
cmp rdi, qword [0x180021ea0]
jbe 0x1800039c8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rsp + 0x70]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x390]
call fcn.180005fa0
lea r9, [rbp + 0x390]
lea r8, str.SLInitHook.x64
mov rdx, rsi
mov rcx, qword [0x180021eb8]
call fcn.1800016d0
test al, al
je 0x180003b23
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp + 0x48f]
call fcn.18000a3d0
test eax, eax
setne al
test al, al
je 0x180003b23
lea rcx, str.Hook_CSLQuery::Initialize_r_n
call fcn.180001e30
mov ecx, 0x400
call fcn.180003db4
mov rbx, rax
lea r9, [rbp - 0x70]
lea r8, str.SLInitOffset.x64
mov rdx, rsi
mov rcx, qword [0x180021eb8]
call fcn.180001950
xor ecx, ecx
test al, al
cmovne ecx, dword [rbp + 0x97]
mov edi, ecx
add rdi, qword [0x180021ea0]
mov word [rsp + 0x70], 0xb848
lea r15, [0x180002410]
mov qword [rsp + 0x72], r15
mov word [rsp + 0x7a], 0xc350
xor edx, edx
mov r8d, 0x400
mov rcx, rbx
call fcn.180005fa0
lea r9, [rbp + 0x990]
lea r8, str.SLInitFunc.x64
mov rdx, rsi
mov rcx, qword [0x180021eb8]
call fcn.180001880
mov rcx, rbx
test al, al
lea r8, str.New_CSLQuery_Initialize
je 0x180003ac3
lea r8, [rbp + 0xa8f]
mov edx, 0x400
call fcn.18000a760
lea rdx, str.New_CSLQuery_Initialize
mov rcx, rbx
call fcn.180013a90
mov rcx, qword [rsp + 0x72]
test eax, eax
cmovne rcx, r15
mov qword [rsp + 0x72], rcx
mov rcx, rbx
call fcn.180003dbc
cmp rdi, qword [0x180021ea0]
jbe 0x180003b23
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rsp + 0x70]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rsi
call fcn.180003dbc
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, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180003ba3
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 + 0x48]
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 0x180003ca0
mov dword [rsp + 0x50], 0x1c
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
mov r8d, dword [rsp + 0x58]
cmp r8d, esi
je 0x180003c19
cmp dword [rsp + 0x5c], r14d
jne 0x180003c19
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180003c19
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180003be2
mov rcx, rdi
jmp 0x180003c9a
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 3]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180003ca0
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], r12
lea r9, [rsp + 0x48]
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.180003d90
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