Function at 0x1400027c0
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140042038]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15b, dl
mov rdi, rcx
mov ecx, 0x10000
call fcn.140015f3c
mov r13, rax
mov qword [rbp - 0x38], rax
mov ecx, 8
call fcn.140015f3c
mov rsi, rax
xor ebx, ebx
test rax, rax
je 0x14000282d
mov qword [rax], 1
mov qword [rbp - 0x30], rax
jmp 0x140002834
mov rsi, rbx
mov qword [rbp - 0x30], rbx
mov rcx, rbx
lea rdx, [0x140000000]
mov al, byte [rcx + rdx + 0x370f0]
mov byte [rbp + rcx - 0x20], al
mov al, byte [rcx + rdx + 0x370f8]
mov byte [rbp + rcx - 0x18], al
inc rcx
cmp rcx, 8
jl 0x14000283e
mov r14d, 4
mov r8d, r14d
lea rdx, str.AU3_EA06AU3_
lea rcx, [rbp - 0x10]
call fcn.140015fc0
cmp qword [rdi + 0x10], rbx
je 0x14000293a
test r15b, r15b
je 0x14000292c
lea r13, [rdi + 0x18]
mov r8, r13
lea edx, [r14 - 3]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x140002936
xor r9d, r9d
lea r8, str.SCRIPT
lea edx, [r14 + 6]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov r15, rax
test rax, rax
je 0x140002936
mov rdx, rax
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
test rax, rax
je 0x140002936
mov rdx, r15
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r15d, eax
test eax, eax
je 0x140002936
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140002936
mov rcx, qword [r13]
mov r10, qword [rcx]
xor r9d, r9d
mov r8d, r15d
mov rdx, rax
call qword [r10 + 0x20]
mov qword [rbp - 0x50], rbx
mov rcx, qword [r13]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call qword [rax + 0x28]
mov byte [rdi + 0x20], 1
jmp 0x140002936
mov rcx, rdi
call fcn.14000253c
jmp 0x14000293a
mov r13, qword [rbp - 0x38]
cmp byte [rdi + 0x20], bl
je 0x140002960
mov qword [rbp - 0x50], rbx
mov rcx, qword [rdi + 0x18]
mov rax, qword [rcx]
lea r9, [rbp - 0x40]
mov r8d, 1
mov rdx, rbx
call qword [rax + 0x28]
mov r15d, dword [rbp - 0x40]
jmp 0x14000296b
mov rcx, qword [rdi]
call fcn.140017454
mov r15d, eax
mov cl, byte [rdi + 0x20]
neg cl
sbb r8, r8
and r8, 0xffffffffffff0018
add r8, 0x10000
mov qword [rbp - 0x50], rbx
cmp byte [rdi + 0x20], bl
je 0x1400029a1
mov rcx, qword [rdi + 0x18]
mov rax, qword [rcx]
lea r9, [rbp - 0x50]
mov rdx, r13
call qword [rax + 0x18]
mov r10, qword [rbp - 0x50]
jmp 0x1400029b4
mov r9, qword [rdi]
mov edx, 1
mov rcx, r13
call fcn.1400169f4
mov r10, rax
cmp r10d, 0x18
jl 0x140002a95
mov r8d, ebx
lea r12d, [r10 - 0x14]
test r12d, r12d
jle 0x140002a05
lea rax, [rbp - 0x20]
mov rdx, r13
sub rdx, rax
mov r11d, ebx
mov r9, rbx
lea rcx, [rbp - 0x20]
add rcx, r9
mov al, byte [rdx + rcx]
cmp byte [rcx], al
jne 0x1400029f4
inc r11d
inc r9
cmp r9, 0x14
jl 0x1400029da
cmp r11d, 0x14
je 0x140002a2b
inc r8d
inc rdx
cmp r8d, r12d
jl 0x1400029d4
cmp byte [rdi + 0x20], bl
jne 0x140002a95
add r15d, 0xffffffec
add r15d, r10d
mov edx, 0xffffffec
lea r8d, [rdx + 0x15]
mov rcx, qword [rdi]
call fcn.1400170cc
jmp 0x14000296b
lea edx, [r8 + 0x14]
add edx, r15d
xor r8d, r8d
cmp byte [rdi + 0x20], bl
je 0x140002a4d
movsxd rdx, edx
mov rcx, qword [rdi + 0x18]
mov rax, qword [rcx]
lea r9, [rbp - 0x40]
call qword [rax + 0x28]
jmp 0x140002a55
mov rcx, qword [rdi]
call fcn.1400170cc
mov qword [rbp - 0x40], rbx
cmp byte [rdi + 0x20], bl
je 0x140002a75
mov rcx, qword [rdi + 0x18]
mov rax, qword [rcx]
lea r9, [rbp - 0x40]
mov r8d, r14d
lea rdx, [rbp - 0x48]
call qword [rax + 0x18]
jmp 0x140002a8a
mov r9, qword [rdi]
mov r8d, 1
mov rdx, r14
lea rcx, [rbp - 0x48]
call fcn.1400169f4
cmp dword [rbp - 0x48], 0x36304145
jne 0x140002a9b
jmp 0x140002a9e
mov r14d, 3
mov ebx, r14d
dec qword [rsi]
jne 0x140002ab3
mov rcx, rsi
call fcn.140015fa8
mov rcx, r13
call fcn.140015fa8
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140015ef0
lea r11, [rsp + 0x70]
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