Function at 0x1400013f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rbp
push r14
push r15
sub rsp, 0x148
mov r14, rcx
mov rbp, rdx
mov ecx, 0x40
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor ebx, ebx
mov r9d, 0x40
mov r8, rax
mov qword [rsp + 0x20], rbx
mov rdx, rbp
mov rcx, r14
mov r15, rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140001463
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_read_DOS_header._Error:__d_n
call fcn.140001010
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
add rsp, 0x148
pop r15
pop r14
pop rbp
pop rbx
ret
mov ecx, 0x108
mov qword [rsp + 0x130], r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movsxd rdx, dword [r15 + 0x3c]
mov r9d, 0x108
add rdx, rbp
mov qword [rsp + 0x20], rbx
mov r8, rax
mov rcx, r14
mov r13, rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1400014c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._t____Failed_to_read_Nt_headers._Error:__d_n
call fcn.140001010
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x14000180d
movups xmm0, xmmword [r13 + 0x18]
lea rdx, [rsp + 0x40]
mov ecx, 0x108
movups xmm1, xmmword [r13 + 0x28]
lea rax, [r13 + 0x98]
mov qword [rsp + 0x170], rsi
movups xmmword [rdx], xmm0
movups xmm0, xmmword [r13 + 0x38]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [r13 + 0x48]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [r13 + 0x58]
movups xmmword [rdx + 0x30], xmm1
movups xmm1, xmmword [r13 + 0x68]
movups xmmword [rdx + 0x40], xmm0
movups xmm0, xmmword [r13 + 0x78]
movups xmmword [rdx + 0x50], xmm1
movups xmm1, xmmword [rax]
movups xmmword [rdx + 0x60], xmm0
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [r13 + 0x88]
movups xmmword [rdx - 0x10], xmm0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rdx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rdx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rdx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rdx + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [rdx + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [rdx + 0x50], xmm0
movups xmmword [rdx + 0x60], xmm1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, dword [rsp + 0xb0]
mov r9d, 0x28
add rdx, rbp
mov qword [rsp + 0x20], rbx
mov r8, rax
mov rcx, r14
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1400015cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._t____Failed_to_read_Export_directory._Error:__d_n
call fcn.140001010
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x140001805
mov ecx, dword [rsi + 0x18]
mov eax, 4
mul rcx
mov qword [rsp + 0x140], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x138], r12
cmovb rax, rdi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [rsi + 0x14]
mov rbx, rax
mov qword [rsp + 0x180], rax
mov eax, 4
mul rcx
cmovb rax, rdi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [rsi + 0x18]
mov r12, rax
mov qword [rsp + 0x30], rax
mov eax, 2
mul rcx
cmovb rax, rdi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9d, dword [rsi + 0x18]
mov r8, rbx
mov edx, dword [rsi + 0x20]
mov rcx, r14
shl r9, 2
add rdx, rbp
mov rdi, rax
mov qword [rsp + 0x188], rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400017a9
mov r9d, dword [rsi + 0x14]
mov r8, r12
mov edx, dword [rsi + 0x1c]
mov rcx, r14
shl r9, 2
add rdx, rbp
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400017a9
mov r9d, dword [rsi + 0x18]
mov r8, rdi
mov edx, dword [rsi + 0x24]
add r9, r9
add rdx, rbp
mov qword [rsp + 0x20], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400017a9
xor edi, edi
cmp dword [rsi + 0x18], edi
jbe 0x1400017f3
mov ecx, 0x100
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9d, 0x100
mov r12d, edi
mov rbx, rax
mov qword [rsp + 0x20], 0
mov rax, qword [rsp + 0x180]
mov r8, rbx
mov rcx, r14
mov edx, dword [rax + rdi*4]
add rdx, rbp
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140001728
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._t____Failed_to_read_function_name._Error:__d
call fcn.140001010
jmp 0x14000173b
lea rdx, str.AmsiOpenSession
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140001750
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc edi
cmp edi, dword [rsi + 0x18]
jb 0x1400016d4
jmp 0x1400017f3
mov rdi, qword [rsp + 0x188]
mov rcx, r15
mov r14, qword [rsp + 0x30]
movzx eax, word [rdi + r12*2]
mov ebx, dword [r14 + rax*4]
add rbx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rbx
jmp 0x1400017f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._t____Failed_to_read_function_arrays._Error:__d
call fcn.140001010
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov r12, qword [rsp + 0x138]
mov rdi, qword [rsp + 0x140]
mov rsi, qword [rsp + 0x170]
mov r13, qword [rsp + 0x130]
add rsp, 0x148
pop r15
pop r14
pop rbp
pop rbx
ret