Function at 0x1000289e0
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 0x100028a62
mov rcx, qword [rbp]
cmp rcx, r15
je 0x100028a5b
mov eax, ebx
lock xadd dword [rcx + 8], eax
add eax, ebx
jne 0x100028a57
cmp rcx, r15
je 0x100028a57
mov rax, qword [rcx]
lea edx, [rbx + 2]
call qword [rax]
mov qword [rbp], r15
xor eax, eax
jmp 0x100028ce1
mov rax, qword [rbp]
mov rsi, qword [rax + 0x10]
mov edi, 1
cmp rsi, r15
je 0x100028c9e
mov eax, r15d
cmp rsi, r15
setne al
cmp eax, r15d
je 0x100028c93
mov rbx, qword [rsi + 0x10]
mov rsi, qword [rsi]
cmp rbx, r15
je 0x100028a9a
lock add dword [rbx + 8], edi
mov qword [rsp + 0x40], rbx
mov rcx, qword [rbx + 0x18]
cmp dword [rcx - 0x10], r15d
je 0x100028ad1
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 0x100028afb
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 0x100028c78
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 0x100028b97
cmp eax, 0x7a
jne 0x100028c42
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xa0]
mov rcx, r12
call sub.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle
cmp eax, r15d
je 0x100028b6e
mov edx, dword [rsp + 0xa0]
mov rcx, r13
call qword [sym.imp.msvcrt.dll_realloc]
cmp rax, r15
je 0x100028c27
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 0x100028b2e
cmp r13, r15
je 0x100028bb1
lea r8, [rbx + 0x20]
mov edx, dword [rsp + 0xa0]
mov rcx, r13
call fcn.100030b4c
jmp 0x100028bb4
mov eax, r15d
cmp eax, r15d
je 0x100028c5d
mov eax, dword [rsp + 0xa8]
mov ecx, 0x14
cmp eax, ecx
cmova eax, ecx
mov dword [rsp + 0xa8], eax
cmp eax, r15d
jbe 0x100028bf3
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 0x100028be6
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 0x100028c18
mov rax, qword [rbx]
mov edx, edi
mov rcx, rbx
call qword [rax]
mov qword [rsp + 0x40], r15
cmp rsi, r15
je 0x100028c9e
jmp 0x100028a78
mov esi, r15d
lock add dword [rbx + 8], 0xffffffff
jne 0x100028c3b
mov rax, qword [rbx]
mov edx, edi
mov rcx, rbx
call qword [rax]
mov qword [rsp + 0x40], r15
jmp 0x100028ca0
mov esi, r15d
lock add dword [rbx + 8], 0xffffffff
jne 0x100028c56
mov rax, qword [rbx]
mov edx, edi
mov rcx, rbx
call qword [rax]
mov qword [rsp + 0x40], r15
jmp 0x100028ca0
mov esi, r15d
lock add dword [rbx + 8], 0xffffffff
jne 0x100028c71
mov rax, qword [rbx]
mov edx, edi
mov rcx, rbx
call qword [rax]
mov qword [rsp + 0x40], r15
jmp 0x100028ca0
mov esi, r15d
lock add dword [rbx + 8], 0xffffffff
jne 0x100028c8c
mov rax, qword [rbx]
mov edx, edi
mov rcx, rbx
call qword [rax]
mov qword [rsp + 0x40], r15
jmp 0x100028ca0
mov ecx, 0x80004005
call fcn.10001f28c
int3
mov esi, edi
cmp r13, r15
je 0x100028cae
mov rcx, r13
call qword [sym.imp.msvcrt.dll_free]
cmp r12, 0xffffffffffffffff
je 0x100028cbe
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp]
cmp rcx, r15
je 0x100028cdf
lock add dword [rcx + 8], 0xffffffff
jne 0x100028cdb
cmp rcx, r15
je 0x100028cdb
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