Function at 0x411c40
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, 0x1b0
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x1c0]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x58]
mov r8w, 1
mov dl, 1
mov rcx, qword [rsp + 0x1c0]
call sub.ntoskrnl.exe_RtlImageDirectoryEntryToData
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x411caa
xor eax, eax
jmp 0x412567
jmp 0x411cba
mov rax, qword [rsp + 0x60]
add rax, 0x14
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0xc], 0
je 0x412563
cmp dword [rsp + 0x68], 0
jl 0x412563
mov rax, qword [rsp + 0x60]
cmp dword [rax], 0
je 0x411cee
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov dword [rsp + 0x140], eax
jmp 0x411cfd
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x140], eax
mov eax, dword [rsp + 0x140]
mov rcx, qword [rsp + 0x1c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
mov word [rsp + 0xa8], 0
lea rax, [rsp + 0xaa]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov word [rsp + 0xc0], 0
lea rax, [rsp + 0xc2]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov word [rsp + 0x88], 0
lea rax, [rsp + 0x8a]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov word [rsp + 0x98], 0
lea rax, [rsp + 0x9a]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov dword [rsp + 0x80], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x1c0]
add rcx, rax
mov rax, rcx
mov rdx, rax
lea rcx, [rsp + 0x98]
call sub.ntoskrnl.exe_RtlInitAnsiString
mov r8b, 1
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0xa8]
call sub.ntoskrnl.exe_RtlAnsiStringToUnicodeString
movzx eax, byte [rsp + 0x1c8]
test eax, eax
jne 0x411e5e
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
xor r8d, r8d
mov rdx, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1e0]
call fcn.00411740
mov dword [rsp + 0x68], eax
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0xc0]
call fcn.00415550
cmp dword [rsp + 0x68], 0xc0000144
jne 0x411e5c
mov eax, 0xc0000225
jmp 0x412567
jmp 0x411e73
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0xc0]
call fcn.00409060
movzx eax, byte [rsp + 0x1c8]
test eax, eax
je 0x411e98
xor edx, edx
lea rcx, [rsp + 0xa8]
call fcn.00411b50
mov qword [rsp + 0x148], rax
jmp 0x411ebe
movzx r8d, byte [rsp + 0x1d8]
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x1d0]
call fcn.0040edb0
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x412165
movzx eax, byte [rsp + 0x1c8]
test eax, eax
jne 0x412165
mov eax, dword [rsp + 0x1e8]
and eax, 1
test eax, eax
je 0x411f8d
mov qword [rsp + 0xd0], 0
lea rax, [rsp + 0xd8]
mov rdi, rax
xor eax, eax
mov ecx, 0x50
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x1e8]
or eax, 0x8000
mov rcx, qword [rsp + 0x1f0]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0xd0]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x1e0]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x1d0]
call fcn.00415e10
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jl 0x411f88
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x70], rax
jmp 0x412165
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x412013
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x30]
add rax, 0x1010
mov rcx, qword [rsp + 0x1e0]
mov rcx, qword [rcx + 0x30]
mov qword [rcx + 0x1008], rax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x30]
mov word [rax + 0x1000], 0
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x30]
mov word [rax + 0x1002], 0x800
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x30]
add rax, 0x1000
lea rdx, [rsp + 0x88]
mov rcx, rax
call sub.ntoskrnl.exe_RtlCopyUnicodeString
jmp 0x4120b4
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x30]
add rax, 0x1010
mov rcx, qword [rsp + 0x1e0]
mov rcx, qword [rcx + 0x30]
mov dword [rcx + 0x1004], eax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x30]
mov word [rax + 0x1002], 0x800
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x30]
movzx ecx, word [rsp + 0x88]
mov word [rax + 0x1000], cx
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x30]
add rax, 0x1010
mov r8d, 0x800
xor edx, edx
mov rcx, rax
call fcn.00431d40
movzx eax, word [rsp + 0x88]
mov rcx, qword [rsp + 0x1e0]
mov rcx, qword [rcx + 0x30]
add rcx, 0x1010
mov r8, rax
mov rdx, qword [rsp + 0x90]
call fcn.004319d0
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x30]
mov dword [rax + 0x1860], 0
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x30]
add rax, 0x1858
mov rcx, qword [rsp + 0x1e0]
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 + 0x1e0]
mov r8, qword [rax + 0x50]
mov rdx, qword [rsp + 0x1e0]
mov ecx, 1
call fcn.00412db0
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x30]
mov rax, qword [rax + 0x1858]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x412165
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x30]
mov eax, dword [rax + 0x1860]
mov dword [rsp + 0x68], eax
cmp qword [rsp + 0x70], 0
jne 0x412177
mov eax, 0xc0000225
jmp 0x412567
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x41219c
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0x150], rax
jmp 0x4121ae
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax]
mov qword [rsp + 0x150], rax
cmp qword [rsp + 0x150], 0
je 0x41255e
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x4121e2
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0x158], rax
jmp 0x4121f4
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax]
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x1c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x138], rax
mov qword [rsp + 0x130], 0
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x412243
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0x160], rax
jmp 0x412255
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax]
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x412279
movabs rax, 0x8000000000000000
mov qword [rsp + 0x168], rax
jmp 0x412286
mov eax, 0x80000000
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
cmp qword [rsp + 0x160], rax
jae 0x4122bb
mov rax, qword [rsp + 0x138]
movzx eax, byte [rax + 2]
test eax, eax
je 0x4122bb
mov rax, qword [rsp + 0x138]
add rax, 2
mov qword [rsp + 0x78], rax
jmp 0x412305
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x4122e0
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0x170], rax
jmp 0x4122f2
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax]
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x170]
and rax, 0xffff
mov qword [rsp + 0x78], rax
movzx eax, byte [rsp + 0x1c8]
test eax, eax
je 0x41231f
mov qword [rsp + 0x178], 0
jmp 0x412332
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax]
mov qword [rsp + 0x178], rax
movzx eax, byte [rsp + 0x1c8]
test eax, eax
je 0x412351
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x180], rax
jmp 0x41235e
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x180], rax
lea r9, [rsp + 0xc0]
mov r8, qword [rsp + 0x178]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x180]
call fcn.0040f250
mov qword [rsp + 0x130], rax
cmp qword [rsp + 0x130], 0
jne 0x4123a0
mov dword [rsp + 0x68], 0xc0000225
jmp 0x41255e
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x412447
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x10], 0
je 0x4123ea
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x1c0]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x130]
mov qword [rax + rcx], rdx
jmp 0x412442
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x41240f
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0x188], rax
jmp 0x412421
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax]
mov qword [rsp + 0x188], rax
mov rax, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x1c0]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x130]
mov qword [rax], rcx
jmp 0x4124d1
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x10], 0
je 0x41247b
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x1c0]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x80]
mov edx, dword [rsp + 0x130]
mov dword [rax + rcx], edx
jmp 0x4124d1
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x4124a0
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0x190], rax
jmp 0x4124b2
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax]
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x1c0]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x130]
mov dword [rax], ecx
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x4124ef
mov qword [rsp + 0x198], 8
jmp 0x4124fb
mov qword [rsp + 0x198], 4
mov rax, qword [rsp + 0x198]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x412537
mov qword [rsp + 0x1a0], 8
jmp 0x412543
mov qword [rsp + 0x1a0], 4
mov eax, dword [rsp + 0x80]
add rax, qword [rsp + 0x1a0]
mov dword [rsp + 0x80], eax
jmp 0x412177
jmp 0x411cac
mov eax, dword [rsp + 0x68]
add rsp, 0x1b0
pop rdi
ret