Function at 0x18000b6a0
Capabilities:
Create new key via cryptacquirecontext
Encode data using xor
Hash data with crc32
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0xaa0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xae0], rbx
mov rax, qword [0x1800f7050]
xor rax, rsp
mov qword [rsp + 0xa90], rax
mov rbx, rdx
mov rbp, rcx
xor edx, edx
mov r8d, 0x1ff
lea rcx, [rsp + 0x891]
call fcn.1800644c0
mov dword [rsp + 0x890], 0x5120372
mov dword [rsp + 0x894], 2
mov eax, dword [rbp + 0x378]
mov dword [rsp + 0x8a4], eax
mov eax, dword [rbp + 0x370]
mov dword [rsp + 0x8a0], eax
mov rax, qword [rbp + 0x30]
shr rax, 9
mov dword [rsp + 0x8ac], eax
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x50]
call fcn.1800644c0
xor edi, edi
mov dword [rsp + 0x550], edi
mov dword [rsp + 0x554], edi
mov dword [rsp + 0x558], edi
mov qword [rsp + 0x560], rdi
mov dword [rsp + 0x568], 1
mov dword [rsp + 0x20], edi
lea r9d, [rdi + 1]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x18000b7b9
mov dword [rsp + 0x20], 8
lea r9d, [rdi + 1]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ecx, dword [rsp + 0x568]
test eax, eax
cmove ecx, edi
mov dword [rsp + 0x568], ecx
lea rcx, [rsp + 0x50]
call fcn.18000ec30
lea rcx, [rsp + 0x50]
call fcn.18000f380
lea rcx, [rsp + 0x50]
call fcn.18000ec30
mov dword [rsp + 0x550], 1
mov dword [rbp + 0x88], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x3c], edi
mov qword [rsp + 0x30], rdi
mov rax, qword [rbx]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x3c]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [rax + 0x58]
test eax, eax
jne 0x18000ba21
cmp dword [rsp + 0x38], eax
je 0x18000ba21
cmp qword [rsp + 0x30], 0
je 0x18000ba21
lea rcx, [0x1800d86e8]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
jne 0x18000b84b
mov ecx, 0x8007000e
call fcn.18000e300
int3
xor r9d, r9d
mov r8d, 0x400
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call sub.OLEAUT32.dll_VarR8Pow
cmp eax, 1
sete sil
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test sil, sil
sete al
test al, al
je 0x18000ba21
mov dword [rbp + 0x88], 1
or dword [rsp + 0x898], 1
cmp qword [rbp + 0x398], 0
jne 0x18000b90c
mov ecx, dword [rbp + 0x370]
lea rdx, [0x1800fee28]
call fcn.1800626b4
mov qword [rbp + 0x398], rax
test rax, rax
jne 0x18000b8fb
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x50]
call fcn.1800644c0
cmp dword [rsp + 0x568], 0
je 0x18000b8f1
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x8007000e
jmp 0x18000bf95
mov r8d, dword [rbp + 0x370]
xor edx, edx
mov rcx, rax
call fcn.1800644c0
cmp dword [rsp + 0x550], 0
je 0x18000b9df
mov r8d, 0x40
lea rdx, [rsp + 0x8b0]
lea rcx, [rsp + 0x50]
call fcn.18000e940
test eax, eax
je 0x18000b9df
lea rcx, [rsp + 0x50]
call fcn.18000ec30
cmp dword [rsp + 0x550], 0
je 0x18000b99d
mov r8d, 0x40
lea rdx, [rsp + 0x900]
lea rcx, [rsp + 0x50]
call fcn.18000e940
test eax, eax
je 0x18000b99d
lea rcx, [rsp + 0x50]
call fcn.18000ec30
mov dword [rsp + 0x8f0], 0x10211a41
mov edx, 0x40
lea rcx, [rsp + 0x900]
call fcn.18000e8c0
mov dword [rsp + 0x8f4], eax
jmp 0x18000ba21
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x50]
call fcn.1800644c0
cmp dword [rsp + 0x568], 0
je 0x18000b9d5
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x80004005
jmp 0x18000bf95
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x50]
call fcn.1800644c0
cmp dword [rsp + 0x568], 0
je 0x18000ba17
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x80004005
jmp 0x18000bf95
mov byte [rsp + 0x850], 0
xor eax, eax
mov qword [rsp + 0x851], rax
mov qword [rsp + 0x859], rax
mov qword [rsp + 0x861], rax
mov qword [rsp + 0x869], rax
mov qword [rsp + 0x871], rax
mov qword [rsp + 0x879], rax
mov qword [rsp + 0x881], rax
mov dword [rsp + 0x889], eax
mov word [rsp + 0x88d], ax
mov byte [rsp + 0x88f], al
or rsi, 0xffffffffffffffff
cmp dword [rbp + 0x88], eax
je 0x18000bbfa
lea rdx, [rsp + 0x850]
lea rcx, [rsp + 0x900]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
mov rax, qword [rcx + 0x18]
mov qword [rdx + 0x18], rax
mov rax, qword [rcx + 0x20]
mov qword [rdx + 0x20], rax
mov rax, qword [rcx + 0x28]
mov qword [rdx + 0x28], rax
mov rax, qword [rcx + 0x30]
mov qword [rdx + 0x30], rax
mov rax, qword [rcx + 0x38]
mov qword [rdx + 0x38], rax
cmp dword [rsp + 0x550], 0
je 0x18000bbb8
mov r8d, 0x150
lea rdx, [rsp + 0x940]
lea rcx, [rsp + 0x50]
call fcn.18000e940
test eax, eax
je 0x18000bbb8
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test rbx, rbx
je 0x18000bb76
lea r9, [rsp + 0x8b0]
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x570]
call fcn.18000e330
test eax, eax
je 0x18000bb76
mov r9, rsi
lea r8d, [rsi + 0x11]
lea rdx, [rsp + 0x8a0]
lea rcx, [rsp + 0x570]
call fcn.18000e540
mov r9, rsi
mov r8d, 0x1a0
lea rdx, [rsp + 0x8f0]
lea rcx, [rsp + 0x570]
call fcn.18000e540
jmp 0x18000bbfa
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x50]
call fcn.1800644c0
cmp dword [rsp + 0x568], 0
je 0x18000bbae
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x80004005
jmp 0x18000bf95
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x50]
call fcn.1800644c0
cmp dword [rsp + 0x568], 0
je 0x18000bbf0
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x80004005
jmp 0x18000bf95
mov r9d, 0x200
lea r10, [rsp + 0x890]
or r8d, 0xffffffff
lea r11, [0x1800fd2d0]
nop word [rax + rax]
movzx ecx, byte [r10]
mov eax, r8d
xor rcx, rax
movzx edx, cl
shr eax, 8
mov r8d, dword [r11 + rdx*4]
xor r8d, eax
inc r10
sub r9d, 1
jne 0x18000bc20
not r8d
mov dword [rsp + 0x89c], r8d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x18000bca5
call fcn.1800030e0
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x50]
call fcn.1800644c0
cmp dword [rsp + 0x568], 0
je 0x18000bc9e
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
jmp 0x18000bf95
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, 0x200
lea rdx, [rsp + 0x890]
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18000bd11
call fcn.1800030e0
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x50]
call fcn.1800644c0
cmp dword [rsp + 0x568], 0
je 0x18000bd0a
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
jmp 0x18000bf95
mov edx, dword [rbp + 0x378]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x18000bd71
call fcn.1800030e0
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x50]
call fcn.1800644c0
cmp dword [rsp + 0x568], 0
je 0x18000bd6a
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
jmp 0x18000bf95
mov ecx, dword [rbp + 0x374]
mov rax, qword [rbp + 0x30]
shr rax, 9
xor edx, edx
div rcx
mov ecx, eax
lea rbx, [rcx*4 + 0x1ff]
and rbx, 0xfffffffffffffe00
shr rbx, 2
mov rcx, qword [rbp + 0x380]
test rcx, rcx
je 0x18000bdaa
call fcn.1800626bc
mov r12d, ebx
mov eax, 4
mul r12
cmovo rax, rsi
lea rdx, [0x1800fee28]
mov rcx, rax
call fcn.1800626b4
mov qword [rbp + 0x380], rax
test rax, rax
jne 0x18000be16
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x50]
call fcn.1800644c0
cmp dword [rsp + 0x568], 0
je 0x18000be0c
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x8007000e
jmp 0x18000bf95
shl r12, 2
mov r8, r12
mov edx, 0xff
mov rcx, rax
call fcn.1800644c0
cmp dword [rbp + 0x88], 0
je 0x18000bec0
lea rdx, [rsp + 0x850]
lea rcx, [rbp + 0x8c]
call fcn.18000e4b0
test eax, eax
jne 0x18000be91
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x50]
call fcn.1800644c0
cmp dword [rsp + 0x568], 0
je 0x18000be87
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x80004005
jmp 0x18000bf95
mov rax, r12
shr rax, 9
sub rsi, rax
mov qword [rbp + 0x368], rsi
lea r8d, [rbx*4]
mov r9, rsi
mov rdx, qword [rbp + 0x380]
lea rcx, [rbp + 0x8c]
call fcn.18000e540
lea r8d, [rbx*4]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov rdx, qword [rbp + 0x380]
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18000bf3d
mov rcx, qword [rbp + 0x380]
call fcn.1800626bc
mov qword [rbp + 0x380], rdi
call fcn.1800030e0
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x50]
call fcn.1800644c0
cmp dword [rsp + 0x568], 0
je 0x18000bf39
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
jmp 0x18000bf95
cmp dword [rbp + 0x88], 0
je 0x18000bf5b
mov r8, r12
mov edx, 0xff
mov rcx, qword [rbp + 0x380]
call fcn.1800644c0
nop
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x50]
call fcn.1800644c0
cmp dword [rsp + 0x568], 0
je 0x18000bf93
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0xa90]
xor rcx, rsp
call fcn.180062100
mov rbx, qword [rsp + 0xae0]
add rsp, 0xaa0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret