Function at 0x1804c8ead
Capabilities:
Encrypt data using rc4 prga

Disassembly:
call rax
mov r11, rax
test rax, rax
jmp 0x18053a561
mov byte [rsp + 0x18], r8b
cmp r13b, 0x48
clc
push rbp
dec bpl
ror ebp, cl
bts bp, r13w
push rsi
bswap si
btr bp, r8w
sub rsp, 0x158
and bpl, r14b
mov rbp, rdx
and sil, r10b
mov rsi, rcx
cmc
test r11w, 0x52d2
stc
test rcx, rcx
jmp 0x18053a13d
je 0x18053a162
test rdx, rdx
je 0x18053a162
mov eax, 0x5a4d
cmp bl, r9b
cmp word [rcx], ax
jmp 0x18053a15c
je 0x18053a17e
sub eax, eax
shr ebp, cl
add rsp, 0x158
pop rsi
xchg bpl, bpl
movsx ebp, si
bswap bp
pop rbp
jmp 0x18053a17d
ret
movsxd rax, dword [rcx + 0x3c]
clc
jmp 0x18053a18c
cmp dword [rax + rcx], 0x4550
jmp 0x18053a198
jne 0x18053a162
mov r9d, dword [rax + rcx + 0x88]
test r13d, edx
cmp rbp, 0x20c4cc3
mov dword [rsp + 0x24], r9d
stc
jmp 0x18053a1bb
test r9d, r9d
jmp 0x18053a1c3
je 0x18053a162
mov r10d, dword [rax + rcx + 0x8c]
setge dh
stc
lea rdx, [rcx + r9]
mov qword [rsp + 0x178], rbx
mov qword [rsp + 0x150], rdi
or r8d, 0xffffffff
cmp sp, r9w
xor edi, edi
test bp, 0x4e8d
mov dword [rsp + 0x170], r10d
mov qword [rsp + 0x28], rdx
jmp 0x18053a20b
cmp rbp, 0xffff
jmp 0x18053a217
ja 0x18053a229
mov r8d, ebp
sub r8d, dword [rdx + 0x10]
jmp 0x18053a413
mov eax, dword [rdx + 0x18]
test eax, eax
jmp 0x18053a233
je 0x18053a413
mov r10d, dword [rdx + 0x20]
movzx cx, spl
inc ch
mov rcx, 0x37f52647
dec eax
sar ch, 0x2b
cmp rcx, 0x7e8d12d5
mov ecx, edi
jmp 0x18053a25e
lea r10, [r10 + rsi]
test ecx, r10d
cmp edi, 0x1e8d6bbd
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x188], eax
test r11w, r14w
jmp 0x18053a27f
mov qword [rsp + 0x30], r10
cmp r11b, r13b
cmc
test eax, eax
jmp 0x18053a28f
js 0x18053a40b
lea ebx, [rax + rcx]
rol r9b, cl
cbw
mov r11, rdi
or al, bpl
shl r9b, cl
rol r9b, 0xf6
sar ebx, 1
bts r9w, bp
sal r9, cl
mov eax, ebx
rcr r9b, 0x93
rcr ax, cl
movzx eax, r12w
movzx eax, byte [rsp + 0x180]
shr dx, 0x57
mov r8d, dword [r10 + rbx*4]
sar dh, 0x78
and r10b, 0x5f
mov r10, rbp
setae r9b
ror rdx, cl
cdq
add r8, rsi
xadd r9b, dl
cmc
sub r10, r8
movsx r9w, r11b
nop
movzx r9d, bx
movsx r9w, r13b
xchg dl, r9b
movzx edx, byte [r10 + r8]
movzx r9d, byte [r8]
jmp 0x18053a30e
inc r8
cmc
test r14w, 0x6e3b
stc
test al, al
je 0x18053a351
mov ecx, r11d
ror eax, 0x6f
cdqe
mov eax, 0x1ca03c4
rol eax, cl
add al, r11b
cmc
xor dl, al
lahf
movsxd rax, r14d
cmovbe eax, r12d
movzx eax, byte [rsp + 0x180]
inc r11
cmp ax, 0xb85
clc
test bpl, bpl
test dl, dl
jmp 0x18053a358
je 0x18053a36c
cmp dl, r9b
jmp 0x18053a366
je 0x18053a300
cmp dl, r9b
jmp 0x18053a374
jb 0x18053a3a2
jbe 0x18053a3ca
mov eax, dword [rsp + 0x188]
movzx rcx, si
bswap cx
movsx ecx, cx
lea ecx, [rbx + 1]
jmp 0x18053a399
mov dword [rsp + 0x20], ecx
jmp 0x18053a3b3
mov ecx, dword [rsp + 0x20]
lea eax, [rbx - 1]
stc
cmc
mov dword [rsp + 0x188], eax
cmc
cmp ecx, eax
jmp 0x18053a3ba
jg 0x18053a3f4
mov r10, qword [rsp + 0x30]
jmp 0x18053a295
mov rax, qword [rsp + 0x28]
jmp 0x18053a3d8
mov eax, dword [rax + 0x24]
setnp r8b
lea rcx, [rsi + rax]
xchg r8b, r8b
movsx r8, bx
movzx r8d, word [rcx + rbx*2]
jmp 0x18053a3f8
or r8d, 0xffffffff
mov r9d, dword [rsp + 0x24]
rol r10b, cl
xor dl, r13b
mov rdx, qword [rsp + 0x28]
and r10d, esp
mov r10d, dword [rsp + 0x170]
cmp r8d, dword [rdx + 0x14]
jmp 0x18053a41c
jae 0x18053a4c1
mov eax, dword [rdx + 0x1c]
sar ch, 0x86
mov ecx, r8d
btc rdx, rbp
sar rdx, 0x6c
lea rax, [rax + rsi]
movsx dx, bh
movzx rdx, r11w
mov edx, dword [rax + r8*4]
jmp 0x18053a449
test edx, edx
jmp 0x18053a450
je 0x18053a4c1
cmp edx, r9d
jmp 0x18053a45e
jb 0x18053a6d8
lea eax, [r10 + r9]
jmp 0x18053a471
cmp edx, eax
jmp 0x18053a478
jae 0x18053a6d8
movzx ecx, byte [rsi + rdx]
lea rax, [rsi + rdx]
shr bx, cl
mov rbx, rax
test r14b, r14b
test cl, cl
je 0x18053a4c1
nop
jmp 0x18053a4a3
cmp cl, 0x2e
jmp 0x18053a4ab
je 0x18053a4c8
movzx ecx, byte [rbx + 1]
inc rbx
stc
test cl, cl
jne 0x18053a4a3
xor eax, eax
jmp 0x18053a6ea
mov r8, rbx
test r8w, 0x642a
sub r8, rax
clc
cmp r8, 0x104
jmp 0x18053a4e1
jae 0x18053a4c1
mov rcx, rdi
test bpl, 0xb0
clc
test r8, r8
jmp 0x18053a4f7
je 0x18053a549
lea r9, [rsp + 0x40]
sub r9, rax
btc dx, 0x93
or rdx, 0x21f0564f
movzx edx, byte [rax]
jmp 0x18053a51b
test dl, dl
jmp 0x18053a522
je 0x18053a549
inc rcx
jmp 0x18053a530
mov byte [r9 + rax], dl
inc rax
test r11b, cl
clc
cmp rcx, r8
jmp 0x18053a543
jb 0x18053a511
mov byte [rsp + rcx + 0x40], dil
lea rcx, [rsp + 0x40]
xchg ah, al
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA_1]
jmp 0x1804c8eab
jne 0x18053a587
lea rcx, [rsp + 0x40]
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA_1]
call rax
mov r11, rax
cmc
test rax, rax
jmp 0x18053a581
je 0x18053a4c1
cmp r11, rsi
jmp 0x18053a58f
jne 0x18053a633
cmp byte [rsp + 0x180], dil
jmp 0x18053a5a2
je 0x18053a60c
lea rax, [rsp + 0x40]
sub rbp, rax
movsx dx, r8b
bt cx, si
nop
lea rdx, [rsp + rdi + 0x40]
mov ecx, edi
bt eax, 0xe7
mov eax, 0x1ca03c4
cmc
rol eax, cl
add al, dil
stc
test spl, 0xae
xor al, byte [rdx + rbp]
mov byte [rdx], al
jmp 0x18053a5df
je 0x18053a5fb
inc rdi
cmc
jmp 0x18053a5ee
cmp rdi, 0x104
jb 0x18053a5ba
lea rbp, [rsp + 0x40]
movsx rdx, r9w
movzx rdx, r12w
movsx eax, r10w
mov rdx, rbp
movsx eax, r9w
movsx ax, r13b
movsxd rax, r15d
mov rcx, rsi
lahf
mov eax, ebp
movsx rax, bx
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress_2]
call rax
jmp 0x18053a6ea
cmp byte [rbx + 1], 0x23
movsx dx, r8b
bswap dx
lea rdx, [rbx + 1]
jmp 0x18053a648
jne 0x18053a6c3
movzx edx, byte [rbx + 2]
jmp 0x18053a658
add rbx, 2
test dl, dl
jmp 0x18053a663
je 0x18053a6b7
nop
movsx eax, r14w
cdqe
lea eax, [rdx - 0x30]
inc rbx
jmp 0x18053a67c
cmp al, 9
jmp 0x18053a683
ja 0x18053a6b7
movsx eax, dl
btc ecx, 0xa8
neg edx
cdq
movzx edx, byte [rbx]
movzx rcx, r11w
sal cl, 0x81
rcr ecx, cl
lea ecx, [rdi + rdi*4]
rol rdi, cl
lea edi, [rax + rcx*2 - 0x30]
clc
test dl, dl
jmp 0x18053a6b1
jne 0x18053a670
movsxd rdx, edi
cmp rsp, rbx
rcr cl, cl
or cx, r10w
xor r8d, r8d
mov rcx, r11
jmp 0x18053a6ce
call fcn.18053a0fc
jmp 0x18053a6ea
lea rax, [rsi + rdx]
add si, r13w
or bpl, r15b
add rsi, 0x3691126d
mov rbx, qword [rsp + 0x178]
add di, 0x7d7b
mov ebp, 0x52e12ca4
mov rdi, qword [rsp + 0x150]
inc sil
xadd bpl, sil
add rsp, 0x158
movzx ebp, bx
xchg si, bp
pop rsi
pop rbp
jmp 0x18053a71f
ret