Function at 0x140001b2b
Capabilities:
Delete file
Execute command
Query environment variable

Disassembly:
push rbp
push rbx
mov eax, 0x100a8
call fcn.140003da0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10040], rcx
mov qword [rbp + 0xffc0], 0
mov qword [rbp + 0xffc8], 0
mov qword [rbp + 0xffd0], 0
mov qword [rbp + 0xffd8], 0
mov qword [rbp + 0xffe0], 0
mov qword [rbp + 0xffe8], 0
mov qword [rbp + 0xfff0], 0
mov qword [rbp + 0xfff8], 0
mov qword [rbp + 0xffb8], 0
mov ecx, 3
call sym.printTitle
lea rax, str._n_Select_a_NONG_to_remove._n_n
mov rcx, rax
call sym.printf
mov dword [rbp + 0x10018], 0
mov dword [rbp + 0x1001c], 0
jmp 0x140001c1d
mov eax, dword [rbp + 0x1001c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10040]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
test eax, eax
je 0x140001c16
add dword [rbp + 0x10018], 1
add dword [rbp + 0x1001c], 1
cmp dword [rbp + 0x1001c], 0xff
jle 0x140001bdb
cmp dword [rbp + 0x10018], 1
jne 0x140001c4b
lea rax, str._Please_add_another_nong_first__there_has_to_be_at_least_1._n
mov rcx, rax
call sym.printf
mov eax, 0
jmp 0x140002093
mov edx, dword [rbp + 0x10018]
lea rax, [rbp + 0xffb8]
mov r8d, edx
lea rdx, [0x14000e15f]
mov rcx, rax
call sym.sprintf
mov dword [rbp + 0x1001c], 0
jmp 0x140001d2b
mov eax, dword [rbp + 0x1001c]
lea ebx, [rax + 1]
lea rax, [rbp + 0xffb8]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp - 0x5c]
mov r9d, ebx
mov r8, rdx
lea rdx, str._0d
mov rcx, rax
call sym.sprintf
mov eax, dword [rbp + 0x1001c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10040]
add rax, rdx
lea rcx, [rax + 0x40]
mov eax, dword [rbp + 0x1001c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10040]
add rax, rdx
mov rdx, rax
lea rax, [rbp - 0x5c]
mov r9, rcx
mov r8, rdx
mov rdx, rax
lea rax, str.__s___s__song_id__s__n
mov rcx, rax
call sym.printf
add dword [rbp + 0x1001c], 1
mov eax, dword [rbp + 0x1001c]
cmp eax, dword [rbp + 0x10018]
jl 0x140001c79
lea rax, str._n_Choice:
mov rcx, rax
call sym.printf
lea rax, [rbp - 0x54]
mov rdx, rax
lea rax, [0x14000e15f]
mov rcx, rax
call sym.scanf
mov eax, dword [rbp - 0x54]
sub eax, 1
mov dword [rbp - 0x54], eax
lea rax, [0x14000e233]
mov rcx, rax
call sym.system
mov ecx, 3
call sym.printTitle
mov dword [rbp + 0x1001c], 0
jmp 0x140001ee2
mov eax, dword [rbp - 0x54]
cmp dword [rbp + 0x1001c], eax
je 0x140001edb
cmp dword [rbp + 0x1001c], 0
jle 0x140001dc6
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp - 0x50]
add rax, rdx
mov word [rax], 0xa
mov eax, dword [rbp + 0x1001c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10040]
add rax, rdx
mov rdx, rax
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.strcat
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp - 0x50]
add rax, rdx
mov word [rax], 0x3b
mov eax, dword [rbp + 0x1001c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10040]
add rax, rdx
lea rdx, [rax + 0x40]
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.strcat
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp - 0x50]
add rax, rdx
mov word [rax], 0x3b
mov eax, dword [rbp + 0x1001c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10040]
add rax, rdx
lea rdx, [rax + 0x50]
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.strcat
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp - 0x50]
add rax, rdx
mov word [rax], 0x3b
mov rax, qword [rbp + 0x10040]
lea rdx, [rax + 0x60]
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.strcat
add dword [rbp + 0x1001c], 1
mov eax, dword [rbp + 0x1001c]
cmp eax, dword [rbp + 0x10018]
jl 0x140001d93
lea rax, str.LOCALAPPDATA
mov rcx, rax
call sym.getenv
mov qword [rbp + 0x10010], rax
cmp qword [rbp + 0x10010], 0
jne 0x140001f2d
lea rax, str._n_Environment_variable__localappdata__not_found.
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x140002093
mov rax, qword [rbp + 0x10010]
mov rcx, rax
call sym.strlen
mov rdx, rax
mov rax, qword [rbp + 0x10010]
add rax, rdx
movabs rbx, 0x7274656d6f65475c
mov qword [rax], rbx
movabs rbx, 0x5c687361447972
mov qword [rax + 7], rbx
mov eax, dword [rbp - 0x54]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10040]
add rax, rdx
lea rdx, [rax + 0x50]
mov rax, qword [rbp + 0x10010]
mov rcx, rax
call sym.strcat
mov rax, qword [rbp + 0x10010]
mov rcx, rax
call sym.strlen
mov rdx, rax
mov rax, qword [rbp + 0x10010]
add rax, rdx
mov dword [rax], 0x33706d2e
mov byte [rax + 4], 0
mov rax, qword [rbp + 0x10010]
mov rcx, rax
call sym.strlen
add rax, 1
mov rcx, rax
call sym.malloc
mov qword [rbp + 0x10008], rax
cmp qword [rbp + 0x10008], 0
jne 0x140002009
lea rax, str._n_Memory_allocation_failed.
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x140002093
mov rdx, qword [rbp + 0x10010]
mov rax, qword [rbp + 0x10008]
mov rcx, rax
call sym.strcpy
mov rax, qword [rbp + 0x10008]
mov rcx, rax
call sym.remove
mov rax, qword [rbp + 0x10008]
mov rcx, rax
call sym.free
lea rax, [0x14000e024]
mov rdx, rax
lea rax, str.data.dat
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x10000], rax
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x10000]
mov rcx, rax
call sym.fprintf
mov rax, qword [rbp + 0x10000]
mov rcx, rax
call sym.fclose
lea rax, str._n_NONG_Deleted._n
mov rcx, rax
call sym.printf
mov eax, 0
add rsp, 0x100a8
pop rbx
pop rbp
ret