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

Disassembly:
push rsi
movzx rdx, sp
bsf si, cx
mov rdx, qword [rcx]
bsr r9w, di
sal sil, 0x9c
bsf r9, rsi
mov r9, qword [rcx + 0x18]
mov esi, dword [rdx + 4]
cmp rbx, 0x58910b64
test rsp, rax
test al, 0x98
imul esi, dword [rdx]
test ebx, 0x63f1372a
stc
clc
cmp dword [rdx + 0xc], 3
jmp 0x1404199da
jne 0x140419b13
test esi, esi
je 0x140419ddd
lea ecx, [rsi - 1]
clc
cmp r11b, dl
cmp r15b, 0xd0
cmp ecx, 3
jb 0x140419aa6
mov ecx, esi
bts ax, r8w
and ecx, 0xfffffffc
stc
movsx rdx, r10w
nop dword [rax]
cwde
movzx edx, byte [r9]
movzx eax, byte [r9 + 2]
clc
jmp 0x140419a1e
mov byte [r9], al
mov byte [r9 + 2], dl
rdtsc
shr ah, cl
movzx eax, byte [r9 + 3]
movsx rdx, r8w
movzx edx, byte [r9 + 5]
test rcx, 0x5a2e534b
clc
mov byte [r9 + 3], dl
xchg dh, dl
clc
mov dl, 0xa8
mov byte [r9 + 5], al
movzx eax, byte [r9 + 6]
shl dl, 0xec
movzx edx, byte [r9 + 8]
clc
mov byte [r9 + 6], dl
rcl dx, 0xb6
mov byte [r9 + 8], al
cmc
movzx eax, byte [r9 + 9]
bsr dx, r10w
movzx edx, byte [r9 + 0xb]
stc
mov byte [r9 + 9], dl
cmp r12b, r10b
test r15b, 0xac
mov byte [r9 + 0xb], al
cmp r15b, r15b
cmp esi, 0x41820845
add r9, 0xc
jmp 0x140419a98
add ecx, 0xfffffffc
jmp 0x140419aa0
jne 0x140419a0f
test sil, 3
jmp 0x140419aaf
je 0x140419ddd
and esi, 3
sal eax, cl
movsxd rax, r14d
lea rsi, [rsi + rsi*2]
sbb dx, 0xae0
dec dl
xor ecx, ecx
nop word cs:[rax + rax]
rcl ax, 0x61
sbb ax, bx
movzx edx, byte [r9 + rcx]
bswap ax
sub rax, rdx
movzx eax, byte [r9 + rcx + 2]
mov byte [r9 + rcx], al
stc
mov byte [r9 + rcx + 2], dl
add rcx, 3
test r15b, r13b
cmp esi, ecx
jmp 0x140419b08
jne 0x140419adf
jmp 0x140419ddd
mov eax, dword [0x1400b9350]
mov rcx, qword gs:[0x58]
shl dl, cl
rol edx, 0x63
add dx, r11w
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x18]
btr dx, 0x17
lea rdx, [0x1400b925c]
cmp byte [rax + 0x1c], 0
jmp 0x140419b4e
cmovne rdx, rcx
clc
cmp dword [rdx], 0
jmp 0x140419b5b
je 0x140419cba
test esi, esi
jmp 0x140419b68
je 0x140419ddd
mov r8d, esi
xor ecx, ecx
jmp 0x140419b78
jmp 0x140419bb6
movzx edx, byte [r9 + rcx*4 + 2]
jmp 0x140419b88
mov byte [r9 + rcx*4], dl
jmp 0x140419b91
mov byte [r9 + rcx*4 + 2], al
jmp 0x140419b9b
inc rcx
test r8, rdx
test r12d, 0x19a2717c
cmp r8d, ecx
jmp 0x140419bb0
je 0x140419ddd
movzx r10d, byte [r9 + rcx*4 + 3]
sbb ax, si
xadd rax, rax
movzx eax, byte [r9 + rcx*4]
test r10d, r10d
jmp 0x140419bd0
je 0x140419b7d
movzx esi, al
inc dh
mov r11d, r10d
and dl, r8b
shld ax, r10w, 0x3c
rcr al, cl
shr r11d, 1
xadd ax, dx
neg dx
movsx eax, bp
movzx edx, byte [r9 + rcx*4 + 2]
bsf ax, r10w
xor eax, 0x12c774cd
mov eax, edx
test r14w, 0x3c50
shl eax, 8
clc
cmp edx, r8d
sub eax, edx
add eax, r11d
clc
sub edx, edx
cmp bx, r8w
test sil, 0xcf
cmc
div r10w
mov byte [r9 + rcx*4], al
shr rdx, cl
rol ah, cl
movzx edx, byte [r9 + rcx*4 + 1]
mov eax, edx
cmc
cmp bl, 0x70
cmp bpl, dil
shl eax, 8
cmp esi, esp
cmp spl, 0x94
sub eax, edx
add eax, r11d
clc
cmp r8w, 0x7f8c
sub edx, edx
stc
cmp r12b, r15b
test bl, 0x40
div r10w
jmp 0x140419c6a
mov byte [r9 + rcx*4 + 1], al
btr ax, 0xcb
rcl rax, cl
cmc
mov eax, esi
jmp 0x140419c86
shl eax, 8
test r12w, r14w
sub eax, esi
clc
cmp al, r9b
add eax, r11d
test al, spl
cmc
xor edx, edx
cmc
jmp 0x140419ca2
div r10w
jmp 0x140419cab
mov byte [r9 + rcx*4 + 2], al
jmp 0x140419cb5
jmp 0x140419b9b
test esi, esi
jmp 0x140419cc1
je 0x140419ddd
lea eax, [rsi - 1]
cmp eax, 3
jmp 0x140419cd2
jb 0x140419d8a
mov ecx, esi
add eax, r13d
test dl, 0x62
adc ax, 0xadf
and ecx, 0xfffffffc
movsxd rdx, r8d
nop word cs:[rax + rax]
shrd dx, si, 0x6f
bt ax, r15w
rdtsc
movzx eax, byte [r9]
or dl, bpl
movzx edx, byte [r9 + 2]
mov byte [r9], dl
inc rdx
mov byte [r9 + 2], al
movzx eax, byte [r9 + 4]
rcr dh, cl
shr dx, cl
movzx edx, byte [r9 + 6]
test dx, bx
mov byte [r9 + 4], dl
cdq
mov byte [r9 + 6], al
cqo
movzx eax, byte [r9 + 8]
sal dh, 0x1b
movzx edx, byte [r9 + 0xa]
cmp r12b, 0xb0
cmp cl, spl
mov byte [r9 + 8], dl
cdq
mov byte [r9 + 0xa], al
movzx eax, byte [r9 + 0xc]
bts dx, r12w
movzx edx, byte [r9 + 0xe]
jmp 0x140419d6b
mov byte [r9 + 0xc], dl
cmc
stc
mov byte [r9 + 0xe], al
test r14b, bl
clc
cmp al, r9b
add r9, 0x10
cmc
add ecx, 0xfffffffc
jne 0x140419d01
test sil, 3
jmp 0x140419d93
je 0x140419ddd
and esi, 3
cmc
btr edx, 0x2a
xor ecx, ecx
nop word [rax + rax]
movzx rax, r12w
movzx eax, byte [r9 + rcx*4]
movsx edx, r8w
movzx edx, byte [r9 + rcx*4 + 2]
mov byte [r9 + rcx*4], dl
mov byte [r9 + rcx*4 + 2], al
inc rcx
jmp 0x140419dd0
cmp esi, ecx
jmp 0x140419dd7
jne 0x140419dad
pop rsi
jmp 0x140419de3
ret