Function at 0x180038280
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 [0x18011c040]
xor rax, rsp
mov qword [rbp + 0x80], rax
xor ebx, ebx
lea rcx, [rbp + 0x18]
call fcn.180037f60
nop
lea rcx, [rbp - 0x40]
call fcn.180037f60
mov rdi, rax
lea rcx, [rbp - 0x60]
call fcn.180037ce0
nop
lea r8d, [rbx + 1]
lea rdx, [0x1800f45b8]
mov rcx, rax
call fcn.180031040
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
mov r9, rdi
lea r8, [rsp + 0x40]
lea rcx, [rbp - 8]
call fcn.18002c580
nop
lea rcx, [rsp + 0x40]
call fcn.18001f940
nop
lea rcx, [rbp - 0x60]
call fcn.18001f940
nop
lea rcx, [rbp - 0x40]
call fcn.18001f940
movups xmm0, xmmword [0x1800fc650]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [0x1800fc660]
movups xmmword [rbp - 0x80], xmm1
movsd xmm0, qword [0x1800fc670]
movsd qword [rbp - 0x70], xmm0
movzx eax, byte [0x1800fc678]
mov byte [rbp - 0x68], al
mov r8d, ebx
cmp dword [0x18011c018], 2
jl 0x1800384bd
movdqa xmm5, xmmword [0x1801063b0]
movdqa xmm4, xmmword [0x1801065a0]
movdqa xmm6, xmmword [0x1801063f0]
movdqa xmm0, xmmword [str.9999999999999999]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x70]
mov edx, dword [rsp + 0x60]
nop dword [rax]
movd xmm2, r8d
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 [0x180106490]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
lea eax, [r8 + 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 [0x180106490]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx + 4]
xorps xmm2, xmm0
movd dword [rcx + 4], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x28
jl 0x1800383b0
cmp r8d, 0x29
jge 0x180038503
movsxd rax, r8d
lea r9, [rsp + 0x70]
add r9, rax
nop dword [rax + rax]
mov eax, 0x8d3dcb09
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, r8b
sub al, cl
add al, 0x39
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x29
jl 0x1800384d0
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 7
cmova rcx, qword [rbp - 8]
mov qword [rsp + 0x30], rbx
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 rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180038577
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
lea r8d, [rax + 0x15]
lea rdx, str.Invalid_Handle_Value
lea rcx, [rsp + 0x40]
call fcn.18001d4b0
lea rcx, [rsp + 0x40]
call fcn.18008dcc0
jmp 0x18003874b
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
cmp eax, 0xffffffff
je 0x180038742
mov ecx, r14d
call fcn.1800c9194
mov rsi, rax
mov dword [rbp - 0x1c], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x1c]
mov r8d, r14d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18003873a
cmp dword [rbp - 0x1c], r14d
jne 0x18003873a
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
xor edx, edx
lea rcx, [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x18003873a
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x180038633
mov rcx, rsi
call fcn.1800c8ea0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x18003874b
xor r9d, r9d
mov r8d, r14d
mov rdx, rsi
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, rsi
test eax, eax
jne 0x180038676
call fcn.1800c8ea0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x18003874b
call fcn.1800c8ea0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp - 0x20], socket
mov dword [rsp + 0x20], ebx
lea r9, [rbp - 0x20]
lea r8, [rbp + 0x68]
mov edx, 2
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rbp - 0x18]
test eax, eax
je 0x18003865f
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x38], xmm0
movups xmmword [rbp + 0x48], xmm0
mov qword [rbp + 0x58], rax
mov byte [rbp + 0x60], al
cmp dword [rbp - 0x20], eax
jbe 0x18003870a
nop dword [rax]
mov eax, ebx
movzx r9d, byte [rbp + rax + 0x68]
lea ecx, [rbx + rbx]
lea rax, [rbp + 0x38]
add rcx, rax
lea r8, str._02x
mov edx, 3
call fcn.18004a440
inc ebx
cmp ebx, dword [rbp - 0x20]
jb 0x1800386e0
lea rax, [rbp + 0x38]
lea r8, [rsp + 0x70]
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180038733
inc rax
test ecx, ecx
jne 0x180038720
test edx, edx
sete bl
jmp 0x18003874d
mov rcx, rsi
call fcn.1800c8ea0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
lea rcx, [rbp - 8]
call fcn.18001f940
nop
lea rcx, [rbp + 0x18]
call fcn.18001f940
movzx eax, bl
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1800c8b10
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