Function at 0x180043550
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], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x18012c040]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor r12d, r12d
lea rcx, [rbp - 0x20]
call fcn.180043270
nop
lea rcx, [rbp - 0x60]
call fcn.180043270
mov rbx, rax
lea rcx, [rbp]
call fcn.180042fe0
nop
lea rdx, [0x180101ad0]
mov rcx, rax
call fcn.18003ba00
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov r9, rbx
lea r8, [rsp + 0x48]
lea rcx, [rbp - 0x40]
call fcn.180036f10
nop
lea rcx, [rsp + 0x48]
call fcn.1800279c0
nop
lea rcx, [rbp]
call fcn.1800279c0
nop
lea rcx, [rbp - 0x60]
call fcn.1800279c0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
mov qword [rbp - 0x68], r12
movups xmm0, xmmword [0x1801097d0]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [0x1801097e0]
movups xmmword [rsp + 0x58], xmm1
movsd xmm0, qword [0x1801097f0]
movsd qword [rsp + 0x68], xmm0
movzx eax, byte [0x1801097f8]
mov byte [rsp + 0x70], al
mov r8d, r12d
movdqa xmm7, xmmword [0x180114990]
mov edi, dword [0x18012c090]
cmp edi, 2
jl 0x180043778
movdqa xmm5, xmmword [0x1801148f0]
movdqa xmm4, xmmword [0x180114da0]
movdqa xmm6, xmmword [0x180114910]
movdqa xmm0, xmmword [0x1801149e0]
movdqa xmmword [rbp - 0x60], xmm0
lea rcx, [rsp + 0x48]
mov edx, dword [rbp - 0x60]
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
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
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
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, edx
paddb xmm3, xmm0
movd xmm0, dword [rcx + 4]
xorps xmm3, xmm0
movd dword [rcx + 4], xmm3
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x28
jl 0x180043691
cmp r8d, 0x29
jge 0x1800437c0
movsxd rax, r8d
lea r9, [rsp + 0x48]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x5397829d
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x29
jl 0x180043790
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], r12
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], 0
jne 0x1800437e0
lea rdx, [rsp + 0x48]
lea rcx, [rbp]
call fcn.180013310
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, qword [rbp - 0x68]
je 0x180043829
movups xmm0, xmmword [rbp]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp + 0x10]
movups xmmword [rdx + 0x10], xmm1
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], 0xf
mov byte [rbp], 0
add qword [rbp - 0x70], 0x20
jmp 0x180043837
lea r8, [rbp]
lea rcx, [rbp - 0x78]
call fcn.18002b9a0
nop
lea rcx, [rbp]
call fcn.180027960
movups xmm0, xmmword [str._v_Z_r_u_vrp_r]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [0x1801097b0]
movups xmmword [rsp + 0x58], xmm1
movsd xmm0, qword [0x1801097c0]
movsd qword [rsp + 0x68], xmm0
movzx eax, byte [0x1801097c8]
mov byte [rsp + 0x70], al
mov r8d, r12d
cmp edi, 2
jl 0x180043997
movdqa xmm5, xmmword [0x1801148f0]
movdqa xmm4, xmmword [0x180114da0]
movdqa xmm6, xmmword [0x180114910]
movdqa xmm0, xmmword [0x1801149e0]
movdqa xmmword [rbp - 0x60], xmm0
lea rcx, [rsp + 0x48]
mov edx, dword [rbp - 0x60]
nop word [rax + 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
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
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
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, edx
paddb xmm3, xmm0
movd xmm0, dword [rcx + 4]
xorps xmm3, xmm0
movd dword [rcx + 4], xmm3
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x28
jl 0x1800438b0
cmp r8d, 0x29
jge 0x1800439e0
movsxd rax, r8d
lea r9, [rsp + 0x48]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x5397829d
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x29
jl 0x1800439b0
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], r12
lea rax, [rsp + 0x48]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800439f4
mov r8, rbx
lea rdx, [rsp + 0x48]
lea rcx, [rbp]
call fcn.180013310
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, qword [rbp - 0x68]
je 0x180043a3f
movups xmm0, xmmword [rbp]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp + 0x10]
movups xmmword [rdx + 0x10], xmm1
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], 0xf
mov byte [rbp], 0
add qword [rbp - 0x70], 0x20
jmp 0x180043a4d
lea r8, [rbp]
lea rcx, [rbp - 0x78]
call fcn.18002b9a0
nop
lea rcx, [rbp]
call fcn.180027960
mov rdi, qword [rbp - 0x78]
mov r15, qword [rbp - 0x70]
cmp rdi, r15
je 0x180043d16
nop word [rax + rax]
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rcx, qword [rbp - 0x40]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180043cab
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
je 0x180043ca0
mov ecx, esi
call fcn.1800d5278
mov r14, rax
mov dword [rsp + 0x7c], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x7c]
mov r8d, esi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180043c98
cmp dword [rsp + 0x7c], esi
jne 0x180043c98
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
xor edx, edx
lea rcx, [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180043c98
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180043c79
xor r9d, r9d
mov r8d, esi
mov rdx, r14
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, r14
test eax, eax
je 0x180043c50
call fcn.1800d5198
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x78], socket
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0x78]
lea r8, [rbp]
mov edx, 2
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rbp - 0x80]
test eax, eax
je 0x180043c62
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rax
mov byte [rbp + 0x48], al
mov ebx, r12d
cmp dword [rsp + 0x78], eax
jbe 0x180043c0b
nop
mov eax, ebx
movzx r9d, byte [rbp + rax]
lea ecx, [rbx + rbx]
lea rax, [rbp + 0x20]
add rcx, rax
lea r8, str._02x
mov edx, 3
call fcn.180050830
inc ebx
cmp ebx, dword [rsp + 0x78]
jb 0x180043be0
mov r8, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x180043c18
mov r8, qword [rdi]
lea rax, [rbp + 0x20]
sub r8, rax
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180043c33
inc rax
test ecx, ecx
jne 0x180043c20
test edx, edx
je 0x180043c49
add rdi, 0x20
cmp rdi, r15
jne 0x180043a70
jmp 0x180043d16
mov bl, 1
jmp 0x180043d18
call fcn.1800d5198
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x180043d16
mov rcx, r14
call fcn.1800d5198
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x180043d16
mov rcx, r14
call fcn.1800d5198
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180043d16
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov r8d, socket
lea rdx, str.Invalid_Handle_Value
lea rcx, [rsp + 0x48]
call fcn.180013310
nop
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x44], r12d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18012f3e8]
mov qword [rsp + 0x20], rax
lea r9, [0x18012f3d8]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x44]
call fcn.180025bb0
nop
lea rcx, [rsp + 0x48]
call fcn.180027960
xor bl, bl
lea rcx, [rbp - 0x78]
call fcn.1800274d0
nop
lea rcx, [rbp - 0x40]
call fcn.1800279c0
nop
lea rcx, [rbp - 0x20]
call fcn.1800279c0
movzx eax, bl
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1800d4da0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop rbp
ret