Function at 0x140003dbc
Capabilities:
Contain obfuscated stackstrings
Get file attributes
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x788]
sub rsp, 0x860
mov rax, qword [0x14007a2b0]
xor rax, rsp
mov qword [rbp + 0x750], rax
xor eax, eax
xor r15d, r15d
mov qword [rbp - 8], rax
mov rdi, rcx
mov qword [rbp], rax
mov r12d, r15d
mov qword [rbp - 0x68], rax
mov r13d, r15d
mov qword [rbp - 0x60], rax
test rcx, rcx
je 0x140004273
lea ebx, [rax + 0x7d]
mov dword [rsp + 0x70], 0x4e0018
mov word [rbp - 0x70], bx
lea ecx, [rax + 0x18]
mov dword [rsp + 0x74], 0x74006d
lea esi, [rax + 1]
mov dword [rsp + 0x78], 0x790073
mov dword [rsp + 0x7c], 0x5c0076
mov dword [rbp - 0x80], 0x71006a
mov dword [rbp - 0x7c], 0x7d006e
mov dword [rbp - 0x78], 0x56006a
mov dword [rbp - 0x74], 0x750079
mov dword [rbp - 0x6e], eax
xor word [rsp + rax*2 + 0x72], cx
add rax, rsi
cmp rax, 0x10
jae 0x140003e7b
movzx ecx, word [rsp + 0x70]
jmp 0x140003e66
mov r14d, 0x20a
mov word [rbp - 0x6e], r15w
mov r8d, r14d
lea rcx, [rbp + 0x120]
xor edx, edx
call fcn.140034240
lea rdx, [rbp + 0x120]
lea rcx, [rsp + 0x72]
call fcn.1400039ec
test al, al
jne 0x140003eb6
mov ebx, 0xa
jmp 0x140004288
mov r8, r14
lea rcx, [rbp + 0x540]
xor edx, edx
call fcn.140034240
mov r8, r14
lea rcx, [rbp + 0x330]
xor edx, edx
call fcn.140034240
mov ecx, 0x21
mov dword [rsp + 0x60], 0x21007d
xor eax, eax
mov word [rsp + 0x68], cx
mov dword [rsp + 0x6a], eax
mov dword [rsp + 0x64], 0x420042
xor word [rsp + rax*2 + 0x62], bx
add rax, rsi
cmp rax, 4
jae 0x140003f0d
movzx ebx, word [rsp + 0x60]
jmp 0x140003ef8
mov r14d, 0x82
mov word [rsp + 0x6a], r15w
lea r8, [rsp + 0x62]
mov edx, r14d
lea rax, [rbp + 0x330]
sub r8, rax
lea rcx, [rbp + 0x330]
lea rax, [rdx + 0x7fffff7c]
test rax, rax
je 0x140003f54
movzx eax, word [rcx + r8]
test ax, ax
je 0x140003f54
mov word [rcx], ax
add rcx, 2
sub rdx, rsi
jne 0x140003f32
test rdx, rdx
lea rax, [rcx - 2]
lea r8, [rbp + 0x120]
mov edx, 0x100
cmovne rax, rcx
lea rcx, [rbp + 0x330]
mov word [rax], r15w
call fcn.14000372c
lea r8, [rbp + 0x330]
mov rdx, r14
lea rax, [rbp + 0x540]
sub r8, rax
lea rcx, [rbp + 0x540]
test rdx, rdx
je 0x140003fb1
movzx eax, word [rcx + r8]
test ax, ax
je 0x140003fb1
mov word [rcx], ax
add rcx, 2
sub rdx, rsi
jne 0x140003f96
test rdx, rdx
lea rax, [rcx - 2]
lea rdx, [rbp + 0x540]
cmovne rax, rcx
lea rcx, [rbp - 8]
mov word [rax], r15w
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ebx, 0x30
mov qword [rsp + 0x60], r15
mov r8d, ebx
lea rcx, [rbp - 0x58]
xor edx, edx
call fcn.140034240
xor eax, eax
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x48], r15
lea r9, [rbp - 0x18]
mov dword [rsp + 0x40], 0x20
lea r8, [rbp - 0x58]
mov dword [rsp + 0x38], esi
lea rcx, [rsp + 0x60]
mov qword [rbp - 0x18], rax
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
mov edx, 0x80000000
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
lea rax, [rbp - 8]
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], 0x80
mov qword [rbp - 0x48], rax
mov qword [rsp + 0x20], r15
mov dword [rbp - 0x58], ebx
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x40], 0x240
movdqu xmmword [rbp - 0x38], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov esi, eax
mov ebx, 5
test eax, eax
js 0x140004131
mov rcx, qword [rsp + 0x60]
lea r9d, [rbx + 0x13]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x20], ebx
lea rdx, [rbp - 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov esi, eax
test eax, eax
jns 0x14000409f
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x140004131
mov edx, dword [rsp + 0x78]
xor ecx, ecx
mov r8d, 0x53484d45
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rcx, qword [rsp + 0x60]
mov r15, rax
test rax, rax
jne 0x1400040c9
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x140004278
and qword [rsp + 0x40], r12
xor r9d, r9d
and qword [rsp + 0x38], r12
xor r8d, r8d
mov eax, dword [rsp + 0x78]
xor edx, edx
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov esi, eax
test eax, eax
jns 0x140004118
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor r15d, r15d
jmp 0x140004131
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov r13d, dword [rsp + 0x78]
mov r12, r15
xor r15d, r15d
mov esi, r15d
test esi, esi
js 0x140004278
xor edx, edx
lea rcx, [rbp + 0x10]
mov r8d, 0x105
call fcn.140034240
mov esi, 0x104
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x10]
mov dword [rsp + 0x60], esi
mov edx, r13d
mov rcx, r12
call fcn.140003d9c
mov ebx, eax
test eax, eax
jne 0x140004278
xor eax, eax
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x28]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov rax, qword [sym.imp.ntoskrnl.exe_NlsMbOemCodePageTag]
cmp byte [rax], r15b
je 0x1400041a3
lea rcx, [rbp - 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlxAnsiStringToUnicodeSize]
mov ebx, eax
jmp 0x1400041ae
movzx eax, word [rbp - 0x28]
lea ebx, [rax*2 + 2]
mov edx, ebx
xor ecx, ecx
mov r8d, 0x53484d45
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rbp - 0x60], rax
test rax, rax
je 0x14000426c
xor r8d, r8d
mov word [rbp - 0x68], r15w
lea rdx, [rbp - 0x28]
mov word [rbp - 0x66], bx
lea rcx, [rbp - 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov ebx, eax
test eax, eax
jns 0x1400041fd
mov rcx, qword [rbp - 0x60]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rbp - 0x60], r15
jmp 0x140004200
mov ebx, r15d
test ebx, ebx
js 0x14000426c
mov edx, 0x5c
lea rcx, [rbp + 0x120]
call qword [sym.imp.ntoskrnl.exe_wcsrchr]
test rax, rax
je 0x140004220
mov word [rax + 2], r15w
mov r8, qword [rbp - 0x60]
lea rcx, [rbp + 0x120]
mov rdx, rsi
call fcn.14000372c
lea rax, [rbp + 0x120]
sub rax, rdi
test r14, r14
je 0x140004258
movzx ecx, word [rdi + rax]
test cx, cx
je 0x140004258
mov word [rdi], cx
add rdi, 2
sub r14, 1
jne 0x14000423d
test r14, r14
lea rax, [rdi - 2]
mov ebx, r15d
cmovne rax, rdi
mov word [rax], r15w
jmp 0x140004278
mov ebx, 4
jmp 0x140004278
mov ebx, 2
test r12, r12
je 0x140004288
xor edx, edx
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x14000429c
xor edx, edx
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
mov rcx, qword [rbp + 0x750]
xor rcx, rsp
call fcn.14002ff90
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret