Function at 0x1400034d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rdi
sub rsp, 0x38
test edx, edx
jne 0x1400035a6
mov rdi, qword [0x140006748]
test rdi, rdi
je 0x14000359a
mov rcx, qword [rdi]
test rcx, rcx
je 0x140003521
movsxd rax, dword [rcx + 0x3c]
mov edx, dword [rax + rcx + 0x28]
test edx, edx
je 0x140003521
mov eax, edx
add rax, rcx
jne 0x140003513
mov dword [rdi + 0x20], 6
jmp 0x140003521
xor r8d, r8d
xor edx, edx
call rax
mov rdi, qword [0x140006748]
test rdi, rdi
je 0x14000359a
xor ebx, ebx
mov dword [rdi + 0x20], ebx
cmp dword [rdi + 0x18], ebx
je 0x14000355b
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000355b
movsxd rax, dword [rcx + 0x3c]
mov edx, dword [rax + rcx + 0x28]
test edx, edx
je 0x14000355b
mov eax, edx
add rax, rcx
jne 0x140003554
mov dword [rdi + 0x20], 6
jmp 0x14000355b
xor r8d, r8d
xor edx, edx
call rax
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140003586
cmp dword [rdi + 0x1c], ebx
je 0x140003586
mov rcx, qword [rdi]
test rcx, rcx
je 0x140003586
xor edx, edx
mov r8d, 0x8000
call qword [rax + 0x20]
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov dword [rdi + 0x1c], ebx
mov rcx, qword [rdi + 0x10]
mov rbx, qword [rcx + 0x38]
test rbx, rbx
je 0x14000359a
call rbx
mov rcx, rdi
call rbx
mov eax, 1
add rsp, 0x38
pop rdi
pop rbx
ret
cmp edx, 2
jne 0x1400035f8
mov rdx, qword [0x140006748]
test rdx, rdx
je 0x1400035dc
mov rcx, qword [rdx]
test rcx, rcx
je 0x1400035dc
movsxd rax, dword [rcx + 0x3c]
mov r8d, dword [rax + rcx + 0x28]
test r8d, r8d
je 0x1400035dc
mov eax, r8d
add rax, rcx
jne 0x1400035e7
mov dword [rdx + 0x20], 6
xor ebx, ebx
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
xor r8d, r8d
mov edx, 2
add rsp, 0x38
pop rdi
pop rbx
jmp rax
cmp edx, 3
jne 0x140003638
mov rdx, qword [0x140006748]
test rdx, rdx
je 0x1400035dc
mov rcx, qword [rdx]
test rcx, rcx
je 0x1400035dc
movsxd rax, dword [rcx + 0x3c]
mov r8d, dword [rax + rcx + 0x28]
test r8d, r8d
je 0x1400035dc
mov eax, r8d
add rax, rcx
je 0x1400035d5
xor r8d, r8d
mov edx, 3
add rsp, 0x38
pop rdi
pop rbx
jmp rax
mov eax, 0x7000
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x68], 0x2e00
mov dword [rsp + 0x58], 0x2c00
mov dword [rsp + 0x20], 0x1000
mov qword [rsp + 0x30], rsi
call fcn.140004f70
call fcn.140003850
mov rax, qword [rsp + 0x28]
lea rcx, [0x140000000]
add rax, rcx
mov qword [rsp + 0x28], rax
mov rbx, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x58]
call fcn.1400038a0
mov edx, dword [rsp + 0x68]
lea r8, [rbx + 0x10]
mov ecx, dword [rsp + 0x58]
xor ebx, ebx
sub edx, 0x20
mov rdi, rax
mov r9d, ebx
test rdx, rdx
je 0x140003776
cmp rdx, 0x40
jb 0x140003750
lea rcx, [rdx - 1]
add rcx, rax
lea rax, [r8 - 1]
add rax, rdx
cmp rdi, rax
ja 0x1400036d2
cmp rcx, r8
jae 0x140003750
mov rcx, rdx
and rcx, 0xffffffffffffffc0
movdqa xmm2, xmmword [0x140001030]
lea rax, [rdi + 0x10]
movdqa xmm3, xmmword [0x140001050]
mov r10, r8
sub r10, rdi
movdqu xmm0, xmmword [r10 + rax - 0x10]
add r9, 0x40
movdqu xmm1, xmmword [r10 + rax]
lea rax, [rax + 0x40]
psubb xmm0, xmm2
psubb xmm1, xmm2
xorps xmm0, xmm3
xorps xmm1, xmm3
movdqu xmmword [rax - 0x50], xmm0
movdqu xmm0, xmmword [r10 + rax - 0x30]
movdqu xmmword [rax - 0x40], xmm1
psubb xmm0, xmm2
xorps xmm0, xmm3
movdqu xmm1, xmmword [r10 + rax - 0x20]
movdqu xmmword [rax - 0x30], xmm0
psubb xmm1, xmm2
xorps xmm1, xmm3
movdqu xmmword [rax - 0x20], xmm1
cmp r9, rcx
jb 0x1400036f3
cmp r9, rdx
jae 0x140003776
sub r8, rdi
lea rcx, [r9 + rdi]
sub rdx, r9
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
lea rcx, [rcx + 1]
sub al, 2
xor al, 0xab
mov byte [rcx - 1], al
sub rdx, 1
jne 0x140003760
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.140003870
call fcn.1400021e0
mov rbp, rax
test rax, rax
je 0x1400037d7
mov rax, qword [rax + 0x30]
mov edx, 0x28
mov ecx, pe_nt_image_headers64
call rax
mov rsi, rax
test rax, rax
je 0x1400037d7
xor r8d, r8d
mov qword [rax + 0x10], rbp
mov rdx, rdi
mov qword [rax + 0x18], rbx
mov rcx, rax
mov dword [rax + 0x20], ebx
call fcn.140001300
test eax, eax
jne 0x1400037da
mov rdi, qword [rbp + 0x38]
mov rcx, rsi
call rdi
mov rcx, rbp
call rdi
mov rsi, rbx
mov rax, qword [rsi]
mov rbp, qword [rsp + 0x50]
mov qword [0x140006748], rsi
mov qword [section.X123456], rax
mov qword [0x140001008], rbx
test rsi, rsi
je 0x140003838
mov rcx, qword [rsi]
test rcx, rcx
je 0x140003838
movsxd rax, dword [rcx + 0x3c]
mov edx, dword [rax + rcx + 0x28]
test edx, edx
je 0x140003838
mov eax, edx
add rax, rcx
jne 0x14000382c
mov dword [rsi + 0x20], 6
mov eax, ebx
mov rsi, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rbx
ret
xor r8d, r8d
mov edx, 1
call rax
mov ebx, eax
mov rsi, qword [rsp + 0x30]
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret