Function at 0x18008c180
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x278]
sub rsp, 0x340
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x1803435b8]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov r14, rdx
mov qword [rsp + 0x78], rdx
mov rsi, rcx
mov qword [rsp + 0x70], rcx
xor r15d, r15d
mov byte [rbp + 0x160], 1
mov dword [rsp + 0x30], 0x1008382
mov edx, r15d
nop
lea eax, [rdx - 0x54]
xor byte [rsp + rdx + 0x30], al
inc rdx
cmp rdx, 2
jb 0x18008c1e0
mov byte [rsp + 0x33], r15b
lea rax, [rsp + 0x30]
mov qword [rbp - 0x40], rax
lea rcx, [rsp + 0x30]
mov rdi, 0xffffffffffffffff
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rcx + rax], r15b
jne 0x18008c210
mov qword [rbp - 0x38], rax
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x168]
call fcn.180072a90
nop
mov dword [rbp + 0x20], 0x8ff3e9f7
mov dword [rbp + 0x24], 0x1009f9e
mov rcx, r15
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x54]
xor byte [rbp + rcx + 0x20], al
inc rcx
cmp rcx, 6
jb 0x18008c250
mov byte [rbp + 0x27], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x188], xmm0
mov qword [rbp + 0x198], r15
mov qword [rbp + 0x1a0], r15
lea rax, [rbp + 0x20]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x18008c283
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x188]
call fcn.18005bb80
nop
xor eax, eax
mov word [rsp + 0x38], ax
lea rax, [rsp + 0x38]
mov qword [rbp - 0x30], rax
lea rcx, [rsp + 0x38]
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x18008c2b6
mov qword [rbp - 0x28], rax
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x1a8]
call fcn.180072a90
nop
lea r12, [rsi + 0xc8]
mov r8d, 1
lea rdx, [rbp + 0x160]
mov rcx, r12
call fcn.180072810
nop
lea r9, [fcn.180082fa0]
mov edx, 0x68
lea r8d, [rdx - 0x67]
lea rcx, [rbp + 0x160]
call fcn.1800ef80c
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.1800749b0
test eax, eax
jne 0x18008cd3a
mov r13, qword [rsp + 0x58]
test r13, r13
je 0x18008c345
lock inc dword [r13 + 8]
mov r13, qword [rsp + 0x58]
movdqa xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x60], xmm0
test r13, r13
je 0x18008c366
lock inc dword [r13 + 8]
mov r13, qword [rsp + 0x58]
movdqa xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
lea rcx, [rbp - 0x20]
call fcn.180082a50
nop
mov esi, 7
lea edi, [rsi + 8]
nop word [rax + rax]
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x18008cbc6
mov byte [rbp + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x58], xmm0
xor r14d, r14d
mov qword [rbp + 0x68], r14
mov qword [rbp + 0x70], rsi
mov word [rbp + 0x58], r14w
movups xmmword [rbp + 0x78], xmm0
mov qword [rbp + 0x88], r14
mov qword [rbp + 0x90], rdi
mov byte [rbp + 0x78], r14b
movups xmmword [rbp + 0x98], xmm0
mov qword [rbp + 0xa8], r14
mov qword [rbp + 0xb0], rsi
mov word [rbp + 0x98], r14w
lea r8d, [r14 + 3]
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.18008f1a0
mov rax, qword [rbp - 0x80]
mov edx, dword [rbp - 0x78]
test edx, edx
je 0x18008c416
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x18008cd4c
cmp eax, 2
jne 0x18008c420
xor r15b, r15b
jmp 0x18008c458
mov r8d, 3
lea rdx, [rbp - 0x70]
mov rcx, rbx
call fcn.18008f1a0
mov rax, qword [rbp - 0x70]
mov edx, dword [rbp - 0x68]
test edx, edx
je 0x18008c44c
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x18008cd1a
cmp eax, 3
jne 0x18008cb3c
mov r15b, 1
mov byte [rbp + 0x50], r15b
lea rsi, [rbx + 0x20]
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x18008c46d
mov rcx, qword [rsi]
lea r14, [rsi + 0x10]
mov rax, qword [r14]
lea rdi, [rcx + rax*2]
mov rbx, rdi
mov rdx, rdi
call fcn.18008f0a0
cmp rax, rdi
je 0x18008c4cb
nop dword [rax + rax]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x18008c49f
cmp cx, 0x2f
jne 0x18008c4a8
add rax, 2
cmp rax, rdi
jne 0x18008c490
cmp rax, rdi
je 0x18008c4cb
nop dword [rax]
lea rdx, [rbx - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x18008c4cb
cmp cx, 0x2f
je 0x18008c4cb
mov rbx, rdx
cmp rax, rdx
jne 0x18008c4b0
sub rdi, rbx
sar rdi, 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x120], xmm0
xor eax, eax
mov qword [rbp + 0x130], rax
mov qword [rbp + 0x138], rax
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp + 0x120]
call fcn.1800729c0
movups xmm7, xmmword [rbp + 0x120]
movups xmmword [rbp + 0x58], xmm7
movups xmm6, xmmword [rbp + 0x130]
movups xmmword [rbp + 0x68], xmm6
movq rax, xmm6
test rax, rax
jne 0x18008c583
lea edi, [rax + 0xf]
psrldq xmm6, 8
movq rdx, xmm6
cmp rdx, 8
jb 0x18008c567
movq rcx, xmm7
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rax, rcx
jb 0x18008c562
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18008cbbf
call fcn.1800ef630
mov esi, 7
lea rcx, [rsp + 0x60]
call fcn.18008e220
test eax, eax
jne 0x18008cd2b
jmp 0x18008c390
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x18008c590
mov rcx, qword [rsi]
mov rax, qword [r14]
lea rdi, [rcx + rax*2]
mov rbx, rdi
mov rdx, rdi
call fcn.18008f0a0
cmp rax, rdi
je 0x18008c5eb
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x18008c5b6
cmp cx, 0x2f
jne 0x18008c5bf
add rax, 2
cmp rax, rdi
jne 0x18008c5a7
cmp rax, rdi
je 0x18008c5eb
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rbx - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x18008c5eb
cmp cx, 0x2f
je 0x18008c5eb
mov rbx, rdx
cmp rax, rdx
jne 0x18008c5d0
sub rdi, rbx
sar rdi, 1
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
xor eax, eax
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rax
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp + 0xc0]
call fcn.1800729c0
nop
lea rcx, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 8
cmovae rcx, qword [rbp + 0xc0]
mov rax, qword [rbp + 0xd0]
lea rdi, [rcx + rax*2]
mov rbx, rdi
mov rdx, rdi
call fcn.18008f0a0
cmp rax, rdi
je 0x18008c68b
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x18008c65f
cmp cx, 0x2f
jne 0x18008c668
add rax, 2
cmp rax, rdi
jne 0x18008c650
cmp rax, rdi
je 0x18008c68b
nop dword [rax]
lea rdx, [rbx - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x18008c68b
cmp cx, 0x2f
je 0x18008c68b
mov rbx, rdx
cmp rax, rdx
jne 0x18008c670
mov r8d, Ordinal_60
mov rdx, rdi
mov rcx, rbx
call fcn.1800ee890
cmp rbx, rax
je 0x18008c6df
lea rdx, [rax - 2]
cmp rbx, rdx
je 0x18008c6df
cmp word [rdx], 0x2e
jne 0x18008c6c1
lea rcx, [rdx - 2]
cmp rbx, rcx
jne 0x18008c6e2
cmp word [rcx], 0x2e
jne 0x18008c6e2
jmp 0x18008c6df
sub rdx, 2
cmp rbx, rdx
je 0x18008c6df
nop word [rax + rax]
cmp word [rdx], 0x2e
je 0x18008c6e2
sub rdx, 2
cmp rbx, rdx
jne 0x18008c6d0
mov rdx, rax
sub rax, rdx
sar rax, 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x140], xmm0
xor ecx, ecx
mov qword [rbp + 0x150], rcx
mov qword [rbp + 0x158], rcx
mov r8, rax
lea rcx, [rbp + 0x140]
call fcn.1800729c0
movups xmm0, xmmword [rbp + 0x140]
movups xmmword [rbp + 0x98], xmm0
movups xmm1, xmmword [rbp + 0x150]
movups xmmword [rbp + 0xa8], xmm1
mov rdx, qword [rbp + 0xd8]
cmp rdx, 8
jb 0x18008c773
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008c76e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18008cbb1
call fcn.1800ef630
cmp qword [rsi + 0x18], 8
jb 0x18008c77d
mov rsi, qword [rsi]
mov rax, qword [r14]
lea rdi, [rsi + rax*2]
mov rbx, rdi
mov rdx, rdi
mov rcx, rsi
call fcn.18008f0a0
cmp rax, rdi
je 0x18008c7db
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x18008c7a6
cmp cx, 0x2f
jne 0x18008c7af
add rax, 2
cmp rax, rdi
jne 0x18008c797
cmp rax, rdi
je 0x18008c7db
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rbx - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x18008c7db
cmp cx, 0x2f
je 0x18008c7db
mov rbx, rdx
cmp rax, rdx
jne 0x18008c7c0
sub rdi, rbx
sar rdi, 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
xor r14d, r14d
mov qword [rbp + 0x110], r14
mov qword [rbp + 0x118], r14
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp + 0x100]
call fcn.1800729c0
nop
lea rax, [rbp + 0x100]
cmp qword [rbp + 0x118], 8
cmovae rax, qword [rbp + 0x100]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x110]
mov qword [rbp - 8], rax
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rbp + 0x10], xmm0
lea r9, [rsp + 0x34]
lea r8, [rbp + 0x10]
mov edx, 0xfde9
lea rcx, [rbp - 0x60]
call fcn.180072b80
movups xmm1, xmmword [rbp - 0x60]
movups xmmword [rbp + 0xe0], xmm1
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rbp + 0xf0], xmm0
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x60], r14b
mov ecx, r14d
test r15b, r15b
je 0x18008c8ba
mov dword [rbp + 0x38], 0xc3c1ebf7
mov dword [rbp + 0x3c], 0xeec0d4d4
mov dword [rbp + 0x40], 0x100959d
nop dword [rax + rax]
lea eax, [rcx - 0x54]
xor byte [rbp + rcx + 0x38], al
inc rcx
cmp rcx, 0xa
jb 0x18008c8a0
mov byte [rbp + 0x43], 0
lea rdi, [rbp + 0x38]
jmp 0x18008c8e8
mov dword [rbp + 0x28], 0xc3c7ebf7
mov dword [rbp + 0x2c], 0x92ecd5
mov byte [rbp + 0x30], 1
nop dword [rax]
lea eax, [rcx - 0x54]
xor byte [rbp + rcx + 0x28], al
inc rcx
cmp rcx, 7
jb 0x18008c8d0
mov byte [rbp + 0x30], 0
lea rdi, [rbp + 0x28]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rdi + rbx], 0
jne 0x18008c8f0
movq r8, xmm0
psrldq xmm0, 8
movq rcx, xmm0
mov rax, rcx
sub rax, r8
cmp rbx, rax
ja 0x18008c997
lea rax, [rbx + r8]
mov qword [rbp + 0xf0], rax
lea rsi, [rbp + 0xe0]
movq rax, xmm1
cmp rcx, 0x10
cmovae rsi, rax
lea rax, [rbx + rdi]
cmp rax, rsi
jbe 0x18008c955
lea rax, [rsi + r8]
cmp rdi, rax
ja 0x18008c955
cmp rsi, rdi
jbe 0x18008c958
mov r14, rsi
sub r14, rdi
jmp 0x18008c958
mov r14, rbx
lea rcx, [rsi + rbx]
inc r8
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsi + r14]
mov r8, rbx
sub r8, r14
lea rdx, [r14 + rbx]
add rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp + 0xe0]
xor r14d, r14d
jmp 0x18008c9b6
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0xe0]
call fcn.180013c40
movups xmm6, xmmword [rax]
movups xmmword [rbp + 0x1f0], xmm6
movups xmm7, xmmword [rax + 0x10]
movups xmmword [rbp + 0x200], xmm7
mov qword [rax + 0x10], r14
mov edi, reloc.WS2_32.dll_ntohs
mov qword [rax + 0x18], rdi
mov byte [rax], 0
movups xmmword [rbp + 0x78], xmm6
movups xmmword [rbp + 0x88], xmm7
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0x10
jb 0x18008ca27
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008ca22
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18008cbb8
call fcn.1800ef630
mov qword [rbp + 0xf0], r14
mov qword [rbp + 0xf8], rdi
mov byte [rbp + 0xe0], 0
lea rcx, [rbp + 0x100]
call fcn.1800097f0
mov rbx, qword [r12 + 8]
cmp rbx, qword [r12 + 0x10]
je 0x18008ca91
mov qword [rsp + 0x40], rbx
mov byte [rbx], r15b
lea rcx, [rbx + 8]
lea rdx, [rbp + 0x58]
call fcn.180080d50
nop
lea rcx, [rbx + 0x28]
lea rdx, [rbp + 0x78]
call fcn.180009d20
nop
lea rcx, [rbx + 0x48]
lea rdx, [rbp + 0x98]
call fcn.180080d50
nop
add qword [r12 + 8], 0x68
jmp 0x18008caa1
lea r8, [rbp + 0x50]
mov rdx, rbx
mov rcx, r12
call fcn.180073830
nop
mov rdx, qword [rbp + 0xb0]
cmp rdx, 8
jb 0x18008cae7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008cae2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18008cbbf
call fcn.1800ef630
mov rdx, qword [rbp + 0x90]
cmp rdx, 0x10
jb 0x18008cb25
inc rdx
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008cb20
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18008cbbf
call fcn.1800ef630
mov rdx, qword [rbp + 0x70]
cmp rdx, 8
jb 0x18008c567
mov rcx, qword [rbp + 0x58]
jmp 0x18008c535
cmp rdi, 0x10
jb 0x18008cb70
lea rdx, [rdi + 1]
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008cb6b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18008cbbf
call fcn.1800ef630
cmp rsi, 8
jb 0x18008c56c
lea rdx, [rsi*2 + 2]
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008cba7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18008cbbf
call fcn.1800ef630
jmp 0x18008c56c
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 [rsp + 0x68]
mov rdi, 0xffffffffffffffff
test rcx, rcx
je 0x18008cc0c
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18008cc07
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18008cc07
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r13, qword [rsp + 0x58]
test r13, r13
je 0x18008cc40
mov eax, edi
lock xadd dword [r13 + 8], eax
cmp eax, 1
jne 0x18008cc40
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x18008cc40
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rsi, qword [rsp + 0x70]
mov r10, qword [rsi + 0xd0]
mov rcx, qword [r12]
mov r8, r10
sub r8, rcx
movabs rax, 0x4ec4ec4ec4ec4ec5
imul r8
sar rdx, 5
mov r8, rdx
shr r8, 0x3f
add r8, rdx
movzx r9d, byte [rsp + 0x34]
mov rdx, r10
call fcn.1800763a0
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp + 0x1d0]
call fcn.180090300
lea rcx, [rsi + 0x98]
mov rdx, rax
call fcn.180009860
lea rcx, [rbp + 0x1d0]
call fcn.1800097f0
mov rbx, qword [rsi + 0xb8]
mov r8, qword [rbx + 8]
lea rdx, [rsi + 0xb8]
lea rcx, [rsi + 0xb8]
call fcn.1800743b0
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
xor ecx, ecx
mov qword [rsi + 0xc0], rcx
mov rax, qword [rsi + 0xe0]
mov byte [rax], cl
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1800ef750
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [rbx + 0x20]
lea rcx, str.directory_entry::status
call fcn.180090130
nop
mov edx, eax
lea rcx, str.directory_iterator::operator
call fcn.1800900d0
nop
mov r8, r14
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.180090130
nop
lea r8, [rbx + 0x20]
lea rcx, str.directory_entry::status
call fcn.180090130
int3