Function at 0x140006ac8
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push rsi
rcr r10b, 0x53
cwde
push rdi
xchg dil, al
mov eax, 0x5a4d
dec r9w
test esp, 0x76a743e
movsx r9w, spl
mov r10, r8
rcl r9, cl
add dil, 0xf8
btr edi, 0x3e
mov rdi, rdx
cmc
bt r9w, sp
mov r9, rcx
clc
cmp word [rcx], ax
jmp 0x140006b0a
jne 0x140006d94
sub esi, esi
cmp rcx, 0xffffffffffffffff
jmp 0x140006b1b
je 0x140006b43
mov eax, dword [rcx + 0x3c]
lea rax, [rax + rcx]
cmp dword [rax], 0x4550
jmp 0x140006b33
cmove rsi, rax
test ebx, 0x15b91584
jmp 0x140006b43
cmp dword [rsi], 0x4550
jmp 0x140006b4e
jne 0x140006d94
mov r8d, dword [rsi + 0x50]
ror al, cl
sub edx, edx
xchg al, r11b
movzx r11d, word [rsi + 6]
dec r8d
not ah
mov qword [rsp + 0x18], rbx
mov ebx, dword [rsi + 0x38]
bts ax, r11w
stc
add r8d, ebx
movsx eax, bp
mov eax, r8d
stc
mov qword [rsp + 0x20], rbp
mov ebp, dword [rsi + 0x3c]
jmp 0x140006b8e
div ebx
stc
mov qword [rsp + 0x30], r15
and r15b, 0xc4
ror r15, 0x2d
mov r15d, dword [rsi + 0x54]
stc
sub r8d, edx
test rdi, rdi
je 0x140006bb5
mov dword [rdi], r8d
cmp sil, r13b
test r10, r10
jmp 0x140006bbd
je 0x140006d64
mov qword [rsp + 0x28], r14
xor eax, eax
mov ecx, r8d
mov r14b, 0xce
mov rdi, r10
movzx r14, di
rep stosb byte [rdi], al
movsx r14w, r9b
sal r14d, 0x17
movzx r14d, word [rsi + 0x14]
cmp r13b, 0xb6
add r14, 0x18
add r14, rsi
test r13b, 0x7c
test r11d, r11d
jmp 0x140006bfe
je 0x140006c8f
lea rdi, [r14 + 8]
mov rsi, r11
movsx ax, r12b
cdqe
nop dword [rax + rax]
cwde
jmp 0x140006c20
mov ecx, dword [rdi + 8]
not ah
lea rdi, [rdi + 0x28]
dec ecx
cmp bl, bl
bsr ax, bp
movsx ax, bpl
xor edx, edx
add ecx, ebp
movzx ax, dil
bsf ax, sp
shld rax, rsp, 0xd8
mov eax, ecx
test rsi, r9
div ebp
xor rax, 0x32060c5c
sub ecx, edx
sal al, 0xc0
sub ax, r11w
sub edx, edx
mov dword [rdi - 0x20], ecx
mov ecx, dword [rdi - 0x28]
dec ecx
add ecx, ebx
shr eax, 0xd4
btr rax, 0x36
mov eax, ecx
div ebx
sub ecx, edx
mov dword [rdi - 0x28], ecx
test sil, 0xa4
sub rsi, 1
jmp 0x140006c89
jne 0x140006c20
lea eax, [r11 - 1]
clc
lea rax, [rax + rax*4]
mov ecx, dword [r14 + rax*8 + 0x10]
jmp 0x140006ca8
lea rdx, [r14 + rax*8]
sar di, cl
movsxd rdi, esi
mov edi, dword [rdx + 0xc]
add ecx, edi
test r15b, 0x6c
jmp 0x140006cc0
cmp ecx, r8d
jmp 0x140006cc8
jbe 0x140006cd8
sub r8d, edi
not di
mov dword [rdx + 0x10], r8d
mov rcx, r15
not dil
cmovl rsi, rbx
movsx si, r12b
mov rdi, r10
mov esi, edx
mov rsi, r9
rep movsb byte [rdi], byte [rsi]
test r11d, r11d
jmp 0x140006cf9
je 0x140006d5f
lea rax, [r14 + 0x14]
bts cx, r10w
btc si, r9w
mov rdx, r11
nop word [rax + rax]
mov esi, dword [rax]
movzx rcx, r8w
mov edi, dword [rax - 8]
shrd cx, r9w, 0xe8
add rsi, r9
mov ecx, dword [rax - 4]
jmp 0x140006d38
lea rax, [rax + 0x28]
test r10b, 0x87
cmp ecx, r13d
test rdx, rdi
add rdi, r10
rep movsb byte [rdi], byte [rsi]
test bp, cx
stc
cmc
sub rdx, 1
jmp 0x140006d59
jne 0x140006d19
mov r14, qword [rsp + 0x28]
mov r15, qword [rsp + 0x30]
xchg bl, bl
mov al, 1
not bp
cmovo esi, ebx
mov rbp, qword [rsp + 0x20]
mov si, r13w
mov rbx, qword [rsp + 0x18]
movsxd rdi, r12d
movsx esi, r11w
movzx rsi, r13w
pop rdi
pop rsi
jmp 0x140006d93
ret
xor al, al
setns dil
cmove rdi, r8
mov dil, r14b
pop rdi
movsx esi, r10w
movzx esi, si
pop rsi
jmp 0x140006daf
ret