Function at 0x14001a980
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa0
mov rax, qword [0x1409b0280]
xor rax, rsp
mov qword [rbp - 9], rax
mov rsi, rdx
mov r12, rcx
mov qword [rbp - 0x19], rcx
mov rax, qword [rbp + 0x8f]
mov qword [rbp - 0x51], rax
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14001ae02
movsxd r14, dword [rdx + 0x3c]
add r14, rdx
cmp dword [r14], 0x4550
jne 0x14001ae02
mov eax, 0x20b
cmp word [r14 + 0x18], ax
jne 0x14001ae02
mov ebx, dword [r14 + 0x50]
mov qword [rbp - 0x79], rbx
mov r9d, 4
mov r8d, 0x3000
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
je 0x14001ae02
mov r8d, ebx
mov rcx, r12
call fcn.140018140
mov r13, rax
test rax, rax
je 0x14001ade6
mov r8d, dword [r14 + 0x54]
mov rdx, rsi
mov rcx, r15
call fcn.140195690
movzx ebx, word [r14 + 0x14]
add rbx, 0x24
xor edx, edx
mov edi, edx
cmp dx, word [r14 + 6]
jae 0x14001aa8e
add rbx, r14
nop dword [rax + rax]
test dword [rbx + 0x18], 0x80
ja 0x14001aa7d
mov ecx, dword [rbx]
add rcx, r15
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, rsi
call fcn.140195690
inc edi
add rbx, 0x28
movzx eax, word [r14 + 6]
cmp edi, eax
jl 0x14001aa60
xor edx, edx
mov rsi, r13
sub rsi, qword [r14 + 0x30]
mov eax, 0x5a4d
cmp word [r15], ax
jne 0x14001ab68
movsxd rax, dword [r15 + 0x3c]
cmp dword [rax + r15], 0x4550
jne 0x14001ab68
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x31], xmm1
mov r8, rdx
mov qword [rbp - 0x21], rdx
mov ecx, dword [rax + r15 + 0xb0]
test ecx, ecx
jne 0x14001aad9
mov rbx, rdx
jmp 0x14001ab6e
lea rbx, [r15 + rcx]
mov edi, dword [rax + r15 + 0xb4]
add rdi, rbx
cmp rbx, rdi
jae 0x14001ab58
mov rdx, qword [rbp - 0x29]
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x14001ab53
mov eax, dword [rbx]
add rax, r15
mov qword [rbp - 0x49], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x41], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rbp - 0x39], eax
cmp rdx, r8
je 0x14001ab33
movups xmm0, xmmword [rbp - 0x49]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rbp - 0x39]
movsd qword [rdx + 0x10], xmm1
add rdx, 0x18
mov qword [rbp - 0x29], rdx
jmp 0x14001ab48
lea r8, [rbp - 0x49]
lea rcx, [rbp - 0x31]
call fcn.14001bb70
mov r8, qword [rbp - 0x21]
mov rdx, qword [rbp - 0x29]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rdi
jb 0x14001aaf1
movdqu xmm1, xmmword [rbp - 0x31]
movsd xmm0, qword [rbp - 0x21]
movsd qword [rbp - 0x61], xmm0
mov rbx, qword [rbp - 0x61]
jmp 0x14001ab6e
xorps xmm1, xmm1
mov rbx, rdx
movq r10, xmm1
psrldq xmm1, 8
movq r11, xmm1
cmp r10, r11
je 0x14001abe1
lea r8, [r10 + 0x10]
mov edi, 0xfff
xor r12d, r12d
nop
mov edx, r12d
cmp dword [r8], r12d
jbe 0x14001abd0
nop dword [rax + rax]
mov ecx, edx
mov rax, qword [r8 - 8]
movzx r9d, word [rax + rcx*2]
movzx eax, r9w
shr ax, 0xc
and r9w, di
cmp ax, 0xa
jne 0x14001abc9
movzx ecx, r9w
mov rax, qword [r8 - 0x10]
add qword [rax + rcx], rsi
inc edx
cmp edx, dword [r8]
jb 0x14001aba0
add r8, 0x18
lea rax, [r8 - 0x10]
cmp rax, r11
jne 0x14001ab90
mov r12, qword [rbp - 0x19]
test r10, r10
je 0x14001ac39
sub rbx, r10
movabs rax, 0x2aaaaaaaaaaaaaab
imul rbx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, r10
cmp rdx, 0x1000
jb 0x14001ac31
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001ae2b
mov rcx, r10
call fcn.14015a48c
mov rdx, r15
lea rcx, [rbp - 0x71]
call fcn.14001b540
mov rdx, rax
mov rcx, r12
call fcn.14001ae40
test al, al
je 0x14001ade6
mov r9, qword [rbp - 0x79]
mov r8, r15
mov rdx, r13
mov rcx, r12
call fcn.140017f20
test al, al
je 0x14001ade6
mov ebx, dword [r14 + 0x28]
add rbx, r13
je 0x14001ade6
lea rcx, [0x1401bfcb8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14001ade6
lea rdx, str.NtAddAtom
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14001ade6
mov word [rbp - 0x31], 0xb848
mov word [rbp - 0x27], 0xe0ff
mov qword [rbp - 0x2f], rbx
mov eax, 8
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x1409f5fe0], ecx
jle 0x14001ad48
lea rcx, [0x1409f5fe0]
call fcn.14015a9b8
cmp dword [0x1409f5fe0], 0xffffffff
jne 0x14001ad48
xorps xmm0, xmm0
movups xmmword [rbp - 0x71], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x61], xmm1
mov r8d, 9
lea rdx, str.NtAddAtom
lea rcx, [rbp - 0x71]
call fcn.140011c50
nop
lea r8, [rbp - 0x71]
mov rdx, qword [0x1409f44e8]
mov rcx, r12
call fcn.140018590
mov qword [0x1409f5fd8], rax
lea rcx, [rbp - 0x71]
call fcn.140010b40
nop
lea rcx, [0x1409f5fe0]
call fcn.14015a94c
mov r8, qword [0x1409f5fd8]
test r8, r8
je 0x14001ade6
mov r9d, ntohs
lea rdx, [rbp - 0x19]
mov rcx, r12
call fcn.140017f20
test al, al
je 0x14001ade6
movzx eax, byte [rbp - 0x31]
cmp byte [rbp - 0x19], al
jne 0x14001ad92
movzx eax, byte [rbp - 0x30]
cmp byte [rbp - 0x18], al
jne 0x14001ad92
movzx eax, byte [rbp - 0x27]
cmp byte [rbp - 0xf], al
jne 0x14001ad92
movzx eax, byte [rbp - 0x26]
cmp byte [rbp - 0xe], al
je 0x14001ade6
lea r8, [rbp - 0x31]
mov rdx, qword [0x1409f5fd8]
mov rcx, r12
call fcn.140017fc0
test al, al
je 0x14001ade6
xor edx, edx
mov rcx, r13
call rdi
mov ebx, eax
lea r8, [rbp - 0x19]
mov rdx, qword [0x1409f5fd8]
mov rcx, r12
call fcn.140017fc0
mov rax, qword [rbp - 0x51]
test rax, rax
je 0x14001add0
mov dword [rax], ebx
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r13
jmp 0x14001ae04
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r13
mov rcx, r12
call fcn.140018370
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.14015a1f0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14016a128
int3