Function at 0x14004ee30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
push rbp
push rsi
push r13
push r15
sub rsp, 0x20
mov esi, dword [rsp + 0x70]
mov ebx, r9d
mov ebp, r8d
mov r13d, edx
mov r15, rcx
cmp r8d, edx
jne 0x14004ee60
mov rax, rcx
add rsp, 0x20
pop r15
pop r13
pop rsi
pop rbp
pop rbx
ret
lea eax, [r8 - 1]
mov qword [rsp + 0x60], r14
cmp eax, 3
jbe 0x14004ee8f
mov r8d, 0x680
lea rdx, str.C:UsersOpchiDesktoppecesinclude_stb_image.h
lea rcx, str.req_comp___1__req_comp___4
call fcn.1400ddfa8
test ebp, ebp
js 0x14004f279
test ebx, ebx
js 0x14004f279
je 0x14004eeaa
xor edx, edx
mov eax, 0x7fffffff
div ebx
cmp ebp, eax
jg 0x14004f279
mov ecx, ebp
imul ecx, ebx
test ecx, ecx
js 0x14004f279
test esi, esi
js 0x14004f279
je 0x14004eed2
xor edx, edx
mov eax, 0x7fffffff
div esi
cmp ecx, eax
jg 0x14004f279
imul ecx, esi
movsxd rcx, ecx
call fcn.1400de01c
mov r14, rax
test rax, rax
je 0x14004f279
mov qword [rsp + 0x50], rdi
xor edi, edi
test esi, esi
jle 0x14004f258
mov qword [rsp + 0x58], r12
lea r8d, [rbx - 1]
lea r12d, [r13*8 - 0xa]
add r12d, ebp
lea r10, [0x140000000]
nop dword [rax]
nop word [rax + rax]
mov r9d, edi
mov eax, edi
imul r9d, r13d
imul eax, ebp
imul r9d, ebx
imul eax, ebx
add r9, r15
add rax, r14
cmp r12d, 0x19
ja case.0x14004ef51.3
movsxd rcx, r12d
mov edx, dword [r10 + rcx*4 + 0x4f2b0]
add rdx, r10
jmp rdx
lea r8d, [rbx - 1]
test r8d, r8d
js 0x14004f249
sub r8d, 1
movzx ecx, byte [r9]
mov byte [rax], cl
lea r9, [r9 + 1]
mov byte [rax + 1], 0xff
lea rax, [rax + 2]
jns 0x14004ef60
jmp 0x14004f245
lea r8d, [rbx - 1]
test r8d, r8d
js 0x14004f249
nop word [rax + rax]
sub r8d, 1
movzx ecx, byte [r9]
mov byte [rax + 2], cl
lea r9, [r9 + 1]
mov byte [rax + 1], cl
mov byte [rax], cl
lea rax, [rax + 3]
jns 0x14004ef90
jmp 0x14004f245
lea r8d, [rbx - 1]
test r8d, r8d
js 0x14004f249
nop dword [rax]
sub r8d, 1
movzx ecx, byte [r9]
mov byte [rax + 2], cl
lea r9, [r9 + 1]
mov byte [rax + 1], cl
mov byte [rax], cl
mov byte [rax + 3], 0xff
lea rax, [rax + 4]
jns 0x14004efc0
jmp 0x14004f245
lea r8d, [rbx - 1]
test r8d, r8d
js 0x14004f249
sub r8d, 1
movzx ecx, byte [r9]
mov byte [rax], cl
lea rax, [rax + 1]
lea r9, [r9 + 2]
jns 0x14004eff0
jmp 0x14004f245
lea r8d, [rbx - 1]
test r8d, r8d
js 0x14004f249
nop word [rax + rax]
sub r8d, 1
movzx ecx, byte [r9]
mov byte [rax + 2], cl
lea r9, [r9 + 2]
mov byte [rax + 1], cl
mov byte [rax], cl
lea rax, [rax + 3]
jns 0x14004f020
jmp 0x14004f245
lea r8d, [rbx - 1]
test r8d, r8d
js 0x14004f249
nop dword [rax]
sub r8d, 1
movzx ecx, byte [r9]
mov byte [rax + 2], cl
lea r9, [r9 + 2]
mov byte [rax + 1], cl
mov byte [rax], cl
lea rax, [rax + 4]
movzx ecx, byte [r9 - 1]
mov byte [rax - 1], cl
jns 0x14004f050
jmp 0x14004f245
test r8d, r8d
js 0x14004f249
sub r8d, 1
movzx ecx, byte [r9]
mov byte [rax], cl
lea rax, [rax + 4]
movzx ecx, byte [r9 + 1]
lea r9, [r9 + 3]
mov byte [rax - 3], cl
movzx ecx, byte [r9 - 1]
mov byte [rax - 2], cl
mov byte [rax - 1], 0xff
jns 0x14004f080
jmp 0x14004f245
mov r10d, r8d
test r8d, r8d
js 0x14004f0fc
nop word [rax + rax]
movzx ecx, byte [r9 + 1]
lea rax, [rax + 1]
imul r8d, ecx, 0x96
movzx ecx, byte [r9 + 2]
lea r9, [r9 + 3]
imul edx, ecx, 0x1d
movzx ecx, byte [r9 - 3]
add r8d, edx
imul edx, ecx, 0x4d
add r8d, edx
shr r8d, 8
sub r10d, 1
mov byte [rax - 1], r8b
jns 0x14004f0c0
lea r8d, [rbx - 1]
lea r10, [0x140000000]
jmp 0x14004f249
mov r10d, r8d
test r8d, r8d
js 0x14004f0fc
movzx ecx, byte [r9 + 1]
lea rax, [rax + 2]
imul r8d, ecx, 0x96
movzx ecx, byte [r9 + 2]
lea r9, [r9 + 3]
imul edx, ecx, 0x1d
movzx ecx, byte [r9 - 3]
mov byte [rax - 1], 0xff
add r8d, edx
imul edx, ecx, 0x4d
add r8d, edx
shr r8d, 8
sub r10d, 1
mov byte [rax - 2], r8b
jns 0x14004f110
jmp 0x14004f23e
mov r10d, r8d
test r8d, r8d
js 0x14004f0fc
nop dword [rax]
movzx ecx, byte [r9 + 1]
lea rax, [rax + 1]
imul r8d, ecx, 0x96
movzx ecx, byte [r9 + 2]
lea r9, [r9 + 4]
imul edx, ecx, 0x1d
movzx ecx, byte [r9 - 4]
add r8d, edx
imul edx, ecx, 0x4d
add r8d, edx
shr r8d, 8
sub r10d, 1
mov byte [rax - 1], r8b
jns 0x14004f160
jmp 0x14004f23e
mov r10d, r8d
test r8d, r8d
js 0x14004f0fc
nop dword [rax]
movzx ecx, byte [r9 + 1]
lea rax, [rax + 2]
imul r8d, ecx, 0x96
movzx ecx, byte [r9 + 2]
lea r9, [r9 + 4]
imul edx, ecx, 0x1d
movzx ecx, byte [r9 - 4]
add r8d, edx
imul edx, ecx, 0x4d
add r8d, edx
shr r8d, 8
sub r10d, 1
mov byte [rax - 2], r8b
movzx ecx, byte [r9 - 1]
mov byte [rax - 1], cl
jns 0x14004f1b0
jmp 0x14004f23e
mov edx, r8d
test r8d, r8d
js 0x14004f249
nop word [rax + rax]
sub edx, 1
movzx ecx, byte [r9]
mov byte [rax], cl
lea rax, [rax + 3]
movzx ecx, byte [r9 + 1]
lea r9, [r9 + 4]
mov byte [rax - 2], cl
movzx ecx, byte [r9 - 2]
mov byte [rax - 1], cl
jns 0x14004f200
jmp 0x14004f245
mov r8d, 0x69d
lea rdx, str.C:UsersOpchiDesktoppecesinclude_stb_image.h
lea rcx, [0x140123b48]
call fcn.1400ddfa8
lea r10, [0x140000000]
lea r8d, [rbx - 1]
inc edi
cmp edi, esi
jl 0x14004ef20
mov r12, qword [rsp + 0x58]
mov rcx, r15
call fcn.1400d7f68
mov rdi, qword [rsp + 0x50]
mov rax, r14
mov r14, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r13
pop rsi
pop rbp
pop rbx
ret
mov rcx, r15
call fcn.1400d7f68
mov rax, qword gs:[0x58]
mov r14, qword [rsp + 0x60]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.outofmem
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x20
pop r15
pop r13
pop rsi
pop rbp
pop rbx
ret