Function at 0x140005090
Capabilities:
Encode data using xor
Execute command
Get disk information
Get disk size
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x140012010]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea rcx, str.FGCommun
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x140012a70]
xor esi, esi
lea rdi, [0x140012d30]
nop word [rax + rax]
mov dword [rbp - 0x69], 0xb9a5ab
mov byte [rbp - 0x65], 1
mov rax, rsi
nop
lea ecx, [rax - 0x38]
xor byte [rbp + rax - 0x69], cl
inc rax
cmp rax, 3
jb 0x140005100
mov byte [rbp - 0x65], sil
lea rcx, [rbp - 0x69]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14000512b
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140007100
lea rdx, [0x140006a80]
mov rcx, rax
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 ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
add rbx, 0x20
cmp rbx, rdi
jl 0x1400050f0
call fcn.1400022c0
mov dword [rbp - 0x69], 0xb9a5ab
mov byte [rbp - 0x65], 1
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x38]
xor byte [rbp + rcx - 0x69], al
inc rcx
cmp rcx, 3
jb 0x140005180
mov byte [rbp - 0x65], sil
lea rcx, [rbp - 0x69]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
lea edx, [rax + 1]
mov eax, 2
mul rdx
mov r14, 0xffffffffffffffff
cmovo rax, r14
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400051d9
mov eax, r14d
jmp 0x140005610
mov rdx, rdi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [rdi], si
mov rcx, rdi
je 0x140005608
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x3f]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov qword [rbp + 0x1f], rsi
mov qword [rbp + 0x2f], rsi
mov qword [rbp + 0x37], 0xf
mov byte [rbp + 0x1f], 0
cmp ebx, 3
jne 0x140005586
mov dword [rbp - 0x61], 0xb9a5ab
mov byte [rbp - 0x5d], 1
mov rcx, rsi
nop word [rax + rax]
lea eax, [rcx - 0x38]
xor byte [rbp + rcx - 0x61], al
inc rcx
cmp rcx, 3
jb 0x140005240
mov byte [rbp - 0x5d], 0
lea rcx, [rbp - 0x61]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], si
mov r8, r14
inc r8
cmp word [rdi + r8*2], 0
jne 0x140005275
mov rdx, rdi
lea rcx, [rbp - 0x41]
call fcn.140005ea0
nop
lea r8, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae r8, qword [rbp - 0x41]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, dword [rbp - 0x31]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], 0xf
mov byte [rbp - 0x21], 0
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.140006020
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rcx, qword [rbp - 0x21]
lea r8, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae r8, qword [rbp - 0x41]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
mov r9d, dword [rbp - 0x31]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop
mov qword [rbp - 1], rsi
mov qword [rbp + 0xf], rsi
mov qword [rbp + 0x17], 0xf
mov r8d, 2
cmp qword [rbp - 0x11], r8
cmovb r8, qword [rbp - 0x11]
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rdx, qword [rbp - 0x21]
lea rcx, [rbp - 1]
call fcn.140006180
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x140005394
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000538f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400055d7
call fcn.140007b6c
movups xmm0, xmmword [rbp - 1]
movups xmmword [rbp + 0x1f], xmm0
movups xmm1, xmmword [rbp + 0xf]
movups xmmword [rbp + 0x2f], xmm1
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x1400053df
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400053da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400055de
call fcn.140007b6c
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], 0xf
mov byte [rbp - 0x21], 0
mov rdx, qword [rbp - 0x29]
cmp rdx, 8
jb 0x14000542f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000542a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400055e5
call fcn.140007b6c
mov edx, 4
lea rcx, [rbp - 0x21]
call fcn.140004f00
mov rbx, rax
mov word [rbp - 0x59], 0xe5
mov byte [rbp - 0x57], 1
mov edx, 4
lea rcx, [rbp - 0x41]
call fcn.140004f00
nop
mov word [rbp - 0x69], 0xe8
mov byte [rbp - 0x67], 1
mov dword [rbp - 0x51], 0xbea6a69e
mov dword [rbp - 0x4d], 0xaba7a8a1
mov dword [rbp - 0x49], 0xf2e5e6
mov byte [rbp - 0x45], 1
mov qword [rsp + 0x30], rbx
lea rcx, [rbp - 0x59]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x69]
lea r8, [rbp + 0x1f]
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 1]
call fcn.140006ac0
nop
cmp qword [rax + 0x18], 0x10
jb 0x1400054af
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x1400054f4
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400054ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400055ec
call fcn.140007b6c
mov qword [rbp + 0xf], rsi
mov qword [rbp + 0x17], 0xf
mov byte [rbp - 1], 0
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x14000553f
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000553a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400055f3
call fcn.140007b6c
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x29], 0xf
mov byte [rbp - 0x41], 0
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x140005586
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005581
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400055fa
call fcn.140007b6c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
lea rdi, [rdi + rax*2]
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x1400055ce
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400055c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005601
call fcn.140007b6c
cmp word [rdi], 0
jmp 0x1400051e7
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]
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
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140007b10
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret