Function at 0x14041efcb
Capabilities:
Encrypt data using rc4 prga
Execute anti-debugging instructions

Disassembly:
push rsi
bt dx, 0xb
shl dx, 0x9d
mov rdx, qword [rcx]
mov r9, qword [rcx + 0x18]
movsx esi, r10w
mov esi, dword [rdx + 4]
cmp cx, 0x5ff3
test rax, r11
imul esi, dword [rdx]
clc
test r9b, 0x78
stc
cmp dword [rdx + 0xc], 3
jmp 0x14041effd
jne 0x14041f147
test esi, esi
je 0x14041f3e4
lea ecx, [rsi - 1]
cmp ecx, 3
jmp 0x14041f016
jb 0x14041f0d2
mov ecx, esi
or rax, r11
shld ax, bp, 0xae
and ecx, 0xfffffffc
ror ax, 0x39
movsx rdx, r13w
shr dh, 0xa2
nop dword [rax]
bswap ax
movzx edx, byte [r9]
seta ah
movzx eax, byte [r9 + 2]
cmp al, 0x19
mov byte [r9], al
mov byte [r9 + 2], dl
bswap rdx
bsr dx, r13w
movzx eax, byte [r9 + 3]
sub dx, cx
movzx edx, byte [r9 + 5]
test r13w, 0x72ce
mov byte [r9 + 3], dl
add dx, 0x117
sar dl, 0x2c
mov byte [r9 + 5], al
jmp 0x14041f082
movzx eax, byte [r9 + 6]
movzx edx, byte [r9 + 8]
mov byte [r9 + 6], dl
mov byte [r9 + 8], al
adc al, r14b
movsx rax, sp
movzx eax, byte [r9 + 9]
sar dl, cl
movzx edx, byte [r9 + 0xb]
cmp r10, 0x4f8831c1
mov byte [r9 + 9], dl
jmp 0x14041f0b7
mov byte [r9 + 0xb], al
stc
cmc
add r9, 0xc
cmp edi, r11d
add ecx, 0xfffffffc
jmp 0x14041f0cc
jne 0x14041f03a
test sil, 3
jmp 0x14041f0db
je 0x14041f3e4
and esi, 3
movzx edx, sp
cwde
lea rsi, [rsi + rsi*2]
xor ecx, ecx
rdtsc
movzx rax, ax
xchg dx, ax
nop word cs:[rax + rax]
ror al, cl
movzx edx, byte [r9 + rcx]
bts eax, esi
movzx eax, byte [r9 + rcx + 2]
cmp r12b, 0xe9
stc
mov byte [r9 + rcx], al
mov byte [r9 + rcx + 2], dl
test r11b, 0x8c
stc
jmp 0x14041f12c
add rcx, 3
test dil, dil
cmc
clc
cmp esi, ecx
jmp 0x14041f13c
jne 0x14041f106
jmp 0x14041f3e4
mov eax, dword [0x1400b9350]
movzx rdx, bx
btr edx, r15d
mov rcx, qword gs:[0x58]
bts dx, dx
movzx dx, r14b
mov rax, qword [rcx + rax*8]
sub dl, 0xf0
lea rcx, [rax + 0x18]
adc dh, 0x59
rcl dx, 0x9c
cqo
lea rdx, [0x1400b925c]
test spl, 0x5e
cmp byte [rax + 0x1c], 0
jmp 0x14041f195
cmovne rdx, rcx
cmp bl, ch
cmp dword [rdx], 0
jmp 0x14041f1a3
je 0x14041f2c2
test esi, esi
jmp 0x14041f1b0
je 0x14041f3e4
mov r8d, esi
cmp r12b, r10b
cmc
sub ecx, ecx
jmp 0x14041f1c4
jmp 0x14041f1ee
movzx edx, byte [r9 + rcx*4 + 2]
jmp 0x14041f1d4
mov byte [r9 + rcx*4], dl
mov byte [r9 + rcx*4 + 2], al
inc rcx
cmp r8d, ecx
jmp 0x14041f1e8
je 0x14041f3e4
movzx r10d, byte [r9 + rcx*4 + 3]
movzx eax, byte [r9 + rcx*4]
cmp bx, 0x4a6
test r10d, r10d
jmp 0x14041f206
je 0x14041f1c9
movzx esi, al
mov r11d, r10d
test r8b, bpl
btr dx, r11w
movsx rdx, bx
shr r11d, 1
not edx
bswap rax
movzx edx, byte [r9 + rcx*4 + 2]
ror al, cl
mov eax, edx
cmc
shl eax, 8
stc
sub eax, edx
cmp rdx, 0x5b263fd4
test r10b, r14b
add eax, r11d
clc
cmp r12b, 0x39
xor edx, edx
div r10w
bt dx, r13w
stc
neg dx
mov byte [r9 + rcx*4], al
movzx edx, byte [r9 + rcx*4 + 1]
shl rax, 0x81
mov eax, edx
stc
shl eax, 8
cmc
test bx, 0x190b
cmp r14, 0x2b7b2383
sub eax, edx
cmc
add eax, r11d
xor edx, edx
cmp dil, 9
cmp spl, r11b
div r10w
mov byte [r9 + rcx*4 + 1], al
bswap rax
mov eax, esi
shl eax, 8
sub eax, esi
cmp dil, 0xb4
add eax, r11d
clc
xor edx, edx
cmp r14b, r11b
cmc
clc
div r10w
jmp 0x14041f2b3
mov byte [r9 + rcx*4 + 2], al
jmp 0x14041f2bd
jmp 0x14041f1dd
test esi, esi
jmp 0x14041f2c9
je 0x14041f3e4
lea eax, [rsi - 1]
cmp eax, 3
jb 0x14041f388
mov ecx, esi
rdtsc
sbb al, 0x43
movsx edx, r12w
and ecx, 0xfffffffc
nop word cs:[rax + rax]
cdqe
movzx eax, byte [r9]
xor dl, r11b
btc dx, 0x7c
movzx edx, byte [r9 + 2]
cmp dh, dl
mov byte [r9], dl
rcr dh, cl
mov byte [r9 + 2], al
movsx edx, di
bswap rdx
movzx eax, byte [r9 + 4]
neg dl
movzx edx, byte [r9 + 6]
cmc
mov byte [r9 + 4], dl
ror dx, 0x3f
rcr dx, cl
rol dx, cl
mov byte [r9 + 6], al
movzx eax, byte [r9 + 8]
xadd dx, dx
rcl dh, 0xb5
movzx edx, byte [r9 + 0xa]
cmp r13b, 0x84
mov byte [r9 + 8], dl
movsx rdx, ax
mov byte [r9 + 0xa], al
sub dx, r11w
movzx eax, byte [r9 + 0xc]
movzx rdx, r14w
adc dl, r14b
shr dl, cl
movzx edx, byte [r9 + 0xe]
mov byte [r9 + 0xc], dl
mov byte [r9 + 0xe], al
add r9, 0x10
add ecx, 0xfffffffc
jmp 0x14041f382
jne 0x14041f2f5
test sil, 3
jmp 0x14041f391
je 0x14041f3e4
and esi, 3
jmp 0x14041f3a7
sub ecx, ecx
cdqe
nop word [rax + rax]
movzx eax, byte [r9 + rcx*4]
cmovbe dx, r10w
movzx edx, byte [r9 + rcx*4 + 2]
jmp 0x14041f3c6
mov byte [r9 + rcx*4], dl
jmp 0x14041f3cf
mov byte [r9 + rcx*4 + 2], al
jmp 0x14041f3d9
inc rcx
cmp esi, ecx
jne 0x14041f3b1
pop rsi
jmp 0x14041f3ea
ret