Function at 0x140001350
Capabilities:
Copy file
Delete file
Encrypt data using dpapi
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x450]
sub rsp, 0x550
mov rax, qword [0x1400e6010]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov rsi, r8
mov r13, rdx
mov r15, rcx
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rdx
mov qword [rbp - 0x30], r8
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
xor r12d, r12d
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x68], r12
mov edi, r12d
mov rdx, r13
lea rcx, [rbp - 0x80]
call fcn.140004970
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.14000f450
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x230]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x230]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140001d68
lea r9, [rbp + 0x20]
xor r8d, r8d
lea rdx, [0x1400caa70]
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140001d68
mov rcx, r15
cmp qword [r15 + 0x18], 8
jb 0x14000142d
mov rcx, qword [r15]
xor r8d, r8d
lea rdx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140001596
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x140001483
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000147d
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001dab
call fcn.1400c6a2c
nop
mov rdx, qword [r15 + 0x18]
cmp rdx, 8
jb 0x1400014c2
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [r15]
jb 0x1400014bd
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001db2
mov rcx, r8
call fcn.1400c6a2c
mov qword [r15 + 0x10], r12
mov qword [r15 + 0x18], 7
mov word [r15], r12w
mov rdx, qword [r13 + 0x18]
cmp rdx, 8
jb 0x140001512
lea rdx, [rdx*2 + 2]
mov rcx, qword [r13]
cmp rdx, 0x1000
jb 0x14000150d
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001db9
mov rcx, r8
call fcn.1400c6a2c
mov qword [r13 + 0x10], r12
mov qword [r13 + 0x18], 7
mov word [r13], r12w
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x14000155d
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140001558
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001dc0
mov rcx, r8
call fcn.1400c6a2c
mov byte [rsi], 0
mov qword [rsi + 0x18], 0xf
mov qword [rsi + 0x10], r12
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.1400c69d0
mov rbx, qword [rsp + 0x5a8]
add rsp, 0x550
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x28]
call fcn.140004820
nop
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
lea r8, [rdx + rax*2]
lea rdx, [rbp - 0x28]
cmovae rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x80]
call fcn.1400050e0
nop
cmp qword [rax + 0x18], 0x10
jb 0x1400015d7
mov rax, qword [rax]
xor r9d, r9d
lea r8d, [r9 + 6]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.1400c46c0
mov ebx, eax
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x14000162b
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001626
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001626
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c6a2c
test ebx, ebx
je 0x140001693
mov rcx, qword [rsp + 0x50]
xor edx, edx
call fcn.1400c1b80
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x14000167c
mov rcx, qword [rbp - 0x28]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001677
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001ba4
call fcn.1400c6a2c
movdqa xmm0, xmmword [0x1400d71c0]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r12w
jmp 0x140001442
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1400016a0
mov rdx, qword [rsi]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.14009e610
test eax, eax
je 0x140001744
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x14000162f
cmp dword [0x1400e60a0], 0
je 0x140001736
mov rcx, qword [0x1400e8c28]
test rcx, rcx
je 0x1400016f8
call qword [0x1400e6130]
mov rcx, rbx
call qword [0x1400e60e8]
movsxd rdx, eax
sub qword [0x1400e8970], rdx
dec qword [0x1400e89b8]
mov rcx, rbx
call qword [0x1400e60d8]
mov rcx, qword [0x1400e8c28]
test rcx, rcx
je 0x14000162f
call qword [0x1400e6140]
jmp 0x14000162f
mov rcx, rbx
call qword [0x1400e60d8]
jmp 0x14000162f
mov dword [rsp + 0x44], 1
mov r14d, dword [rsp + 0x58]
cmp r14d, 1
jl 0x140001b1f
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x60], ecx
nop word [rax + rax]
movsxd rbx, ecx
lea rdx, str.URL:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005220
mov rcx, rax
mov rdi, qword [rsp + 0x68]
mov rdx, qword [rdi + rbx*8]
call fcn.140005220
mov rcx, rax
lea rdx, [0x1400053f0]
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]
lea rdx, str.Username:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005220
mov rcx, rax
mov rdx, qword [rdi + rbx*8 + 8]
call fcn.140005220
mov rcx, rax
lea rdx, [0x1400053f0]
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]
test rdi, rdi
je 0x1400018c3
lea r14, [rdi - 8]
mov edi, 1
movsxd r12, dword [r14]
mov rcx, qword [0x1400e8c28]
cmp rdi, r12
jge 0x14000186c
nop dword [rax + rax]
mov rbx, qword [r14 + rdi*8]
test rbx, rbx
je 0x140001864
cmp dword [0x1400e60a0], 0
je 0x140001854
test rcx, rcx
je 0x14000181d
call qword [0x1400e6130]
mov rcx, rbx
call qword [0x1400e60e8]
movsxd rdx, eax
sub qword [0x1400e8970], rdx
dec qword [0x1400e89b8]
mov rcx, rbx
call qword [0x1400e60d8]
mov rcx, qword [0x1400e8c28]
test rcx, rcx
je 0x140001864
call qword [0x1400e6140]
jmp 0x14000185d
mov rcx, rbx
call qword [0x1400e60d8]
mov rcx, qword [0x1400e8c28]
inc rdi
cmp rdi, r12
jl 0x140001800
cmp dword [0x1400e60a0], 0
je 0x1400018b7
test rcx, rcx
je 0x140001880
call qword [0x1400e6130]
mov rcx, r14
call qword [0x1400e60e8]
movsxd rdx, eax
sub qword [0x1400e8970], rdx
dec qword [0x1400e89b8]
mov rcx, r14
call qword [0x1400e60d8]
mov rcx, qword [0x1400e8c28]
test rcx, rcx
je 0x1400018c0
call qword [0x1400e6140]
jmp 0x1400018c0
mov rcx, r14
call qword [0x1400e60d8]
xor r12d, r12d
movsxd rax, dword [rsp + 0x44]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
lea r9, str.password_value
lea r8, str.logins
lea rdx, str.main
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call fcn.14004e880
test eax, eax
jne 0x140001d60
mov r14, qword [rsp + 0x78]
test r14, r14
je 0x140001d60
cmp qword [r14 + 0x18], 0
je 0x140001d60
movsxd r12, dword [r14]
test r12d, r12d
jle 0x140001d5d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r12
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140001bd0
mov rdi, qword [r14 + 0x20]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140001966
call qword [0x1400e6130]
mov rax, qword [r14 + 0x18]
mov qword [rsp + 0x48], rax
cmp r12d, dword [r14]
jg 0x140001a32
test rax, rax
jne 0x140001985
lea ebx, [rax + 4]
jmp 0x140001a37
mov rax, qword [r14 + 0x10]
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x11], 0
je 0x1400019a1
inc dword [rcx + 0x14]
cmp byte [rcx + 0x12], 0
jne 0x1400019a1
call fcn.14002d2c0
mov edx, dword [r14 + 4]
mov rcx, qword [r14 + 0x10]
mov r9, rbx
mov r8d, r12d
cmp byte [rcx], 0
jne 0x1400019c3
mov dword [rsp + 0x20], 0
call fcn.140032840
jmp 0x1400019c8
call fcn.140032bc0
mov ebx, eax
mov rax, qword [r14 + 0x10]
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x11], 0
je 0x1400019e3
sub dword [rcx + 0x14], 1
jne 0x1400019e3
call fcn.14002d270
cmp ebx, 4
jne 0x140001a17
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + 0x24]
cmp eax, 0x2df20da3
je 0x1400019fe
cmp eax, 0x319c2973
jne 0x140001a08
call fcn.140042310
mov rcx, qword [rsp + 0x48]
call fcn.1400429e0
mov qword [r14 + 0x18], 0
jmp 0x140001a37
mov rax, qword [rsp + 0x48]
mov dword [rax + 0x38], ebx
mov dword [rdi + 0x50], ebx
test ebx, ebx
jne 0x140001a3a
cmp qword [rdi + 0x158], 0
je 0x140001a44
jmp 0x140001a3a
mov ebx, 1
mov dword [rdi + 0x50], ebx
mov edx, ebx
mov rcx, rdi
call fcn.140019900
cmp byte [rdi + 0x61], 0
jne 0x140001a57
cmp ebx, 0xc0a
je 0x140001a57
and ebx, dword [rdi + 0x54]
jmp 0x140001a61
mov rcx, rdi
call fcn.140016ce0
mov ebx, eax
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140001a70
call qword [0x1400e6140]
test ebx, ebx
jne 0x140001bab
mov rcx, r14
call fcn.14004f180
mov dword [rbp - 0x50], r12d
mov rdi, qword [rsp + 0x70]
mov qword [rbp - 0x48], rdi
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], rax
xor r12d, r12d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x140001af6
mov ecx, dword [rbp - 0x60]
mov rax, qword [rbp - 0x58]
mov byte [rcx + rax], r12b
mov rbx, qword [rbp - 0x58]
lea rdx, str.Password:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005220
mov rdx, rbx
mov rcx, rax
call fcn.140005220
mov rcx, rax
lea rdx, [0x1400053f0]
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 eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov ecx, dword [rsp + 0x40]
add ecx, dword [rsp + 0x60]
mov dword [rsp + 0x40], ecx
mov r14d, dword [rsp + 0x58]
cmp eax, r14d
jle 0x140001770
mov rbx, qword [rsp + 0x50]
test r14d, r14d
jle 0x140001b38
lea rdx, [0x1400053f0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor edx, edx
mov rcx, rbx
call fcn.1400c1b80
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x14000167c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001677
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001677
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r14
call fcn.14004f180
mov rcx, qword [rsp + 0x50]
jmp 0x140001bdb
mov rcx, r14
call fcn.14004f180
mov rcx, rdi
xor edx, edx
call fcn.1400c1b80
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x140001c1f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140001c1a
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001ba4
call fcn.1400c6a2c
xor ebx, ebx
movdqa xmm0, xmmword [0x1400d71c0]
mov word [rbp - 0x28], bx
movdqu xmmword [rbp - 0x18], xmm0
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x140001c73
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140001c6d
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001dab
call fcn.1400c6a2c
nop
mov rdx, qword [r15 + 0x18]
cmp rdx, 8
jb 0x140001cb2
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [r15]
jb 0x140001cad
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001db2
mov rcx, r8
call fcn.1400c6a2c
mov word [r15], bx
mov qword [r15 + 0x18], 7
mov qword [r15 + 0x10], rbx
mov rdx, qword [r13 + 0x18]
cmp rdx, 8
jb 0x140001d02
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [r13]
jb 0x140001cfd
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001db9
mov rcx, r8
call fcn.1400c6a2c
mov word [r13], bx
mov qword [r13 + 0x18], 7
mov qword [r13 + 0x10], rbx
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140001d49
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rsi]
jb 0x140001d44
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001dc0
mov rcx, r8
call fcn.1400c6a2c
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
jmp 0x14000156c
xor r12d, r12d
mov rcx, rdi
jmp 0x140001634
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x140001483
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000147d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000147d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3