Function at 0x140309970
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x228
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x190], xmm6
mov qword [rbp + 0x188], 0xfffffffffffffffe
mov edi, r9d
mov rsi, rcx
xor eax, eax
cmp dword [rdx + 4], 0x147
setb al
or dword [rcx + 0x98], eax
mov eax, dword [rcx + 0x98]
mov ecx, eax
xor ecx, 0xfffffffe
test ecx, eax
je 0x1403099e9
mov rcx, rsi
mov r9d, edi
movaps xmm6, xmmword [rbp + 0x190]
add rsp, 0x228
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.1403079d0
mov eax, dword [rdx]
mov dword [rsi + 0x334], eax
mov ecx, eax
not ecx
xor eax, 1
and ecx, 0xfffffffe
or ecx, eax
cmp ecx, 0xffffffff
je 0x140309c39
mov dword [rsi + 0xa0], edi
mov qword [rbp + 0x168], rdx
lea rax, [rdx + 0x20]
mov qword [rsi + 0x338], rax
add r8d, 0xffffffe0
mov dword [rsi + 0x340], r8d
mov rax, qword [rsi]
mov rax, qword [rax + 0x20]
mov rcx, rsi
call qword [0x1404ee420]
test al, al
je 0x140309b29
mov rcx, qword [rbp + 0x168]
mov eax, dword [rcx + 8]
mov dword [rbp - 0x30], eax
mov eax, dword [rsi + 0xa0]
xor eax, dword [rcx + 4]
mov dword [rbp - 0x2c], eax
mov eax, dword [rcx]
mov dword [rbp - 0x28], eax
mov eax, dword [rcx + 0xc]
mov dword [rbp - 0x24], eax
lea rbx, [rsi + 0x1e4]
lea rax, [rsi + 0x234]
movzx ecx, byte [rsi + 0x1e0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x48], 0x5fd3f468
mov dword [rsp + 0x40], 0xc2bda260
mov dword [rsp + 0x38], 0x44a10f6a
mov qword [rsp + 0x20], 0x10
lea r9, [rbp - 0x30]
xor ecx, ecx
xor edx, edx
mov r8, rbx
call fcn.140313820
mov eax, dword [rsi + 0xa0]
mov dword [rsi + 0xa4], eax
mov r14d, dword [rsi + 0x340]
mov r15, qword [rsi + 0x338]
mov rax, qword [rsi]
mov rax, qword [rax + 0x20]
mov rcx, rsi
call qword [0x1404ee420]
test al, al
je 0x140309b29
mov eax, dword [rsi + 0xa0]
mov dword [rsi + 0x234], eax
mov dword [rsi + 0x238], 0
mov dword [rsi + 0x23c], eax
mov dword [rsi + 0x240], 0
mov dword [rsp + 0x28], 0x1a0e72f5
mov dword [rsp + 0x20], 0x7a733de4
mov rcx, rbx
mov rdx, r15
mov r8, r14
mov r9, r15
call fcn.140124b60
test byte [rsi + 0x334], 2
je 0x140309ba9
lea rbx, [rsi + 0xa0]
mov edx, edi
xor edx, edi
not edx
mov r14, qword [rbp + 0x168]
and edx, dword [r14 + 4]
xor edx, edi
lea rdi, [rsi + 0xe8]
mov dword [rsp + 0x20], 0xf48db803
mov rcx, rdi
mov r8d, 0xe92daba4
mov r9d, 0xe34b52cd
call fcn.140313970
mov rcx, rbx
mov rdx, r14
mov r8, rdi
call fcn.140308a10
mov r8d, dword [rsi + 0x340]
mov rdx, qword [rsi + 0x338]
mov dword [rsp + 0x28], 0x37c9d020
mov dword [rsp + 0x20], 0x242700f4
mov rcx, rdi
mov r9d, 0x1a0e72f5
call fcn.140313a00
mov rax, qword [rbp + 0x168]
movzx ebx, word [rax + 8]
movzx edi, bx
lea rcx, [rsi + 0x348]
mov qword [rbp + 0x118], rcx
call fcn.14009a2b0
mov rax, qword [rsi + 0x358]
sub rax, qword [rsi + 0x348]
sar rax, 3
movabs rcx, 0xaaaaaaaaaaaaaaab
imul rcx, rax
cmp rcx, rdi
jae 0x140309bfe
mov rcx, qword [rbp + 0x118]
mov rdx, rdi
call fcn.14030e820
mov r8, rdi
lea rdi, [rsi + 0x390]
mov rdx, qword [rsi + 0x390]
mov rcx, qword [rsi + 0x398]
mov rax, rcx
sub rax, rdx
sar rax, 2
cmp rax, r8
mov qword [rbp + 0x120], r8
jbe 0x140309c40
lea rax, [rdx + r8*4]
mov qword [rsi + 0x398], rax
jmp 0x140309c86
xor eax, eax
jmp 0x14030a650
jae 0x140309c86
mov r8, qword [rsi + 0x3a0]
sub r8, rdx
sar r8, 2
mov rdx, qword [rbp + 0x120]
cmp r8, rdx
jae 0x140309c6a
lea r8, [rbp - 0x30]
mov rcx, rdi
call fcn.14030efd0
jmp 0x140309c86
mov r8, rdx
sub r8, rax
lea r14, [rcx + r8*4]
shl r8, 2
xor edx, edx
call fcn.14040c5e0
mov qword [rsi + 0x398], r14
test bx, bx
je 0x140309d47
mov r9, qword [rbp + 0x120]
mov r8, r9
not r8
mov ecx, ebx
xor ecx, 3
mov rax, r8
and rax, 0xfffffffffffffffc
or rax, rcx
mov rdx, rax
not rdx
cmp bx, 4
jae 0x140309cbb
xor ecx, ecx
jmp 0x140309d27
mov ecx, r9d
xor ecx, 0xfffc
and r8, 0xffffffffffff0003
or r8, rcx
not r8
xor ecx, ecx
xor r9d, r9d
nop word cs:[rax + rax]
mov r10, qword [rdi]
mov dword [r10 + rcx*4], 0xffffffff
mov r10, qword [rdi]
mov dword [r10 + rcx*4 + 4], 0xffffffff
mov r10, qword [rdi]
mov dword [r10 + rcx*4 + 8], 0xffffffff
mov r10, qword [rdi]
mov dword [r10 + rcx*4 + 0xc], 0xffffffff
mov r10, r9
xor r10, 4
and r9d, 4
lea r9, [r10 + r9*2]
add rcx, 4
cmp r9, r8
jne 0x140309ce0
test rdx, rdx
je 0x140309d47
add rax, 2
mov rdx, qword [rdi]
mov dword [rdx + rcx*4], 0xffffffff
test rax, rax
je 0x140309d47
inc rax
inc rcx
jmp 0x140309d30
xorps xmm6, xmm6
movaps xmmword [rbp + 0x130], xmm6
mov qword [rbp + 0x140], 0
xor eax, eax
test al, al
jne 0x140309e04
mov r14, qword [rbp + 0x138]
mov ecx, 0x44
call fcn.1403e3fbc
mov rdi, rax
mov rbx, qword [rbp + 0x130]
mov r8, qword [rbp + 0x138]
sub r8, rbx
mov rcx, rax
mov rdx, rbx
call fcn.14040bf30
test rbx, rbx
je 0x140309de6
mov rdx, qword [rbp + 0x140]
sub rdx, rbx
cmp rdx, 0x1000
jb 0x140309dde
mov rax, qword [rbx - 8]
mov rcx, rbx
xor rcx, 0xfffffffffffffff8
movabs r8, 0x7ffffffffffffff8
and r8, rbx
lea rcx, [rcx + r8*2]
sub rcx, rax
cmp rcx, 0x20
jae 0x14030a670
add rdx, 0x27
mov rbx, rax
mov rcx, rbx
call fcn.1400a9560
mov qword [rbp + 0x130], rdi
add r14, rdi
mov qword [rbp + 0x138], r14
add rdi, 0x44
mov qword [rbp + 0x140], rdi
xor eax, eax
lea rbx, [rsi + 0xe8]
lea r13, [rbp - 0x30]
xor r15d, r15d
jmp 0x140309e35
add rdx, 0x27
mov rcx, rax
call fcn.1400a9560
mov rax, qword [rbp + 0x128]
inc eax
cmp eax, dword [rbp + 0x120]
jae 0x14030a2d5
mov qword [rbp + 0x128], rax
xor r12d, r12d
mov edi, r15d
jmp 0x140309e70
mov rax, qword [rsi + 0x338]
mov ecx, edi
movzx eax, byte [rax + rcx]
mov byte [rbp + r12 + 0x17b], al
inc r12
inc edi
cmp r12, 5
je 0x140309ea0
mov eax, dword [rsi + 0x334]
mov ecx, eax
not ecx
xor eax, 2
and ecx, 0xfffffffd
or ecx, eax
cmp ecx, 0xffffffff
je 0x140309e50
mov rcx, rbx
mov edx, edi
call fcn.1403b4bc0
jmp 0x140309e5d
movzx edx, byte [rbp + 0x17b]
movzx eax, dl
mov ecx, 1
test al, al
js 0x140309ec0
mov dword [rbp + 0x180], eax
jmp 0x140309f90
mov ecx, eax
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x140309ef5
and dl, 0x3f
add dl, byte [0x140564274]
movzx eax, dl
shl eax, 8
movzx ecx, byte [rbp + 0x17c]
or ecx, eax
mov dword [rbp + 0x180], ecx
mov ecx, 2
jmp 0x140309f90
mov ecx, eax
and ecx, 0xffffffe0
cmp ecx, 0xc0
jne 0x140309f1e
and eax, 0x1f
shl eax, 0x10
movzx ecx, word [rbp + 0x17c]
or ecx, eax
mov dword [rbp + 0x180], ecx
mov ecx, 3
jmp 0x140309f90
mov ecx, eax
and ecx, 0xfffffff0
cmp ecx, 0xe0
jne 0x140309f63
shl eax, 0x18
mov ecx, eax
not ecx
xor eax, 0xf000000
and ecx, 0xf0ffffff
or ecx, eax
not ecx
movzx eax, byte [rbp + 0x17c]
or eax, ecx
movzx ecx, word [rbp + 0x17d]
shl ecx, 8
or ecx, eax
mov dword [rbp + 0x180], ecx
mov ecx, 4
jmp 0x140309f90
mov edx, eax
xor edx, 7
and edx, eax
mov ecx, 5
cmp edx, 0xf0
jne 0x140309f90
mov eax, dword [rbp + 0x17c]
jmp 0x140309eb3
add ecx, r15d
movaps xmmword [rbp + 0x150], xmm6
mov qword [rbp + 0x160], 0
xor r12d, r12d
mov r15d, ecx
jmp 0x140309fbe
mov rcx, r13
call fcn.14010c150
inc r12d
mov r15d, edi
cmp r12d, dword [rbp + 0x180]
jge 0x14030a200
xor r14d, r14d
mov edi, r15d
jmp 0x14030a007
mov rax, qword [rsi + 0x338]
mov ecx, edi
add rcx, qword [0x140564588]
movzx eax, byte [rax + rcx]
mov byte [rbp + r14 + 0xc0], al
inc r14
inc edi
cmp r14, 0x2c
je 0x14030a020
test byte [rsi + 0x334], 2
je 0x140309fe0
mov rcx, rbx
mov edx, edi
call fcn.1403b4bc0
jmp 0x140309ff4
mov rcx, rsi
lea rdx, [rbp + 0xc0]
mov r8d, 0x2c
call fcn.1403070b0
mov rcx, r13
mov rdx, rsi
call fcn.14010a0b0
mov rcx, r13
lea rdx, [rbp + 0xc0]
call fcn.1401d5750
lea edi, [r15 + 0x2c]
mov edx, dword [rbp + 0xe8]
mov eax, edx
and eax, 0xc0000000
cmp eax, 0x80000000
je 0x14030a0c0
test eax, eax
je 0x14030a0a0
cmp eax, 0x40000000
jne 0x14030a172
and edx, 0x3fffffff
mov rcx, rsi
mov r8, r13
lea r9, [rbp + 0x130]
call fcn.140309690
jmp 0x14030a172
and edx, 0x3fffffff
mov rcx, rsi
mov r8, r13
lea r9, [rbp + 0x130]
call fcn.140308cd0
jmp 0x14030a172
and edx, 0x3fffffff
mov rcx, rsi
mov r8, r13
lea r9, [rbp + 0x130]
call fcn.140308cd0
mov dword [rbp + 0x174], 0
xor r14d, r14d
jmp 0x14030a118
mov rax, qword [rsi + 0x338]
mov ecx, edi
movzx eax, byte [rax + rcx]
mov byte [rbp + r14 + 0x174], al
inc r14
mov eax, dword [0x140564124]
add edi, eax
inc edi
cmp r14, 4
je 0x14030a130
test byte [rsi + 0x334], 2
je 0x14030a0f0
mov rcx, rbx
mov edx, edi
call fcn.1403b4bc0
jmp 0x14030a0fd
mov rcx, rsi
lea rdx, [rbp + 0x174]
mov r8d, 4
call fcn.1403070b0
mov edx, dword [rbp + 0x174]
mov eax, 0x3fffffff
and edx, eax
mov rcx, rsi
mov r8, r13
lea r9, [rbp + 0x130]
call fcn.140309690
mov eax, r15d
xor eax, 0x30
and r15d, 0x30
lea edi, [rax + r15*2]
mov rdx, qword [rbp + 0x158]
cmp rdx, qword [rbp + 0x160]
je 0x14030a1a0
lea rcx, [rbp + 0x150]
mov r8, r13
call fcn.14010e060
add qword [rbp + 0x158], 0xf0
jmp 0x14030a1af
lea rcx, [rbp + 0x150]
mov r8, r13
call fcn.14010dd80
lea rax, [0x1404295b8]
mov qword [rbp - 0x30], rax
mov dword [rbp + 0xa8], 0
mov r15, qword [rbp + 0xa0]
test r15, r15
je 0x140309fb0
mov rcx, r15
mov edx, 0x2e131198
mov r8d, 0xb77d2aac
mov r9d, 0xce9cca41
call fcn.14010e430
mov rcx, r15
call fcn.1400a9570
jmp 0x140309fb0
mov rdx, qword [rsi + 0x350]
cmp rdx, qword [rsi + 0x358]
je 0x14030a250
mov rax, qword [rbp + 0x160]
mov qword [rbp + 0x160], 0
movaps xmm0, xmmword [rbp + 0x150]
movaps xmmword [rbp + 0x150], xmm6
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], rax
add qword [rsi + 0x350], 0x18
jmp 0x14030a263
mov rcx, qword [rbp + 0x118]
lea r8, [rbp + 0x150]
call fcn.14030f250
mov rdi, qword [rbp + 0x150]
test rdi, rdi
je 0x140309e2c
mov r14, qword [rbp + 0x158]
cmp rdi, r14
je 0x14030a29d
nop
mov rax, qword [rdi]
mov rax, qword [rax]
mov rcx, rdi
xor edx, edx
call qword [0x1404ee420]
add rdi, 0xf0
cmp rdi, r14
jne 0x14030a280
mov rcx, qword [rbp + 0x150]
mov rdx, qword [rbp + 0x160]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140309e27
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jb 0x140309e20
call fcn.1403c3cac
mov rax, qword [rbp + 0x168]
movzx eax, word [rax + 0xa]
mov qword [rbp + 0x180], rax
mov rax, qword [rsi + 0x370]
mov rcx, qword [rsi + 0x378]
cmp rax, rcx
je 0x14030a347
add rax, 0xa0
xorps xmm0, xmm0
nop word cs:[rax + rax]
movups xmmword [rax - 0x40], xmm0
movups xmmword [rax - 0x50], xmm0
movups xmmword [rax - 0x60], xmm0
movups xmmword [rax - 0x70], xmm0
movups xmmword [rax - 0x80], xmm0
movups xmmword [rax - 0x90], xmm0
movups xmmword [rax - 0xa0], xmm0
mov qword [rax - 0x30], 0
cmp rax, rcx
je 0x14030a347
add rax, 0xa0
jmp 0x14030a310
lea rax, [rsi + 0x370]
mov qword [rbp + 0x128], rax
mov rax, qword [rsi + 0x370]
mov rcx, qword [rsi + 0x380]
mov qword [rsi + 0x378], rax
sub rcx, rax
sar rcx, 5
movabs rax, 0xcccccccccccccccd
imul rax, rcx
cmp rax, qword [rbp + 0x180]
jae 0x14030a39b
mov rcx, qword [rbp + 0x128]
mov rdx, qword [rbp + 0x180]
call fcn.14030f680
xor edi, edi
xorps xmm6, xmm6
lea r13, [rbp - 0x30]
jmp 0x14030a3dc
mov r8d, 0xa0
mov rcx, rdx
mov rdx, r13
call fcn.14040bf30
add qword [rsi + 0x378], 0xa0
mov eax, r15d
xor eax, 0x20
and r15d, 0x20
lea r15d, [rax + r15*2]
inc edi
cmp edi, dword [rbp + 0x180]
jae 0x14030a4b9
xor r12d, r12d
mov r14d, r15d
jmp 0x14030a412
mov rax, qword [rsi + 0x338]
mov ecx, r14d
movzx eax, byte [rax + rcx]
mov byte [rbp + r12 + 0xc0], al
inc r12
inc r14d
cmp r12, 0x20
je 0x14030a430
mov eax, dword [rsi + 0x334]
mov ecx, eax
xor ecx, 0xfffffffd
test ecx, eax
je 0x14030a3f0
mov rcx, rbx
mov edx, r14d
call fcn.1403b4bc0
jmp 0x14030a3fe
mov rcx, rsi
lea rdx, [rbp + 0xc0]
mov r8d, 0x20
call fcn.1403070b0
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rsi
lea rax, [rbp + 0x58]
movups xmmword [rax], xmm6
mov dword [rax + 0x10], 0
movaps xmmword [rbp + 0x30], xmm6
movaps xmmword [rbp + 0x20], xmm6
movaps xmmword [rbp + 0x10], xmm6
movaps xmmword [rbp], xmm6
movaps xmmword [rbp - 0x10], xmm6
movaps xmmword [rbp - 0x20], xmm6
movaps xmmword [rbp - 0x30], xmm6
mov qword [rbp + 0x40], 0
mov rcx, r13
lea rdx, [rbp + 0xc0]
mov r8d, edi
call fcn.14031fd30
mov rdx, qword [rsi + 0x378]
cmp rdx, qword [rsi + 0x380]
jne 0x14030a3b0
mov rcx, qword [rbp + 0x128]
mov r8, r13
call fcn.14030fc10
jmp 0x14030a3cc
mov dword [rsi + 0x388], r15d
mov rcx, qword [rbp + 0x168]
mov eax, dword [rcx + 0xc]
mov dword [rsi + 0x38c], eax
add r15d, dword [rcx + 0xc]
lea rcx, [rsi + 0x360]
mov rdi, qword [rsi + 0x360]
mov r8, qword [rdi + 8]
mov qword [rbp + 0x180], rcx
mov rdx, rcx
call fcn.14009a3b0
mov qword [rdi + 8], rdi
mov qword [rdi], rdi
mov qword [rdi + 0x10], rdi
mov qword [rsi + 0x368], 0
xor r12d, r12d
lea rdi, [rbp - 0x20]
nop word cs:[rax + rax]
mov rax, qword [rbp + 0x168]
movzx eax, word [rax + 0x10]
cmp r12d, eax
jae 0x14030a5e8
xor r14d, r14d
mov r13d, r15d
jmp 0x14030a55f
mov rax, qword [rsi + 0x338]
mov ecx, r13d
movzx eax, byte [rax + rcx]
mov byte [rbp + r14 - 0x30], al
inc r14
inc r13d
cmp r14, 0x50
je 0x14030a580
test byte [rsi + 0x334], 2
je 0x14030a540
mov rcx, rbx
mov edx, r13d
call fcn.1403b4bc0
jmp 0x14030a54e
mov rcx, rsi
lea rdx, [rbp - 0x30]
mov r8d, 0x50
call fcn.1403070b0
movaps xmm0, xmmword [rbp - 0x30]
movaps xmmword [rbp + 0xc0], xmm0
movaps xmm0, xmmword [rdi]
movaps xmm1, xmmword [rdi + 0x10]
movaps xmm2, xmmword [rdi + 0x20]
movaps xmm3, xmmword [rdi + 0x30]
lea rax, [rbp + 0xd0]
movaps xmmword [rax + 0x30], xmm3
movaps xmmword [rax + 0x20], xmm2
movaps xmmword [rax + 0x10], xmm1
movaps xmmword [rax], xmm0
mov rcx, qword [rbp + 0x180]
lea rdx, [rbp + 0x150]
lea r8, [rbp + 0xc0]
call fcn.14030ff50
add r15d, 0x50
inc r12d
jmp 0x14030a520
mov rax, qword [rsi]
mov rax, qword [rax + 0x10]
mov r10, qword [0x1404ee420]
mov qword [rsp + 0x20], 0
lea rdx, [rbp - 0x30]
mov r8d, 1
mov rcx, rsi
xor r9d, r9d
call r10
mov rcx, qword [rbp + 0x130]
test rcx, rcx
je 0x14030a64e
mov rdx, qword [rbp + 0x140]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14030a649
mov rax, qword [rcx - 8]
sub rcx, rax
add rcx, 0xfffffffffffffff8
cmp rcx, 0x20
jae 0x14030a66b
add rdx, 0x27
mov rcx, rax
call fcn.1400a9560
mov al, 1
movaps xmm6, xmmword [rbp + 0x190]
add rsp, 0x228
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.1403c3cac
call fcn.1403c3cac
int3