Function at 0x180032b80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa8]
sub rsp, 0x1a8
mov ebx, dword [rbp + 0xf0]
lea eax, [rcx + 9]
mov dword [rbp + 4], eax
mov r14, r8
mov r8, rdx
mov r13d, ecx
cmp ecx, eax
jae case.0x180032ccb.291
mov eax, dword [rbp + 0xf0]
lea r10, [0x180000000]
mov rdx, qword [rbp + 0x108]
mov r11d, 0x100
mov r12, qword [rbp + 0x108]
mov rdi, qword [rbp + 0x108]
mov r9, qword [rbp + 0x108]
mov r15d, dword [rbp + 0xf0]
mov esi, dword [rbp + 0xf0]
mov ecx, dword [rbp + 0xf0]
mov dword [rbp - 0x30], eax
mov eax, dword [rbp + 0xf0]
mov dword [rsp + 0x7c], eax
mov rax, qword [rbp + 0x108]
mov qword [rbp - 0x28], rax
mov eax, dword [rbp + 0xf0]
mov dword [rsp + 0x74], eax
mov eax, dword [rbp + 0xf0]
mov dword [rbp - 0x64], eax
mov eax, dword [rbp + 0xf0]
mov dword [rsp + 0x34], eax
mov eax, dword [rbp + 0xf0]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0xf0]
mov dword [rsp + 0x70], eax
mov eax, dword [rbp + 0xf0]
mov dword [rbp - 0x68], eax
mov eax, dword [rbp + 0xf0]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0xf0]
mov dword [rsp + 0x78], eax
mov rax, qword [rbp + 0x108]
mov qword [rbp - 8], rax
mov eax, dword [rbp + 0xf0]
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp + 0xf0]
mov dword [rbp - 0x58], eax
mov dword [rbp - 0x54], ebx
mov qword [rsp + 0x60], rdx
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x48], rdi
mov dword [rsp + 0x40], r15d
mov dword [rbp - 0x38], esi
mov dword [rbp - 0x7c], ecx
mov qword [rbp - 0x78], r9
nop word [rax + rax]
lea eax, [r13 - 0x10f]
cmp eax, 0x14
ja case.0x180032ccb.275
mov ecx, dword [r10 + rax*4 + 0x3374c]
add rcx, r10
jmp rcx
mov rsi, qword [rbp + 0x100]
mov rcx, qword [rsi]
mov eax, dword [rcx + 0x1dc]
dec eax
mov dword [rbp - 0x30], eax
mov eax, dword [rcx + 0xb4]
cmp dword [rcx + 0xac], eax
jg 0x180032d48
mov rdx, qword [rcx + 0x278]
cmp dword [rdx + 0x24], 0
jne 0x180032d3f
mov eax, dword [rcx + 0xb4]
cmp dword [rcx + 0xac], eax
jne 0x180032d24
xor eax, eax
cmp dword [rcx + 0x244], eax
sete al
add eax, dword [rcx + 0xb8]
cmp dword [rcx + 0xb0], eax
ja 0x180032d3f
call qword [rdx]
test eax, eax
je 0x180033724
mov rcx, qword [rsi]
mov eax, dword [rcx + 0xb4]
cmp dword [rcx + 0xac], eax
jle 0x180032cf0
mov r9, qword [rbp - 0x78]
mov rdx, qword [rsp + 0x60]
mov r13d, pe_nt_image_headers64
jmp 0x1800336d3
mov rcx, qword [r14]
xor eax, eax
xor r13d, r13d
mov dword [rbp - 0x5c], eax
mov qword [rbp - 0x70], r13
mov r11, qword [rcx + 0x130]
mov qword [rsp + 0x58], r11
cmp dword [rcx + 0x38], eax
jle 0x1800333d6
mov ebx, dword [rbp - 0x64]
mov r10, rcx
nop dword [rax]
cmp dword [r11 + 0x30], 0
mov rcx, r10
je 0x1800333ae
mov r8d, dword [r10 + 0xb8]
cmp r8d, dword [rbp - 0x30]
jae 0x180032dae
mov eax, dword [r11 + 0xc]
xor r11d, r11d
mov ecx, eax
mov qword [rbp + 0x18], r11
lea r9d, [rax + rax]
jmp 0x180032dd4
mov ecx, dword [r11 + 0xc]
xor edx, edx
mov eax, dword [r11 + 0x20]
div ecx
mov qword [rbp + 0x18], 1
test edx, edx
mov eax, edx
mov rdx, qword [rsp + 0x60]
cmove eax, ecx
xor r11d, r11d
mov r9d, eax
mov rdx, qword [rdx + r13*8 + 0x90]
mov dword [rbp - 0x80], eax
mov rax, qword [r10 + 8]
mov dword [rsp + 0x20], r11d
test r8d, r8d
je 0x180032e14
add r9d, ecx
dec r8d
imul r8d, ecx
mov rcx, r10
call qword [rax + 0x40]
mov r11, qword [rsp + 0x58]
mov qword [rbp + 0x10], 0
movsxd rcx, dword [r11 + 0xc]
lea rax, [rax + rcx*8]
jmp 0x180032e2a
xor r8d, r8d
mov rcx, r10
call qword [rax + 0x40]
mov r11, qword [rsp + 0x58]
mov qword [rbp + 0x10], 1
mov rcx, qword [rsp + 0x60]
lea rdx, [r13*2]
add rdx, r13
mov qword [rbp + 8], rax
mov dword [rbp - 0x60], 0
mov rcx, qword [rcx + 0xe0]
lea r13, [rcx + rdx*8]
mov rcx, qword [r11 + 0x50]
mov edx, dword [rcx + 0x20]
mov r10d, dword [rcx + 0x40]
mov r9d, dword [rcx]
mov r8d, dword [rcx + 4]
mov dword [rbp - 0x50], edx
mov edx, dword [rcx + 0x24]
mov dword [rsp + 0x50], edx
mov edx, dword [rcx + 8]
mov rcx, qword [r14]
mov dword [rsp + 0x48], r10d
mov r10, qword [rbp - 0x70]
mov dword [rbp], edx
xor edx, edx
mov rax, qword [rcx + 0x290]
mov dword [rbp - 0x2c], r9d
mov dword [rbp + 0x108], r8d
mov qword [rsp + 0x68], rdx
mov rax, qword [rax + r10*8 + 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0xf8]
mov rax, qword [rax]
mov r10, qword [rax + r10*8]
movsxd rax, dword [rbp - 0x80]
mov qword [rbp - 0x40], r10
test rax, rax
jle 0x1800333a2
nop
mov eax, 0xb6
mov dword [rbp - 0x20], eax
nop dword [rax + rax]
sub eax, 0xb3
je 0x18003334d
sub eax, 1
je 0x180032f89
sub eax, 1
je 0x180032f5f
cmp eax, 1
jne 0x180033359
cmp qword [rbp + 0x10], 0
mov rcx, qword [rbp + 8]
mov r12, qword [rcx + rdx*8]
je 0x180032f0b
test rdx, rdx
jne 0x180032f0b
mov rdx, r12
jmp 0x180032f10
mov rdx, qword [rcx + rdx*8 - 8]
cmp qword [rbp + 0x18], 0
mov qword [rbp - 0x28], rdx
je 0x180032f2a
mov eax, dword [rbp - 0x80]
dec eax
cmp dword [rbp - 0x60], eax
jne 0x180032f2a
mov rdi, r12
jmp 0x180032f34
mov rdi, qword [rsp + 0x68]
mov rdi, qword [rcx + rdi*8 + 8]
movsx r11d, word [rdx]
movsx ebx, word [r12]
mov esi, r11d
mov rdx, qword [rsp + 0x68]
mov r15d, ebx
mov dword [rsp + 0x70], r11d
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x34], ebx
mov qword [rbp - 0x48], rdi
jmp 0x180033359
movsx edx, word [rdi]
mov dword [rsp + 0x78], edx
mov dword [rsp + 0x38], edx
mov dword [rbp - 0x68], edx
mov edx, dword [r11 + 0x1c]
dec edx
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x7c], edx
mov rdx, qword [rsp + 0x68]
jmp 0x180033359
mov edx, dword [rsp + 0x7c]
xor r14d, r14d
mov edi, 0x8e
nop word [rax + rax]
cmp edi, 0x8902
ja 0x180033304
je 0x1800332fb
cmp edi, 0x8e
je 0x1800332bb
cmp edi, 0x2e0a
je 0x1800330bb
cmp edi, 0x5b86
jne 0x18003308b
mov r8d, dword [r13 + 0x14]
test r8d, r8d
je 0x180033047
cmp word [rbp + 0x24], 0
jne 0x180033047
mov eax, dword [rsp + 0x34]
mov ecx, ebx
add eax, eax
sub ecx, eax
add ecx, r15d
imul ecx, r9d
lea edx, [rcx + rcx*8]
mov ecx, dword [rbp]
mov eax, ecx
shl ecx, 8
shl eax, 7
test edx, edx
js 0x180033026
add eax, edx
cdq
idiv ecx
test r8d, r8d
jle 0x180033043
mov ecx, r8d
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x180033043
lea eax, [rdx - 1]
jmp 0x180033043
sub eax, edx
cdq
idiv ecx
test r8d, r8d
jle 0x180033041
mov ecx, r8d
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x180033041
lea eax, [rdx - 1]
neg eax
mov word [rbp + 0x24], ax
mov eax, dword [rsp + 0x74]
lea r8, [rbp + 0x20]
mov dword [rsp + 0x20], eax
mov r9, r10
mov rax, qword [rbp + 0x100]
mov rdx, r11
mov rcx, qword [rax]
call qword [rbp - 0x10]
mov edx, dword [rsp + 0x70]
mov esi, dword [rsp + 0x30]
mov r15d, dword [rsp + 0x34]
mov dword [rsp + 0x30], edx
mov r9d, dword [rbp - 0x2c]
mov r11, qword [rsp + 0x58]
mov r10, qword [rbp - 0x40]
mov r8d, dword [rbp + 0x108]
mov edx, dword [rsp + 0x7c]
add edi, 0x2d7c
cmp edi, 0x110e8
jbe 0x180032fa0
inc r14d
cmp r14d, edx
jbe 0x180032f90
mov rdi, qword [rbp - 0x48]
mov rdx, qword [rsp + 0x68]
jmp 0x180033359
cmp r14d, edx
jae 0x1800330ed
mov rax, qword [rbp - 0x28]
movsx ebx, word [r12 + 0x80]
movsx r11d, word [rax + 0x80]
mov rax, qword [rbp - 0x48]
mov dword [rsp + 0x70], r11d
movsx r10d, word [rax + 0x80]
mov dword [rsp + 0x78], r10d
jmp 0x1800330f7
mov r11d, dword [rsp + 0x70]
mov r10d, dword [rsp + 0x78]
mov ecx, dword [r13 + 4]
test ecx, ecx
je 0x18003315b
cmp word [rbp + 0x22], 0
jne 0x18003315b
mov eax, r15d
sub eax, ebx
imul eax, r9d
lea edx, [rax + rax*8]
mov eax, r8d
shl eax, 7
shl edx, 2
shl r8d, 8
test edx, edx
js 0x18003313d
add eax, edx
cdq
idiv r8d
test ecx, ecx
jle 0x180033157
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x180033157
lea eax, [rdx - 1]
jmp 0x180033157
sub eax, edx
cdq
idiv r8d
test ecx, ecx
jle 0x180033155
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x180033155
lea eax, [rdx - 1]
neg eax
mov word [rbp + 0x22], ax
mov ecx, dword [r13 + 8]
test ecx, ecx
je 0x1800331c6
cmp word [rbp + 0x30], 0
jne 0x1800331c6
mov r8d, dword [rbp - 0x50]
mov eax, dword [rsp + 0x30]
sub eax, dword [rsp + 0x38]
imul eax, r9d
lea edx, [rax + rax*8]
mov eax, r8d
shl eax, 7
shl edx, 2
shl r8d, 8
test edx, edx
js 0x1800331a8
add eax, edx
cdq
idiv r8d
test ecx, ecx
jle 0x1800331c2
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x1800331c2
lea eax, [rdx - 1]
jmp 0x1800331c2
sub eax, edx
cdq
idiv r8d
test ecx, ecx
jle 0x1800331c0
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x1800331c0
lea eax, [rdx - 1]
neg eax
mov word [rbp + 0x30], ax
mov r8d, dword [r13 + 0xc]
test r8d, r8d
je 0x18003323b
cmp word [rbp + 0x40], 0
jne 0x18003323b
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x38]
add eax, eax
sub ecx, eax
add ecx, dword [rsp + 0x30]
imul ecx, r9d
lea edx, [rcx + rcx*8]
mov ecx, dword [rsp + 0x48]
mov eax, ecx
shl ecx, 8
shl eax, 7
test edx, edx
js 0x18003321a
add eax, edx
cdq
idiv ecx
test r8d, r8d
jle 0x180033237
mov ecx, r8d
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x180033237
lea eax, [rdx - 1]
jmp 0x180033237
sub eax, edx
cdq
idiv ecx
test r8d, r8d
jle 0x180033235
mov ecx, r8d
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x180033235
lea eax, [rdx - 1]
neg eax
mov word [rbp + 0x40], ax
mov ecx, dword [r13 + 0x10]
test ecx, ecx
je 0x18003307b
cmp word [rbp + 0x32], 0
jne 0x18003307b
mov r8d, dword [rsp + 0x50]
mov eax, r10d
sub eax, dword [rbp - 0x68]
sub eax, r11d
add eax, esi
imul eax, r9d
lea edx, [rax + rax*4]
mov eax, r8d
shl eax, 7
shl r8d, 8
test edx, edx
js 0x180033298
add eax, edx
cdq
idiv r8d
test ecx, ecx
jle 0x1800332b2
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x1800332b2
lea eax, [rdx - 1]
mov word [rbp + 0x32], ax
jmp 0x18003307b
sub eax, edx
cdq
idiv r8d
test ecx, ecx
jle 0x1800332b0
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x1800332b0
lea eax, [rdx - 1]
neg eax
mov word [rbp + 0x32], ax
jmp 0x18003307b
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], 0
mov qword [rbp - 0x38], rax
lea r9, [rbp - 0x38]
lea rax, [rbp - 0x18]
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0x74
mov qword [rbp - 0x18], r12
xor ecx, ecx
call fcn.18006a5d0
jmp 0x180033077
mov dword [rsp + 0x34], ebx
jmp 0x18003308b
cmp edi, 0xb67e
je 0x180033337
cmp edi, 0xe3fa
jne 0x18003308b
mov edx, dword [rsp + 0x74]
sub r12, 0xffffffffffffff80
sub qword [rbp - 0x28], 0xffffffffffffff80
sub qword [rbp - 0x48], 0xffffffffffffff80
add edx, dword [r11 + 0x24]
mov dword [rsp + 0x74], edx
jmp 0x18003308b
mov ecx, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x78]
mov dword [rbp - 0x68], ecx
mov dword [rsp + 0x38], r8d
jmp 0x180033084
movsxd rax, dword [r11 + 0x24]
lea r10, [r10 + rax*8]
mov qword [rbp - 0x40], r10
mov eax, dword [rbp - 0x20]
mov r11, qword [rsp + 0x58]
dec eax
mov dword [rbp - 0x20], eax
cmp eax, 0xb2
ja 0x180032ed0
inc dword [rbp - 0x60]
inc rdx
movsxd rax, dword [rbp - 0x80]
mov dword [rbp - 0x64], ebx
mov qword [rbp - 0x18], r12
mov dword [rsp + 0x40], r15d
mov dword [rbp - 0x38], esi
mov qword [rsp + 0x68], rdx
cmp rdx, rax
jl 0x180032ec0
mov r14, qword [rbp + 0x100]
mov rcx, qword [r14]
mov rdx, qword [rsp + 0x60]
mov eax, dword [rbp - 0x5c]
mov r13, qword [rbp - 0x70]
inc eax
inc r13
add r11, 0x60
mov dword [rbp - 0x5c], eax
mov r10, rcx
mov qword [rbp - 0x70], r13
mov qword [rsp + 0x58], r11
cmp eax, dword [rcx + 0x38]
jl 0x180032d80
mov ebx, dword [rbp - 0x54]
mov r9, qword [rbp - 0x78]
inc dword [rcx + 0xb8]
mov rax, qword [r14]
mov ecx, dword [rcx + 0xb8]
cmp ecx, dword [rax + 0x1dc]
jb 0x180033728
mov r13d, dword [rbp + 0xf0]
jmp case.0x180032ccb.275
mov dword [rbp - 0x7c], 0
test r14, r14
je 0x180033412
test r8, r8
jne case.0x180032ccb.275
mov eax, 0xffffffff
jmp 0x180033738
mov rax, qword [r14]
mov r9, qword [rax + 0x2a8]
mov qword [rbp - 0x78], r9
jmp case.0x180032ccb.275
mov rsi, qword [rbp + 0x100]
movzx eax, byte [rsi]
test al, al
je 0x180033481
mov r13d, dword [rbp - 0x7c]
movsx edx, al
mov rcx, r8
call fcn.1800788f0
test rax, rax
jne 0x180033466
movzx eax, byte [rsi + 1]
inc rsi
mov r8, qword [rbp + 0xf8]
inc r13d
test al, al
jne 0x180033441
mov r9, qword [rbp - 0x78]
mov rdx, qword [rsp + 0x60]
mov dword [rbp - 0x7c], r13d
mov r13d, dword [rbp + 0xf0]
mov qword [rbp + 0x100], rsi
mov ebx, dword [rbp - 0x7c]
mov dword [rbp - 0x54], ebx
jmp 0x1800336d3
mov rsi, qword [rbp + 0x100]
mov r8d, 0x2fe
mov edx, 1
mov rax, qword [rsi]
mov edi, dword [rax + 0x70]
xor eax, eax
cmp edi, 1
mov dword [rbp - 0x50], edi
sete al
cmovne r8d, r11d
mov dword [r9 + 0x38], eax
mov rcx, qword [rsi]
mov rax, qword [rcx + 8]
mov r9d, dword [rcx + 0x90]
call qword [rax + 0x10]
mov r9, qword [rbp - 0x78]
xor r15d, r15d
mov r12d, dword [r9 + 0x28]
mov qword [r9 + 0x30], rax
mov rax, qword [rsi]
cmp dword [rax + 0x90], r15d
jle 0x1800336ce
mov ebx, dword [rbp - 0x58]
lea rdx, [r9 + 0x3c]
xor ecx, ecx
mov qword [rsp + 0x68], rdx
mov qword [rbp - 0x70], rcx
nop dword [rax]
mov r13d, 0xb8
nop word [rax + rax]
mov eax, r13d
sub eax, 0xb8
je 0x180033666
sub eax, 1
je 0x180033656
sub eax, 1
je 0x18003357f
cmp eax, 1
jne 0x18003368d
cmp edi, eax
jne 0x18003368d
mov r8, qword [rbp - 8]
mov ecx, eax
lea rdx, [r8 - 1]
nop word [rax + rax]
movzx eax, byte [r8]
mov byte [rdx], al
lea rdx, [rdx - 1]
movzx eax, byte [r8 + 0xff]
mov byte [r8 + rcx + 0xff], al
inc rcx
cmp rcx, 0xff
jle 0x180033550
mov rcx, qword [rbp - 0x70]
jmp 0x180033688
mov rax, qword [rsi]
lea r8, [rbp + 0x108]
mov r14d, dword [rbp - 0x1c]
lea rdx, [rsp + 0x50]
mov qword [rbp - 0x10], rax
lea rcx, [rsp + 0x48]
lea rax, [rbp - 0x10]
mov dword [rsp + 0x48], 0
dec r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x13
mov dword [rsp + 0x50], r14d
mov dword [rbp + 0x108], r15d
call fcn.18003ec00
mov r8, qword [rbp - 8]
xor edi, edi
xor esi, esi
mov edx, eax
cmp edi, edx
jle 0x180033626
mov dword [rsp + 0x50], r14d
mov dword [rbp + 0x108], r15d
mov rax, qword [rbp + 0x100]
lea r8, [rbp + 0x108]
inc ebx
lea rdx, [rsp + 0x50]
mov r9d, 0x13
mov dword [rsp + 0x48], ebx
lea rcx, [rsp + 0x48]
mov rax, qword [rax]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
call fcn.18003ec00
mov edx, eax
cmp edi, eax
jg 0x1800335e0
mov r8, qword [rbp - 8]
mov dword [rbp - 0x58], ebx
movsx eax, bl
inc edi
movsx ecx, r12b
imul ecx, eax
mov byte [rsi + r8], cl
inc rsi
cmp rsi, 0xff
jle 0x1800335d0
mov rcx, qword [rbp - 0x70]
mov edi, dword [rbp - 0x50]
mov rsi, qword [rbp + 0x100]
mov r9, qword [rbp - 0x78]
jmp 0x180033688
mov rax, qword [r9 + 0x30]
xor ebx, ebx
mov rax, qword [rcx + rax]
mov qword [rbp - 8], rax
jmp 0x18003368d
mov r8d, dword [rdx]
mov eax, r12d
cdq
mov dword [rbp - 0x1c], r8d
idiv r8d
mov r12d, eax
cmp edi, 1
jne 0x180033688
mov rax, qword [r9 + 0x30]
add qword [rax + rcx], 0xff
mov rdx, qword [rsp + 0x68]
inc r13d
cmp r13d, 0xbc
jb 0x180033510
mov rax, qword [rsi]
add rdx, 4
add rcx, 8
mov dword [rbp - 0x58], ebx
inc r15d
mov qword [rsp + 0x68], rdx
mov qword [rbp - 0x70], rcx
cmp r15d, dword [rax + 0x90]
jl 0x180033500
mov ebx, dword [rbp - 0x54]
mov r13d, dword [rbp + 0xf0]
mov rdx, qword [rsp + 0x60]
mov r14, qword [rbp + 0x100]
inc r13d
mov dword [rbp + 0xf0], r13d
cmp r13d, dword [rbp + 4]
jae case.0x180032ccb.291
mov esi, dword [rbp - 0x38]
lea r10, [0x180000000]
mov r15d, dword [rsp + 0x40]
mov r11d, 0x100
mov r12, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x48]
mov r8, qword [rbp + 0xf8]
jmp 0x180032cb0
mov rax, qword [r14]
mov rdx, qword [rax + 0x268]
mov qword [rsp + 0x60], rdx
jmp case.0x180032ccb.275
xor eax, eax
jmp 0x180033738
mov eax, 3
jmp 0x180033738
mov eax, 4
jmp 0x180033738
mov eax, ebx
add rsp, 0x1a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret