Function at 0x140004920
Capabilities:
Encode data using xor

Disassembly:
cmp edx, 4
jb 0x140004bd7
mov rax, rsp
mov dword [rax + 0x10], edx
mov dword [rax + 8], ecx
push rsi
push rdi
push r15
sub rsp, 0x50
mov qword [rax + 0x18], rbx
mov qword [rax - 0x20], rbp
mov qword [rax - 0x28], r12
xor ebx, ebx
xor r10d, r10d
mov qword [rax - 0x30], r13
mov r15, r8
mov edi, edx
mov esi, ecx
mov qword [rax - 0x38], r14
mov dword [r9], 0
test edx, edx
je 0x140004988
nop word [rax + rax]
mov eax, dword [r8 + r10*4]
inc dword [r9]
cdq
xor eax, edx
sub eax, edx
add ebx, eax
lea r10d, [r10 + rax + 1]
cmp r10d, edi
jb 0x140004970
mov ecx, dword [r9]
mov eax, 4
mov r13, 0xffffffffffffffff
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.140061e14
mov r14, qword [rsp + 0x90]
mov qword [r14], rax
lea eax, [rbx + rsi]
mov rbx, qword [rsp + 0x98]
mov ecx, eax
mov dword [rbx], eax
mov eax, 4
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.140061e14
mov r12, qword [rsp + 0xa0]
xor edx, edx
mov qword [r12], rax
mov r8d, dword [rbx]
mov rcx, rax
shl r8, 2
call sub.MSVCR100.dll_memset
mov eax, 4
mov rbp, rsi
mul rsi
cmovo rax, r13
mov rcx, rax
call fcn.140061e14
mov rsi, qword [rsp + 0xa8]
mov qword [rsi], rax
mov ecx, dword [rbx]
mov eax, 4
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.140061e14
mov r13, qword [rsp + 0xb0]
xor edx, edx
mov qword [r13], rax
mov r8d, dword [rbx]
mov rcx, rax
shl r8, 2
call sub.MSVCR100.dll_memset
mov rcx, 0xffffffffffffffff
mov eax, 4
mul rbp
cmovo rax, rcx
mov rcx, rax
call fcn.140061e14
lea r8, [rbp*4]
xor edx, edx
mov rcx, rax
mov rbx, rax
mov qword [rsp + 0x20], rax
call sub.MSVCR100.dll_memset
xor r11d, r11d
test edi, edi
je 0x140004ad9
xor r9d, r9d
nop word [rax + rax]
mov eax, dword [r15 + r11*4]
mov rcx, qword [r14]
add r9, 4
cdq
mov dword [r9 + rcx - 4], r11d
mov r8d, eax
movsxd rax, r11d
xor r8d, edx
sub r8d, edx
movsxd rdx, r8d
test r8d, r8d
jle 0x140004acf
lea rcx, [r15 + rax*4 + 4]
nop word [rax + rax]
movsxd rax, dword [rcx]
add rcx, 4
inc dword [rbx + rax*4]
dec rdx
jne 0x140004ac0
lea r11d, [r11 + r8 + 1]
cmp r11d, edi
jb 0x140004a90
xor edx, edx
cmp dword [rsp + 0x70], edx
jbe 0x140004b08
xor ecx, ecx
nop word [rax + rax]
mov rax, qword [rsi]
add rcx, 4
dec rbp
mov dword [rcx + rax - 4], edx
mov eax, dword [rcx + rbx - 4]
lea edx, [rdx + rax + 1]
jne 0x140004af0
xor ebp, ebp
xor r14d, r14d
test edi, edi
je 0x140004baa
mov ebx, dword [rsp + 0x78]
nop dword [rax]
mov eax, dword [r15 + r14*4]
xor r11d, r11d
cdq
mov esi, eax
movsxd rax, r14d
xor esi, edx
sub esi, edx
movsxd rdi, esi
test esi, esi
jle 0x140004b95
mov rbx, qword [rsp + 0xa8]
lea r10, [r15 + rax*4 + 4]
nop word [rax + rax]
movsxd rcx, dword [r10]
mov rax, qword [rbx]
add r10, 4
mov r9d, dword [rax + rcx*4]
mov rcx, qword [r12]
mov edx, dword [rcx + r9*4]
lea eax, [rdx + 1]
mov dword [rcx + r9*4], eax
mov rax, qword [r13]
lea ecx, [rdx + r9 + 1]
inc dword [rax + r9*4]
mov rax, qword [r12]
mov dword [rax + rcx*4], ebp
mov rax, qword [r13]
mov dword [rax + rcx*4], r11d
inc r11d
dec rdi
jne 0x140004b50
mov ebx, dword [rsp + 0x78]
lea r14d, [r14 + rsi + 1]
inc ebp
cmp r14d, ebx
jb 0x140004b20
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.mfc100u.dll_delete__]
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop rdi
pop rsi
repz ret