Function at 0x140069c00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x14049f410]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov eax, dword [rdx + 8]
mov r12, r8
mov r13d, dword [rdx + 4]
mov rsi, r9
mov qword [rbp - 0x50], r9
mov r14, rdx
mov qword [rbp - 0x30], rdx
mov rdi, rcx
mov qword [rbp - 0x38], rcx
lea rdx, [r12 + 0x20]
lea rcx, [r12 + 8]
mov dword [rsp + 0x20], eax
add r8, 0x30
mov r9d, r13d
mov ebx, 0x61
call fcn.14007c220
test eax, eax
jne 0x140069c75
lea eax, [rbx - 0x65]
jmp 0x14006a7d4
mov qword [rsp + 0x458], r15
mov r15, qword [rdi + 8]
mov qword [rbp - 0x28], r15
test r12, r12
je 0x14006a7c5
test rsi, rsi
je 0x14006a7ca
cmp dword [rsi + 0x28], 1
jne 0x14006a7ca
cmp qword [rsi + 0x10], 0
je 0x14006a7ca
cmp qword [rsi], 0
je 0x14006a7ca
cmp qword [rsi + 8], 0
je 0x14006a7ca
mov eax, dword [rsi + 0x1c]
cmp dword [rsi + 0x18], eax
jge 0x14006a7ca
cmp dword [r12 + 0x98], 0
je 0x14006a7c5
cmp dword [r12 + 0x28], 0
je 0x14006a7c5
cmp dword [r12 + 0x2c], 0
je 0x14006a7c5
cmp dword [r12 + 0x38], 0
je 0x14006a7c5
cmp dword [r12 + 0x3c], 0
je 0x14006a7c5
mov ecx, dword [r14 + 8]
mov eax, 0x400
cmp r13d, ecx
cmovg ecx, r13d
cmp ecx, eax
cmovg eax, ecx
shl eax, 8
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
mov ecx, eax
sar ecx, 0x1f
add ecx, eax
sar ecx, 7
inc ecx
sar ecx, 1
call fcn.14007a280
mov r9d, dword [r12 + 0x18]
lea r8, [r12 + 8]
mov r13d, eax
mov dword [rbp - 0x40], eax
lea rax, [rbp - 0x68]
xor esi, esi
mov qword [rsp + 0x28], rax
lea rdx, [r12 + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rsi
lea rcx, [r12 + 0x20]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x70], rsi
call fcn.140081a50
mov eax, dword [rsp + 0x68]
lea r8, [r12 + 0x30]
lea rdx, [r12 + 0x20]
lea ecx, [rax + 7]
cmp ecx, 0xe
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x70]
cmovbe eax, esi
mov qword [rsp + 0x20], rcx
lea rcx, [r12 + 8]
mov dword [rsp + 0x54], eax
mov r9d, eax
call fcn.140087b20
mov eax, dword [r12 + 8]
shl eax, 0xa
cdq
idiv r13d
mov ecx, eax
sar ecx, 0x1f
add ecx, eax
mov eax, dword [r12 + 0xc]
sar ecx, 9
inc ecx
shl eax, 0xa
sar ecx, 1
cdq
mov dword [rbp - 0x20], ecx
idiv r13d
mov ecx, eax
sar ecx, 0x1f
add ecx, eax
mov eax, dword [r12 + 0x10]
sar ecx, 9
inc ecx
shl eax, 0xa
sar ecx, 1
cdq
mov dword [rbp - 0x1c], ecx
idiv r13d
mov ecx, eax
sar ecx, 0x1f
add ecx, eax
mov eax, dword [r12 + 0x14]
sar ecx, 9
inc ecx
sar ecx, 1
mov dword [rbp - 0x18], ecx
shl eax, 0xa
cdq
idiv r13d
mov ecx, eax
sar ecx, 0x1f
add ecx, eax
mov eax, dword [rsp + 0x70]
shl eax, 0xa
cdq
sar ecx, 9
idiv r13d
inc ecx
mov r11d, eax
sar ecx, 1
sar r11d, 0x1f
add r11d, eax
mov dword [rbp - 0x14], ecx
mov eax, dword [rsp + 0x74]
shl eax, 0xa
cdq
sar r11d, 9
idiv r13d
inc r11d
mov r10d, eax
sar r11d, 1
sar r10d, 0x1f
add r10d, eax
mov dword [rbp - 0x80], r11d
mov eax, dword [rsp + 0x60]
shl eax, 0xa
cdq
sar r10d, 9
idiv r13d
inc r10d
mov dword [rsp + 0x70], r11d
mov r12d, eax
sar r10d, 1
sar r12d, 0x1f
add r12d, eax
mov dword [rbp - 0x70], r10d
mov eax, dword [rsp + 0x64]
shl eax, 0xa
cdq
sar r12d, 9
idiv r13d
inc r12d
mov dword [rsp + 0x74], r10d
mov ecx, eax
sar r12d, 1
sar ecx, 0x1f
add ecx, eax
mov dword [rsp + 0x50], r12d
sar ecx, 9
mov eax, 0xb60b60b7
inc ecx
mov dword [rsp + 0x60], r12d
sar ecx, 1
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x64], ecx
mov ecx, 0x16a
sub ecx, dword [rsp + 0x54]
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x168
sub ecx, eax
mov eax, 0x66666667
imul ecx
lea rcx, [0x140000000]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cdqe
mov r8d, dword [rcx + rax*4 + 0x1c0990]
mov r9d, dword [rcx + rax*4 + 0x1c0ac0]
mov eax, r8d
sar eax, 0x1f
xor r8d, eax
sub r8d, eax
mov eax, r9d
sar eax, 0x1f
mov ecx, r8d
imul ecx, dword [rsp + 0x58]
xor r9d, eax
sub r9d, eax
imul r8d, r12d
mov eax, r9d
imul eax, r12d
add ecx, eax
mov eax, 0x51eb851f
imul ecx
mov eax, edx
sar eax, 5
mov ecx, eax
shr ecx, 0x1f
add eax, ecx
mov ecx, dword [rsp + 0x58]
mov dword [rsp + 0x68], eax
mov eax, 0x51eb851f
imul r9d, ecx
add r9d, r8d
mov r8d, dword [rsp + 0x68]
imul r9d
mov r9d, edx
sar r9d, 5
mov eax, r9d
shr eax, 0x1f
add r9d, eax
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
sub r11d, eax
mov eax, r9d
cdq
sub eax, edx
sar eax, 1
sub r10d, eax
test r11d, r11d
js 0x14006a7ca
lea eax, [r8 - 1]
add eax, r11d
imul eax, r13d
cmp eax, dword [r14 + 4]
jge 0x14006a7ca
test r10d, r10d
js 0x14006a7ca
lea eax, [r10 - 1]
add eax, r9d
imul eax, r13d
cmp eax, dword [r14 + 8]
jge 0x14006a7ca
mov rax, qword [r15]
mov edx, r12d
imul edx, ecx
mov rcx, r15
call qword [rax + 8]
mov qword [rbp - 0x60], rax
mov r12, rax
test rax, rax
je 0x14006a7be
mov r8d, dword [r14 + 4]
mov qword [rsp + 0x68], rsi
mov qword [rbp - 0x68], rsi
test r8d, r8d
je 0x14006a227
mov r9d, dword [r14 + 8]
test r9d, r9d
je 0x14006a227
mov edx, dword [r14]
test edx, edx
je 0x14006a227
cmp qword [r14 + 0x18], rsi
je 0x14006a02f
cmp dword [r14 + 0x10], esi
jne 0x14006a05b
cmp qword [r14 + 0x28], rsi
je 0x14006a03b
cmp dword [r14 + 0x20], esi
jne 0x14006a05b
cmp qword [r14 + 0x38], rsi
je 0x14006a047
cmp dword [r14 + 0x30], esi
jne 0x14006a05b
cmp qword [r14 + 0x48], rsi
je 0x14006a227
cmp dword [r14 + 0x40], esi
je 0x14006a227
mov ecx, dword [rbp - 0x80]
test ecx, ecx
js 0x14006a227
mov eax, dword [rbp - 0x70]
test eax, eax
js 0x14006a227
cmp ecx, r8d
jge 0x14006a227
cmp eax, r9d
jge 0x14006a227
mov rcx, qword [rdi + 8]
cmp edx, 0x20200001
ja 0x14006a0d6
lea eax, [rdx - 0x10200001]
test eax, 0xefffffff
je 0x14006a0f3
lea eax, [rdx - 0x20000001]
cmp eax, 1
ja 0x14006a222
lea rax, [rsp + 0x68]
mov rdx, r14
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x60]
mov eax, dword [rsp + 0x54]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
call fcn.140079ff0
jmp 0x14006a126
lea eax, [rdx - 0x30100001]
test eax, 0xffeffffe
jne 0x14006a222
cmp edx, 0x30200002
je 0x14006a222
lea rax, [rsp + 0x68]
mov rdx, rcx
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x70]
mov eax, dword [rsp + 0x54]
mov r8, r14
mov dword [rsp + 0x30], r13d
xor ecx, ecx
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.1400a7a40
mov ebx, eax
test eax, eax
jne 0x14006a227
mov ecx, dword [r14]
mov rdx, qword [rdi + 8]
cmp ecx, 0x20200001
ja 0x14006a18d
lea eax, [rcx - 0x10200001]
test eax, 0xefffffff
je 0x14006a1a6
lea eax, [rcx - 0x20000001]
cmp eax, 1
ja 0x14006a222
lea rax, [rbp - 0x68]
mov r8, r14
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x70]
mov eax, dword [rsp + 0x54]
lea ecx, [rbx + 2]
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.1400abe00
jmp 0x14006a1d5
lea eax, [rcx - 0x30100001]
test eax, 0xffeffffe
jne 0x14006a222
cmp ecx, 0x30200002
je 0x14006a222
lea rax, [rbp - 0x68]
mov r8, r14
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x70]
mov eax, dword [rsp + 0x54]
mov cl, 2
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.1400a7a40
mov ebx, eax
test eax, eax
jne 0x14006a227
mov rax, qword [rbp - 0x50]
lea r8, [rsp + 0x60]
mov r9, qword [rsp + 0x68]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x40], rsi
mov rcx, rdi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x20], rax
call fcn.140072ba0
mov edi, dword [rsp + 0x60]
mov ebx, eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x58], eax
jmp 0x14006a22b
mov ebx, 0xfffffffa
mov edi, dword [rsp + 0x50]
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14006a240
mov rax, qword [r15]
mov rdx, rcx
mov rcx, r15
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14006a256
mov rax, qword [r15]
mov rdx, rcx
mov rcx, r15
call qword [rax + 0x10]
test ebx, ebx
jne 0x14006a7ab
mov eax, dword [rsp + 0x54]
lea rcx, [rsp + 0x68]
mov r9d, dword [rsp + 0x58]
neg eax
mov qword [rsp + 0x38], rcx
mov r8d, edi
lea rcx, [rsp + 0x50]
mov rdx, r12
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x28], rcx
mov rcx, r15
mov dword [rsp + 0x20], eax
call fcn.140055090
mov ecx, dword [rbp - 0x80]
mov ebx, eax
mov eax, dword [rsp + 0x50]
mov r12d, dword [rsp + 0x68]
mov edi, dword [rbp - 0x70]
mov dword [rbp - 0x18], eax
cdq
sub eax, edx
mov dword [rbp - 0x14], r12d
sar eax, 1
sub ecx, eax
mov eax, r12d
cdq
mov dword [rbp - 0x80], ecx
sub eax, edx
mov dword [rbp - 0x20], ecx
mov rdx, qword [rbp - 0x60]
mov rcx, r15
sar eax, 1
sub edi, eax
mov rax, qword [r15]
mov dword [rbp - 0x70], edi
mov dword [rbp - 0x1c], edi
call qword [rax + 0x10]
mov rdx, qword [rbp - 0x50]
mov qword [rbp - 0x60], rdx
test ebx, ebx
jne 0x14006a7a8
cmp dword [rsp + 0x50], r12d
mov ecx, r12d
movaps xmm0, xmmword [rbp - 0x20]
mov eax, 0x38e38e39
cmovg ecx, dword [rsp + 0x50]
mov r11d, esi
shl ecx, 0xa
mov ebx, esi
imul ecx
movdqa xmmword [rbp - 0x50], xmm0
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
mov ecx, 5
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
sar eax, 0x1f
add eax, edx
sar eax, 9
inc eax
sar eax, 1
cmp eax, ecx
movups xmmword [rbp + 0x10], xmm0
cmovg ecx, eax
xor edx, edx
mov eax, dword [r14 + 8]
or ecx, 1
div r13d
xor edx, edx
mov dword [rsp + 0x54], ecx
lea r8d, [rcx + rcx]
mov r9d, eax
mov eax, dword [r14 + 4]
mov ecx, edi
mov edi, dword [rbp - 0x44]
sub ecx, r8d
div r13d
mov r13d, dword [rbp - 0x48]
test ecx, ecx
mov edx, esi
mov r10d, eax
cmovg r11d, ecx
mov ecx, dword [rbp - 0x50]
sub ecx, r8d
mov dword [rsp + 0x68], r11d
test ecx, ecx
movups xmmword [rbp + 0x20], xmm0
cmovg edx, ecx
lea ecx, [r8 + r8]
add edi, ecx
mov dword [rsp + 0x70], edx
sub r9d, r11d
cmp r9d, edi
movups xmmword [rbp + 0x30], xmm0
cmovl edi, r9d
sub r10d, edx
add r13d, ecx
mov dword [rbp - 0x68], edi
cmp r10d, r13d
cmovl r13d, r10d
mov dword [rsp + 0x60], r13d
test r13d, r13d
je 0x14006a791
test edi, edi
je 0x14006a791
mov rax, qword [r15]
mov edx, r13d
imul edx, edi
mov rcx, r15
call qword [rax + 8]
mov qword [rbp - 0x50], rax
test rax, rax
je 0x14006a410
mov qword [rbp + 8], rax
mov r8d, r13d
mov dword [rbp], r13d
mov edx, edi
mov dword [rbp - 0xc], r13d
mov r9, rax
mov dword [rbp - 8], edi
mov dword [rbp - 0x10], 0x40000001
mov dword [rsp + 0x58], r13d
mov qword [rbp - 0x20], rax
jmp 0x14006a444
xorps xmm0, xmm0
mov dword [rsp + 0x58], esi
movups xmmword [rbp], xmm0
mov rax, qword [rbp + 8]
mov ebx, 0xfffffffd
mov qword [rbp - 0x50], rax
mov r8d, esi
movups xmmword [rbp - 0x10], xmm0
mov edx, esi
mov r9, rsi
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp - 0x20], rsi
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
test ebx, ebx
jne 0x14006a796
mov ebx, dword [rsp + 0x70]
mov rcx, r9
mov edi, dword [rbp - 0x80]
sub edi, ebx
imul r8d, edx
sub ebx, dword [rbp - 0x80]
xor edx, edx
sub ebx, dword [rsp + 0x50]
add ebx, r13d
call fcn.1400fddca
mov eax, dword [rbp - 0x70]
sub eax, dword [rsp + 0x68]
imul eax, dword [rsp + 0x58]
mov r9, qword [rbp - 0x60]
mov r10d, dword [rsp + 0x50]
mov rdx, r9
movsxd rcx, eax
add rcx, qword [rbp - 0x20]
movsxd rax, edi
add rax, rcx
lea ecx, [rbx + rdi]
movsxd r11, ecx
mov ebx, 0xff
nop dword [rax]
mov r8d, r10d
cmp byte [rdx], sil
mov ecx, esi
cmova ecx, ebx
inc rdx
mov byte [rax], cl
inc rax
sub r8d, 1
jne 0x14006a4a3
add rax, r11
sub r12d, 1
jne 0x14006a4a0
test r9, r9
je 0x14006a4d7
mov rax, qword [r15]
mov rdx, r9
mov rcx, r15
call qword [rax + 0x10]
mov qword [rbp - 0x60], rsi
cmp dword [rsp + 0x54], 1
mov edi, 4
mov r9d, dword [rbp - 0xc]
mov eax, dword [rbp - 8]
mov r12, qword [rbp - 0x38]
mov dword [rbp - 0x18], r9d
mov dword [rbp - 0x14], eax
mov qword [rbp - 0x20], rsi
jbe 0x14006a548
mov r14d, dword [rsp + 0x54]
mov dword [r12 + 0x3c8], esi
nop word [rax + rax]
mov r9d, r14d
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x10]
mov rcx, r12
dec edi
call fcn.140086de0
mov ebx, eax
test eax, eax
jne 0x14006a796
test edi, edi
jne 0x14006a510
test eax, eax
jne 0x14006a796
mov rdi, qword [rbp + 8]
mov r9d, dword [rbp - 0xc]
mov eax, dword [rbp - 8]
jmp 0x14006a54c
mov rdi, qword [rbp - 0x50]
xor cl, cl
mov rdx, rdi
imul r9d, eax
mov r8d, r9d
nop dword [rax + rax]
movzx eax, cl
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
cmp al, cl
cmovae ecx, eax
sub r8d, 1
jne 0x14006a560
test cl, cl
je 0x14006a59d
mov r8, rdi
movzx r10d, cl
movzx eax, byte [r8]
lea r8, [r8 + 1]
imul eax, eax, 0xff
xor edx, edx
div r10d
mov byte [r8 - 1], al
sub r9d, 1
jne 0x14006a580
mov ecx, dword [r12 + 0x350]
lea r15, [0x140000000]
shl ecx, 4
mov r10d, 0x1000
sub r10, rcx
mov ebx, pe_nt_image_headers64
mov r8, rsi
mov r9, rsi
mov r12d, ebx
lea r11, [r10 + r10]
nop word [rax + rax]
movzx eax, byte [r9 + r15 + 0x1bde40]
lea r9, [r9 + 2]
imul rax, rcx
add rax, r8
cqo
and edx, 0xfff
add rax, rdx
sar rax, 0xc
mov byte [rbp + r9 + 0x23e], al
movzx eax, byte [r9 + r15 + 0x1bde3f]
imul rax, rcx
add rax, r10
add rax, r8
add r8, r11
cqo
and edx, 0xfff
add rax, rdx
sar rax, 0xc
mov byte [rbp + r9 + 0x23f], al
sub r12, 1
jne 0x14006a5d0
mov r15, qword [rbp - 0x28]
lea r13, [0x140000000]
mov r12, qword [rbp - 0x38]
mov r8, rsi
mov r9, rsi
mov r14, rbx
nop word [rax + rax]
movzx eax, byte [r9 + r13 + 0x1be040]
lea r9, [r9 + 2]
imul rax, rcx
add rax, r8
cqo
and edx, 0xfff
add rax, rdx
sar rax, 0xc
mov byte [rbp + r9 + 0x13e], al
movzx eax, byte [r9 + r13 + 0x1be03f]
imul rax, rcx
add rax, r8
add r8, r11
add rax, r10
cqo
and edx, 0xfff
add rax, rdx
sar rax, 0xc
mov byte [rbp + r9 + 0x13f], al
sub r14, 1
jne 0x14006a650
mov r14, qword [rbp - 0x30]
lea r9, [0x140000000]
mov r13d, dword [rsp + 0x60]
mov r8, rsi
movzx eax, byte [r8 + r9 + 0x1bdf40]
lea r8, [r8 + 2]
imul rax, rcx
add rax, rsi
cqo
and edx, 0xfff
add rax, rdx
sar rax, 0xc
mov byte [rbp + r8 + 0x3e], al
movzx eax, byte [r8 + r9 + 0x1bdf3f]
imul rax, rcx
add rax, rsi
add rsi, r11
add rax, r10
cqo
and edx, 0xfff
add rax, rdx
sar rax, 0xc
mov byte [rbp + r8 + 0x3f], al
sub rbx, 1
jne 0x14006a6c1
mov eax, dword [rbp - 0x40]
lea r9, [rbp + 0x240]
mov ecx, dword [rsp + 0x70]
lea r8, [rbp - 0x20]
imul ecx, eax
mov rdx, r14
imul r13d, eax
mov dword [rbp - 0x20], ecx
mov ecx, dword [rsp + 0x68]
imul ecx, eax
mov dword [rbp - 0x18], r13d
mov dword [rbp - 0x1c], ecx
mov ecx, dword [rbp - 0x68]
imul ecx, eax
cmp eax, 1
mov eax, dword [rbp - 8]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp - 0xc]
mov dword [rsp + 0x38], eax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x140]
mov dword [rbp - 0x14], ecx
mov rcx, r12
mov qword [rsp + 0x20], rax
je 0x14006a788
call fcn.14007daf0
mov ebx, eax
jmp 0x14006a796
call fcn.1400adf00
mov ebx, eax
jmp 0x14006a796
mov ebx, 0xfffffffc
lea rdx, [rbp - 0x10]
mov rcx, r15
call fcn.140082460
mov r12, qword [rbp - 0x60]
jmp 0x14006a7ab
mov r12, rdx
test r12, r12
je 0x14006a7ca
mov rax, qword [r15]
mov rdx, r12
mov rcx, r15
call qword [rax + 0x10]
jmp 0x14006a7ca
mov ebx, 0xfffffffd
jmp 0x14006a7ca
mov ebx, 0xfffffffc
mov r15, qword [rsp + 0x458]
mov eax, ebx
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.1400fcc70
add rsp, 0x460
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret