Function at 0x1800036a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x180087020]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rsi, r8
mov rdi, rdx
mov r12, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], r8
mov dword [rsp + 0x70], 0xe58034a1
mov dword [rsp + 0x74], 0xdb1c4fd
mov dword [rsp + 0x78], 0xd698298c
mov ecx, dword [0x180089430]
mov rax, qword gs:[0x58]
mov r15, qword [rax + rcx*8]
mov ecx, 0x564
mov eax, dword [rcx + r15]
test al, 1
jne 0x180003758
or eax, 1
mov dword [rcx + r15], eax
mov eax, 0x410
mov ebx, eax
mov byte [rax + r15 + 0xd], 1
movsd xmm0, qword [rsp + 0x70]
movsd qword [rax + r15], xmm0
mov eax, dword [rsp + 0x78]
mov dword [rbx + r15 + 8], eax
mov byte [rbx + r15 + 0xc], 0xb1
lea rcx, [0x1800688e0]
call fcn.18003f1a4
nop
jmp 0x18000375d
mov ebx, 0x410
lea r9, [r15 + rbx]
xor r8d, r8d
cmp byte [r9 + 0xd], r8b
je 0x1800037a0
mov edx, r8d
movabs r10, 0x7fd3adb181e15bed
nop word [rax + rax]
movzx ecx, dl
and cl, 7
shl cl, 3
mov rax, r10
shr rax, cl
xor byte [rdx + r9], al
inc rdx
cmp rdx, 0xd
jb 0x180003780
mov byte [r9 + 0xd], r8b
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], 0xf
mov r14, 0xffffffffffffffff
mov r8, r14
nop dword [rax]
inc r8
cmp byte [r9 + r8], 0
jne 0x1800037c0
mov rdx, r9
lea rcx, [rsp + 0x20]
call fcn.180002e80
mov rbx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1800037e4
mov rbx, qword [rdi]
lea rdx, [rsp + 0x20]
mov ecx, 1
call fcn.1800122a0
mov rcx, rbx
call rax
mov r13, rax
call fcn.180045878
cmp eax, 0x12
jne 0x18000380b
add dword [0x180087be8], eax
test r13, r13
jne 0x1800038ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, r12
call fcn.180011b20
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x180003864
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x18000385f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180003d1f
mov rcx, r8
call fcn.18003f0cc
xor ebx, ebx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 7
mov word [rdi], bx
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x1800038b4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1800038af
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180003d25
mov rcx, r8
call fcn.18003f0cc
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 7
mov rax, r12
mov word [rsi], bx
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.18003f070
mov rbx, qword [rsp + 0x188]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rax
lea rcx, [rbp - 0x60]
call fcn.1800137a0
nop
call fcn.180045878
cmp eax, 0x12
jne 0x18000392c
add dword [0x180087be8], eax
mov r8, rsi
cmp qword [rsi + 0x18], 8
jb 0x180003939
mov r8, qword [rsi]
mov rax, qword [rsi + 0x10]
lea r9, [r8 + rax*2]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.180014ed0
nop
lea rcx, [rbp - 0x60]
call fcn.1800136b0
nop
call fcn.180045878
cmp eax, 0xe
jne 0x180003969
add dword [0x180087be8], eax
mov dword [rsp + 0x70], 0x2bd73c48
mov dword [rsp + 0x74], 0x2e36a2e7
mov dword [rsp + 0x78], 0x1ed13d6b
mov word [rsp + 0x7c], 0xbee6
mov ecx, 0x3d4
mov eax, dword [rcx + r15]
test al, 1
jne 0x1800039de
or eax, 1
mov dword [rcx + r15], eax
mov eax, 0x400
mov ebx, eax
mov byte [rax + r15 + 0xf], 1
movsd xmm0, qword [rsp + 0x70]
movsd qword [rax + r15], xmm0
mov eax, dword [rsp + 0x78]
mov dword [rbx + r15 + 8], eax
movzx eax, word [rsp + 0x7c]
mov word [rbx + r15 + 0xc], ax
mov byte [rbx + r15 + 0xe], 0x55
lea rcx, [0x1800688b0]
call fcn.18003f1a4
nop
jmp 0x1800039e3
mov ebx, 0x400
lea r9, [r15 + rbx]
xor ebx, ebx
cmp byte [r9 + 0xf], bl
je 0x180003a20
mov edx, ebx
movabs r8, 0x6f55cd957ba3590f
nop dword [rax + rax]
movzx ecx, dl
and cl, 7
shl cl, 3
mov rax, r8
shr rax, cl
xor byte [rdx + r9], al
inc rdx
cmp rdx, 0xf
jb 0x180003a00
mov byte [r9 + 0xf], bl
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], 0xf
mov r8, r14
inc r8
cmp byte [r9 + r8], 0
jne 0x180003a36
mov rdx, r9
lea rcx, [rsp + 0x40]
call fcn.180002e80
lea rbx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rbx, qword [rbp - 0x80]
lea rdx, [rsp + 0x40]
mov ecx, 1
call fcn.1800122a0
mov rdx, rbx
mov rcx, r13
call rax
mov rbx, rax
call fcn.180045878
cmp eax, 6
jne 0x180003a85
add dword [0x180087be8], eax
test rbx, rbx
jne 0x180003b33
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, r12
call fcn.180011b20
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x180003ada
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003ad5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003d19
call fcn.18003f0cc
xor ebx, ebx
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], bl
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x180003866
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x180003b29
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180003d1f
mov rcx, r8
call fcn.18003f0cc
jmp 0x180003866
call rbx
call fcn.180045878
cmp eax, 2
jne 0x180003b45
add dword [0x180087be8], eax
mov ecx, 0x450
mov eax, dword [rcx + r15]
test al, 1
jne 0x180003b77
or eax, 1
mov dword [rcx + r15], eax
mov eax, 0x608
mov ebx, eax
mov dword [rax + r15], 0x1dfd2b6
lea rcx, [0x180068880]
call fcn.18003f1a4
nop
jmp 0x180003b7c
mov ebx, 0x608
lea rdx, [r15 + rbx]
cmp byte [rdx + 3], 0
je 0x180003b95
xor byte [rdx], 0xf9
xor byte [rdx + 1], 0x99
xor byte [rdx + 2], 0xdf
mov byte [rdx + 3], 0
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], 0xf
mov byte [rsp + 0x20], bl
nop
inc r14
cmp byte [rdx + r14], bl
jne 0x180003bb0
mov r8, r14
lea rcx, [rsp + 0x20]
call fcn.180002e80
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.180010ef0
mov rdx, rax
mov rcx, r12
call fcn.180011de0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x180003c1f
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003c1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003d2b
call fcn.18003f0cc
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], 0xf
mov byte [rsp + 0x20], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x180003c6d
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003c68
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003d07
call fcn.18003f0cc
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x180003cb8
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x180003cb3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180003d13
mov rcx, r8
call fcn.18003f0cc
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 7
mov word [rdi], bx
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x1800038b4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1800038af
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180003d0d
jmp 0x1800038ac
call fcn.180045aec
nop
call fcn.180045aec
nop
call fcn.180045aec
nop
call fcn.180045aec
nop
call fcn.180045aec
nop
call fcn.180045aec
nop
call fcn.180045aec
int3