Function at 0x1401190a0
Capabilities:
Delete file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140277430]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, r8
lea rsi, [0x140221a80]
mov rbx, rdx
mov rdi, rcx
mov r14, 0xffffffffffffffff
test rdi, rdi
je 0x140119131
mov rax, r14
nop dword [rax]
movzx ecx, word [rdi + rax*2 + 2]
cmp cx, word [rsi + rax*2 + 2]
jne 0x140119104
add rax, 2
cmp rax, 0xd
je 0x14011919b
movzx ecx, word [rdi + rax*2]
cmp cx, word [rsi + rax*2]
je 0x1401190e0
mov edx, 0x27
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
jne 0x140119128
lea edx, [rax + 0x22]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x140119131
lea rdi, [0x140221a48]
jmp 0x1401190d4
test rbx, rbx
je 0x140119166
mov edx, 0x27
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
jne 0x14011915a
lea edx, [rax + 0x22]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x140119166
lea rbx, [0x140221aa0]
jmp 0x1401190d4
test rbp, rbp
je 0x1401191cf
mov edx, 0x27
mov rcx, rbp
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
jne 0x14011918f
lea edx, [rax + 0x22]
mov rcx, rbp
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x1401191cf
lea rbp, [0x140221ae0]
jmp 0x1401190d4
mov eax, dword [0x140221a40]
movsd xmm0, qword [str.windows_wchar]
mov dword [0x14027ebc8], eax
movzx eax, word [0x140221a44]
mov word [0x14027ebcc], ax
mov eax, 1
movsd qword [0x14027ebc0], xmm0
jmp 0x140119bb1
mov qword [rsp + 0xc8], r12
xor ecx, ecx
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x70], r15
test rdi, rdi
je 0x1401191fb
mov rax, r14
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], cx
jne 0x1401191f0
jmp 0x1401191fe
mov rax, rcx
test rbx, rbx
je 0x140119210
mov rcx, r14
inc rcx
cmp word [rbx + rcx*2], 0
jne 0x140119206
lea r12, [rcx + 0xc00]
add r12, rax
mov eax, 2
mul r12
cmovo rax, r14
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea r13, str._ls_tinyfd.vbs
mov rsi, rax
lea rcx, [0x140221b70]
mov r15, r13
test rbp, rbp
jne 0x14011924f
lea r15, str._ls_tinyfd.hta
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv]
mov r8, r15
mov rdx, r12
mov r9, rax
mov rcx, rsi
call fcn.140118af0
lea rdx, [0x140221a34]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov r15, rax
test rax, rax
je 0x140119a43
test rbp, rbp
je 0x140119646
movups xmm0, xmmword [str.Dim_result:resultInputBox__]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [0x140221b90]
movups xmmword [rsi + 0x10], xmm1
movups xmm0, xmmword [0x140221ba0]
movups xmmword [rsi + 0x20], xmm0
movsd xmm0, qword [0x140221bb0]
movsd qword [rsi + 0x30], xmm0
movzx eax, word [0x140221bb8]
mov word [rsi + 0x38], ax
test rbx, rbx
je 0x140119363
mov rax, r14
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x1401192d0
test rax, rax
je 0x140119363
lea rcx, [0x14027d830]
sub rcx, rbx
nop dword [rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1401192f0
lea rbx, [0x14027d830]
mov edx, 0xa
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x140119339
nop word [rax + rax]
mov edx, 0xa
mov word [rax], 0x20
lea rcx, [rax + 4]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
jne 0x140119320
lea rcx, [rsi - 2]
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140119340
xor edx, edx
nop dword [rax]
movzx eax, word [rbx + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140119350
jmp 0x14011936a
lea rbx, [0x14027d830]
lea rax, [rsi - 2]
nop
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140119370
movsd xmm0, qword [0x140221bc0]
movsd qword [rax], xmm0
test rdi, rdi
je 0x1401193b1
lea rcx, [rsi - 2]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140119390
xor edx, edx
nop dword [rax]
movzx eax, word [rdi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1401193a0
lea rax, [rsi - 2]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x1401193b5
movsd xmm0, qword [0x140221bc0]
movsd qword [rax], xmm0
mov rax, r14
nop
inc rax
cmp word [rbp + rax*2], 0
jne 0x1401193d0
test rax, rax
je 0x140119462
mov rdx, rbx
mov rcx, rbp
sub rdx, rbp
nop dword [rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1401193f0
mov edx, 0xa
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x140119440
nop dword [rax]
nop word [rax + rax]
mov edx, 0xa
mov word [rax], 0x20
lea rcx, [rax + 4]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
jne 0x140119420
lea r13, str._ls_tinyfd.vbs
lea rcx, [rsi - 2]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140119444
xor edx, edx
movzx eax, word [rbx + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140119451
lea rcx, [rsi - 2]
nop word [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140119470
movaps xmm0, xmmword [str.__:If_IsEmpty_result__then:WScript.Echo_0]
movups xmmword [rcx], xmm0
movaps xmm1, xmmword [0x140221fd0]
movups xmmword [rcx + 0x10], xmm1
movaps xmm0, xmmword [0x140221fe0]
movups xmmword [rcx + 0x20], xmm0
movaps xmm1, xmmword [0x140221ff0]
movups xmmword [rcx + 0x30], xmm1
movaps xmm0, xmmword [0x140222000]
movups xmmword [rcx + 0x40], xmm0
mov eax, dword [0x140222010]
mov dword [rcx + 0x50], eax
lea rcx, [rsi - 2]
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1401194c0
movaps xmm0, xmmword [str.:Else:_WScript.Echo__1___result_:_End_If]
mov rdx, r15
movups xmmword [rcx], xmm0
movaps xmm1, xmmword [0x140222030]
movups xmmword [rcx + 0x10], xmm1
movaps xmm0, xmmword [0x140222040]
movups xmmword [rcx + 0x20], xmm0
movaps xmm1, xmmword [0x140222050]
movups xmmword [rcx + 0x30], xmm1
movaps xmm0, xmmword [0x140222060]
movups xmmword [rcx + 0x40], xmm0
mov eax, dword [0x140222070]
mov dword [rcx + 0x50], eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [0x140221b70]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv]
lea r8, str._ls_tinyfd.txt
mov rdx, r12
mov r9, rax
mov rcx, rsi
call fcn.140118af0
lea rdx, [0x140221a34]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov rdx, rax
mov ecx, 0xff
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rdx, rbx
mov ecx, 0xfe
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
movaps xmm0, xmmword [str.cmd.exe__c_cscript.exe___U___Nologo]
lea rcx, [rsi - 2]
movups xmmword [rsi], xmm0
movaps xmm1, xmmword [0x140222d70]
movups xmmword [rsi + 0x10], xmm1
movaps xmm0, xmmword [0x140222d80]
movups xmmword [rsi + 0x20], xmm0
movaps xmm1, xmmword [0x140222d90]
movups xmmword [rsi + 0x30], xmm1
movsd xmm0, qword [0x140222da0]
movsd qword [rsi + 0x40], xmm0
movzx eax, word [0x140222da8]
mov word [rsi + 0x48], ax
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1401195c0
movups xmm0, xmmword [str.__TEMP__tinyfd.vbs_]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [0x140222cf0]
movups xmmword [rcx + 0x10], xmm1
movsd xmm0, qword [0x140222d00]
movsd qword [rcx + 0x20], xmm0
movzx eax, word [0x140222d08]
mov word [rcx + 0x28], ax
lea rcx, [rsi - 2]
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140119600
movups xmm0, xmmword [str._____TEMP__tinyfd.txt_]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [0x140222d20]
movups xmmword [rcx + 0x10], xmm1
movsd xmm0, qword [0x140222d30]
movsd qword [rcx + 0x20], xmm0
mov eax, dword [0x140222d38]
mov dword [rcx + 0x28], eax
movzx eax, word [0x140222d3c]
mov word [rcx + 0x2c], ax
jmp 0x1401199f5
movups xmm0, xmmword [str._n_html__n_head__n_title_]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [0x140221c18]
movups xmmword [rsi + 0x10], xmm1
movsd xmm0, qword [0x140221c28]
movsd qword [rsi + 0x20], xmm0
mov eax, dword [0x140221c30]
mov dword [rsi + 0x28], eax
movzx eax, word [0x140221c34]
mov word [rsi + 0x2c], ax
test rdi, rdi
je 0x1401196b1
lea rcx, [rsi - 2]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140119685
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rdi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1401196a0
lea rcx, [rsi - 2]
add rcx, 2
cmp word [rcx], 0
jne 0x1401196b5
mov r8d, 6
lea rdx, str.__title__n_HTA:APPLICATION_nID__tinyfdHTA_nAPPLICATIONNAME__tinyfd_inputBox_nMINIMIZEBUTTON__no_nMAXIMIZEBUTTON__no_nBORDER__dialog_nSCROLL__no_nSINGLEINSTANCE__yes_nWINDOWSTATE__hidden__n_n_script_language__VBScript__n_nintWidth__Screen.Width_4_nintHeight__Screen.Height_6_nResizeTo_intWidth__intHeight_nMoveTo__Screen.Width_2___intWidth_2_____Screen.Height_2___intHeight_2___nresult__0_n_nSub_Window_onLoad_ntxt_input.Focus_nEnd_Sub_n_n
mov eax, r8d
nop
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rdx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x1401196d0
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov rax, qword [rdx + 0x70]
mov qword [rcx + 0x70], rax
mov eax, dword [rdx + 0x78]
mov dword [rcx + 0x78], eax
lea rcx, [rsi - 2]
nop dword [rax + rax]
add rcx, 2
cmp word [rcx], 0
jne 0x140119770
mov r9d, 7
lea rdx, str.Sub_Window_onUnload_nSet_objFSO__CreateObject__Scripting.FileSystemObject___nSet_oShell__CreateObject__WScript.Shell___nstrTempFolder__oShell.ExpandEnvironmentStrings___TEMP____nSet_objFile__objFSO.CreateTextFile_strTempFolder____tinyfd.txt__True_True__nIf_result__1_Then_nobjFile.Write_1__txt_input.Value_nElse_nobjFile.Write_0_nEnd_If_nobjFile.Close_nEnd_Sub_n_nSub_Run_ProgramOK_nresult__1_nwindow.Close_nEnd_Sub_n_nSub_Run_ProgramCancel_nwindow.Close_nEnd_Sub_n_n
mov eax, r9d
nop word [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rdx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x140119790
mov rax, qword [rdx]
mov qword [rcx], rax
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
lea rcx, [rsi - 2]
add rcx, 2
cmp word [rcx], 0
jne 0x1401197f3
lea rdx, str.Sub_Default_Buttons_nIf_Window.Event.KeyCode__13_Then_nbtn_OK.Click_nElseIf_Window.Event.KeyCode__27_Then_nbtn_Cancel.Click_nEnd_If_nEnd_Sub_n_n__script__n__head__n_body_style__background_color:EEEEEE_onkeypress__vbs:Default_Buttons_align__top__n_table_width__100__height__80__align__center_border__0__n_tr_border__0__n_td_align__left_valign__middle_styleFont_Family:Arial__n
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rdx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub r8, 1
jne 0x140119804
movups xmm0, xmmword [rdx]
test rbx, rbx
lea r8, [0x140221a30]
movups xmmword [rcx], xmm0
mov rax, qword [rdx + 0x10]
cmovne r8, rbx
mov qword [rcx + 0x10], rax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x18], eax
lea rcx, [rsi - 2]
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140119880
xor edx, edx
nop dword [rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140119890
lea rcx, [rsi - 2]
add rcx, 2
cmp word [rcx], 0
jne 0x1401198a6
lea rdx, str._n__td__n_td_align__right_valign__middle_style__margin_top:_0em__n_table__align__right_style__margin_right:_0em___n_tr_align__right_style__margin_top:_5em___n_input_type__button_value__OK_name__btn_OK_onClick__vbs:Run_ProgramOK_style__width:_5em__margin_top:_2em___br__n_input_type__button_value__Cancel_name__btn_Cancel_onClick__vbs:Run_ProgramCancel_style__width:_5em___br__br__n__tr__n__table__n__td__n__tr__n__table__n
nop word [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rdx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub r9, 1
jne 0x1401198c0
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x18], eax
lea rcx, [rsi - 2]
nop dword [rax + rax]
add rcx, 2
cmp word [rcx], 0
jne 0x140119930
lea rax, str._table_width__100__height__100__align__center_border__0__n_tr__n_td_align__left_valign__top__n_input_type__password_id__txt_input_nname__txt_input_value___style__float:left_width:100____BR__n__td__n__tr__n__table__n__body__n__html__n
mov edx, 4
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140119946
movzx eax, word [rax]
mov rdx, r15
mov word [rcx], ax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
movaps xmm0, xmmword [str.cmd.exe__c_mshta.exe___TEMP__tinyfd.hta_]
movups xmmword [rsi], xmm0
movaps xmm1, xmmword [0x140222e50]
movups xmmword [rsi + 0x10], xmm1
movaps xmm0, xmmword [0x140222e60]
movups xmmword [rsi + 0x20], xmm0
movaps xmm1, xmmword [0x140222e70]
movups xmmword [rsi + 0x30], xmm1
movaps xmm0, xmmword [0x140222e80]
movups xmmword [rsi + 0x40], xmm0
movzx eax, word [0x140222e90]
mov word [rsi + 0x50], ax
mov rdx, rdi
mov rcx, rsi
call fcn.140118f50
lea rcx, [0x140221b70]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv]
lea r8, str._ls_tinyfd.txt
mov rdx, r12
mov r9, rax
mov rcx, rsi
call fcn.140118af0
lea rdx, [0x140222e94]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov rbx, rax
test rax, rax
jne 0x140119a53
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x140119b9f
lea rdi, [0x14027d830]
xor edx, edx
mov rcx, rdi
mov r8d, 0x800
call sub.VCRUNTIME140.dll_memset
mov r8, rbx
mov edx, 0x800
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rdx, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64]
test eax, eax
jne 0x140119aec
lea rdx, [0x140221a34]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
xor r15d, r15d
mov rdi, rax
test rax, rax
je 0x140119ae3
mov ebx, r15d
cmp qword [rsp + 0x40], rbx
jle 0x140119ada
nop dword [rax + rax]
mov rdx, rdi
mov ecx, 0x41
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
inc ebx
movsxd rax, ebx
cmp rax, qword [rsp + 0x40]
jl 0x140119ac0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rdi, [0x14027d830]
jmp 0x140119aef
xor r15d, r15d
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
lea rcx, [0x140221b70]
test rbp, rbp
jne 0x140119b0b
lea r13, str._ls_tinyfd.hta
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv]
mov r8, r13
mov rdx, r12
mov r9, rax
mov rcx, rsi
call fcn.140118af0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8d, 1
lea rdx, [0x140222dac]
lea rcx, [0x14027d832]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x140119a4c
test rbp, rbp
je 0x140119b98
nop dword [rax + rax]
cmp word [rdi + r14*2 + 2], 0
lea r14, [r14 + 1]
jne 0x140119b60
lea rax, [r14*2 - 2]
cmp rax, 0x800
jae 0x140119bcc
lea r14, [r14*2 - 4]
mov word [rax + rdi], r15w
cmp r14, 0x800
jae 0x140119bcc
mov word [r14 + rdi], r15w
lea rax, [0x14027d834]
mov r13, qword [rsp + 0x78]
mov r12, qword [rsp + 0xc8]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401e8350
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1401e8740
int3