Function at 0x180048860
Capabilities:
Create new key via cryptacquirecontext
Encode data using xor
Get file size
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0xa8]
sub rsp, 0x1a0
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x180129540]
xor rax, rsp
mov qword [rbp + 0x88], rax
xor r14d, r14d
lea rcx, [rbp + 0x20]
call fcn.180043e20
nop
lea rcx, [rbp]
call fcn.180043e20
mov rbx, rax
lea rcx, [rbp - 0x20]
call fcn.180043a10
nop
mov rdx, qword [rax + 0x10]
mov r9, qword [rax + 0x18]
mov rcx, r9
sub rcx, rdx
cmp rcx, 1
mov rcx, rax
jb 0x1800488ef
lea r8, [rdx + 1]
mov qword [rax + 0x10], r8
cmp r9, 7
jbe 0x1800488e2
mov rcx, qword [rax]
mov word [rcx + rdx*2], 0x5c
mov word [rcx + r8*2], r14w
jmp 0x18004890f
mov qword [rsp + 0x20], 1
lea r9, [0x1800e5060]
movzx r8d, byte [rsp + 0x40]
mov edx, 1
call fcn.1800250b0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov r9, rbx
lea r8, [rsp + 0x70]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.1800298f0
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x18004898b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048985
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180048985
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8994
nop
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x1800489ce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800489c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800489c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8994
movdqa xmm0, xmmword [0x1800e4070]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], r14w
mov rdx, qword [rbp + 0x18]
cmp rdx, 7
jbe 0x180048a23
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048a1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180048a1e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8994
movdqa xmm0, xmmword [0x1800e4070]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], r14w
movups xmm0, xmmword [0x1800e71b8]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [0x1800e71c8]
movups xmmword [rbp - 0x40], xmm1
movsd xmm0, qword [0x1800e71d8]
movsd qword [rbp - 0x30], xmm0
movzx eax, byte [0x1800e71e0]
mov byte [rbp - 0x28], al
mov ecx, r14d
cmp dword [0x180129500], 2
jl 0x180048bab
movdqa xmm5, xmmword [0x1800e4760]
movdqa xmm4, xmmword [0x1800e9910]
movdqa xmm6, xmmword [str.3333]
movdqa xmm0, xmmword [0x1800e9880]
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [rbp - 0x4c]
mov r8d, dword [rsp + 0x60]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800e4780]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800e4780]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x28
jl 0x180048aa1
cmp ecx, 0x29
jge 0x180048bee
movsxd rax, ecx
lea r8, [rbp - 0x50]
add r8, rax
nop word [rax + rax]
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x33
movzx eax, cl
sub al, dl
add al, 0x31
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x29
jl 0x180048bc0
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rcx, qword [rbp - 0x70]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180048c83
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], 0xf
lea ecx, [rax + 0x21]
call fcn.1800d8958
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], socket
mov qword [rbp - 0x78], 0x1f
movups xmm0, xmmword [str.Invalid_Handle_Value]
movups xmmword [rax], xmm0
mov ecx, dword [0x1800e7138]
mov dword [rax + 0x10], ecx
mov byte [rax + 0x14], 0
lea rcx, [rsp + 0x70]
call fcn.1800935c0
jmp 0x180048e6b
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
je 0x180048e62
mov ecx, esi
call fcn.1800d9018
mov rdi, rax
mov dword [rsp + 0x48], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x48]
mov r8d, esi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180048e5a
cmp dword [rsp + 0x48], esi
jne 0x180048e5a
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180048e5a
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x180048d44
mov rcx, rdi
call fcn.1800d8994
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x180048e6b
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, rdi
test eax, eax
jne 0x180048d8a
call fcn.1800d8994
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x180048e6b
call fcn.1800d8994
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x44], socket
mov dword [rsp + 0x20], r14d
lea r9, [rsp + 0x44]
lea r8, [rbp + 0x70]
mov edx, 2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x180048d72
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
mov byte [rbp + 0x68], al
mov ebx, r14d
cmp dword [rsp + 0x44], eax
jbe 0x180048e2b
nop word [rax + rax]
mov eax, ebx
movzx r9d, byte [rbp + rax + 0x70]
lea ecx, [rbx + rbx]
lea rax, [rbp + 0x40]
add rcx, rax
lea r8, str._02x
mov edx, 3
call fcn.18004f760
inc ebx
cmp ebx, dword [rsp + 0x44]
jb 0x180048e00
lea rax, [rbp + 0x40]
lea r8, [rbp - 0x50]
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180048e53
inc rax
test ecx, ecx
jne 0x180048e40
test edx, edx
sete bl
jmp 0x180048e6d
mov rcx, rdi
call fcn.1800d8994
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x180048eb0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048eab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180048eab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8994
movdqa xmm0, xmmword [0x1800e4070]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r14w
mov rdx, qword [rbp + 0x38]
cmp rdx, 7
jbe 0x180048f05
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048f00
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180048f00
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8994
movzx eax, bl
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.1800d8e20
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret