Function at 0x140012710
Capabilities:
Access pe header

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x1f8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1e8], rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x1d0], 0
mov rcx, qword [rsp + 0x210]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x1d0]
mov r8w, 1
mov dl, 1
mov rcx, qword [rsp + 0x210]
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140012795
xor eax, eax
jmp 0x140013227
jmp 0x1400127a5
mov rax, qword [rsp + 0x58]
add rax, 0x14
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax + 0xc], 0
je 0x140013223
cmp dword [rsp + 0x40], 0
jl 0x140013223
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0
je 0x1400127d6
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x70], eax
jmp 0x1400127e2
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x210]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x1b0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x1c0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x138]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x1d8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x80], 0
lea rax, [rsp + 0x130]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x210]
add rcx, rax
mov rax, rcx
mov rdx, rax
lea rcx, [rsp + 0x1d8]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x1d8]
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
movzx eax, byte [rsp + 0x218]
test eax, eax
jne 0x140012942
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x1b0]
xor r8d, r8d
mov rdx, qword [rsp + 0x220]
mov rcx, qword [rsp + 0x230]
call fcn.140012240
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x1c0]
call fcn.140013c00
cmp dword [rsp + 0x40], 0xc0000144
jne 0x140012940
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov eax, 0xc0000225
jmp 0x140013227
jmp 0x140012958
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x1c0]
call fcn.140013960
nop
movzx eax, byte [rsp + 0x218]
test eax, eax
je 0x14001297d
xor edx, edx
lea rcx, [rsp + 0x1b0]
call fcn.14000dde0
mov qword [rsp + 0x98], rax
jmp 0x1400129a3
movzx r8d, byte [rsp + 0x228]
lea rdx, [rsp + 0x138]
mov rcx, qword [rsp + 0x220]
call fcn.14000df30
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x130], rax
cmp qword [rsp + 0x130], 0
jne 0x140012c68
movzx eax, byte [rsp + 0x218]
test eax, eax
jne 0x140012c68
mov eax, dword [rsp + 0x238]
and eax, 1
test eax, eax
je 0x140012a5d
lea rax, [rsp + 0x150]
mov rdi, rax
xor eax, eax
mov ecx, 0x58
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x238]
bts eax, 0xf
lea rcx, [rsp + 0x150]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x230]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x1c0]
mov rcx, qword [rsp + 0x220]
call fcn.14000fc20
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x140012a58
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x130], rax
jmp 0x140012c68
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x20], rax
lea r9, [0x140015b00]
lea r8, [0x140015b20]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140012af0
mov rax, qword [rsp + 0x230]
mov rax, qword [rax + 0x30]
add rax, 0x1010
mov rcx, qword [rsp + 0x230]
mov rcx, qword [rcx + 0x30]
add rcx, 0x1000
mov r8w, 0x800
mov rdx, rax
call fcn.140002ad0
mov rax, qword [rsp + 0x230]
mov rax, qword [rax + 0x30]
add rax, 0x1000
lea rdx, [rsp + 0x138]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
nop
jmp 0x140012b8f
mov rax, qword [rsp + 0x230]
mov rax, qword [rax + 0x30]
add rax, 0x1010
mov rcx, qword [rsp + 0x230]
mov rcx, qword [rcx + 0x30]
mov dword [rcx + 0x1004], eax
mov rax, qword [rsp + 0x230]
mov rax, qword [rax + 0x30]
mov ecx, 0x800
mov word [rax + 0x1002], cx
mov rax, qword [rsp + 0x230]
mov rax, qword [rax + 0x30]
movzx ecx, word [rsp + 0x138]
mov word [rax + 0x1000], cx
mov rax, qword [rsp + 0x230]
mov rax, qword [rax + 0x30]
add rax, 0x1010
mov rdi, rax
xor eax, eax
mov ecx, 0x800
rep stosb byte [rdi], al
movzx eax, word [rsp + 0x138]
mov rcx, qword [rsp + 0x230]
mov rcx, qword [rcx + 0x30]
add rcx, 0x1010
mov rdi, rcx
mov rsi, qword [rsp + 0x140]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x230]
mov rax, qword [rax + 0x30]
mov dword [rax + 0x1860], 0
mov rax, qword [rsp + 0x230]
movzx eax, byte [rax + 0x59]
test eax, eax
jne 0x140012bbf
mov dword [rsp + 0x74], 1
jmp 0x140012bc7
mov dword [rsp + 0x74], 0
mov rax, qword [rsp + 0x230]
mov rax, qword [rax + 0x30]
add rax, 0x1858
mov rcx, qword [rsp + 0x230]
mov rcx, qword [rcx + 0x30]
add rcx, 0x1000
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 4
mov rax, qword [rsp + 0x230]
mov r8, qword [rax + 0x50]
mov rdx, qword [rsp + 0x230]
movzx ecx, byte [rsp + 0x74]
call fcn.14000f0d0
mov rax, qword [rsp + 0x230]
mov rax, qword [rax + 0x30]
mov rax, qword [rax + 0x1858]
mov qword [rsp + 0x130], rax
cmp qword [rsp + 0x130], 0
jne 0x140012c68
mov rax, qword [rsp + 0x230]
mov rax, qword [rax + 0x30]
mov eax, dword [rax + 0x1860]
mov dword [rsp + 0x40], eax
cmp qword [rsp + 0x130], 0
jne 0x140012ce6
lea rax, [rsp + 0x100]
lea rcx, [rsp + 0x1b0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [0x140015b00]
lea r8, [0x140015b50]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov eax, 0xc0000225
jmp 0x140013227
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140012d08
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0xa0], rax
jmp 0x140012d17
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x140013201
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140012d48
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0xa8], rax
jmp 0x140012d57
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x210]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140012d9d
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0xb8], rax
jmp 0x140012dac
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140012dd0
movabs rax, 0x8000000000000000
mov qword [rsp + 0xb0], rax
jmp 0x140012ddd
mov eax, 0x80000000
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rsp + 0xb8], rax
jae 0x140012e19
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
movsx eax, byte [rcx + rax + 2]
test eax, eax
je 0x140012e19
mov rax, qword [rsp + 0x78]
add rax, 2
mov qword [rsp + 0x80], rax
jmp 0x140012e60
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140012e3b
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0xc0], rax
jmp 0x140012e4a
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
and rax, 0xffff
mov qword [rsp + 0x80], rax
movzx eax, byte [rsp + 0x218]
test eax, eax
je 0x140012e7a
mov qword [rsp + 0xc8], 0
jmp 0x140012e8d
mov rax, qword [rsp + 0x230]
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
movzx eax, byte [rsp + 0x218]
test eax, eax
je 0x140012eaf
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0xd0], rax
jmp 0x140012ebf
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0xd0], rax
lea r9, [rsp + 0x1c0]
mov r8, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xd0]
call fcn.14000d7d0
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140013070
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140012f17
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0xe0], rax
jmp 0x140012f26
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140012f4a
movabs rax, 0x8000000000000000
mov qword [rsp + 0xd8], rax
jmp 0x140012f57
mov eax, 0x80000000
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
cmp qword [rsp + 0xe0], rax
jae 0x140012fd9
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
movsx eax, byte [rcx + rax + 2]
test eax, eax
je 0x140012fd9
mov rax, qword [rsp + 0x78]
add rax, 2
lea rcx, [rsp + 0x110]
lea rdx, [rsp + 0x1b0]
mov rdi, rcx
mov rsi, rdx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x20], rax
lea r9, [0x140015b00]
lea r8, [0x140015b90]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
nop
jmp 0x140013063
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140012ffb
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0xe8], rax
jmp 0x14001300a
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
and rax, 0xffff
lea rcx, [rsp + 0x120]
lea rdx, [rsp + 0x1b0]
mov rdi, rcx
mov rsi, rdx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x120]
mov qword [rsp + 0x20], rax
lea r9, [0x140015b00]
lea r8, [0x140015bd0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
nop
mov dword [rsp + 0x40], 0xc0000225
jmp 0x140013201
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140013105
mov rax, qword [rsp + 0x58]
cmp dword [rax + 0x10], 0
je 0x1400130b4
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x210]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov qword [rax + rcx], rdx
jmp 0x140013103
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x1400130d6
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0xf0], rax
jmp 0x1400130e5
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x210]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
jmp 0x140013180
mov rax, qword [rsp + 0x58]
cmp dword [rax + 0x10], 0
je 0x140013133
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x210]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x60]
mov edx, dword [rsp + 0x68]
mov dword [rax + rcx], edx
jmp 0x140013180
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140013155
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0xf8], rax
jmp 0x140013164
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x210]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x68]
mov dword [rax], ecx
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x14001319e
mov qword [rsp + 0x88], 8
jmp 0x1400131aa
mov qword [rsp + 0x88], 4
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x1400131e0
mov qword [rsp + 0x90], 8
jmp 0x1400131ec
mov qword [rsp + 0x90], 4
mov eax, dword [rsp + 0x60]
add rax, qword [rsp + 0x90]
mov dword [rsp + 0x60], eax
jmp 0x140012ce6
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
nop
jmp 0x140012797
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x1e8]
xor rcx, rsp
call fcn.140001670
add rsp, 0x1f8
pop rdi
pop rsi
ret