Function at 0x140007780
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 rdi
sub rsp, 0x1a0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x90], 0
mov rcx, qword [rsp + 0x1b0]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x58], rax
lea r9, [rsp + 0x90]
mov r8w, 1
mov dl, 1
mov rcx, qword [rsp + 0x1b0]
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400077f2
xor eax, eax
jmp 0x14000808d
jmp 0x140007802
mov rax, qword [rsp + 0x50]
add rax, 0x14
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0xc], 0
je 0x140008089
cmp dword [rsp + 0x40], 0
jl 0x140008089
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0
je 0x140007833
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
mov dword [rsp + 0x78], eax
jmp 0x14000783f
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x1b0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x128]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x98], 0
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x1b0]
add rcx, rax
mov rax, rcx
mov rdx, rax
lea rcx, [rsp + 0x128]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x128]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
movzx eax, byte [rsp + 0x1b8]
test eax, eax
jne 0x14000799c
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa0]
xor r8d, r8d
mov rdx, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x1d0]
call fcn.140007360
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x80]
call fcn.140008a20
cmp dword [rsp + 0x40], 0xc0000144
jne 0x14000799a
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov eax, 0xc0000225
jmp 0x14000808d
jmp 0x1400079b1
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x80]
call fcn.1400085e0
movzx eax, byte [rsp + 0x1b8]
test eax, eax
je 0x1400079d6
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.1400057d0
mov qword [rsp + 0xc0], rax
jmp 0x1400079fc
movzx r8d, byte [rsp + 0x1c8]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x1c0]
call fcn.1400058c0
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140007c8e
movzx eax, byte [rsp + 0x1b8]
test eax, eax
jne 0x140007c8e
mov eax, dword [rsp + 0x1d8]
and eax, 1
test eax, eax
je 0x140007aad
lea rax, [rsp + 0x140]
mov rdi, rax
xor eax, eax
mov ecx, 0x58
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x1d8]
bts eax, 0xf
lea rcx, [rsp + 0x140]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x1d0]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x1c0]
call fcn.140004190
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x140007aa8
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x68], rax
jmp 0x140007c8e
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140007b17
mov rax, qword [rsp + 0x1d0]
mov rax, qword [rax + 0x30]
add rax, 0x1010
mov rcx, qword [rsp + 0x1d0]
mov rcx, qword [rcx + 0x30]
add rcx, 0x1000
mov r8w, 0x800
mov rdx, rax
call fcn.14000aba0
mov rax, qword [rsp + 0x1d0]
mov rax, qword [rax + 0x30]
add rax, 0x1000
lea rdx, [rsp + 0xb0]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
jmp 0x140007bbb
mov rax, qword [rsp + 0x1d0]
mov rax, qword [rax + 0x30]
add rax, 0x1010
mov rcx, qword [rsp + 0x1d0]
mov rcx, qword [rcx + 0x30]
mov dword [rcx + 0x1004], eax
mov rax, qword [rsp + 0x1d0]
mov rax, qword [rax + 0x30]
mov ecx, 0x800
mov word [rax + 0x1002], cx
mov rax, qword [rsp + 0x1d0]
mov rax, qword [rax + 0x30]
movzx ecx, word [rsp + 0xb0]
mov word [rax + 0x1000], cx
mov rax, qword [rsp + 0x1d0]
mov rax, qword [rax + 0x30]
add rax, 0x1010
mov r8d, 0x800
xor edx, edx
mov rcx, rax
call fcn.1400135c0
movzx eax, word [rsp + 0xb0]
mov rcx, qword [rsp + 0x1d0]
mov rcx, qword [rcx + 0x30]
add rcx, 0x1010
mov r8d, eax
mov rdx, qword [rsp + 0xb8]
call fcn.1400136c0
mov rax, qword [rsp + 0x1d0]
mov rax, qword [rax + 0x30]
mov dword [rax + 0x1860], 0
mov rax, qword [rsp + 0x1d0]
movzx eax, byte [rax + 0x59]
test eax, eax
jne 0x140007beb
mov dword [rsp + 0x7c], 1
jmp 0x140007bf3
mov dword [rsp + 0x7c], 0
mov rax, qword [rsp + 0x1d0]
mov rax, qword [rax + 0x30]
add rax, 0x1858
mov rcx, qword [rsp + 0x1d0]
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 + 0x1d0]
mov r8, qword [rax + 0x50]
mov rdx, qword [rsp + 0x1d0]
movzx ecx, byte [rsp + 0x7c]
call fcn.1400037f0
mov rax, qword [rsp + 0x1d0]
mov rax, qword [rax + 0x30]
mov rax, qword [rax + 0x1858]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140007c8e
mov rax, qword [rsp + 0x1d0]
mov rax, qword [rax + 0x30]
mov eax, dword [rax + 0x1860]
mov dword [rsp + 0x40], eax
cmp qword [rsp + 0x68], 0
jne 0x140007cbc
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov eax, 0xc0000225
jmp 0x14000808d
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140007cde
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
jmp 0x140007ced
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0
je 0x140008068
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140007d1e
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0xd0], rax
jmp 0x140007d2d
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x1b0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140007d76
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0xe0], rax
jmp 0x140007d85
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140007da9
movabs rax, 0x8000000000000000
mov qword [rsp + 0xd8], rax
jmp 0x140007db6
mov eax, 0x80000000
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
cmp qword [rsp + 0xe0], rax
jae 0x140007df8
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0xe8]
movsx eax, byte [rcx + rax + 2]
test eax, eax
je 0x140007df8
mov rax, qword [rsp + 0xe8]
add rax, 2
mov qword [rsp + 0x98], rax
jmp 0x140007e3f
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140007e1a
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0xf0], rax
jmp 0x140007e29
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
and rax, 0xffff
mov qword [rsp + 0x98], rax
movzx eax, byte [rsp + 0x1b8]
test eax, eax
je 0x140007e59
mov qword [rsp + 0xf8], 0
jmp 0x140007e6c
mov rax, qword [rsp + 0x1d0]
mov rax, qword [rax]
mov qword [rsp + 0xf8], rax
movzx eax, byte [rsp + 0x1b8]
test eax, eax
je 0x140007e8b
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x100], rax
jmp 0x140007e98
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x100], rax
lea r9, [rsp + 0x80]
mov r8, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x100]
call fcn.140005260
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140007ed7
mov dword [rsp + 0x40], 0xc0000225
jmp 0x140008068
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140007f6c
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x10], 0
je 0x140007f1b
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x1b0]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
mov qword [rax + rcx], rdx
jmp 0x140007f6a
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140007f3d
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x108], rax
jmp 0x140007f4c
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x1b0]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x70]
mov qword [rax], rcx
jmp 0x140007fe7
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x10], 0
je 0x140007f9a
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x1b0]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x60]
mov edx, dword [rsp + 0x70]
mov dword [rax + rcx], edx
jmp 0x140007fe7
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140007fbc
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x110], rax
jmp 0x140007fcb
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x1b0]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x70]
mov dword [rax], ecx
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140008005
mov qword [rsp + 0x118], 8
jmp 0x140008011
mov qword [rsp + 0x118], 4
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140008047
mov qword [rsp + 0x120], 8
jmp 0x140008053
mov qword [rsp + 0x120], 4
mov eax, dword [rsp + 0x60]
add rax, qword [rsp + 0x120]
mov dword [rsp + 0x60], eax
jmp 0x140007cbc
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
jmp 0x1400077f4
mov eax, dword [rsp + 0x40]
add rsp, 0x1a0
pop rdi
ret