Function at 0x140005ea0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
xor esi, esi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140005f17
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rbp + 0x6f]
mov qword [rsp + 0x20], rsi
mov rcx, rax
lea r8d, [rsi + 0x20]
lea rdx, str.hLocalState_Faild_to_open_file__n
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
xor eax, eax
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0xf0], rbx
xor edx, edx
mov qword [rsp + 0xc8], r14
mov rcx, rdi
mov qword [rsp + 0xc0], r15
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rbx, qword [0x14000d488]
mov r14d, eax
mov dword [rbp + 0x77], esi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r14d
mov edx, 8
mov rcx, rax
call rbx
lea r9, [rbp + 0x77]
mov qword [rsp + 0x20], rsi
mov r8d, r14d
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140005f83
cmp dword [rbp + 0x77], r14d
jne 0x1400060bb
test rbx, rbx
je 0x140006091
xor edx, edx
mov qword [rbp - 0x29], rbx
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x21], r14
mov qword [rbp - 0x19], rsi
mov qword [rbp + 0x17], 1
mov qword [rbp + 0x1f], rsi
mov qword [rbp + 0x27], rsi
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], rsi
mov qword [rbp - 0x11], rsi
call fcn.140003ad0
test eax, eax
jne 0x140006091
lea rcx, [rbp - 0x29]
call fcn.140002f10
mov r11, qword [rbp - 0x21]
cmp qword [rbp - 0x19], r11
jne 0x140006091
mov r14, qword [rbp + 7]
mov rbx, qword [rbp + 0xf]
mov rdi, qword [0x14000d488]
add rbx, r14
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call rdi
mov rbx, rax
test rax, rax
je 0x140006091
mov rdx, qword [rbp - 0x11]
lea rcx, [rax + r14]
mov qword [rbp - 9], rcx
lea rcx, [rax + 0x10]
mov qword [rbp - 0x19], rsi
mov qword [rbp + 0x17], 1
mov qword [rbp + 0x1f], rsi
test dl, dl
jns 0x14000604c
add rax, 0x28
mov qword [rcx], rsi
mov qword [rbp - 1], rax
mov qword [rbx + 0x18], 1
mov qword [rbx + 0x20], rsi
jmp 0x140006050
mov qword [rbp - 1], rcx
and edx, 4
lea rcx, [rbp - 0x29]
mov r8, rbx
call fcn.140004610
cmp qword [rbx + 8], 2
jne 0x140006091
mov rax, qword [rbx]
mov rbx, qword [rax]
test rbx, rbx
je 0x140006091
mov rcx, qword [rbx]
lea rdx, str.os_crypt
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1400060e0
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140006071
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rbp + 0x6f]
mov qword [rsp + 0x20], rsi
mov rcx, rax
lea rdx, str.encrypted_key_not_found_or_not_a_string_n
mov r8d, 0x28
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
xor eax, eax
mov r14, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xf0]
mov r15, qword [rsp + 0xc0]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbx + 8]
test rax, rax
je 0x140006091
cmp qword [rax + 8], 2
jne 0x140006091
mov rax, qword [rax]
mov rbx, qword [rax]
test rbx, rbx
je 0x140006091
nop dword [rax + rax]
mov rcx, qword [rbx]
lea rdx, str.encrypted_key
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140006125
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140006100
jmp 0x140006091
mov rax, qword [rbx + 8]
test rax, rax
je 0x140006091
cmp qword [rax + 8], rsi
jne 0x140006091
mov rax, qword [rax]
xor dil, dil
mov rbx, rsi
mov r14, qword [rax]
test r14, r14
je 0x14000615b
cmp byte [r14], bl
je 0x14000615b
inc rbx
cmp byte [rbx + r14], sil
jne 0x140006152
mov eax, ebx
shr eax, 2
lea ecx, [rax + rax*2]
call fcn.140001a50
mov r8, rax
test rax, rax
jne 0x140006178
mov r8, rsi
jmp 0x14000622f
test ebx, ebx
je 0x14000622f
mov r11d, ebx
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop word [rax + rax]
movzx edx, byte [r14]
xor al, al
movzx ecx, al
cmp byte [rcx + rbx], dl
je 0x1400061a4
inc al
cmp al, 0x40
jb 0x140006196
movzx ecx, dil
inc dil
mov byte [rbp + rcx + 0x6f], al
cmp dil, 4
jne 0x140006222
mov ecx, dword [r8 + 8]
movzx r10d, byte [rbp + 0x70]
movzx edx, byte [rbp + 0x6f]
movzx eax, r10b
movzx r9d, byte [rbp + 0x71]
shr al, 4
shl dl, 2
add dl, al
mov rax, qword [r8]
mov byte [rcx + rax], dl
mov ecx, dword [r8 + 8]
inc ecx
mov dword [r8 + 8], ecx
cmp r9b, 0x40
je 0x140006205
mov rax, qword [r8]
movzx edx, r9b
shr dl, 2
shl r10b, 4
add dl, r10b
mov byte [rcx + rax], dl
inc dword [r8 + 8]
mov ecx, dword [r8 + 8]
movzx eax, byte [rbp + 0x72]
cmp al, 0x40
je 0x14000621f
shl r9b, 6
add r9b, al
mov rax, qword [r8]
mov byte [rcx + rax], r9b
inc dword [r8 + 8]
xor dil, dil
inc r14
sub r11, 1
jne 0x140006190
add qword [r8], 5
lea rcx, [rbp - 0x49]
mov rax, qword [r8]
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor edx, edx
mov qword [rbp - 0x31], rax
lea rcx, [rbp - 0x39]
mov eax, dword [r8 + 8]
xor r8d, r8d
mov dword [rbp - 0x39], eax
mov rax, qword [0x14000d4a8]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call rax
test eax, eax
je 0x1400062bd
mov ecx, dword [rbp - 0x49]
call fcn.140001a50
mov r9, rax
test rax, rax
je 0x1400062bd
mov rdx, qword [rax]
mov ecx, dword [rbp - 0x49]
test rdx, rdx
je 0x1400062b6
mov r8, qword [rbp - 0x41]
test r8, r8
je 0x1400062b6
test ecx, ecx
je 0x1400062b6
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8]
lea r8, [r8 + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
add ecx, 0xffffffff
jne 0x1400062a0
mov ecx, dword [rbp - 0x49]
mov dword [r9 + 8], ecx
mov rsi, r9
mov rcx, rsi
call fcn.140001b10
jmp 0x1400060bd