Function at 0x10002ac04
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov r14, rdx
mov rbp, rcx
mov rbx, 0xffffffffffffffff
mov r12, rbx
lea eax, [rbx + 0x15]
mov dword [rsp + 0xb0], eax
xor r15d, r15d
mov qword [rdx], r15
mov qword [rdx + 8], r15
mov dword [rdx + 0x10], r15d
mov rcx, rax
call qword [sym.imp.msvcrt.dll_malloc]
mov r13, rax
cmp rax, r15
jne 0x10002ac87
mov rcx, qword [rbp]
cmp rcx, r15
je 0x10002ac80
mov eax, ebx
lock xadd dword [rcx + 8], eax
add eax, ebx
jne 0x10002ac7c
cmp rcx, r15
je 0x10002ac7c
mov rax, qword [rcx]
lea edx, [rbx + 2]
call qword [rax]
mov qword [rbp], r15
xor eax, eax
jmp 0x10002af09
mov rax, qword [rbp]
mov rsi, qword [rax + 0x10]
mov edi, 1
cmp rsi, r15
je 0x10002aec6
mov eax, r15d
cmp rsi, r15
setne al
cmp eax, r15d
je 0x10002aebb
mov rbx, qword [rsi + 0x10]
mov rsi, qword [rsi]
cmp rbx, r15
je 0x10002acbf
lock add dword [rbx + 8], edi
mov qword [rsp + 0x40], rbx
mov rcx, qword [rbx + 0x18]
cmp dword [rcx - 0x10], r15d
je 0x10002acf6
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, edi
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
jmp 0x10002ad20
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, edi
mov edx, 0x80000000
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp r12, 0xffffffffffffffff
je 0x10002aea0
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0xb8], eax
xor r9d, r9d
mov r8, r13
lea rdx, [rsp + 0xb8]
mov rcx, r12
call sub.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle
cmp eax, r15d
jne 0x10002adbc
cmp eax, 0x7a
jne 0x10002ae6a
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xb0]
mov rcx, r12
call sub.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle
cmp eax, r15d
je 0x10002ad93
mov edx, dword [rsp + 0xb0]
mov rcx, r13
call qword [sym.imp.msvcrt.dll_realloc]
cmp rax, r15
je 0x10002ae4f
mov r13, rax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0xb8], eax
xor r9d, r9d
mov r8, r13
lea rdx, [rsp + 0xb8]
mov rcx, r12
call sub.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle
cmp eax, r15d
je 0x10002ad53
cmp r13, r15
je 0x10002add6
lea r8, [rbx + 0x20]
mov edx, dword [rsp + 0xb0]
mov rcx, r13
call fcn.100033bd0
jmp 0x10002add9
mov eax, r15d
cmp eax, r15d
je 0x10002ae85
mov eax, dword [rsp + 0xb8]
mov ecx, 0x14
cmp eax, ecx
cmova eax, ecx
mov dword [rsp + 0xb8], eax
cmp eax, r15d
jbe 0x10002ae18
mov rcx, r14
mov rdx, r13
sub rdx, r14
mov r8d, eax
mov al, byte [rdx + rcx]
xor byte [rcx], al
add rcx, rdi
sub r8, rdi
jne 0x10002ae0b
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, 0xffffffffffffffff
mov r12, rcx
mov eax, ecx
lock xadd dword [rbx + 8], eax
add eax, ecx
jne 0x10002ae40
mov rax, qword [rbx]
mov edx, edi
mov rcx, rbx
call qword [rax]
mov qword [rsp + 0x40], r15
cmp rsi, r15
je 0x10002aec6
jmp 0x10002ac9d
mov esi, r15d
lock add dword [rbx + 8], 0xffffffff
jne 0x10002ae63
mov rax, qword [rbx]
mov edx, edi
mov rcx, rbx
call qword [rax]
mov qword [rsp + 0x40], r15
jmp 0x10002aec8
mov esi, r15d
lock add dword [rbx + 8], 0xffffffff
jne 0x10002ae7e
mov rax, qword [rbx]
mov edx, edi
mov rcx, rbx
call qword [rax]
mov qword [rsp + 0x40], r15
jmp 0x10002aec8
mov esi, r15d
lock add dword [rbx + 8], 0xffffffff
jne 0x10002ae99
mov rax, qword [rbx]
mov edx, edi
mov rcx, rbx
call qword [rax]
mov qword [rsp + 0x40], r15
jmp 0x10002aec8
mov esi, r15d
lock add dword [rbx + 8], 0xffffffff
jne 0x10002aeb4
mov rax, qword [rbx]
mov edx, edi
mov rcx, rbx
call qword [rax]
mov qword [rsp + 0x40], r15
jmp 0x10002aec8
mov ecx, 0x80004005
call fcn.10001fd10
int3
mov esi, edi
cmp r13, r15
je 0x10002aed6
mov rcx, r13
call qword [sym.imp.msvcrt.dll_free]
cmp r12, 0xffffffffffffffff
je 0x10002aee6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp]
cmp rcx, r15
je 0x10002af07
lock add dword [rcx + 8], 0xffffffff
jne 0x10002af03
cmp rcx, r15
je 0x10002af03
mov r8, qword [rcx]
mov edx, edi
call qword [r8]
mov qword [rbp], r15
mov eax, esi
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret