Function at 0x1400431b0
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, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rbp, rdx
mov rsi, rcx
mov rcx, qword [rcx]
xor ebx, ebx
mov dword [rsp + 0x28], ebx
cmp dword [rsi + 0x14], ebx
jle 0x14004375e
nop dword [rax]
mov r15, rcx
movsxd rax, dword [rsi + 0x1c]
lea rcx, [rcx + rax*4]
mov qword [rsp + 0x30], rcx
mov r8d, dword [r15]
dec r8d
test r8d, r8d
jle 0x14004374f
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 + 0x24], r8d
js 0x140043616
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 0x14004327b
mov eax, r13d
sub eax, edi
imul eax, r12d
add r14d, eax
jmp 0x1400435f8
movzx eax, dil
mov edi, 0x100
sub edi, eax
imul edi, r12d
add edi, r14d
sar edi, 8
test edi, edi
jle 0x1400433c6
mov r9d, 1
mov r8d, esi
mov rcx, rbp
cmp edi, 0xff
jl 0x1400432e0
lea rdx, [rsp + 0x90]
call fcn.140055150
nop
mov rax, qword [rbp + 0x48]
mov ecx, dword [rax + 0x10]
imul ecx, esi
movsxd r10, ecx
movzx eax, byte [rsp + 0x90]
mov r9d, eax
shl r9d, 0x10
or r9d, eax
imul r9d, dword [rbp + 0x58]
jmp 0x14004331a
lea rdx, [rsp + 0x98]
call fcn.140055150
nop
mov rax, qword [rbp + 0x48]
mov ecx, dword [rax + 0x10]
imul ecx, esi
movsxd r10, ecx
mov ecx, dword [rbp + 0x58]
imul ecx, edi
shr ecx, 8
movzx eax, byte [rsp + 0x98]
mov r9d, eax
shl r9d, 0x10
or r9d, eax
imul r9d, ecx
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
mov ecx, 0x100
sub ecx, eax
add r10, qword [rbp + 0x70]
mov eax, dword [r10]
mov r8d, eax
and r8d, 0xff00ff
imul r8d, ecx
shr r8d, 8
and r8d, 0xff00ff
shr eax, 8
add r8d, r9d
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add r9d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
mov eax, r9d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
mov eax, r9d
or ecx, r8d
shr eax, 8
xor edx, ecx
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl r9d, 8
shl ecx, 8
or ecx, r9d
and edx, 0xff00ff
xor edx, ecx
mov dword [r10], edx
test r12d, r12d
jle 0x1400435eb
inc esi
sub ebx, esi
test ebx, ebx
jle 0x1400435eb
cmp ebx, dword [rbp + 0x80]
jle 0x140043406
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
mov rcx, rdi
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.140055150
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 0x14004351f
mov rsi, rcx
nop dword [rax]
movzx eax, byte [rdi]
mov r9d, eax
shl r9d, 0x10
or r9d, eax
imul r9d, r11d
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
mov ecx, 0x100
sub ecx, eax
mov eax, dword [r10]
mov r8d, eax
and r8d, 0xff00ff
imul r8d, ecx
shr r8d, 8
and r8d, 0xff00ff
add r8d, r9d
shr eax, 8
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add r9d, eax
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 + 1]
add r10, rsi
dec ebx
test ebx, ebx
jg 0x140043450
jmp 0x1400435eb
mov r11, rcx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi]
mov r9d, eax
shl r9d, 0x10
or r9d, eax
mov eax, r9d
shr eax, 0x10
mov ecx, 0x100
sub ecx, eax
mov eax, dword [r10]
mov r8d, eax
and r8d, 0xff00ff
imul r8d, ecx
shr r8d, 8
and r8d, 0xff00ff
add r8d, r9d
shr eax, 8
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add r9d, eax
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 + 1]
add r10, r11
dec ebx
test ebx, ebx
jg 0x140043530
movzx r14d, r13b
imul r14d, r12d
mov r8d, dword [rsp + 0x24]
mov edi, r13d
sub r8d, 1
mov dword [rsp + 0x24], r8d
jns 0x140043250
mov ebx, dword [rsp + 0x28]
mov rsi, qword [rsp + 0x80]
sar r14d, 8
test r14d, r14d
jle 0x14004374a
sar edi, 8
mov r9d, 1
mov r8d, edi
mov rcx, rbp
cmp r14d, 0xff
jl 0x140043669
lea rdx, [rsp + 0x20]
call fcn.140055150
nop
mov rax, qword [rbp + 0x48]
mov ecx, dword [rax + 0x10]
imul ecx, edi
movsxd r10, ecx
movzx eax, byte [rsp + 0x20]
mov r9d, eax
shl r9d, 0x10
or r9d, eax
imul r9d, dword [rbp + 0x58]
jmp 0x14004369e
lea rdx, [rsp + 0x21]
call fcn.140055150
nop
mov rax, qword [rbp + 0x48]
mov ecx, dword [rax + 0x10]
imul ecx, edi
movsxd r10, ecx
mov ecx, dword [rbp + 0x58]
imul ecx, r14d
shr ecx, 8
movzx eax, byte [rsp + 0x21]
mov r9d, eax
shl r9d, 0x10
or r9d, eax
imul r9d, ecx
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
mov ecx, 0x100
sub ecx, eax
add r10, qword [rbp + 0x70]
mov eax, dword [r10]
mov r8d, eax
and r8d, 0xff00ff
imul r8d, ecx
shr r8d, 8
and r8d, 0xff00ff
shr eax, 8
add r8d, r9d
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add r9d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
mov eax, r9d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
mov eax, r9d
or ecx, r8d
shr eax, 8
xor edx, ecx
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl r9d, 8
shl ecx, 8
or ecx, r9d
and edx, 0xff00ff
xor edx, ecx
mov dword [r10], edx
mov rcx, qword [rsp + 0x30]
inc ebx
mov dword [rsp + 0x28], ebx
cmp ebx, dword [rsi + 0x14]
jl 0x1400431f0
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret