Function at 0x140039088
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x368]
sub rsp, 0x440
mov qword [rbp + 0x228], 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 + 0x330], rax
mov rsi, rdx
mov qword [rbp + 0x2a0], rdx
mov rcx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x1400390e1
mov rcx, qword [rdx]
mov qword [rbp + 0x2c0], rcx
or r12, 0xffffffffffffffff
mov rax, r12
xor r15d, r15d
inc rax
cmp byte [rcx + rax], r15b
jne 0x1400390f2
mov qword [rbp + 0x2c8], rax
movaps xmm0, xmmword [rbp + 0x2c0]
movdqa xmmword [rbp + 0x210], xmm0
call fcn.14004c6ac
lea r8, [rbp + 0x210]
mov edx, eax
lea rcx, [rbp + 0x180]
call fcn.140027d70
nop
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x2b0], xmm0
xor r8d, r8d
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x2b0]
call fcn.140026bac
test eax, eax
jne 0x140039b3c
lea rcx, [rbp + 0x180]
call fcn.1400287e8
xor eax, eax
mov qword [rbp + 0x2c0], rax
mov qword [rbp + 0x2c8], rax
mov rdi, qword [rbp + 0x2b8]
test rdi, rdi
je 0x140039188
lock inc dword [rdi + 8]
mov rdi, qword [rbp + 0x2b8]
movaps xmm0, xmmword [rbp + 0x2b0]
movdqa xmmword [rbp + 0x2c0], xmm0
test rdi, rdi
je 0x1400391a7
lock inc dword [rdi + 8]
mov rdi, qword [rbp + 0x2b8]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xb0], xmm0
test rdi, rdi
je 0x1400391f9
mov eax, r12d
lock xadd dword [rdi + 8], eax
add eax, r12d
jne 0x1400391f2
mov rbx, qword [rbp + 0x2b8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x1400391f2
mov rdi, qword [rbp + 0x2b8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
jmp 0x1400391f9
mov rdi, qword [rbp + 0x2b8]
mov r13d, 0xf
mov r14, qword [rbp + 0x2c0]
test r14, r14
je 0x140039a3f
mov cl, 0x52
mov dword [rsp + 0x20], 0x21387c52
mov word [rsp + 0x24], 0x3c3d
xor eax, eax
mov byte [rsp + 0x26], al
mov rax, r15
xor byte [rsp + rax + 0x21], cl
inc rax
cmp rax, 5
jae 0x14003923c
mov cl, byte [rsp + 0x20]
jmp 0x140039229
mov byte [rsp + 0x26], r15b
lea rax, [rsp + 0x21]
mov qword [rbp + 0xa0], rax
lea rcx, [rsp + 0x21]
mov rax, r12
inc rax
cmp byte [rcx + rax], r15b
jne 0x140039255
mov qword [rbp + 0xa8], rax
movaps xmm0, xmmword [rbp + 0xa0]
movdqa xmmword [rbp + 0x200], xmm0
call fcn.14004c6ac
lea r8, [rbp + 0x200]
mov edx, eax
lea rcx, [rbp + 0x60]
call fcn.140027d70
nop
add r14, 0x20
mov rcx, qword [r14 + 0x10]
mov rax, r14
cmp qword [r14 + 0x18], 8
jb 0x1400392a1
mov rax, qword [r14]
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rcx
movaps xmm0, xmmword [rbp + 0xc0]
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 + 0x90], r15
mov qword [rbp + 0x98], 7
mov word [rbp + 0x80], r15w
lea rcx, [rbp + 0x80]
call fcn.1400289e8
lea rax, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rax, qword [rbp + 0x60]
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0xd8], rax
movaps xmm0, xmmword [rbp + 0xd0]
movdqa xmmword [rbp + 0x1e0], xmm0
lea rdx, [rbp + 0x1e0]
lea rcx, [rbp + 0x80]
call fcn.140028a54
mov ebx, eax
lea rcx, [rbp + 0x80]
call fcn.1400287e8
nop
lea rcx, [rbp + 0x60]
call fcn.1400287e8
test ebx, ebx
jne 0x1400399e0
mov cl, 0x58
mov dword [rsp + 0x30], 0x2b327658
mov word [rsp + 0x34], 0x3637
xor eax, eax
mov byte [rsp + 0x36], al
mov rax, r15
xor byte [rsp + rax + 0x31], cl
inc rax
cmp rax, 5
jae 0x14003938d
mov cl, byte [rsp + 0x30]
jmp 0x14003937a
mov byte [rsp + 0x36], r15b
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], r13
mov byte [rbp - 0x20], r15b
lea rdx, [rsp + 0x31]
lea rcx, [rbp - 0x20]
call fcn.140002b2c
nop
mov rcx, qword [r14 + 0x10]
mov rax, r14
cmp qword [r14 + 0x18], 8
jb 0x1400393be
mov rax, qword [r14]
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], rcx
movaps xmm0, xmmword [rbp + 0xe0]
movdqa xmmword [rbp + 0x1d0], xmm0
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp + 0x270]
call fcn.14002830c
mov r8, qword [rax + 8]
mov rdx, qword [rax]
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x18], 7
mov word [rbp], r15w
lea rcx, [rbp]
call fcn.1400289e8
nop
lea rax, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rax, qword [rbp]
mov qword [rbp + 0xf0], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0xf8], rax
movaps xmm0, xmmword [rbp + 0xf0]
movdqa xmmword [rbp + 0x1c0], xmm0
call fcn.14004c6ac
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x1c0]
mov edx, eax
lea rcx, [rbp + 0x40]
call fcn.140026a10
nop
mov r8, rsi
mov ebx, 0x10
cmp qword [rsi + 0x18], rbx
jb 0x14003946d
mov r8, qword [rsi]
mov r9, r12
inc r9
cmp byte [r8 + r9], r15b
jne 0x140039470
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.140002c74
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r13
mov byte [rax], r15b
lea r8, [rbp - 0x20]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x310]
call fcn.140001204
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, rbx
jb 0x1400394fc
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400394f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400399f9
call fcn.14004cdd8
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r13
mov byte [rsp + 0x60], r15b
mov rdx, qword [rbp + 0x58]
cmp rdx, rbx
jb 0x140039545
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039540
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039a00
call fcn.14004cdd8
mov qword [rbp + 0x50], r15
mov qword [rbp + 0x58], r13
mov byte [rbp + 0x40], r15b
lea rcx, [rbp]
call fcn.1400287e8
nop
mov rdx, qword [rbp - 8]
cmp rdx, rbx
jb 0x140039595
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039590
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039a07
call fcn.14004cdd8
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], r13
mov byte [rbp - 0x20], r15b
mov cl, 0x36
mov dword [rsp + 0x28], 0x455c1836
mov word [rsp + 0x2c], 0x5859
xor eax, eax
mov byte [rsp + 0x2e], al
mov rax, r15
xor byte [rsp + rax + 0x29], cl
inc rax
cmp rax, 5
jae 0x1400395ce
mov cl, byte [rsp + 0x28]
jmp 0x1400395bb
mov byte [rsp + 0x2e], r15b
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r13
mov byte [rbp - 0x80], r15b
lea rdx, [rsp + 0x29]
lea rcx, [rbp - 0x80]
call fcn.140002b2c
nop
mov rax, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 8
jb 0x1400395fc
mov r14, qword [r14]
mov qword [rbp + 0x100], r14
mov qword [rbp + 0x108], rax
movaps xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0x230], xmm0
lea rdx, [rbp + 0x230]
lea rcx, [rbp + 0x280]
call fcn.14002830c
mov r8, qword [rax + 8]
mov rdx, qword [rax]
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r15w
lea rcx, [rbp - 0x60]
call fcn.1400289e8
nop
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rax, qword [rbp - 0x60]
mov qword [rbp + 0x110], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x118], rax
movaps xmm0, xmmword [rbp + 0x110]
movdqa xmmword [rbp + 0x240], xmm0
call fcn.14004c6ac
lea r9, [rsp + 0x39]
lea r8, [rbp + 0x240]
mov edx, eax
lea rcx, [rbp + 0x20]
call fcn.140026a10
nop
movdqa xmm0, xmmword [0x14005b670]
movdqu xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], 0x595f6d68
mov word [rsp + 0x5c], 0x2647
xor eax, eax
mov byte [rsp + 0x5e], al
mov rcx, r15
mov al, byte [rsp + 0x48]
xor byte [rsp + rcx + 0x49], al
inc rcx
cmp rcx, 0x15
jb 0x1400396c0
mov byte [rsp + 0x5e], r15b
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r13
mov byte [rbp - 0x40], r15b
lea rdx, [rsp + 0x49]
lea rcx, [rbp - 0x40]
call fcn.140002b2c
nop
lea r8, [rbp + 0x20]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x120]
call fcn.140001204
nop
lea r8, [rbp - 0x80]
mov rdx, rax
lea rcx, [rbp + 0x2f0]
call fcn.140001204
nop
mov rdx, qword [rbp + 0x138]
mov r14d, 0x1000
cmp rdx, rbx
jb 0x14003975c
inc rdx
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, r14
jb 0x140039757
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039a0e
call fcn.14004cdd8
mov qword [rbp + 0x130], r15
mov qword [rbp + 0x138], r13
mov byte [rbp + 0x120], r15b
mov rdx, qword [rbp - 0x28]
cmp rdx, rbx
jb 0x1400397a7
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, r14
jb 0x1400397a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039a15
call fcn.14004cdd8
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r13
mov byte [rbp - 0x40], r15b
mov rdx, qword [rbp + 0x38]
cmp rdx, rbx
jb 0x1400397e9
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, r14
jb 0x1400397e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039a1c
call fcn.14004cdd8
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x38], r13
mov byte [rbp + 0x20], r15b
lea rcx, [rbp - 0x60]
call fcn.1400287e8
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, rbx
jb 0x140039835
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, r14
jb 0x140039830
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039a23
call fcn.14004cdd8
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r13
mov byte [rbp - 0x80], r15b
lea rdx, [rbp + 0x310]
cmp qword [rbp + 0x328], rbx
cmovae rdx, qword [rbp + 0x310]
mov qword [rbp + 0x150], r15
mov qword [rbp + 0x158], r13
mov byte [rbp + 0x140], r15b
lea rcx, [rbp + 0x140]
call fcn.140002b2c
mov r9d, 8
lea r8, [rbp + 0x140]
lea rdx, [rbp + 0x2d0]
lea rcx, [0x14006e6b0]
call fcn.14004a4dc
nop
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x40], rax
mov qword [rbp + 0x1b0], r15
mov qword [rbp + 0x1b8], r15
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 + 0x170], r15
mov qword [rbp + 0x178], r13
mov byte [rbp + 0x160], r15b
lea rcx, [rbp + 0x160]
call fcn.140002b2c
nop
lea r8, [rbp + 0x1a0]
lea rdx, [rbp + 0x160]
lea rcx, [0x14006e3c0]
call fcn.140016de0
nop
mov rdx, qword [rbp + 0x2e8]
cmp rdx, rbx
jb 0x140039956
inc rdx
mov rcx, qword [rbp + 0x2d0]
mov rax, rcx
cmp rdx, r14
jb 0x140039951
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039a2a
call fcn.14004cdd8
mov qword [rbp + 0x2e0], r15
mov qword [rbp + 0x2e8], r13
mov byte [rbp + 0x2d0], r15b
mov rdx, qword [rbp + 0x308]
cmp rdx, rbx
jb 0x1400399a8
inc rdx
mov rcx, qword [rbp + 0x2f0]
mov rax, rcx
cmp rdx, r14
jb 0x1400399a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039a31
call fcn.14004cdd8
nop
mov rdx, qword [rbp + 0x328]
cmp rdx, rbx
jb 0x1400399e0
inc rdx
mov rcx, qword [rbp + 0x310]
mov rax, rcx
cmp rdx, r14
jb 0x1400399db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039a38
call fcn.14004cdd8
lea rcx, [rbp + 0x2c0]
call fcn.140027c3c
test eax, eax
jne 0x140039b52
jmp 0x1400391ff
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]
int3
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 + 0x2c8]
test rcx, rcx
je 0x140039a88
mov eax, r12d
lock xadd dword [rcx + 8], eax
add eax, r12d
jne 0x140039a81
mov rbx, qword [rbp + 0x2c8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x140039a81
mov rcx, qword [rbp + 0x2c8]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbp + 0x2b8]
test rdi, rdi
je 0x140039ac4
mov eax, r12d
lock xadd dword [rdi + 8], eax
add eax, r12d
jne 0x140039ac4
mov rbx, qword [rbp + 0x2b8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x140039ac4
mov rcx, qword [rbp + 0x2b8]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140039afa
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140039af5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140039b35
mov rcx, r8
call fcn.14004cdd8
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r13
mov byte [rsi], r15b
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.14004cef0
lea r11, [rsp + 0x440]
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.directory_iterator::directory_iterator
call fcn.14002877c
nop
mov edx, eax
lea rcx, str.directory_iterator::operator
call fcn.140028718
int3