Function at 0x1400057d0
Capabilities:
Authenticate hmac
Encode data using xor
Generate random numbers via winapi
Hash data using sha256
Read file on windows
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3d8]
sub rsp, 0x4d8
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov r14d, r9d
mov dword [rsp + 0x20], 0xf0000000
mov r15, r8
mov rdi, rdx
mov r12, rcx
mov r9d, 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor r13d, r13d
test eax, eax
je 0x140006108
xorps xmm0, xmm0
mov ebx, r13d
movups xmmword [rbp + 0x210], xmm0
movups xmmword [rbp + 0x220], xmm0
movups xmmword [rbp + 0x230], xmm0
xorps xmm0, xmm0
mov qword [rbp - 0x60], r13
movups xmmword [rbp + 0x1c0], xmm0
mov qword [rbp - 0x58], r13
mov esi, r13d
movups xmmword [rbp + 0x1d0], xmm0
mov dword [rsp + 0x40], 0x6a09e667
mov dword [rsp + 0x44], 0xbb67ae85
mov dword [rsp + 0x48], 0x3c6ef372
mov dword [rsp + 0x4c], 0xa54ff53a
mov dword [rsp + 0x50], 0x510e527f
mov dword [rsp + 0x54], 0x9b05688c
mov dword [rsp + 0x58], 0x1f83d9ab
mov dword [rsp + 0x5c], 0x5be0cd19
mov rcx, qword [rsp + 0x30]
lea r8, [rbp + 0x1c0]
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x140006108
mov r8d, 0x20
lea rdx, [rbp + 0x1c0]
lea rcx, [rsp + 0x40]
call fcn.140004eb0
inc esi
cmp esi, 0x100
jl 0x1400058a9
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x40]
call fcn.140004f2c
movups xmm2, xmmword [rbp + 0x1e0]
movdqu xmmword [rbp + rbx + 0x210], xmm2
add rbx, 0x10
cmp rbx, 0x30
jl 0x14000584d
mov esi, 1
mov dword [rbp + 0x1c0], 0x2584553
mov r9, rdi
mov byte [rbp + 0x1c4], r13b
mov edx, esi
lea rcx, [rbp + 0x1c0]
lea r8d, [rsi + 4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 5
jne 0x1400060fb
mov r9, rdi
mov word [rbp + 0x1c0], 0x2100
lea r8d, [rsi + 1]
mov edx, esi
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 2
jne 0x1400060fb
mov r8d, 0xff
lea rdx, str.809VYF213F
lea rcx, [rbp + 0x2c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov r9, rdi
mov byte [rbp + 0x3bf], r13b
lea r8d, [rsi + 0xa]
mov edx, esi
lea rcx, [rbp + 0x2c0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 0xb
jne 0x1400060fb
lea r9, str.SimpleDimple
lea r8, str.Encrypted
lea rdx, str._s__s
lea rcx, [rbp + 0x2c0]
call fcn.140005490
lea rcx, [rbp + 0x2c0]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r13b
jne 0x1400059e4
movsxd rbx, eax
lea rcx, [rbp + 0x2c0]
mov r8, rbx
mov r9, rdi
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbx
jne 0x1400060fb
mov ebx, 2
mov word [rbp + 0x1c0], 0x8000
mov r8d, ebx
lea rcx, [rbp + 0x1c0]
mov r9, rdi
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor edx, edx
cmp rax, rbx
jne 0x1400060fd
lea r8d, [rbx + 0x7e]
lea rcx, [rbp + 0x2c0]
call sub.VCRUNTIME140.dll_memset
mov r9, rdi
lea r8d, [rbx + 0x7e]
mov rdx, rsi
lea rcx, [rbp + 0x2c0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 0x80
jne 0x1400060fb
mov r9, rdi
mov word [rbp + 0x1c0], r13w
mov r8d, ebx
lea rcx, [rbp + 0x1c0]
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbx
jne 0x1400060fb
mov qword [rbp - 0x60], r13
mov ebx, r13d
mov qword [rbp - 0x58], r13
mov dword [rsp + 0x40], 0x6a09e667
mov dword [rsp + 0x44], 0xbb67ae85
mov dword [rsp + 0x48], 0x3c6ef372
mov dword [rsp + 0x4c], 0xa54ff53a
mov dword [rsp + 0x50], 0x510e527f
mov dword [rsp + 0x54], 0x9b05688c
mov dword [rsp + 0x58], 0x1f83d9ab
mov dword [rsp + 0x5c], 0x5be0cd19
mov rcx, qword [rsp + 0x30]
lea r8, [rbp + 0x1c0]
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400060fb
mov r8d, 0x20
lea rdx, [rbp + 0x1c0]
lea rcx, [rsp + 0x40]
call fcn.140004eb0
add ebx, esi
cmp ebx, 0x100
jl 0x140005ae3
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x40]
call fcn.140004f2c
movups xmm2, xmmword [rbp + 0x1e0]
mov rcx, qword [rsp + 0x30]
xor edx, edx
movdqu xmmword [rbp + 0x200], xmm2
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r9, rdi
lea rcx, [rbp + 0x200]
mov r8d, 0x10
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 0x10
jne 0x140006108
xorps xmm0, xmm0
lea esi, [r14 + r14]
movdqu xmmword [rbp + 0x1f0], xmm0
mov ebx, 0x2000
lea r14d, [rax - 0xf]
movups xmm0, xmmword [rbp + 0x200]
movdqu xmmword [rbp + 0x1e0], xmm0
mov r8d, 0x20
mov qword [rbp - 0x60], r13
lea rdx, [rbp + 0x1e0]
mov qword [rbp - 0x58], r13
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x6a09e667
mov dword [rsp + 0x44], 0xbb67ae85
mov dword [rsp + 0x48], 0x3c6ef372
mov dword [rsp + 0x4c], 0xa54ff53a
mov dword [rsp + 0x50], 0x510e527f
mov dword [rsp + 0x54], 0x9b05688c
mov dword [rsp + 0x58], 0x1f83d9ab
mov dword [rsp + 0x5c], 0x5be0cd19
call fcn.140004eb0
mov r8, rsi
lea rcx, [rsp + 0x40]
mov rdx, r15
call fcn.140004eb0
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x40]
call fcn.140004f2c
sub rbx, r14
jne 0x140005b9a
mov r8d, 0x100
lea rdx, [rbp + 0x1e0]
lea rcx, [rbp - 0x50]
call fcn.1400012e0
lea esi, [rbx + 0x40]
mov r8d, esi
lea edx, [rbx + 0x36]
lea rcx, [rbp + 0x240]
call sub.VCRUNTIME140.dll_memset
mov r8d, esi
lea edx, [rbx + 0x5c]
lea rcx, [rbp + 0x280]
call sub.VCRUNTIME140.dll_memset
mov rax, r13
lea r15d, [rbx + 0x10]
movdqu xmm0, xmmword [rbp + rax + 0x240]
movdqu xmm2, xmmword [rbp + rax + 0x1e0]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rbp + rax + 0x280]
movdqu xmmword [rbp + rax + 0x240], xmm1
xorps xmm2, xmm0
movdqu xmmword [rbp + rax + 0x280], xmm2
add rax, r15
cmp rax, 0x20
jl 0x140005c67
mov r8, rsi
mov qword [rbp - 0x60], r13
lea rdx, [rbp + 0x240]
mov qword [rbp - 0x58], r13
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x6a09e667
mov dword [rsp + 0x44], 0xbb67ae85
mov dword [rsp + 0x48], 0x3c6ef372
mov dword [rsp + 0x4c], 0xa54ff53a
mov dword [rsp + 0x50], 0x510e527f
mov dword [rsp + 0x54], 0x9b05688c
mov dword [rsp + 0x58], 0x1f83d9ab
mov dword [rsp + 0x5c], 0x5be0cd19
call fcn.140004eb0
mov rbx, r13
movups xmm0, xmmword [rbp + rbx + 0x210]
mov rcx, r13
mov rdx, r15
movdqu xmmword [rbp + 0x1c0], xmm0
mov al, byte [rbp + rcx + 0x200]
xor byte [rbp + rcx + 0x1c0], al
add rcx, r14
sub rdx, r14
jne 0x140005d1c
lea r8, [rbp + 0x1c0]
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp - 0x50]
call fcn.14000167c
mov r8, r15
lea rdx, [rbp + 0x1c0]
lea rcx, [rsp + 0x40]
call fcn.140004eb0
mov r9, rdi
lea rcx, [rbp + 0x1c0]
mov r8, r15
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, r15
jne 0x140006108
movups xmm0, xmmword [rbp + 0x1c0]
add rbx, r15
movdqu xmmword [rbp + 0x200], xmm0
cmp rbx, 0x30
jl 0x140005d06
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x40]
call fcn.140004f2c
mov r8, rsi
mov qword [rbp - 0x60], r13
lea rdx, [rbp + 0x280]
mov qword [rbp - 0x58], r13
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x6a09e667
mov dword [rsp + 0x44], 0xbb67ae85
mov dword [rsp + 0x48], 0x3c6ef372
mov dword [rsp + 0x4c], 0xa54ff53a
mov dword [rsp + 0x50], 0x510e527f
mov dword [rsp + 0x54], 0x9b05688c
mov dword [rsp + 0x58], 0x1f83d9ab
mov dword [rsp + 0x5c], 0x5be0cd19
call fcn.140004eb0
mov ebx, 0x20
lea rdx, [rbp + 0x1e0]
mov r8d, ebx
lea rcx, [rsp + 0x40]
call fcn.140004eb0
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x40]
call fcn.140004f2c
mov r9, rdi
lea rcx, [rbp + 0x1e0]
mov r8d, ebx
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbx
jne 0x140006108
movups xmm0, xmmword [rbp + 0x210]
mov r8d, 0x100
lea rdx, [rbp + 0x220]
lea rcx, [rbp - 0x50]
movdqu xmmword [rbp + 0x200], xmm0
call fcn.1400012e0
mov r8, rsi
lea edx, [rbx + 0x16]
lea rcx, [rbp + 0x240]
call sub.VCRUNTIME140.dll_memset
mov r8, rsi
lea edx, [rbx + 0x3c]
lea rcx, [rbp + 0x280]
call sub.VCRUNTIME140.dll_memset
mov rax, r13
movdqu xmm0, xmmword [rbp + rax + 0x240]
movdqu xmm2, xmmword [rbp + rax + 0x220]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rbp + rax + 0x280]
movdqu xmmword [rbp + rax + 0x240], xmm1
xorps xmm0, xmm2
movdqu xmmword [rbp + rax + 0x280], xmm0
add rax, r15
cmp rax, rbx
jl 0x140005e9a
xorps xmm0, xmm0
mov qword [rbp - 0x60], r13
mov r8, rsi
mov qword [rbp - 0x58], r13
lea rdx, [rbp + 0x240]
mov dword [rsp + 0x40], 0x6a09e667
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x44], 0xbb67ae85
movups xmmword [rbp + 0x210], xmm0
mov dword [rsp + 0x48], 0x3c6ef372
movups xmmword [rbp + 0x220], xmm0
mov dword [rsp + 0x4c], 0xa54ff53a
movups xmmword [rbp + 0x230], xmm0
mov dword [rsp + 0x50], 0x510e527f
mov dword [rsp + 0x54], 0x9b05688c
mov dword [rsp + 0x58], 0x1f83d9ab
mov dword [rsp + 0x5c], 0x5be0cd19
call fcn.140004eb0
mov r9, r12
lea rcx, [rbp + 0x1c0]
mov r8, r15
mov rdx, r14
mov sil, r13b
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rbx, rax
jmp 0x140005ffd
movdqu xmm1, xmmword [rbp + 0x1c0]
lea r8, [rbp + 0x1c0]
movdqu xmm0, xmmword [rbp + 0x200]
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp - 0x50]
xorps xmm1, xmm0
movdqu xmmword [rbp + 0x1c0], xmm1
call fcn.14000167c
mov r8, r15
lea rdx, [rbp + 0x1c0]
lea rcx, [rsp + 0x40]
call fcn.140004eb0
mov r9, rdi
lea rcx, [rbp + 0x1c0]
mov r8, r15
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, r15
jne 0x140006108
movups xmm0, xmmword [rbp + 0x1c0]
mov r9, r12
lea rcx, [rbp + 0x1c0]
mov r8, r15
mov rdx, r14
movdqu xmmword [rbp + 0x200], xmm0
mov sil, bl
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ebx, eax
test eax, eax
jg 0x140005f6e
test ebx, ebx
js 0x140006108
and sil, 0xf
lea rcx, [rbp + 0x1c0]
mov r9, rdi
mov byte [rbp + 0x1c0], sil
mov r8, r14
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, r14
jne 0x140006108
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x40]
call fcn.140004f2c
mov r8d, 0x40
mov qword [rbp - 0x60], r13
lea rdx, [rbp + 0x280]
mov qword [rbp - 0x58], r13
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x6a09e667
mov dword [rsp + 0x44], 0xbb67ae85
mov dword [rsp + 0x48], 0x3c6ef372
mov dword [rsp + 0x4c], 0xa54ff53a
mov dword [rsp + 0x50], 0x510e527f
mov dword [rsp + 0x54], 0x9b05688c
mov dword [rsp + 0x58], 0x1f83d9ab
mov dword [rsp + 0x5c], 0x5be0cd19
call fcn.140004eb0
mov ebx, 0x20
lea rdx, [rbp + 0x1e0]
mov r8d, ebx
lea rcx, [rsp + 0x40]
call fcn.140004eb0
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x40]
call fcn.140004f2c
mov r9, rdi
lea rcx, [rbp + 0x1e0]
mov r8d, ebx
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbx
jne 0x140006108
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
neg eax
sbb eax, eax
jmp 0x14000610b
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
or eax, 0xffffffff
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140040cd0
add rsp, 0x4d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret