Function at 0x18001d120
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0xa8
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
add rax, 0x2e8
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 0x1c]
mov dword [rsp + 0x1c], edx
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 0x20]
mov dword [rsp + 0x18], edx
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 0xc]
mov dword [rsp + 0x14], edx
cmp dword [rsp + 0x14], 0x12
jae 0x18001d49d
mov eax, dword [rsp + 0x14]
mov ecx, eax
lea rdx, [0x180040790]
mov r8b, byte [rdx + rcx]
mov byte [rsp + 0x13], r8b
mov rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0xc]
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x4c], 4
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov ecx, 0x40
sub ecx, dword [rax + 8]
cmp ecx, dword [rsp + 0x4c]
jae 0x18001d285
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
cmp qword [rax + 0x18], 0
jne 0x18001d1f8
mov dword [rsp + 0x84], 0
jmp 0x18001d265
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
shr rcx, 8
mov qword [rax], rcx
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x10]
movzx edx, byte [rax]
mov eax, edx
shl rax, 0x38
mov rcx, qword [rsp + 0x78]
or rax, qword [rcx]
mov qword [rcx], rax
mov rax, qword [rsp + 0x78]
mov edx, dword [rax + 8]
sub edx, 8
mov dword [rax + 8], edx
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax + 0x18]
add rcx, 0xffffffffffffffff
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax + 0x10]
add rcx, 1
mov qword [rax + 0x10], rcx
mov dword [rsp + 0x84], 1
cmp dword [rsp + 0x84], 0
jne 0x18001d280
mov dword [rsp + 0x5c], 0
jmp 0x18001d2d9
jmp 0x18001d1ad
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x70]
mov edx, dword [rcx + 8]
mov ecx, edx
shr rax, cl
mov edx, dword [rsp + 0x4c]
mov dword [rsp + 0x68], edx
mov dword [rsp], eax
mov eax, dword [rsp + 0x68]
mov ecx, eax
lea rdx, [0x180040840]
mov eax, dword [rdx + rcx*4]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp]
and eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x50]
mov dword [rcx], eax
mov dword [rsp + 0x5c], 1
cmp dword [rsp + 0x5c], 0
setne al
xor al, 0xff
test al, 1
jne 0x18001d2f0
jmp 0x18001d3b8
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov ecx, 0x40
sub ecx, dword [rax + 8]
mov dword [rsp + 4], ecx
cmp dword [rsp + 4], 0
je 0x18001d353
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x98]
mov edx, dword [rcx + 8]
mov ecx, edx
shr rax, cl
and rax, 0xf
mov dword [rsp + 0xc], eax
jmp 0x18001d35b
mov dword [rsp + 0xc], 0
mov eax, dword [rsp + 0xc]
mov ecx, eax
lea rdx, [0x1800407b0]
movzx eax, byte [rdx + rcx]
cmp eax, dword [rsp + 4]
jbe 0x18001d3b3
mov eax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0xc], eax
mov eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0x1c], eax
mov eax, dword [rsp + 0x18]
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0x20], eax
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 8], 4
mov dword [rsp + 0x3c], 2
jmp 0x18001d4c8
jmp 0x18001d3b8
mov eax, dword [rsp + 0xc]
mov ecx, eax
lea rdx, [0x1800407c0]
movzx eax, byte [rdx + rcx]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 0xc]
mov ecx, eax
lea rdx, [0x1800407b0]
movzx eax, byte [rdx + rcx]
mov rcx, qword [rsp + 0x28]
mov dword [rsp + 0x94], eax
mov qword [rsp + 0x88], rcx
mov eax, dword [rsp + 0x94]
mov rcx, qword [rsp + 0x88]
add eax, dword [rcx + 8]
mov dword [rcx + 8], eax
mov eax, dword [rsp + 8]
mov rcx, qword [rsp + 0x20]
movzx r8d, byte [rsp + 0x13]
mov edx, r8d
mov byte [rcx + rdx + 0x6d0], al
cmp dword [rsp + 8], 0
je 0x18001d488
mov eax, dword [rsp + 0x18]
mov ecx, dword [rsp + 8]
mov edx, 0x20
shr edx, cl
sub eax, edx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x1c]
add eax, 1
mov dword [rsp + 0x1c], eax
mov r8, qword [rsp + 0x20]
mov eax, dword [rsp + 8]
mov r9d, eax
mov r10w, word [r8 + r9*2 + 0x6e2]
add r10w, 1
mov word [r8 + r9*2 + 0x6e2], r10w
mov eax, dword [rsp + 0x18]
sub eax, 1
cmp eax, 0x20
jb 0x18001d483
jmp 0x18001d49d
jmp 0x18001d488
jmp 0x18001d48d
mov eax, dword [rsp + 0x14]
add eax, 1
mov dword [rsp + 0x14], eax
jmp 0x18001d170
cmp dword [rsp + 0x1c], 1
je 0x18001d4c0
cmp dword [rsp + 0x18], 0
je 0x18001d4c0
mov dword [rsp + 0x3c], 0xfffffffa
jmp 0x18001d4c8
mov dword [rsp + 0x3c], 1
mov eax, dword [rsp + 0x3c]
add rsp, 0xa8
ret