Function at 0x180062490
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 [0x1800ff050]
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.18006cf60
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.18006cf60
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 0x1800625a9
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.180065c30
lea rcx, [rsp + 0x50]
call fcn.180066380
lea rcx, [rsp + 0x50]
call fcn.180065c30
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 0x180062811
cmp dword [rsp + 0x38], eax
je 0x180062811
cmp qword [rsp + 0x30], 0
je 0x180062811
lea rcx, [0x1800e3db8]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
jne 0x18006263b
mov ecx, 0x8007000e
call fcn.180013010
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 0x180062811
mov dword [rbp + 0x88], 1
or dword [rsp + 0x898], 1
cmp qword [rbp + 0x398], 0
jne 0x1800626fc
mov ecx, dword [rbp + 0x370]
lea rdx, [0x180106f48]
call fcn.18006aaa4
mov qword [rbp + 0x398], rax
test rax, rax
jne 0x1800626eb
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.18006cf60
cmp dword [rsp + 0x568], 0
je 0x1800626e1
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x8007000e
jmp 0x180062d85
mov r8d, dword [rbp + 0x370]
xor edx, edx
mov rcx, rax
call fcn.18006cf60
cmp dword [rsp + 0x550], 0
je 0x1800627cf
mov r8d, 0x40
lea rdx, [rsp + 0x8b0]
lea rcx, [rsp + 0x50]
call fcn.180065940
test eax, eax
je 0x1800627cf
lea rcx, [rsp + 0x50]
call fcn.180065c30
cmp dword [rsp + 0x550], 0
je 0x18006278d
mov r8d, 0x40
lea rdx, [rsp + 0x900]
lea rcx, [rsp + 0x50]
call fcn.180065940
test eax, eax
je 0x18006278d
lea rcx, [rsp + 0x50]
call fcn.180065c30
mov dword [rsp + 0x8f0], 0x10211a41
mov edx, 0x40
lea rcx, [rsp + 0x900]
call fcn.1800658c0
mov dword [rsp + 0x8f4], eax
jmp 0x180062811
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.18006cf60
cmp dword [rsp + 0x568], 0
je 0x1800627c5
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x80004005
jmp 0x180062d85
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.18006cf60
cmp dword [rsp + 0x568], 0
je 0x180062807
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x80004005
jmp 0x180062d85
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 0x1800629ea
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 0x1800629a8
mov r8d, 0x150
lea rdx, [rsp + 0x940]
lea rcx, [rsp + 0x50]
call fcn.180065940
test eax, eax
je 0x1800629a8
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test rbx, rbx
je 0x180062966
lea r9, [rsp + 0x8b0]
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x570]
call fcn.180065330
test eax, eax
je 0x180062966
mov r9, rsi
lea r8d, [rsi + 0x11]
lea rdx, [rsp + 0x8a0]
lea rcx, [rsp + 0x570]
call fcn.180065540
mov r9, rsi
mov r8d, 0x1a0
lea rdx, [rsp + 0x8f0]
lea rcx, [rsp + 0x570]
call fcn.180065540
jmp 0x1800629ea
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.18006cf60
cmp dword [rsp + 0x568], 0
je 0x18006299e
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x80004005
jmp 0x180062d85
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.18006cf60
cmp dword [rsp + 0x568], 0
je 0x1800629e0
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x80004005
jmp 0x180062d85
mov r9d, 0x200
lea r10, [rsp + 0x890]
or r8d, 0xffffffff
lea r11, [0x1801042e0]
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 0x180062a10
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 0x180062a95
call fcn.180003180
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.18006cf60
cmp dword [rsp + 0x568], 0
je 0x180062a8e
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
jmp 0x180062d85
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 0x180062b01
call fcn.180003180
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.18006cf60
cmp dword [rsp + 0x568], 0
je 0x180062afa
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
jmp 0x180062d85
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 0x180062b61
call fcn.180003180
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.18006cf60
cmp dword [rsp + 0x568], 0
je 0x180062b5a
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
jmp 0x180062d85
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 0x180062b9a
call fcn.18006aaac
mov r12d, ebx
mov eax, 4
mul r12
cmovo rax, rsi
lea rdx, [0x180106f48]
mov rcx, rax
call fcn.18006aaa4
mov qword [rbp + 0x380], rax
test rax, rax
jne 0x180062c06
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.18006cf60
cmp dword [rsp + 0x568], 0
je 0x180062bfc
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x8007000e
jmp 0x180062d85
shl r12, 2
mov r8, r12
mov edx, 0xff
mov rcx, rax
call fcn.18006cf60
cmp dword [rbp + 0x88], 0
je 0x180062cb0
lea rdx, [rsp + 0x850]
lea rcx, [rbp + 0x8c]
call fcn.1800654b0
test eax, eax
jne 0x180062c81
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.18006cf60
cmp dword [rsp + 0x568], 0
je 0x180062c77
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x80004005
jmp 0x180062d85
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.180065540
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 0x180062d2d
mov rcx, qword [rbp + 0x380]
call fcn.18006aaac
mov qword [rbp + 0x380], rdi
call fcn.180003180
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.18006cf60
cmp dword [rsp + 0x568], 0
je 0x180062d29
xor edx, edx
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
jmp 0x180062d85
cmp dword [rbp + 0x88], 0
je 0x180062d4b
mov r8, r12
mov edx, 0xff
mov rcx, qword [rbp + 0x380]
call fcn.18006cf60
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.18006cf60
cmp dword [rsp + 0x568], 0
je 0x180062d83
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.18006a4f0
mov rbx, qword [rsp + 0xae0]
add rsp, 0xaa0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret