Function at 0x14023b310
Capabilities:
Get disk information
Get thread local storage value
Write file on windows

Disassembly:
mov word [rsp + 0x18], r8w
mov byte [rsp + 0x10], dl
mov byte [rsp + 8], cl
sub rsp, 0x1e8
mov byte [rsp + 0x48], 2
movabs rax, 0x98aeab503df4af51
mov qword [rsp + 0x58], rax
mov eax, 0xcaa
mov word [rsp + 0x44], ax
movzx eax, word [rsp + 0x44]
cmp eax, 0x950
jge 0x14023b3e3
mov eax, 0x7606
mov word [rsp + 0x200], ax
lea r9, [rsp + 0x90]
mov r8d, 0x53
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x90]
call sub.WINSPOOL.DRV_ReadPrinter
mov dword [rsp + 0x64], eax
movzx r8d, word [rsp + 0x200]
movzx edx, byte [rsp + 0x1f0]
movzx ecx, byte [rsp + 0x1f0]
call fcn.14023b310
movzx eax, word [rsp + 0x44]
sub eax, 0x609
mov word [rsp + 0x44], ax
movzx r8d, word [rsp + 0x200]
movzx edx, byte [rsp + 0x1f8]
movzx ecx, byte [rsp + 0x1f0]
call fcn.14023b310
mov rcx, qword [rsp + 0xf8]
call sub.WINSPOOL.DRV_FindClosePrinterChangeNotification
mov dword [rsp + 0x78], eax
movabs rax, 0x62240b2ec994edf9
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
movzx eax, byte [0x140288008]
mov byte [rsp + 0x40], al
movsx eax, word [rsp + 0x200]
cmp eax, 0x38f1
jg 0x14023b48a
mov dword [rsp + 0x4c], 0x52d29d03
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0xd0], al
cmp byte [rsp + 0xd0], 0x5f
je 0x14023b437
jmp 0x14023b48a
movzx eax, byte [rsp + 0x1f0]
mov byte [rsp + 0x1f8], al
movzx r8d, word [rsp + 0x200]
movzx edx, byte [rsp + 0x1f0]
movzx ecx, byte [rsp + 0x1f8]
call fcn.14023b310
mov eax, dword [rsp + 0x4c]
and eax, 0x6627ccad
mov dword [rsp + 0x4c], eax
mov edx, 0xac
mov rcx, qword [rsp + 0x148]
call sub.WINSPOOL.DRV_ScheduleJob
mov dword [rsp + 0xe0], eax
cmp dword [rsp + 0x4c], 0x3667668
je 0x14023bba9
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x98], al
cmp byte [rsp + 0x98], 0xe3
je 0x14023b4c1
cmp byte [rsp + 0x98], 0x59
je 0x14023ba8b
jmp 0x14023bb5c
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0xd8], eax
cmp dword [rsp + 0xd8], 0xc17ccfb
je 0x14023b4e3
jmp 0x14023b555
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0xc4], al
cmp byte [rsp + 0xc4], 0x78
je 0x14023b4fb
jmp 0x14023b545
movzx eax, word [rsp + 0x44]
add eax, 0xcd1
mov word [rsp + 0x44], ax
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0xf8]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetProcessWorkingSetSize]
mov dword [rsp + 0x64], eax
movabs rax, 0x549c1fb921c00764
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x14023b553
movsx eax, byte [0x140288008]
and eax, 0x2b
mov byte [rsp + 0x40], al
jmp 0x14023b5b3
movsx eax, word [rsp + 0x200]
mov dword [rsp + 0xdc], eax
cmp dword [rsp + 0xdc], 0
je 0x14023b570
jmp 0x14023b5a6
movabs rax, 0x690dab9a0a07493e
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0xf0], rax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x88], rax
jmp 0x14023b5b3
call qword [sym.imp.KERNEL32.dll_AreFileApisANSI]
mov dword [rsp + 0xe0], eax
movzx eax, byte [rsp + 0x1f8]
mov byte [rsp + 0x49], al
movsx eax, byte [rsp + 0x40]
add eax, 0x4e
movsx ecx, byte [0x140288008]
cmp eax, ecx
jne 0x14023b5dd
call fcn.14023a860
nop
jmp 0x14023b6a4
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x60]
jg 0x14023b6a4
movzx eax, byte [rsp + 0x49]
movzx ecx, byte [rsp + 0x1f8]
sub eax, ecx
movzx ecx, byte [rsp + 0x1f0]
cmp eax, ecx
je 0x14023b64b
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x4c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x60], eax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [rsp + 0x70], eax
movabs rax, 0x232535ffff037652
mov rcx, qword [rsp + 0x58]
xor rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xf0]
mov qword [rcx], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x108], rax
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x70]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov qword [rsp + 0x128], rax
movzx eax, byte [rsp + 0x1f8]
movzx ecx, byte [rsp + 0x49]
shl eax, cl
mov byte [rsp + 0x48], al
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x54], al
lea rax, [rsp + 0x44]
mov qword [rsp + 0x68], rax
movzx eax, byte [rsp + 0x48]
mov byte [rsp + 0x9c], al
cmp byte [rsp + 0x9c], 0
je 0x14023b6cd
cmp byte [rsp + 0x9c], 0x3d
je 0x14023b76c
jmp 0x14023b8ca
movzx eax, byte [rsp + 0x49]
mov byte [rsp + 0xa0], al
cmp byte [rsp + 0xa0], 0
je 0x14023b6ef
cmp byte [rsp + 0xa0], 0x73
je 0x14023b726
jmp 0x14023b767
lea rax, [rsp + 0x50]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x120], rax
mov dword [rsp + 0xa8], 0xe10b1fad
jmp 0x14023b767
movzx eax, byte [rsp + 0x48]
movzx ecx, byte [rsp + 0x1f8]
sar eax, cl
mov byte [rsp + 0x49], al
mov rax, qword [rsp + 0x68]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x44]
and eax, ecx
mov rcx, qword [rsp + 0x68]
mov word [rcx], ax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov dword [rsp + 0x64], eax
jmp 0x14023b8ca
movsx eax, byte [rsp + 0x54]
movsx ecx, byte [0x140288008]
sub eax, ecx
mov byte [rsp + 0x40], al
movzx eax, word [rsp + 0x44]
mov rcx, qword [rsp + 0x68]
movzx ecx, word [rcx]
add eax, ecx
mov rcx, qword [rsp + 0x88]
movzx ecx, word [rcx]
cmp eax, ecx
jl 0x14023b8ca
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x100], rax
movabs rax, 0xe7193921871db7
cmp qword [rsp + 0x100], rax
je 0x14023b7e1
movabs rax, 0x765a2546429fc6df
cmp qword [rsp + 0x100], rax
je 0x14023b899
jmp 0x14023b8ca
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
add rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x118], rax
movabs rax, 0x6841a53249a14014
cmp qword [rsp + 0x118], rax
je 0x14023b828
jmp 0x14023b87c
mov rax, qword [rsp + 0x88]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x68]
movzx ecx, word [rcx]
sub eax, ecx
mov word [rsp + 0x44], ax
lea rdx, [rsp + 0x160]
mov ecx, 0x6c
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rax]
and rax, rcx
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
jmp 0x14023b897
mov rax, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x128], rax
jmp 0x14023b8ca
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
add rax, qword [rsp + 0xb0]
cmp rax, qword [rsp + 0x108]
jge 0x14023b9c2
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0xe4], eax
cmp dword [rsp + 0xe4], 0
je 0x14023b905
jmp 0x14023b9a6
lea rax, [rsp + 0x74]
mov qword [rsp + 0x130], rax
movsx eax, word [rsp + 0x200]
mov dword [rsp + 0xa4], eax
cmp dword [rsp + 0xa4], 0x1f13
je 0x14023b99e
cmp dword [rsp + 0xa4], 0x22b4
je 0x14023b93d
jmp 0x14023b9a4
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov r8d, 0xc0
lea rdx, [rsp + 0x130]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x110], eax
mov rax, qword [rsp + 0x88]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x68]
movzx ecx, word [rcx]
or eax, ecx
mov word [rsp + 0x44], ax
jmp 0x14023b9a4
call fcn.14023a860
nop
jmp 0x14023b9c0
mov rax, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x70]
mov eax, dword [rax]
xor eax, ecx
mov rcx, qword [rsp + 0xb8]
mov dword [rcx], eax
jmp 0x14023ba1a
movzx eax, word [rsp + 0x44]
mov rcx, qword [rsp + 0x68]
movzx ecx, word [rcx]
add eax, ecx
mov rcx, qword [rsp + 0x88]
movzx ecx, word [rcx]
cmp eax, ecx
jge 0x14023ba1a
movzx eax, byte [rsp + 0x48]
movzx ecx, byte [rsp + 0x1f0]
shl eax, cl
mov byte [rsp + 0x49], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x114], eax
mov rax, qword [rsp + 0x68]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x88]
movzx ecx, word [rcx]
sar eax, cl
mov word [rsp + 0x44], ax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0xe8], eax
cmp dword [rsp + 0xe8], 0x264aefa5
je 0x14023ba36
jmp 0x14023ba4e
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax]
add eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xb8]
mov dword [rcx], eax
mov ecx, 0xd2
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x158], rax
movzx eax, word [rsp + 0x44]
mov rcx, qword [rsp + 0x68]
movzx ecx, word [rcx]
and eax, ecx
mov rcx, qword [rsp + 0x88]
mov word [rcx], ax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x74], eax
jmp 0x14023bb5c
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x138], rax
movabs rax, 0xcb668036e00922f
cmp qword [rsp + 0x138], rax
je 0x14023baae
jmp 0x14023bab3
jmp 0x14023bb42
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x78]
mov r8d, 0xbb
lea rdx, [rsp + 0x4c]
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_BackupRead]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x4c]
sar eax, 1
mov dword [rsp + 0x4c], eax
movsx eax, word [rsp + 0x200]
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0x74e9
je 0x14023bb17
jmp 0x14023bb19
jmp 0x14023bb1f
call fcn.14023a860
nop
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov dword [rsp + 0xd4], eax
mov eax, dword [rsp + 0xd4]
mov dword [rsp + 0xc8], eax
movabs rax, 0x26c9ed5725c4205a
mov rcx, qword [rsp + 0x58]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea r9, [rsp + 0x40]
mov r8d, 0x66
mov edx, 0xc3
mov rcx, qword [rsp + 0x148]
call sub.WINSPOOL.DRV_FindFirstPrinterChangeNotification
mov qword [rsp + 0x90], rax
mov eax, 0x3149
mov word [rsp + 0x200], ax
mov r9, qword [rsp + 0x58]
movzx r8d, byte [rsp + 0x40]
mov edx, 0xbd
movzx ecx, word [rsp + 0x44]
call fcn.14023ada0
nop
movzx r8d, word [rsp + 0x200]
movzx edx, byte [rsp + 0x1f8]
movzx ecx, byte [rsp + 0x1f0]
call fcn.14023b310
nop
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0xcc], al
cmp byte [rsp + 0xcc], 0x43
je 0x14023bbe2
jmp 0x14023bc0d
movzx r8d, word [rsp + 0x200]
movzx edx, byte [rsp + 0x1f8]
movzx ecx, byte [rsp + 0x1f8]
call fcn.14023b310
movzx eax, word [rsp + 0x44]
shl eax, 0xc
mov word [rsp + 0x44], ax
movzx eax, word [rsp + 0x44]
or eax, 0xf43
mov word [rsp + 0x44], ax
lea r9, [rsp + 0x64]
mov r8d, 0x86
mov edx, 0xcb
mov rcx, qword [rsp + 0x150]
call sub.WINSPOOL.DRV_FindFirstPrinterChangeNotification
mov qword [rsp + 0x90], rax
movsx eax, byte [0x140288008]
add rsp, 0x1e8
ret