Function at 0x140003d80
Capabilities:
Encode data using xor
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x440
mov r13d, r8d
mov rbx, rcx
test rcx, rcx
je 0x140003e71
cmp qword [rcx + 0x10], 0
je 0x140003e71
test rdx, rdx
je 0x140003e71
mov dword [rcx + 0x20], 0
mov r8d, 0x5a4d
xor ecx, ecx
cmp r8w, word [rdx]
sete cl
jne 0x140003e0a
movsxd r8, dword [rdx + 0x3c]
xor ecx, ecx
cmp dword [r8 + rdx], 0x4550
sete cl
jne 0x140003e0a
mov eax, 0x8664
cmp ax, word [r8 + rdx + 4]
jne 0x140003e0e
xor ecx, ecx
mov eax, 0x20b
cmp ax, word [r8 + rdx + 0x18]
sete cl
test ecx, ecx
jne 0x140003e17
mov dword [rbx + 0x20], 1
jmp 0x140003e71
mov rcx, rbx
call fcn.140004c30
test eax, eax
je 0x140003e71
mov rax, qword [rbx]
test rax, rax
je 0x140003e69
movsxd rcx, dword [rax + 0x3c]
mov r10, rax
sub r10, qword [rcx + rax + 0x30]
je 0x140003f51
mov edx, dword [rcx + rax + 0xb0]
test edx, edx
je 0x140003f51
cmp dword [rcx + rax + 0xb4], 0
je 0x140003f51
mov r9d, edx
add r9, rax
jne 0x140003e94
mov dword [rbx + 0x20], 3
mov rcx, rbx
call fcn.140005620
xor eax, eax
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, dword [r9]
mov r8d, dword [r9 + 4]
add ecx, r8d
je 0x140003f51
mov edi, 0xf000
mov ebp, 0x3000
mov esi, 0xa000
nop dword [rax]
nop word [rax + rax]
mov eax, r8d
xor edx, edx
sub rax, 8
shr rax, 1
movsxd r11, eax
test eax, eax
jle 0x140003f3b
nop dword [rax]
nop word [rax + rax]
movzx r8d, word [r9 + rdx*2 + 8]
movzx eax, r8w
movzx ecx, r8w
and ax, di
cmp bp, ax
jne 0x140003f0e
mov eax, dword [r9]
and ecx, 0xfff
add rcx, rax
add rcx, qword [rbx]
add dword [rcx], r10d
movzx r8d, word [r9 + rdx*2 + 8]
movzx ecx, r8w
movzx eax, r8w
and cx, di
cmp si, cx
jne 0x140003f2f
mov ecx, dword [r9]
and eax, 0xfff
add rax, rcx
add rax, qword [rbx]
add qword [rax], r10
inc rdx
cmp rdx, r11
jl 0x140003ee0
mov r8d, dword [r9 + 4]
mov eax, r8d
add r9, rax
mov ecx, dword [r9]
mov r8d, dword [r9 + 4]
add ecx, r8d
jne 0x140003ec0
mov rcx, rbx
call fcn.1400051b0
test eax, eax
je 0x140003e69
mov r8d, dword [rbx + 8]
lea r11, [rsp + 0x40]
mov r10, qword [rbx]
xor r9d, r9d
mov ecx, r9d
lea r11, [r11 + 4]
shl ecx, 0x18
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c10db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c10db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c10db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c10db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c10db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c10db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c10db7
test ecx, ecx
cmovns edx, eax
lea ecx, [rdx + rdx]
mov eax, ecx
xor eax, 0x4c10db7
test edx, edx
cmovns eax, ecx
inc r9d
mov dword [r11 - 4], eax
cmp r9d, 0x100
jl 0x140003f70
xor edx, edx
mov r9, r10
test r8d, r8d
je 0x140004042
nop word [rax + rax]
movzx eax, byte [r9]
lea r9, [r9 + 1]
mov ecx, edx
shr rcx, 0x18
xor rcx, rax
mov eax, edx
shl eax, 8
mov edx, dword [rsp + rcx*4 + 0x40]
xor edx, eax
add r8d, 0xffffffff
jne 0x140004020
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0xc], edx
test rax, rax
je 0x140003e69
movsxd rdi, dword [r10 + 0x3c]
mov rbp, r10
mov r12, qword [rax + 0x28]
add rdi, r10
mov r15, qword [rax + 0x20]
movabs rax, 0xffffffff00000000
movdqa xmm0, xmmword [0x1400027f0]
and rbp, rax
movdqa xmm1, xmmword [0x140002800]
movzx r14d, word [rdi + 6]
movdqu xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x30], xmm1
test r14, r14
je 0x140004131
xor esi, esi
add rdi, 0x118
mov r10d, dword [rdi - 8]
mov eax, dword [rdi]
or r10, rbp
mov dword [rsp + 0x470], 0
test eax, eax
je 0x140004121
mov r9d, dword [rdi + 0x14]
mov edx, eax
bt r9d, 0x19
jae 0x1400040d7
mov r8d, 0x4000
mov rcx, r10
call r15
jmp 0x140004121
mov ecx, r9d
mov eax, r9d
shr rax, 0x1b
shr rcx, 0x1d
and eax, 4
and ecx, 2
add rcx, rax
mov rax, r9
shr rax, 0x1f
add rcx, rax
mov eax, dword [rsp + rcx*4 + 0x20]
mov r8d, eax
bts r8d, 9
mov rcx, r10
and r9d, 0x4000000
lea r9, [rsp + 0x470]
cmove r8d, eax
call r12
test eax, eax
je 0x14000419d
inc rsi
add rdi, 0x28
cmp rsi, r14
jl 0x1400040a4
mov rdi, qword [rbx]
test rdi, rdi
je 0x140003e71
movsxd rax, dword [rdi + 0x3c]
mov ecx, dword [rax + rdi + 0xd0]
test ecx, ecx
je 0x140004179
mov rdi, qword [rcx + rdi + 0x18]
test rdi, rdi
je 0x140004179
mov rax, qword [rdi]
test rax, rax
je 0x140004179
nop
mov rcx, qword [rbx]
xor r8d, r8d
lea edx, [r8 + 1]
call rax
mov rax, qword [rdi + 8]
lea rdi, [rdi + 8]
test rax, rax
jne 0x140004160
test r13d, r13d
je 0x140004193
mov edx, 1
mov rcx, rbx
call fcn.140005510
test eax, eax
je 0x140003e69
mov eax, 1
jmp 0x140003e73
mov dword [rbx + 0x20], 5
jmp 0x140003e69