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

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x490
mov r12, rdx
mov rbx, rcx
test rcx, rcx
je 0x14000306a
mov r13, qword [rcx + 0x10]
lea r14, [rcx + 0x10]
test r13, r13
je 0x14000306a
test rdx, rdx
je 0x14000306a
mov dword [rcx + 0x20], 0
mov edx, 0x5a4d
xor ecx, ecx
cmp dx, word [r12]
sete cl
jne 0x14000278e
movsxd rdx, dword [r12 + 0x3c]
xor ecx, ecx
cmp dword [rdx + r12], 0x4550
sete cl
jne 0x14000278e
mov eax, 0x8664
cmp ax, word [rdx + r12 + 4]
jne 0x140002792
xor ecx, ecx
mov eax, 0x20b
cmp ax, word [rdx + r12 + 0x18]
sete cl
test ecx, ecx
jne 0x14000279e
mov dword [rbx + 0x20], 1
jmp 0x14000306a
movsxd rsi, dword [r12 + 0x3c]
xor edx, edx
mov r13, qword [r13 + 0x18]
add rsi, r12
xor ecx, ecx
movzx r8d, word [rsi + 6]
cmp r8d, 8
jb 0x140002966
cmp dword [0x140007998], 2
jl 0x140002966
movaps xmmword [rsp + 0x480], xmm6
mov eax, 0xfffffff8
movaps xmmword [rsp + 0x470], xmm7
mov edx, r8d
movaps xmmword [rsp + 0x460], xmm8
and rdx, rax
movaps xmmword [rsp + 0x450], xmm9
lea rax, [rsi + 0x164]
movdqa xmm9, xmmword [0x140001240]
xor r9d, r9d
xorps xmm6, xmm6
xorps xmm8, xmm8
xorps xmm7, xmm7
nop dword [rax]
nop dword [rax + rax]
movd xmm1, dword [rax + 0x28]
add ecx, 8
movd xmm0, dword [rax - 0x28]
add r9, 8
movd xmm2, dword [rax]
movd xmm4, dword [rax - 0x50]
movd xmm3, dword [rax - 0x4c]
lea rax, [rax + 0x140]
punpckldq xmm4, xmm0
movd xmm0, dword [rax - 0x164]
punpckldq xmm3, xmm0
movdqa xmm0, xmm6
punpckldq xmm2, xmm1
movd xmm1, dword [rax - 0x114]
punpcklqdq xmm4, xmm2
movd xmm2, dword [rax - 0x13c]
movdqa xmm5, xmm4
punpckldq xmm2, xmm1
pcmpeqd xmm5, xmm8
movd xmm1, dword [rax - 0x78]
andnps xmm5, xmm9
punpcklqdq xmm3, xmm2
movd xmm2, dword [rax - 0xa0]
paddd xmm3, xmm4
movd xmm4, dword [rax - 0xf0]
pmaxud xmm0, xmm3
movd xmm3, dword [rax - 0xec]
andps xmm0, xmm5
punpckldq xmm2, xmm1
andnps xmm5, xmm6
movd xmm1, dword [rax - 0x74]
movdqa xmm6, xmm0
movd xmm0, dword [rax - 0xc8]
orps xmm6, xmm5
punpckldq xmm4, xmm0
movd xmm0, dword [rax - 0xc4]
punpckldq xmm3, xmm0
movdqa xmm0, xmm7
punpcklqdq xmm4, xmm2
movd xmm2, dword [rax - 0x9c]
movdqa xmm5, xmm4
punpckldq xmm2, xmm1
pcmpeqd xmm5, xmm8
punpcklqdq xmm3, xmm2
andnps xmm5, xmm9
paddd xmm3, xmm4
pmaxud xmm0, xmm3
andps xmm0, xmm5
andnps xmm5, xmm7
movdqa xmm7, xmm0
orps xmm7, xmm5
cmp r9, rdx
jl 0x140002820
movaps xmm9, xmmword [rsp + 0x450]
pmaxud xmm6, xmm7
movaps xmm8, xmmword [rsp + 0x460]
movdqa xmm0, xmm6
movaps xmm7, xmmword [rsp + 0x470]
psrldq xmm0, 8
pmaxud xmm6, xmm0
movdqa xmm0, xmm6
psrldq xmm0, 4
pmaxud xmm6, xmm0
movd edx, xmm6
movaps xmm6, xmmword [rsp + 0x480]
movsxd rcx, ecx
mov r9, r8
mov qword [rsp + 0x4d0], r8
cmp rcx, r8
jge 0x1400029a2
lea r8, [rcx + 7]
sub r9, rcx
lea r8, [r8 + r8*4]
lea r8, [rsi + r8*8]
mov ecx, dword [r8 - 4]
test ecx, ecx
je 0x140002998
add ecx, dword [r8]
cmp edx, ecx
cmovb edx, ecx
add r8, 0x28
sub r9, 1
jne 0x140002988
mov rcx, qword [rsi + 0x30]
mov r15d, 0x3000
mov r8d, r15d
mov edi, edx
mov r9d, 4
call r13
mov qword [rsp + 0x20], rax
mov rbp, rax
test rax, rax
jne 0x1400029e6
lea r9d, [rax + 4]
mov r8d, r15d
mov edx, edi
xor ecx, ecx
call r13
mov qword [rsp + 0x20], rax
mov rbp, rax
test rax, rax
je 0x140003063
mov edx, dword [rsi + 0x54]
mov r9d, 4
mov r8d, 0x1000
mov rcx, rbp
call r13
mov rdi, rax
test rax, rax
je 0x140003063
mov r8d, dword [rsi + 0x54]
mov rdx, r12
mov rcx, rax
call fcn.140004740
mov rcx, qword [rsp + 0x4d0]
mov qword [rbx], rdi
mov eax, dword [rsi + 0x50]
mov dword [rbx + 8], eax
mov dword [rbx + 0x1c], 1
movsxd rdx, dword [rdi + 0x3c]
add rdx, rdi
mov qword [rsp + 0x4e8], rdx
test rcx, rcx
je 0x140002ad2
xor r15d, r15d
lea rsi, [rdx + 0x118]
mov eax, dword [rsi - 4]
test eax, eax
je 0x140002abc
lea r14, [rax + rbp]
mov eax, dword [rsi]
test eax, eax
jne 0x140002b64
mov ebp, dword [rsi - 8]
test ebp, ebp
jne 0x140002a77
mov ebp, dword [rdx + 0x38]
test ebp, ebp
je 0x140002bf5
mov edx, ebp
mov r9d, 4
mov r8d, 0x1000
mov rcx, r14
call r13
mov rdi, rax
test rax, rax
je 0x140003063
mov r8d, ebp
xor edx, edx
mov rcx, r14
call fcn.1400046f0
mov rbp, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x4e8]
mov rcx, qword [rsp + 0x4d0]
mov dword [rsi - 8], edi
inc r15
add rsi, 0x28
cmp r15, rcx
jl 0x140002a50
lea r14, [rbx + 0x10]
mov r15d, 0x3000
mov rax, qword [rbx]
test rax, rax
je 0x140002b1c
movsxd rcx, dword [rax + 0x3c]
mov r9, rax
sub r9, qword [rcx + rax + 0x30]
je 0x140002c96
mov edx, dword [rcx + rax + 0xb0]
test edx, edx
je 0x140002c96
cmp dword [rcx + rax + 0xb4], 0
je 0x140002c96
mov r8d, edx
add r8, rax
jne 0x140002bff
mov dword [rbx + 0x20], 3
mov rax, qword [r14]
test rax, rax
je 0x14000306a
cmp dword [rbx + 0x1c], 0
je 0x14000306a
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000306a
xor edx, edx
mov r8d, 0x8000
call qword [rax + 0x20]
mov qword [rbx], 0
mov qword [rbx + 8], 0
mov dword [rbx + 0x1c], 0
jmp 0x14000306a
mov rdx, rax
mov r9d, 4
mov r8d, 0x1000
mov rcx, r14
call r13
mov rdi, rax
test rax, rax
je 0x140003063
mov r8d, dword [rsi + 4]
mov ecx, dword [rsi]
add r8, r12
cmp r8, rax
jae 0x140002bc8
dec r8
lea rdx, [rcx - 1]
add rdx, rax
add r8, rcx
test ecx, ecx
je 0x140002aa9
nop dword [rax + rax]
movzx eax, byte [r8]
lea r8, [r8 - 1]
mov byte [rdx], al
lea rdx, [rdx - 1]
add ecx, 0xffffffff
jne 0x140002bb0
jmp 0x140002aa9
jbe 0x140002aa9
mov rdx, rax
test ecx, ecx
je 0x140002aa9
sub r8, rax
nop dword [rax]
movzx eax, byte [r8 + rdx]
mov byte [rdx], al
lea rdx, [rdx + 1]
add ecx, 0xffffffff
jne 0x140002be0
jmp 0x140002aa9
mov rbp, qword [rsp + 0x20]
jmp 0x140002ab9
mov ecx, dword [r8]
mov r10d, dword [r8 + 4]
add ecx, r10d
je 0x140002c96
mov edi, 0xa000
mov r11d, 0xf000
nop word [rax + rax]
mov eax, r10d
xor edx, edx
sub rax, 8
shr rax, 1
movsxd r10, eax
test eax, eax
jle 0x140002c83
movzx ecx, word [r8 + rdx*2 + 8]
movzx eax, cx
and ax, r11w
cmp r15w, ax
jne 0x140002c58
mov eax, dword [r8]
and ecx, 0xfff
add rcx, rax
add rcx, qword [rbx]
add dword [rcx], r9d
movzx eax, word [r8 + rdx*2 + 8]
movzx ecx, ax
and cx, r11w
cmp di, cx
jne 0x140002c7b
mov ecx, dword [r8]
and eax, 0xfff
add rax, rcx
add rax, qword [rbx]
add qword [rax], r9
inc rdx
cmp rdx, r10
jl 0x140002c33
mov eax, dword [r8 + 4]
add r8, rax
mov ecx, dword [r8]
mov r10d, dword [r8 + 4]
add ecx, r10d
jne 0x140002c20
mov r15, r14
mov r15, qword [r14]
test r15, r15
je 0x140002f05
mov rax, qword [rbx]
test rax, rax
je 0x140002f05
movsxd rcx, dword [rax + 0x3c]
mov r13, qword [r15 + 8]
mov r12, qword [r15 + 0x10]
mov r15, qword [r15]
mov edx, dword [rcx + rax + 0x90]
test edx, edx
je 0x140002d7a
cmp dword [rcx + rax + 0x94], 0
je 0x140002d7a
cmp dword [rax + rdx + 0xc], 0
lea r14, [rax + rdx]
je 0x140002d76
nop dword [rax]
mov edi, dword [r14 + 0xc]
add rdi, qword [rbx]
mov rcx, rdi
call r13
mov rbp, rax
test rax, rax
jne 0x140002d17
mov rcx, rdi
call r12
mov rbp, rax
test rax, rax
je 0x140002efa
mov ecx, dword [r14]
mov rax, qword [rbx]
test ecx, ecx
je 0x140002d27
lea rdi, [rax + rcx]
jmp 0x140002d2e
mov edi, dword [r14 + 0x10]
add rdi, rax
mov esi, dword [r14 + 0x10]
mov rcx, qword [rdi]
add rsi, rax
test rcx, rcx
je 0x140002d67
jns 0x140002d44
movzx edx, cx
jmp 0x140002d4e
mov rdx, qword [rbx]
add rdx, 2
add rdx, rcx
mov rcx, rbp
call r15
add rdi, 8
mov qword [rsi], rax
add rsi, 8
mov rcx, qword [rdi]
test rcx, rcx
jne 0x140002d3d
add r14, 0x14
cmp dword [r14 + 0xc], 0
jne 0x140002cf0
lea r14, [rbx + 0x10]
mov r8d, dword [rbx + 8]
lea r11, [rsp + 0x50]
mov r9, qword [rbx]
xor r13d, r13d
mov r10d, r13d
nop dword [rax]
mov ecx, r10d
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 r10d
mov dword [r11 - 4], eax
cmp r10d, 0x100
jl 0x140002d90
mov edx, r13d
test r8d, r8d
je 0x140002e5e
nop word [rax + rax]
movzx eax, byte [r9]
lea r9, [r9 + 1]
mov ecx, edx
shr rcx, 0x18
xor rcx, rax
shl edx, 8
xor edx, dword [rsp + rcx*4 + 0x50]
add r8d, 0xffffffff
jne 0x140002e40
mov rax, qword [r14]
mov dword [rbx + 0xc], edx
test rax, rax
je 0x14000302d
mov r12, qword [rax + 0x28]
movabs rcx, 0xffffffff00000000
mov r15, qword [rax + 0x20]
mov rax, qword [rbx]
movdqa xmm0, xmmword [0x140001210]
mov rbp, rax
movdqa xmm1, xmmword [0x140001220]
and rbp, rcx
movdqu xmmword [rsp + 0x28], xmm0
movsxd rdi, dword [rax + 0x3c]
add rdi, rax
movdqu xmmword [rsp + 0x38], xmm1
movzx r14d, word [rdi + 6]
test r14, r14
je 0x140002fa1
mov rsi, r13
add rdi, 0x118
mov r10d, dword [rdi - 8]
mov eax, dword [rdi]
or r10, rbp
mov dword [rsp + 0x4d0], r13d
test eax, eax
je 0x140002f91
mov r9d, dword [rdi + 0x14]
mov edx, eax
bt r9d, 0x19
jae 0x140002f45
mov r8d, 0x4000
mov rcx, r10
call r15
jmp 0x140002f91
mov dword [rbx + 0x20], 4
lea r14, [rbx + 0x10]
mov rax, qword [r14]
test rax, rax
je 0x14000306a
cmp dword [rbx + 0x1c], 0
je 0x14000306a
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000306a
xor edx, edx
mov r8d, 0x8000
call qword [rax + 0x20]
xor r13d, r13d
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov dword [rbx + 0x1c], r13d
jmp 0x14000306a
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 + 0x28]
mov r8d, eax
bts r8d, 9
mov rcx, r10
bt r9d, 0x1a
lea r9, [rsp + 0x4d0]
cmovae r8d, eax
call r12
test eax, eax
je 0x140003017
inc rsi
add rdi, 0x28
cmp rsi, r14
jl 0x140002ec3
mov rdi, qword [rbx]
test rdi, rdi
je 0x14000306a
movsxd rax, dword [rdi + 0x3c]
mov ecx, dword [rax + rdi + 0xd0]
test ecx, ecx
je 0x140002fe9
mov rdi, qword [rcx + rdi + 0x18]
test rdi, rdi
je 0x140002fe9
mov rax, qword [rdi]
test rax, rax
je 0x140002fe9
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 0x140002fd0
cmp dword [rsp + 0x4e0], r13d
je 0x14000305c
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000302d
movsxd rax, dword [rcx + 0x3c]
mov edx, dword [rax + rcx + 0x28]
test edx, edx
je 0x14000302d
mov eax, edx
add rax, rcx
jne 0x140003020
mov dword [rbx + 0x20], 6
jmp 0x14000302d
mov dword [rbx + 0x20], 5
jmp 0x14000302d
xor r8d, r8d
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x14000305c
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14000306a
cmp dword [rbx + 0x1c], r13d
je 0x14000306a
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000306a
xor edx, edx
mov r8d, 0x8000
call qword [rax + 0x20]
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov dword [rbx + 0x1c], r13d
jmp 0x14000306a
mov eax, 1
jmp 0x14000306c
mov dword [rbx + 0x20], 2
xor eax, eax
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret