Function at 0x140042bb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0xa8], rbx
mov rbp, rdx
mov rsi, rcx
mov rcx, qword [rcx]
xor ebx, ebx
mov dword [rsp + 0x44], ebx
cmp dword [rsi + 0x14], ebx
jle 0x140043196
nop dword [rax]
mov r15, rcx
movsxd rax, dword [rsi + 0x1c]
lea rcx, [rcx + rax*4]
mov qword [rsp + 0x48], rcx
mov r8d, dword [r15]
dec r8d
test r8d, r8d
jle 0x140043187
add r15, 4
mov edi, dword [r15]
xor r14d, r14d
mov ecx, dword [rsi + 0xc]
add ecx, ebx
mov dword [rbp + 0x68], ecx
mov rdx, qword [rbp + 0x48]
mov eax, dword [rdx + 0xc]
imul eax, ecx
movsxd rcx, eax
add rcx, qword [rdx]
mov qword [rbp + 0x70], rcx
sub r8d, 1
mov dword [rsp + 0x40], r8d
js 0x140043001
nop dword [rax]
nop dword [rax + rax]
mov r12d, dword [r15 + 4]
lea r15, [r15 + 8]
mov r13d, dword [r15]
mov ebx, r13d
sar ebx, 8
mov esi, edi
sar esi, 8
cmp ebx, esi
jne 0x140042c7b
mov eax, r13d
sub eax, edi
imul eax, r12d
add r14d, eax
jmp 0x140042fe3
movzx eax, dil
mov edi, 0x100
sub edi, eax
imul edi, r12d
add edi, r14d
sar edi, 8
test edi, edi
jle 0x140042e1f
mov r9d, 1
mov r8d, esi
mov rcx, rbp
cmp edi, 0xff
jl 0x140042d13
lea rdx, [rsp + 0xb0]
call fcn.140055420
nop
mov rax, qword [rbp + 0x48]
mov ecx, dword [rax + 0x10]
imul ecx, esi
movsxd r11, ecx
movzx r10d, byte [rsp + 0xb1]
or r10d, 0xff0000
imul r10d, dword [rbp + 0x58]
shr r10d, 8
and r10d, 0xff00ff
mov eax, r10d
shr eax, 0x10
mov edx, 0x100
sub edx, eax
movzx r9d, byte [rsp + 0xb2]
shl r9d, 0x10
movzx eax, byte [rsp + 0xb0]
or r9d, eax
imul r9d, dword [rbp + 0x58]
jmp 0x140042d7f
lea rdx, [rsp + 0xb8]
call fcn.140055420
nop
mov rax, qword [rbp + 0x48]
mov ecx, dword [rax + 0x10]
imul ecx, esi
movsxd r11, ecx
mov ecx, dword [rbp + 0x58]
imul ecx, edi
shr ecx, 8
movzx r10d, byte [rsp + 0xb9]
or r10d, 0xff0000
imul r10d, ecx
shr r10d, 8
and r10d, 0xff00ff
mov eax, r10d
shr eax, 0x10
mov edx, 0x100
sub edx, eax
movzx r9d, byte [rsp + 0xba]
shl r9d, 0x10
movzx eax, byte [rsp + 0xb8]
or r9d, eax
imul r9d, ecx
add r11, qword [rbp + 0x70]
mov r8d, dword [r11]
mov eax, r8d
and eax, 0xff00ff
imul eax, edx
shr eax, 8
shr r9d, 8
and eax, 0xff00ff
and r9d, 0xff00ff
shr r8d, 8
add r9d, eax
and r8d, 0xff00ff
imul r8d, edx
shr r8d, 8
and r8d, 0xff00ff
add r10d, r8d
mov eax, r10d
shr eax, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
mov eax, r10d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
mov eax, r10d
or ecx, r9d
shr eax, 8
xor edx, ecx
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl r10d, 8
shl ecx, 8
or ecx, r10d
and edx, 0xff00ff
xor edx, ecx
mov dword [r11], edx
test r12d, r12d
jle 0x140042fd6
inc esi
sub ebx, esi
test ebx, ebx
jle 0x140042fd6
cmp ebx, dword [rbp + 0x80]
jle 0x140042e60
movsxd rdi, ebx
mov qword [rbp + 0x80], rdi
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rdi + rdi*2]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
nop
mov qword [rbp + 0x78], rax
mov rdi, qword [rbp + 0x78]
mov r9d, ebx
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call fcn.140055420
nop
mov rax, qword [rbp + 0x48]
movsxd rcx, dword [rax + 0x10]
mov eax, ecx
imul eax, esi
movsxd r10, eax
add r10, qword [rbp + 0x70]
mov r11d, dword [rbp + 0x58]
imul r11d, r12d
sar r11d, 8
cmp r11d, 0xfe
jge 0x140042f94
mov rsi, rcx
add rdi, 2
nop word [rax + rax]
movzx r9d, byte [rdi - 1]
or r9d, 0xff0000
imul r9d, r11d
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
mov ecx, 0x100
sub ecx, eax
mov edx, dword [r10]
movzx r8d, byte [rdi]
shl r8d, 0x10
movzx eax, byte [rdi - 2]
or r8d, eax
imul r8d, r11d
shr r8d, 8
and r8d, 0xff00ff
mov eax, edx
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add r8d, eax
shr edx, 8
and edx, 0xff00ff
imul edx, ecx
shr edx, 8
and edx, 0xff00ff
add r9d, edx
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
shl edx, 8
mov eax, r9d
shl eax, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
or ecx, r8d
xor edx, ecx
and edx, 0xff00ff
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl ecx, 8
shl r9d, 8
or ecx, r9d
xor edx, ecx
mov dword [r10], edx
lea rdi, [rdi + 3]
add r10, rsi
dec ebx
test ebx, ebx
jg 0x140042eb0
jmp 0x140042fd6
mov rdx, rcx
nop word [rax + rax]
movzx eax, word [rdi]
mov word [rsp + 0x30], ax
movzx ecx, byte [rdi + 2]
shl ecx, 8
movzx eax, byte [rsp + 0x31]
or ecx, eax
shl ecx, 8
movzx eax, byte [rsp + 0x30]
or ecx, eax
or ecx, 0xff000000
mov dword [r10], ecx
lea rdi, [rdi + 3]
add r10, rdx
dec ebx
test ebx, ebx
jg 0x140042fa0
movzx r14d, r13b
imul r14d, r12d
mov r8d, dword [rsp + 0x40]
mov edi, r13d
sub r8d, 1
mov dword [rsp + 0x40], r8d
jns 0x140042c50
mov ebx, dword [rsp + 0x44]
mov rsi, qword [rsp + 0xa0]
sar r14d, 8
test r14d, r14d
jle 0x140043182
sar edi, 8
mov r9d, 1
mov r8d, edi
mov rcx, rbp
cmp r14d, 0xff
jl 0x140043081
lea rdx, [rsp + 0x20]
call fcn.140055420
nop
mov rax, qword [rbp + 0x48]
mov ecx, dword [rax + 0x10]
imul ecx, edi
movsxd r11, ecx
movzx r10d, byte [rsp + 0x21]
or r10d, 0xff0000
imul r10d, dword [rbp + 0x58]
shr r10d, 8
and r10d, 0xff00ff
mov eax, r10d
shr eax, 0x10
mov edx, 0x100
sub edx, eax
movzx r9d, byte [rsp + 0x22]
shl r9d, 0x10
movzx eax, byte [rsp + 0x20]
or r9d, eax
imul r9d, dword [rbp + 0x58]
jmp 0x1400430e2
lea rdx, [rsp + 0x24]
call fcn.140055420
nop
mov rax, qword [rbp + 0x48]
mov ecx, dword [rax + 0x10]
imul ecx, edi
movsxd r11, ecx
mov ecx, dword [rbp + 0x58]
imul ecx, r14d
shr ecx, 8
movzx r10d, byte [rsp + 0x25]
or r10d, 0xff0000
imul r10d, ecx
shr r10d, 8
and r10d, 0xff00ff
mov eax, r10d
shr eax, 0x10
mov edx, 0x100
sub edx, eax
movzx r9d, byte [rsp + 0x26]
shl r9d, 0x10
movzx eax, byte [rsp + 0x24]
or r9d, eax
imul r9d, ecx
add r11, qword [rbp + 0x70]
mov r8d, dword [r11]
mov eax, r8d
and eax, 0xff00ff
imul eax, edx
shr eax, 8
shr r9d, 8
and eax, 0xff00ff
and r9d, 0xff00ff
shr r8d, 8
add r9d, eax
and r8d, 0xff00ff
imul r8d, edx
shr r8d, 8
and r8d, 0xff00ff
add r10d, r8d
mov eax, r10d
shr eax, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
mov eax, r10d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
mov eax, r10d
or ecx, r9d
shr eax, 8
xor edx, ecx
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl r10d, 8
shl ecx, 8
or ecx, r10d
and edx, 0xff00ff
xor edx, ecx
mov dword [r11], edx
mov rcx, qword [rsp + 0x48]
inc ebx
mov dword [rsp + 0x44], ebx
cmp ebx, dword [rsi + 0x14]
jl 0x140042bf0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret