Function at 0x14040a5db
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
bsr ax, r9w
movzx cx, ch
sub rsp, 0x58
rcl ah, 0x30
mov rax, qword [rsp + 0x60]
bt cx, r13w
bswap ecx
add rax, 0x50
mov qword [rsp + 0x48], rax
mov rcx, r15
btr cx, 5
mov eax, 4
movsx rcx, si
sub ecx, 0xd18e1f29
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
jmp 0x14040a632
movsxd rax, dword [rcx + rax + 0x70]
neg rcx
imul rax, rax, 0x20
bt ecx, r12d
cmc
xadd ch, ch
mov rcx, qword [rsp + 0x48]
test cx, 0xe96
add rax, qword [rcx + 8]
mov qword [rsp + 0x18], rax
shr eax, 0x3e
rcr al, 0x8a
neg eax
mov rax, qword [rsp + 0x60]
test r14w, bp
mov eax, dword [rax + 0x28]
mov dword [rsp + 0xc], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 4]
and eax, 2
test eax, eax
jne 0x14040a85f
mov dword [rsp + 4], 0
mov dword [rsp + 8], 0
jmp 0x14040a699
jmp 0x14040a6b4
mov eax, dword [rsp + 4]
jmp 0x14040a6a7
inc eax
test dh, 0x2d
cmp r12b, 0x89
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 0x1b
jmp 0x14040a6be
jge 0x14040a85a
mov dword [rsp], 0
jmp 0x14040a6d0
jmp 0x14040a6fa
mov eax, dword [rsp]
inc eax
jmp 0x14040a6df
mov dword [rsp], eax
seta al
cmovo eax, esp
mov eax, dword [rsp + 8]
jmp 0x14040a6f1
inc eax
cmc
mov dword [rsp + 8], eax
clc
cmc
cmp dword [rsp], 0x6c
jmp 0x14040a703
jge 0x14040a855
mov rax, qword [rsp + 0x18]
not cx
sbb cl, bh
bts cx, cx
movzx eax, word [rax + 4]
sub cl, r13b
ror rcx, cl
add eax, dword [rsp]
mov rcx, qword [rsp + 0x18]
movzx ecx, word [rcx + 6]
add ecx, dword [rsp + 4]
cmp r13, 0xffffffff83a86a34
cmc
jmp 0x14040a73e
imul ecx, dword [rsp + 0xc]
cmp r14b, dl
test dil, r12b
add eax, ecx
rol cx, cl
sub cx, 0xf090
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
or cx, 0x9fae
sbb rcx, r15
add eax, 0x6d
sbb cx, di
ror cl, cl
mov dword [rsp + 0x2c], eax
inc cx
bts rcx, r11
movsxd rax, dword [rsp + 8]
bt ecx, 0xe
lea rcx, str...___________XXXXXXX_____X________________X____________XXXXXXX_____________________XXXXXXX______XX__________..___________X.....X____X.X______________X.X___________X.....X_____________________X.....X_____X..X______________________XXX.XXX___X...X____________X...X__________X....X_______________________X....X_____X..X_________X______________X.X____X.....X__________X.....X_________X...X_________________________X...X_____X..X_________XX_____________X.X___X.......X________X.......X________X..X.X_______________________X.X..X_____X..X_________X.X____________X.X___XXXX.XXXX________XXXX.XXXX________X.X_X.X_____________________X.X_X.X_____X..XXX_______X..X___________X.X______X.X______________X.X___________XX___X.X___________________X.X___XX_____X..X..XXX____X...X__________X.X______X.X________XX____X.X____XX___________X.X_________________X.X___________X..X..X..XX__X....X_________X.X______X.X_______X.X____X.X____X.X___________X.X_______________X.X____________X..X..X..X.X_X.....X________X.X______X.X______X..X____X.X____X..X___________X.X_____________X.X_________XXX_X..X..X..X..XX......X_______X.X______X.X_____X...XXXXXX.XXXXXX...X___________X.X___XX_XX___X.X__________X..XX........X..XX.......X______X.X______X.X____X.....................X___________X.X_X.X_X.X_X.X___________X...X...........XX........X_____X.X______X.X_____X...XXXXXX.XXXXXX...X_____________X.X..X_X..X.X_____________X..............XX.........X__XXX.XXX____X.X______X..X____X.X____X..X_______________X...X_X...X_______________X.............XX..........X_X.....X____X.X_______X.X____X.X____X.X_______________X....X_X....X______________X.............XX......XXXXX_XXXXXXX____X.X________XX____X.X____XX_______________X.....X_X.....X______________X............XX...X..X________________X.X______________X.X_____________________XXXXXXX_XXXXXXX______________X...........X_X..X_X..X____________XXXX.XXXX________XXXX.XXXX________________________________________________X..........X_X.X__X..X____________X.......X________X.......X____________XX___________XX_____________________X..........X_XX____X..X____________X.....X__________X.....X____________X.X___________X.X_____________________X........X________X..X_____________X...X____________X...X____________X..X___________X..X____________________X........X_________XX_______________X.X______________X.X____________X...XXXXXXXXXXXXX...X___________________XXXXXXXXXX___________________________X________________X____________X.....................X______________________________________________________________________________________X...XXXXXXXXXXXXX...X________________________________________________________________________________________X..X___________X..X__________________________________________________________________________________________X.X___________X.X____________________________________________________________________________________________XX___________XX_____
movsx eax, byte [rcx + rax]
cmp rdx, 0x7b366596
cmp eax, 0x2e
jmp 0x14040a799
jne 0x14040a7ac
mov dword [rsp + 0x24], 0xff
jmp 0x14040a7b7
mov dword [rsp + 0x24], 0
add rcx, r14
movsxd rax, dword [rsp + 0x20]
sar dl, cl
add cl, r10b
mov rcx, qword [rsp + 0x60]
mov dl, 0xb9
mov rcx, qword [rcx + 0x18]
seta dl
and dl, 0x29
mov dl, byte [rsp + 0x24]
mov byte [rcx + rax], dl
ror ah, cl
test rsp, rbx
movsxd rax, dword [rsp + 8]
sar cl, cl
add ecx, 0x2c9d5e3f
movsx cx, r14b
lea rcx, str...___________XXXXXXX_____X________________X____________XXXXXXX_____________________XXXXXXX______XX__________..___________X.....X____X.X______________X.X___________X.....X_____________________X.....X_____X..X______________________XXX.XXX___X...X____________X...X__________X....X_______________________X....X_____X..X_________X______________X.X____X.....X__________X.....X_________X...X_________________________X...X_____X..X_________XX_____________X.X___X.......X________X.......X________X..X.X_______________________X.X..X_____X..X_________X.X____________X.X___XXXX.XXXX________XXXX.XXXX________X.X_X.X_____________________X.X_X.X_____X..XXX_______X..X___________X.X______X.X______________X.X___________XX___X.X___________________X.X___XX_____X..X..XXX____X...X__________X.X______X.X________XX____X.X____XX___________X.X_________________X.X___________X..X..X..XX__X....X_________X.X______X.X_______X.X____X.X____X.X___________X.X_______________X.X____________X..X..X..X.X_X.....X________X.X______X.X______X..X____X.X____X..X___________X.X_____________X.X_________XXX_X..X..X..X..XX......X_______X.X______X.X_____X...XXXXXX.XXXXXX...X___________X.X___XX_XX___X.X__________X..XX........X..XX.......X______X.X______X.X____X.....................X___________X.X_X.X_X.X_X.X___________X...X...........XX........X_____X.X______X.X_____X...XXXXXX.XXXXXX...X_____________X.X..X_X..X.X_____________X..............XX.........X__XXX.XXX____X.X______X..X____X.X____X..X_______________X...X_X...X_______________X.............XX..........X_X.....X____X.X_______X.X____X.X____X.X_______________X....X_X....X______________X.............XX......XXXXX_XXXXXXX____X.X________XX____X.X____XX_______________X.....X_X.....X______________X............XX...X..X________________X.X______________X.X_____________________XXXXXXX_XXXXXXX______________X...........X_X..X_X..X____________XXXX.XXXX________XXXX.XXXX________________________________________________X..........X_X.X__X..X____________X.......X________X.......X____________XX___________XX_____________________X..........X_XX____X..X____________X.....X__________X.....X____________X.X___________X.X_____________________X........X________X..X_____________X...X____________X...X____________X..X___________X..X____________________X........X_________XX_______________X.X______________X.X____________X...XXXXXXXXXXXXX...X___________________XXXXXXXXXX___________________________X________________X____________X.....................X______________________________________________________________________________________X...XXXXXXXXXXXXX...X________________________________________________________________________________________X..X___________X..X__________________________________________________________________________________________X.X___________X.X____________________________________________________________________________________________XX___________XX_____
cmp r15b, r13b
movsx eax, byte [rcx + rax]
cmp eax, 0x58
jmp 0x14040a806
jne 0x14040a81e
mov dword [rsp + 0x28], 0xff
jmp 0x14040a819
jmp 0x14040a826
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x2c]
movzx rcx, ax
setp dl
mov rcx, qword [rsp + 0x60]
xchg dl, dl
mov rcx, qword [rcx + 0x18]
not dl
mov dl, byte [rsp + 0x28]
jmp 0x14040a848
mov byte [rcx + rax], dl
jmp 0x14040a850
jmp 0x14040a6d5
jmp 0x14040a69e
jmp 0x14040a95e
mov rax, qword [rsp + 0x18]
movzx eax, word [rax + 4]
mov rcx, qword [rsp + 0x18]
test r9b, 0x8b
jmp 0x14040a877
movzx ecx, word [rcx + 6]
clc
cmc
test r13b, r8b
imul ecx, dword [rsp + 0xc]
add eax, ecx
shr cl, cl
adc ecx, r13d
mov dword [rsp + 0x10], eax
mov cl, 0x10
mov eax, dword [rsp + 0x10]
mov ecx, dword [rsp + 0xc]
cmc
lea eax, [rax + rcx + 1]
shrd rcx, rdx, 0x3e
ror cl, cl
cmp r13b, 0x15
cdqe
cmovle ecx, ecx
rol ch, 0x8e
mov rcx, qword [rsp + 0x60]
test ax, 0xbc17
clc
mov rcx, qword [rcx + 0x18]
cmc
stc
mov byte [rcx + rax], 0xff
bswap rax
bt cx, cx
mov eax, dword [rsp + 0xc]
btr cx, dx
xadd cx, cx
mov ecx, dword [rsp + 0x10]
test r14b, 0x3f
add ecx, eax
xchg ah, ah
movzx rax, r10w
mov eax, ecx
movzx cx, spl
not cl
cdqe
mov rcx, qword [rsp + 0x60]
jmp 0x14040a8fe
mov rcx, qword [rcx + 0x18]
mov byte [rcx + rax], 0xff
cdqe
mov eax, dword [rsp + 0x10]
inc cx
inc eax
not cx
movsx ecx, r11w
cdqe
cmovp cx, r13w
mov rcx, qword [rsp + 0x60]
jmp 0x14040a929
mov rcx, qword [rcx + 0x18]
mov byte [rcx + rax], 0xff
movsxd rax, dword [rsp + 0x10]
xchg cx, cx
movzx cx, sil
movsx cx, r9b
mov rcx, qword [rsp + 0x60]
jmp 0x14040a94d
mov rcx, qword [rcx + 0x18]
jmp 0x14040a956
mov byte [rcx + rax], 0xff
movsx rax, r9w
mov rax, qword [rsp + 0x18]
movzx eax, word [rax + 6]
jmp 0x14040a96c
cvtsi2ss xmm0, eax
addss xmm0, dword [0x1400ce9a4]
movzx eax, r15w
lahf
mov rax, qword [rsp + 0x60]
jmp 0x14040a987
mulss xmm0, dword [rax + 0x34]
movss dword [rsp + 0x38], xmm0
mov rax, qword [rsp + 0x18]
movzx eax, word [rax + 4]
jmp 0x14040a9a0
cvtsi2ss xmm0, eax
addss xmm0, dword [0x1400ce9a4]
cwde
lahf
jmp 0x14040a9b3
mov rax, qword [rsp + 0x60]
jmp 0x14040a9bd
mulss xmm0, dword [rax + 0x30]
movss dword [rsp + 0x30], xmm0
adc cl, 0xb4
and cl, r13b
movss xmm0, dword [rsp + 0x30]
movzx ecx, bx
movss dword [rsp + 0x40], xmm0
movss xmm0, dword [rsp + 0x38]
btc cx, sp
movss dword [rsp + 0x44], xmm0
bts rax, r15
xor ax, 0xfa31
rol ax, 0x14
mov rax, qword [rsp + 0x40]
sub cl, al
btc ecx, 1
btc cx, r8w
mov rcx, qword [rsp + 0x60]
cmc
mov qword [rcx + 0x38], rax
cmp r13, rdx
add rsp, 0x58
jmp 0x14040aa1f
ret