Function at 0x140071af8
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1c0
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r14d, r8d
mov rbx, rdx
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x68], rcx
mov r13d, r8d
mov dword [rsp + 0x34], r8d
xor esi, esi
mov r12b, sil
mov byte [rsp + 0x30], sil
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
call fcn.1400581e8
mov r15, rax
mov qword [rsp + 0x70], rax
mov rdi, qword [rbx]
mov qword [rsp + 0x38], rdi
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140071cad
lea r12, [rbx + 0x48]
mov r8, r12
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.140072bf0
mov rax, qword [rsp + 0x58]
cmp rax, r15
je 0x140071baa
cmp dword [rax + 0x2c], esi
je 0x140071c4f
mov r13d, dword [rbx + 0x16c]
mov rdi, r15
mov r14, qword [r15 + 8]
cmp byte [r14 + 0x19], sil
jne 0x140071c01
lea rcx, [r14 + 0x1c]
mov r8d, 0x10
mov rdx, r12
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jns 0x140071bda
mov r14, qword [r14 + 0x10]
jmp 0x140071be0
mov rdi, r14
mov r14, qword [r14]
cmp byte [r14 + 0x19], sil
je 0x140071bbe
cmp rdi, r15
je 0x140071c01
lea rdx, [rdi + 0x1c]
mov r8d, 0x10
mov rcx, r12
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jns 0x140071c41
mov qword [rsp + 0x88], r12
lea r8, [rsp + 0x88]
lea rcx, [rsp + 0x70]
call fcn.140072f14
lea r9, [rax + 0x1c]
mov qword [rsp + 0x20], rax
mov r8, rdi
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x70]
call fcn.140072f3c
mov rdi, qword [rsp + 0x80]
mov dword [rdi + 0x2c], r13d
mov r15, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x38]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], sil
je 0x140071c77
mov rax, qword [rbx + 8]
jmp 0x140071c6c
cmp rbx, qword [rax + 0x10]
jne 0x140071c72
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], sil
je 0x140071c5f
mov rbx, rax
jmp 0x140071c92
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], sil
jne 0x140071c92
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], sil
je 0x140071c83
cmp rbx, rdi
jne 0x140071b81
mov r13d, dword [rsp + 0x34]
mov r12b, byte [rsp + 0x30]
mov r14d, dword [rsp + 0x210]
mov qword [rsp + 0x110], rsi
mov dword [rsp + 0x118], esi
mov qword [rsp + 0x128], rsi
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x150], xmm0
mov edi, 1
mov r8b, dil
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x110]
call fcn.1400710cc
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
call fcn.140072d78
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x110]
call fcn.140071254
test al, al
je 0x140072091
mov eax, dword [rsp + 0x120]
inc eax
mov dword [rsp + 0x120], eax
cmp eax, dword [rsp + 0x118]
ja 0x140072099
lea rcx, [rsp + 0x110]
call fcn.140071378
test al, al
je 0x140072099
xor eax, eax
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], rax
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x88], rsi
mov dword [rsp + 0x60], esi
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x110]
call fcn.140071430
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x110]
call fcn.140071528
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x110]
call fcn.140071660
mov r15d, dword [rsp + 0x40]
cmp r15d, r13d
cmova r13d, r15d
mov dword [rsp + 0x34], r13d
lea r8, [rsp + 0xf8]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x70]
call fcn.140072bf0
mov rax, qword [rsp + 0x80]
cmp r15d, r14d
ja 0x140071dfd
cmp rax, qword [rsp + 0x70]
je 0x140071df0
cmp dword [rax + 0x2c], esi
jne 0x140071e16
mov r12b, dil
mov byte [rsp + 0x30], dil
jmp 0x140071d16
cmp rax, qword [rsp + 0x70]
je 0x140071e16
cmp dword [rax + 0x2c], esi
jne 0x140071e16
mov r12b, dil
mov byte [rsp + 0x30], dil
jmp 0x140071d16
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x110]
call fcn.140071754
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x110]
call fcn.140071930
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x88]
add r8, rdx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x98], xmm0
mov qword [rsp + 0xa8], rsi
lea rcx, [rsp + 0x98]
call fcn.140072e08
nop
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xf0], 7
mov word [rsp + 0xd8], si
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0xd8]
call fcn.14000c968
nop
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x98], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xa0], xmm0
movups xmm0, xmmword [rsp + 0xd8]
movups xmmword [rsp + 0x178], xmm0
movups xmm1, xmmword [rsp + 0xe8]
movups xmmword [rsp + 0x188], xmm1
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xf0], 7
mov word [rsp + 0xd8], si
mov dword [rsp + 0x198], r15d
mov r12d, dword [rsp + 0x38]
mov dword [rsp + 0x1a0], r12d
mov r13, qword [rsp + 0x48]
mov rbx, r13
mov r14, qword [r13 + 8]
cmp byte [r14 + 0x19], sil
jne 0x140071f9c
lea rcx, [r14 + 0x20]
mov r8d, 0x10
lea rdx, [rsp + 0xf8]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jns 0x140071f70
mov r14, qword [r14 + 0x10]
jmp 0x140071f76
mov rbx, r14
mov r14, qword [r14]
cmp byte [r14 + 0x19], sil
je 0x140071f4f
cmp rbx, r13
je 0x140071f9c
lea rdx, [rbx + 0x20]
mov r8d, 0x10
lea rcx, [rsp + 0xf8]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jns 0x140071fde
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x48]
call fcn.1400731fc
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.140073244
mov rbx, qword [rsp + 0xb0]
mov dword [rbx + 0x70], r12d
mov dword [rbx + 0x68], r15d
lea rcx, [rbx + 0x48]
lea rdx, [rsp + 0x178]
call fcn.14000cba0
lea rdx, [rsp + 0x160]
lea rcx, [rbx + 0x30]
call fcn.140044400
nop
lea rcx, [rsp + 0x160]
call fcn.1400724f0
mov rax, qword [rsp + 0xf0]
cmp rax, 8
jb 0x14007205e
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0xd8]
mov rdx, rcx
cmp rax, 0x1000
jb 0x140072057
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140072057
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]
nop
mov r12b, byte [rsp + 0x30]
jmp 0x14007207f
mov r13d, dword [rsp + 0x34]
mov r14d, dword [rsp + 0x210]
jmp 0x140071d16
mov r12b, dil
mov byte [rsp + 0x30], dil
mov r14d, dword [rsp + 0x50]
mov r15, qword [rsp + 0x208]
mov r15, qword [r15]
mov rbx, qword [r15]
cmp rbx, r15
je 0x14007212b
mov r12, qword [rsp + 0x48]
lea r8, [rbx + 0x48]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.140072ac4
cmp qword [rax], r12
jne 0x1400720de
cmp dword [rbx + 0x16c], esi
jne 0x1400720de
mov byte [rsp + 0x30], dil
add r14d, edi
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], sil
je 0x140072106
mov rax, qword [rbx + 8]
jmp 0x1400720fb
cmp rbx, qword [rax + 0x10]
jne 0x140072101
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], sil
je 0x1400720ee
mov rbx, rax
jmp 0x140072121
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], sil
jne 0x140072121
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], sil
je 0x140072112
cmp rbx, r15
jne 0x1400720b6
mov r12b, byte [rsp + 0x30]
test r12b, r12b
jne 0x14007215e
test r14d, r14d
je 0x14007215e
lea rcx, [rsp + 0x48]
call fcn.140072b58
lea rcx, [rsp + 0x110]
call fcn.140071084
lea rcx, [rsp + 0x70]
call fcn.140054f28
mov eax, r13d
jmp 0x14007244a
lea r12d, [r13 + 1]
test r14d, r14d
cmove r12d, r13d
mov dword [rsp + 0x38], r12d
xor edx, edx
lea rcx, [rsp + 0x110]
call fcn.140072c84
mov rcx, qword [rsp + 0x150]
test rcx, rcx
je 0x140072198
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1110]
mov qword [rsp + 0x150], rsi
mov rcx, qword [rsp + 0x158]
test rcx, rcx
je 0x1400721b3
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1110]
mov qword [rsp + 0x158], rsi
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x110]
call fcn.1400710cc
xor edx, edx
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x34], esi
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x34]
mov r14d, 4
mov r8d, r14d
lea rdx, [0x140141ed8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14007222b
cmp dword [rsp + 0x34], r14d
mov ebx, edi
je 0x14007222d
mov ebx, esi
mov dword [rsp + 0x34], esi
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x34]
mov r8d, r14d
lea rdx, [0x140141edc]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140072264
cmp dword [rsp + 0x34], r14d
je 0x140072266
mov edi, esi
mov dword [rsp + 0x34], esi
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x34]
mov r8d, r14d
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14007229f
cmp dword [rsp + 0x34], r14d
jne 0x14007229f
and edi, ebx
jmp 0x1400722a1
mov edi, esi
mov r14, qword [rsp + 0x48]
mov rbx, qword [r14]
cmp rbx, r14
je 0x14007232c
lea rdx, [rbx + 0x20]
test edi, edi
je 0x140072327
lea rax, [rdx + 0x10]
lea rcx, [rdx + 0x28]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9d, dword [rdx + 0x48]
mov r8d, dword [rdx + 0x50]
lea rcx, [rsp + 0x110]
call fcn.14007286c
and edi, eax
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], sil
je 0x140072307
mov rax, qword [rbx + 8]
jmp 0x1400722fc
cmp rbx, qword [rax + 0x10]
jne 0x140072302
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], sil
je 0x1400722ef
mov rbx, rax
jmp 0x140072322
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], sil
jne 0x140072322
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], sil
je 0x140072313
cmp rbx, r14
jne 0x1400722ae
mov r14, qword [rsp + 0x48]
mov rax, qword [rsp + 0x208]
mov r15, qword [rax]
mov rbx, qword [r15]
jmp 0x1400723d8
test edi, edi
je 0x1400723e1
lea r8, [rbx + 0x48]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.140072ac4
cmp qword [rax], r14
jne 0x140072395
cmp dword [rbx + 0x16c], esi
jne 0x140072395
lea rdx, [rbx + 0x30]
cmp dword [rdx + 0x13c], esi
jne 0x14007237a
mov dword [rdx + 0x13c], r12d
lea r8, [rbx + 0x170]
lea rcx, [rsp + 0x110]
call fcn.140072598
and edi, eax
mov r14, qword [rsp + 0x48]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], sil
je 0x1400723bd
mov rax, qword [rbx + 8]
jmp 0x1400723b2
cmp rbx, qword [rax + 0x10]
jne 0x1400723b8
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], sil
je 0x1400723a5
mov rbx, rax
jmp 0x1400723d8
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], sil
jne 0x1400723d8
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], sil
je 0x1400723c9
cmp rbx, r15
jne 0x14007233f
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test edi, edi
je 0x14007246d
lea rcx, [rsp + 0x48]
call fcn.140072b58
lea rcx, [rsp + 0x110]
call fcn.140071084
lea rcx, [rsp + 0x70]
call fcn.140054f28
nop word [rax + rax]
mov eax, r12d
jmp 0x14007244a
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140107ad0
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rax, str.Problem_writing_to_tokenfile.
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x68]
lea rdx, str.Information
lea rcx, [rsp + 0xd8]
call fcn.14000c808
mov qword [rsp + 0x20], rax
lea r9, str.TokenFileUpdate
mov edx, 0x618
mov ecx, 0x13c1057
lea r8d, [rdi + 0xf]
call fcn.14000dfd0
lea rcx, [rsp + 0xc0]
call fcn.14001cbbc
lea rdx, [0x140197018]
lea rcx, [rsp + 0xc0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3