Function at 0x10002ae00
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov r14, rdx
mov rbp, rcx
or rbx, 0xffffffffffffffff
mov r12, rbx
lea eax, [rbx + 0x15]
mov dword [r11 + 0x18], 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 0x10002ae82
mov rcx, qword [rbp]
cmp rcx, r15
je 0x10002ae7b
mov eax, ebx
lock xadd dword [rcx + 8], eax
add eax, ebx
jne 0x10002ae77
cmp rcx, r15
je 0x10002ae77
mov rax, qword [rcx]
lea edx, [rbx + 2]
call qword [rax]
mov qword [rbp], r15
xor eax, eax
jmp 0x10002b101
mov rax, qword [rbp]
mov rsi, qword [rax + 0x10]
mov edi, 1
cmp rsi, r15
je 0x10002b0be
mov eax, r15d
cmp rsi, r15
setne al
cmp eax, r15d
je 0x10002b0b3
mov rbx, qword [rsi + 0x10]
mov rsi, qword [rsi]
cmp rbx, r15
je 0x10002aeba
lock add dword [rbx + 8], edi
mov qword [rsp + 0x40], rbx
mov rcx, qword [rbx + 0x18]
cmp dword [rcx - 0x10], r15d
je 0x10002aef1
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 0x10002af1b
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 0x10002b098
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0xa8], eax
xor r9d, r9d
mov r8, r13
lea rdx, [rsp + 0xa8]
mov rcx, r12
call sub.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle
cmp eax, r15d
jne 0x10002afb7
cmp eax, 0x7a
jne 0x10002b062
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xa0]
mov rcx, r12
call sub.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle
cmp eax, r15d
je 0x10002af8e
mov edx, dword [rsp + 0xa0]
mov rcx, r13
call qword [sym.imp.msvcrt.dll_realloc]
cmp rax, r15
je 0x10002b047
mov r13, rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0xa8], eax
xor r9d, r9d
mov r8, r13
lea rdx, [rsp + 0xa8]
mov rcx, r12
call sub.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle
cmp eax, r15d
je 0x10002af4e
cmp r13, r15
je 0x10002afd1
lea r8, [rbx + 0x20]
mov edx, dword [rsp + 0xa0]
mov rcx, r13
call fcn.100033e7c
jmp 0x10002afd4
mov eax, r15d
cmp eax, r15d
je 0x10002b07d
mov eax, dword [rsp + 0xa8]
mov ecx, 0x14
cmp eax, ecx
cmova eax, ecx
mov dword [rsp + 0xa8], eax
cmp eax, r15d
jbe 0x10002b013
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 0x10002b006
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rcx, 0xffffffffffffffff
mov r12, rcx
mov eax, ecx
lock xadd dword [rbx + 8], eax
add eax, ecx
jne 0x10002b038
mov rax, qword [rbx]
mov edx, edi
mov rcx, rbx
call qword [rax]
mov qword [rsp + 0x40], r15
cmp rsi, r15
je 0x10002b0be
jmp 0x10002ae98
mov esi, r15d
lock add dword [rbx + 8], 0xffffffff
jne 0x10002b05b
mov rax, qword [rbx]
mov edx, edi
mov rcx, rbx
call qword [rax]
mov qword [rsp + 0x40], r15
jmp 0x10002b0c0
mov esi, r15d
lock add dword [rbx + 8], 0xffffffff
jne 0x10002b076
mov rax, qword [rbx]
mov edx, edi
mov rcx, rbx
call qword [rax]
mov qword [rsp + 0x40], r15
jmp 0x10002b0c0
mov esi, r15d
lock add dword [rbx + 8], 0xffffffff
jne 0x10002b091
mov rax, qword [rbx]
mov edx, edi
mov rcx, rbx
call qword [rax]
mov qword [rsp + 0x40], r15
jmp 0x10002b0c0
mov esi, r15d
lock add dword [rbx + 8], 0xffffffff
jne 0x10002b0ac
mov rax, qword [rbx]
mov edx, edi
mov rcx, rbx
call qword [rax]
mov qword [rsp + 0x40], r15
jmp 0x10002b0c0
mov ecx, 0x80004005
call fcn.1000201f8
int3
mov esi, edi
cmp r13, r15
je 0x10002b0ce
mov rcx, r13
call qword [sym.imp.msvcrt.dll_free]
cmp r12, 0xffffffffffffffff
je 0x10002b0de
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp]
cmp rcx, r15
je 0x10002b0ff
lock add dword [rcx + 8], 0xffffffff
jne 0x10002b0fb
cmp rcx, r15
je 0x10002b0fb
mov r8, qword [rcx]
mov edx, edi
call qword [r8]
mov qword [rbp], r15
mov eax, esi
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret