Function at 0x18003f850
Capabilities:
Encode data using xor

Disassembly:
cmp r8d, 0x40
jl 0x18003fc7f
mov rax, rsp
push rbp
push rbx
lea rbp, [rax - 0x78]
sub rsp, 0x168
mov qword [rax + 8], rsi
mov rbx, rcx
mov qword [rax + 0x10], rdi
lea rdi, [rdx + 0x3c]
mov qword [rax + 0x18], r12
mov r12, 0xffffffffffffffc4
mov qword [rax - 0x18], r13
sub r12, rbx
mov qword [rax - 0x20], r14
lea r14, [rcx + 0x3c]
mov qword [rax - 0x28], r15
mov rcx, 0xffffffffffffffb4
sub rcx, rbx
mov r13d, r8d
lea r15, [rsp + 0x5c]
mov qword [rbp + 0x98], rcx
neg r15
shr r13, 6
lea rax, [rbp - 0x50]
cmp rax, r14
ja 0x18003f8c9
lea rax, [rbp - 0x14]
cmp rax, rbx
jae 0x18003f919
lea rax, [rbp - 0x50]
cmp rax, rdi
ja 0x18003f8df
lea rax, [rdi - 0x3c]
lea rdx, [rbp - 0x14]
cmp rdx, rax
jae 0x18003f919
cmp rbx, rdi
ja 0x18003f8ed
lea rax, [rdi - 0x3c]
cmp r14, rax
jae 0x18003f919
lea rax, [rsp + 0x5c]
cmp rbx, rax
ja 0x18003f901
lea rax, [rsp + 0x20]
cmp r14, rax
jae 0x18003f919
lea rax, [rsp + 0x20]
cmp rax, rdi
ja 0x18003f958
lea rax, [rdi - 0x3c]
lea rdx, [rsp + 0x5c]
cmp rdx, rax
jb 0x18003f958
lea rax, [rsp + 0x20]
mov r10, rbx
sub r10, rax
xor r8d, r8d
lea r9d, [r8 + 0x10]
nop dword [rax + rax]
lea rax, [r15 + rdi]
lea rdx, [rsp + 0x20]
add rdx, r8
mov ecx, dword [rax + rdx]
mov eax, dword [r10 + rdx]
xor eax, ecx
mov dword [rdx], ecx
mov dword [rbp + r8 - 0x50], eax
add r8, 4
sub r9, 1
jne 0x18003f930
jmp 0x18003f9d6
lea r11, [rsp + 0x20]
mov edx, 2
lea rsi, [rbp - 0x50]
sub r11, rbx
lea r8, [rsp + 0x20]
sub rsi, rbx
sub r8, rbx
lea r9, [rbp - 0x50]
sub r9, rbx
lea rax, [rbx + 0x10]
lea r10, [rcx + rdi]
nop dword [rax]
nop word [rax + rax]
lea rcx, [rax + r12]
movdqu xmm1, xmmword [rax + r10]
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmmword [r11 + rax - 0x10], xmm1
lea rax, [rax + 0x20]
pxor xmm0, xmm1
movdqu xmm1, xmmword [rcx + rdi]
movdqu xmmword [rax + rsi - 0x30], xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmmword [rax + r8 - 0x20], xmm1
pxor xmm1, xmm0
movdqu xmmword [rax + r9 - 0x20], xmm1
sub rdx, 1
jne 0x18003f990
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.18003ff30
mov r8d, 0x1000000
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.18003ff30
mov r8d, 0x2000000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.18003ff30
mov r8d, 0x3000000
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.18003ff30
mov r8d, 0x4000000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.18003ff30
mov r8d, 0x5000000
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.18003ff30
mov r8d, 0x6000000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.18003ff30
mov r8d, 0x7000000
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.18003ff30
mov r8d, 0x8000000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.18003ff30
mov r8d, 0x9000000
lea rdx, [rbp]
lea rcx, [rsp + 0x70]
call fcn.18003ff30
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.180040920
mov r8d, 1
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.180040920
mov r8d, 2
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.180040920
mov r8d, 3
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.180040920
mov r8d, 4
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.180040920
mov r8d, 5
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.180040920
mov r8d, 6
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.180040920
mov r8d, 7
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.180040920
mov r8d, 8
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.180040920
mov r8d, 9
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x70]
call fcn.180040920
lea rax, [rbp - 0x50]
cmp rax, r14
ja 0x18003fb83
lea rax, [rbp - 0x14]
cmp rax, rbx
jae 0x18003fb95
lea rax, [rbp + 0x3c]
cmp rbx, rax
ja 0x18003fbb7
lea rax, [rbp]
cmp r14, rax
jb 0x18003fbb7
xor ecx, ecx
nop word [rax + rax]
mov eax, dword [rbp + rcx]
xor eax, dword [rbp + rcx - 0x50]
xor dword [rcx + rbx], eax
add rcx, 4
cmp rcx, 0x40
jl 0x18003fba0
jmp 0x18003fc28
lea r9, [rbp]
mov eax, 2
lea r10, [rbp - 0x50]
sub r9, rbx
lea rdx, [rbp]
sub r10, rbx
sub rdx, rbx
lea r8, [rbp - 0x50]
sub r8, rbx
lea rcx, [rbx + 0x10]
nop dword [rax]
movdqu xmm0, xmmword [rcx - 0x10]
movdqu xmm1, xmmword [r9 + rcx - 0x10]
movdqu xmm2, xmmword [rdx + rcx]
lea rcx, [rcx + 0x20]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rcx + r10 - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x30], xmm1
movdqu xmm0, xmmword [rcx - 0x20]
pxor xmm2, xmm0
movdqu xmm0, xmmword [rcx + r8 - 0x20]
pxor xmm2, xmm0
movdqu xmmword [rcx - 0x20], xmm2
sub rax, 1
jne 0x18003fbe0
add dword [rbx + 0x40], 1
jne 0x18003fc31
inc dword [rbx + 0x44]
mov rcx, qword [rbp + 0x98]
add rdi, 0x40
sub r13, 1
jne 0x18003f8b7
mov r15, qword [rsp + 0x150]
mov r14, qword [rsp + 0x158]
mov r13, qword [rsp + 0x160]
mov r12, qword [rsp + 0x190]
mov rdi, qword [rsp + 0x188]
mov rsi, qword [rsp + 0x180]
add rsp, 0x168
pop rbx
pop rbp
ret