Function at 0x140040200
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x348]
sub rsp, 0x420
mov qword [rbp + 0x1c0], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14006d798]
xor rax, rsp
mov qword [rbp + 0x310], rax
mov r14, rdx
mov qword [rbp + 0x280], rdx
xor r12d, r12d
mov r15d, r12d
mov rcx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x14004025f
mov rcx, qword [rdx]
mov qword [rbp + 0x2a0], rcx
or r13, 0xffffffffffffffff
mov rax, r13
inc rax
cmp byte [rcx + rax], r12b
jne 0x14004026d
mov qword [rbp + 0x2a8], rax
movaps xmm0, xmmword [rbp + 0x2a0]
movdqa xmmword [rbp + 0x200], xmm0
call fcn.14004c6ac
lea r8, [rbp + 0x200]
mov edx, eax
lea rcx, [rbp + 0x180]
call fcn.140027d70
nop
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x290], xmm0
xor r8d, r8d
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x290]
call fcn.14003735c
test eax, eax
jne 0x140040cee
lea rcx, [rbp + 0x180]
call fcn.1400287e8
xor eax, eax
mov qword [rbp + 0x2a0], rax
mov qword [rbp + 0x2a8], rax
mov rdi, qword [rbp + 0x298]
test rdi, rdi
je 0x140040303
lock inc dword [rdi + 8]
mov rdi, qword [rbp + 0x298]
movaps xmm0, xmmword [rbp + 0x290]
movdqa xmmword [rbp + 0x2a0], xmm0
test rdi, rdi
je 0x140040322
lock inc dword [rdi + 8]
mov rdi, qword [rbp + 0x298]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xb0], xmm0
test rdi, rdi
je 0x140040374
mov eax, r13d
lock xadd dword [rdi + 8], eax
add eax, r13d
jne 0x14004036d
mov rbx, qword [rbp + 0x298]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r13d
lock xadd dword [rbx + 0xc], eax
add eax, r13d
jne 0x14004036d
mov rdi, qword [rbp + 0x298]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
jmp 0x140040374
mov rdi, qword [rbp + 0x298]
mov rsi, qword [rbp + 0x2a0]
test rsi, rsi
je 0x140040bed
mov cl, 0x6d
mov dword [rsp + 0x20], 0xc09436d
mov word [rsp + 0x24], 0x19
mov rax, r12
xor byte [rsp + rax + 0x21], cl
inc rax
cmp rax, 4
jae 0x1400403ab
mov cl, byte [rsp + 0x20]
jmp 0x140040398
mov byte [rsp + 0x25], r12b
lea rax, [rsp + 0x21]
mov qword [rbp + 0xc0], rax
lea rcx, [rsp + 0x21]
mov rax, r13
inc rax
cmp byte [rcx + rax], r12b
jne 0x1400403c4
mov qword [rbp + 0xc8], rax
movaps xmm0, xmmword [rbp + 0xc0]
movdqa xmmword [rbp + 0x210], xmm0
call fcn.14004c6ac
lea r8, [rbp + 0x210]
mov edx, eax
lea rcx, [rbp + 0x10]
call fcn.140027d70
nop
add rsi, 0x20
mov rcx, qword [rsi + 0x10]
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x140040410
mov rax, qword [rsi]
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rcx
movaps xmm0, xmmword [rbp + 0xd0]
movdqa xmmword [rbp + 0x1f0], xmm0
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp + 0x260]
call fcn.14002823c
mov r8, qword [rax + 8]
mov rdx, qword [rax]
mov qword [rbp + 0x40], r12
mov qword [rbp + 0x48], 7
mov word [rbp + 0x30], r12w
lea rcx, [rbp + 0x30]
call fcn.1400289e8
lea rax, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rax, qword [rbp + 0x10]
mov qword [rbp + 0xe0], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0xe8], rax
movaps xmm0, xmmword [rbp + 0xe0]
movdqa xmmword [rbp + 0x1e0], xmm0
lea rdx, [rbp + 0x1e0]
lea rcx, [rbp + 0x30]
call fcn.140028a54
mov ebx, eax
lea rcx, [rbp + 0x30]
call fcn.1400287e8
nop
lea rcx, [rbp + 0x10]
call fcn.1400287e8
test ebx, ebx
jne 0x140040b80
inc r15d
mov rcx, qword [rsi + 0x10]
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400404d1
mov rax, qword [rsi]
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], rcx
movaps xmm0, xmmword [rbp + 0xf0]
movdqa xmmword [rbp + 0x1d0], xmm0
call fcn.14004c6ac
lea r9, [rsp + 0x2c]
lea r8, [rbp + 0x1d0]
mov edx, eax
lea rcx, [rbp - 0x30]
call fcn.140026a10
nop
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
mov qword [rbp + 0x2c0], r12
mov ebx, 0xf
mov qword [rbp + 0x2c8], rbx
mov byte [rbp + 0x2b0], r12b
lea rcx, [rbp + 0x2b0]
call fcn.140002b2c
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x14004057b
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040576
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040b99
call fcn.14004cdd8
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], rbx
mov byte [rbp - 0x30], r12b
mov rax, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 8
jb 0x140040595
mov rsi, qword [rsi]
mov qword [rbp + 0x100], rsi
mov qword [rbp + 0x108], rax
movaps xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0x230], xmm0
lea rdx, [rbp + 0x230]
lea rcx, [rbp + 0x270]
call fcn.14003782c
mov r8, qword [rax + 8]
mov rdx, qword [rax]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
lea rcx, [rsp + 0x50]
call fcn.1400289e8
nop
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov qword [rbp + 0x110], rax
mov rax, qword [rsp + 0x60]
mov qword [rbp + 0x118], rax
movaps xmm0, xmmword [rbp + 0x110]
movdqa xmmword [rbp + 0x220], xmm0
call fcn.14004c6ac
lea r9, [rsp + 0x2d]
lea r8, [rbp + 0x220]
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.140026a10
nop
lea rbx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rbx, qword [rbp - 0x50]
mov r8b, 0x20
mov edx, 1
lea rcx, [rbp + 0x50]
call fcn.140005818
mov rsi, rax
mov edx, r15d
lea rcx, [rbp - 0x10]
call fcn.140001538
nop
mov byte [rsp + 0x28], 0x36
mov cl, 0x15
xor cl, 0x36
mov byte [rsp + 0x29], cl
mov byte [rsp + 0x2a], r12b
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], 0xf
mov byte [rbp - 0x70], r12b
lea rdx, [rsp + 0x29]
lea rcx, [rbp - 0x70]
call fcn.140002b2c
nop
movdqa xmm0, xmmword [0x14005c080]
movdqu xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x48], 0x7865492a
mov word [rsp + 0x4c], 0x256f
xor eax, eax
mov byte [rsp + 0x4e], al
mov rcx, r12
mov al, byte [rsp + 0x38]
xor byte [rsp + rcx + 0x39], al
inc rcx
cmp rcx, 0x15
jb 0x1400406c2
mov byte [rsp + 0x4e], r12b
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], r12b
lea rdx, [rsp + 0x39]
lea rcx, [rsp + 0x70]
call fcn.140002b2c
nop
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x160]
call fcn.140001204
nop
lea r8, [rbp - 0x10]
mov rdx, rax
lea rcx, [rbp + 0x120]
call fcn.140001204
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rbp + 0x140]
call fcn.140001204
nop
mov r8, r13
inc r8
cmp byte [rbx + r8], r12b
jne 0x140040739
mov rdx, rbx
mov rcx, rax
call fcn.140002a38
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x2f0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x300], xmm1
mov qword [rax + 0x10], r12
mov esi, 0xf
mov qword [rax + 0x18], rsi
mov byte [rax], r12b
mov rdx, qword [rbp + 0x158]
lea ebx, [rsi + 1]
cmp rdx, rbx
jb 0x1400407b5
inc rdx
mov rcx, qword [rbp + 0x140]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400407b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040ba0
call fcn.14004cdd8
mov qword [rbp + 0x150], r12
mov qword [rbp + 0x158], rsi
mov byte [rbp + 0x140], r12b
mov rdx, qword [rbp + 0x138]
cmp rdx, rbx
jb 0x14004080a
inc rdx
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040805
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040ba7
call fcn.14004cdd8
mov qword [rbp + 0x130], r12
mov qword [rbp + 0x138], rsi
mov byte [rbp + 0x120], r12b
mov rdx, qword [rbp + 0x178]
cmp rdx, rbx
jb 0x14004085f
inc rdx
mov rcx, qword [rbp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004085a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040bae
call fcn.14004cdd8
mov qword [rbp + 0x170], r12
mov qword [rbp + 0x178], rsi
mov byte [rbp + 0x160], r12b
mov rdx, qword [rbp - 0x78]
cmp rdx, rbx
jb 0x1400408af
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400408aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040bb5
call fcn.14004cdd8
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], rsi
mov byte [rsp + 0x70], r12b
mov rdx, qword [rbp - 0x58]
cmp rdx, rbx
jb 0x1400408f6
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400408f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040bbc
call fcn.14004cdd8
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], rsi
mov byte [rbp - 0x70], r12b
mov rdx, qword [rbp + 8]
cmp rdx, rbx
jb 0x14004093c
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040937
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040bc3
call fcn.14004cdd8
mov qword [rbp], r12
mov qword [rbp + 8], rsi
mov byte [rbp - 0x10], r12b
mov rdx, qword [rbp + 0x68]
cmp rdx, rbx
jb 0x140040982
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004097d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040bca
call fcn.14004cdd8
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], rsi
mov byte [rbp + 0x50], r12b
mov rdx, qword [rbp - 0x38]
cmp rdx, rbx
jb 0x1400409c8
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400409c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040bd1
call fcn.14004cdd8
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], rsi
mov byte [rbp - 0x50], r12b
lea rcx, [rsp + 0x50]
call fcn.1400287e8
lea rdx, [rbp + 0x2b0]
cmp qword [rbp + 0x2c8], rbx
cmovae rdx, qword [rbp + 0x2b0]
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], rsi
mov byte [rbp + 0x70], r12b
lea rcx, [rbp + 0x70]
call fcn.140002b2c
mov r9d, 8
lea r8, [rbp + 0x70]
lea rdx, [rbp + 0x2d0]
lea rcx, [0x14006e6b0]
call fcn.14004a4dc
nop
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x30], rax
mov qword [rbp + 0x1b0], r12
mov qword [rbp + 0x1b8], r12
lea rdx, [rbp + 0x2d0]
lea rcx, [rbp + 0x1a0]
call fcn.140006560
nop
lea rdx, [rbp + 0x2f0]
cmp qword [rbp + 0x308], rbx
cmovae rdx, qword [rbp + 0x2f0]
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], rsi
mov byte [rbp + 0x90], r12b
lea rcx, [rbp + 0x90]
call fcn.140002b2c
nop
lea r8, [rbp + 0x1a0]
lea rdx, [rbp + 0x90]
lea rcx, [0x14006e3c0]
call fcn.140016de0
nop
mov rdx, qword [rbp + 0x2e8]
cmp rdx, rbx
jb 0x140040aee
inc rdx
mov rcx, qword [rbp + 0x2d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040ae9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040bd8
call fcn.14004cdd8
mov qword [rbp + 0x2e0], r12
mov qword [rbp + 0x2e8], rsi
mov byte [rbp + 0x2d0], r12b
mov rdx, qword [rbp + 0x308]
cmp rdx, rbx
jb 0x140040b44
inc rdx
mov rcx, qword [rbp + 0x2f0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040b3e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040bdf
call fcn.14004cdd8
nop
mov rdx, qword [rbp + 0x2c8]
cmp rdx, rbx
jb 0x140040b80
inc rdx
mov rcx, qword [rbp + 0x2b0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040b7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040be6
call fcn.14004cdd8
lea rcx, [rbp + 0x2a0]
call fcn.1400374f0
test eax, eax
jne 0x140040d04
jmp 0x140040374
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rbp + 0x2a8]
test rcx, rcx
je 0x140040c36
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x140040c2f
mov rbx, qword [rbp + 0x2a8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r13d
lock xadd dword [rbx + 0xc], eax
add eax, r13d
jne 0x140040c2f
mov rcx, qword [rbp + 0x2a8]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbp + 0x298]
test rdi, rdi
je 0x140040c72
mov eax, r13d
lock xadd dword [rdi + 8], eax
add eax, r13d
jne 0x140040c72
mov rbx, qword [rbp + 0x298]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r13d
lock xadd dword [rbx + 0xc], eax
add eax, r13d
jne 0x140040c72
mov rcx, qword [rbp + 0x298]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140040ca8
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140040ca3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140040ce7
mov rcx, r8
call fcn.14004cdd8
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], 0xf
mov byte [r14], r12b
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.14004cef0
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x30]
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 qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea r8, [rbp + 0x180]
mov edx, eax
lea rcx, str.recursive_directory_iterator::recursive_directory_iterator
call fcn.14002877c
nop
mov edx, eax
lea rcx, str.recursive_directory_iterator::operator
call fcn.140028718
int3