Function at 0x6d52b98c
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0x918
push 0x6d513838
call fcn.6d536a6c
xor esi, esi
mov dword [ebp - 0xac], esi
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0xa8]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xec], esi
push 0xf
pop ecx
lea edi, [ebp - 0xe8]
rep stosd dword es:[edi], eax
or dword [ebp - 0xf0], 0xffffffff
cmp dword [ebp + 8], esi
jne 0x6d52b9e5
push dword [ebp + 0x10]
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0xf0]
push eax
push 8
call dword [ebp + 0xc]
jmp 0x6d52ba45
mov dword [ebp - 0x100], 0xc
lea eax, [ebp - 0x114]
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], esi
push 1
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push esi
push 0x80
push 2
lea eax, [ebp - 0x100]
push eax
push esi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xf0], eax
cmp dword [ebp - 0xf0], esi
je 0x6d52bfca
cmp dword [ebp - 0xf0], 0xffffffff
je 0x6d52bfca
push esi
lea eax, [ebp - 0x118]
push eax
push 0x40
lea eax, [ebp - 0xec]
push eax
push dword [ebp - 0xf0]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
test eax, eax
je 0x6d52bfb0
push dword [ebp - 0xf0]
call fcn.6d52b86a
mov dword [ebp - 0xbc], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x11c]
push eax
push 6
call dword [ebp + 0xc]
push esi
lea eax, [ebp - 0x118]
push eax
push 0x60
push dword [ebp - 0x11c]
push dword [ebp - 0xf0]
call edi
test eax, eax
je 0x6d52bfb0
push dword [ebp - 0xf0]
call fcn.6d52b86a
mov dword [ebp - 0xc0], eax
mov dword [ebp - 4], esi
push dword [ebp + 0x10]
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x11c]
push eax
push 2
call dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0x120], edi
or dword [ebp - 4], 0xffffffff
jmp 0x6d52bb13
cmp edi, esi
je 0x6d52bb45
inc dword [ebp - 0xd0]
push esi
lea eax, [ebp - 0x118]
push eax
push 0x1c
push dword [ebp - 0x11c]
push dword [ebp - 0xf0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6d52bfb0
cmp edi, esi
jne 0x6d52badd
push dword [ebp - 0xf0]
call fcn.6d52b86a
mov dword [ebp - 0xcc], eax
mov dword [ebp - 4], 1
push dword [ebp + 0x10]
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x11c]
push eax
push 3
call dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0x120], edi
or dword [ebp - 4], 0xffffffff
jmp 0x6d52bb90
cmp edi, esi
je 0x6d52bbc6
push esi
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0xf4]
push dword [ebp - 0x11c]
push dword [ebp - 0xf0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6d52bfb0
inc dword [ebp - 0xd8]
cmp edi, esi
jne 0x6d52bb56
push dword [ebp - 0xf0]
call fcn.6d52b86a
mov dword [ebp - 0xb8], eax
mov dword [ebp - 4], 2
push dword [ebp + 0x10]
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x11c]
push eax
push 7
call dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0x120], edi
or dword [ebp - 4], 0xffffffff
jmp 0x6d52bc11
cmp edi, esi
je 0x6d52bc3d
push esi
lea eax, [ebp - 0x118]
push eax
push 0x30
push dword [ebp - 0x11c]
push dword [ebp - 0xf0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6d52bfb0
cmp edi, esi
jne 0x6d52bbd7
push dword [ebp - 0xf0]
call fcn.6d52b86a
mov dword [ebp - 0xc8], eax
mov dword [ebp - 4], 3
push dword [ebp + 0x10]
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x11c]
push eax
push 4
call dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0x120], edi
or dword [ebp - 4], 0xffffffff
jmp 0x6d52bc88
cmp edi, esi
je 0x6d52bcc0
push esi
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax + 8]
add ecx, 0xc
push ecx
push eax
push dword [ebp - 0xf0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6d52bfb0
inc dword [ebp - 0xd4]
cmp edi, esi
jne 0x6d52bc4e
push dword [ebp - 0xf0]
call fcn.6d52b86a
mov dword [ebp - 0xc4], eax
mov dword [ebp - 4], 4
push dword [ebp + 0x10]
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x11c]
push eax
push 5
call dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0x120], edi
or dword [ebp - 4], 0xffffffff
jmp 0x6d52bd0b
cmp edi, esi
je 0x6d52bd3b
push esi
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0xf4]
push dword [ebp - 0x11c]
push dword [ebp - 0xf0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6d52bfb0
cmp edi, esi
jne 0x6d52bcd1
push dword [ebp - 0xf0]
call fcn.6d52b86a
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xac], 0x94
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov word [ebp - 0x920], si
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x91e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x6d513818
lea eax, [ebp - 0x920]
push eax
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
call edi
lea eax, [ebp - 0x920]
push eax
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
call esi
lea eax, [ebp + eax*2 - 0x91e]
mov dword [ebp - 0x924], eax
push 0x6d513814
push 0x6d51380c
push eax
mov ebx, dword [sym.imp.msvcrt.dll_swprintf]
call ebx
push dword [ebp - 0x924]
call esi
mov ecx, dword [ebp - 0x924]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x924], eax
push 0x6d5137f4
push eax
call edi
push dword [ebp - 0x924]
call esi
mov ecx, dword [ebp - 0x924]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x924], eax
push 0xa28
push 0x6d5137ec
push eax
call ebx
push dword [ebp - 0x924]
call esi
mov ecx, dword [ebp - 0x924]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x924], eax
push 0x6d5137d8
push eax
call edi
add esp, 0x40
push dword [ebp - 0x924]
call esi
mov ecx, dword [ebp - 0x924]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x924], eax
mov dword [esp], 0x452
push 0x6d5137ec
push eax
call ebx
push dword [ebp - 0x924]
call esi
mov ecx, dword [ebp - 0x924]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x924], eax
push 0x6d5137bc
push eax
call edi
push dword [ebp - 0x924]
call esi
add esp, 0x1c
mov ecx, dword [ebp - 0x924]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x924], eax
cmp byte [ebp - 0x98], 0
je 0x6d52bea5
lea ecx, [ebp - 0x98]
push ecx
push 0x6d51380c
push eax
call ebx
add esp, 0xc
jmp 0x6d52beaf
push 0x6d5137b0
push eax
call edi
pop ecx
pop ecx
mov ebx, dword [ebp - 0x924]
push ebx
call esi
lea ebx, [ebx + eax*2 + 2]
mov dword [esp], 0x6d513790
push ebx
call edi
push ebx
call esi
add esp, 0xc
lea ebx, [ebx + eax*2 + 2]
call fcn.6d52b87d
mov dword [ebp - 0x928], eax
test eax, eax
je 0x6d52bef4
push eax
push ebx
call edi
push dword [ebp - 0x928]
call dword [sym.imp.msvcrt.dll_free]
add esp, 0xc
jmp 0x6d52befe
push 0x6d5137b0
push ebx
call edi
pop ecx
pop ecx
push ebx
call esi
pop ecx
lea eax, [eax + eax + 4]
lea ecx, [ebp - 0x920]
sub eax, ecx
add eax, ebx
mov dword [ebp - 0xf4], eax
push 0
lea ecx, [ebp - 0x118]
push ecx
push eax
lea eax, [ebp - 0x920]
push eax
push dword [ebp - 0xf0]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
test eax, eax
je 0x6d52bfae
mov dword [ebp - 0xec], 0x52455355
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xa0]
shl eax, 0x10
mov ecx, dword [ebp - 0xa4]
and ecx, 0xffff
or eax, ecx
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], 0x14c
mov dword [ebp - 0xe8], 0x504d5544
xor edi, edi
push edi
push edi
push edi
push dword [ebp - 0xf0]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x118]
push eax
push 0x40
lea eax, [ebp - 0xec]
push eax
push dword [ebp - 0xf0]
call esi
test eax, eax
jne 0x6d52bfd4
xor esi, esi
cmp dword [ebp + 8], esi
je 0x6d52bfc1
push dword [ebp - 0xf0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
call fcn.6d536aa5
ret 0xc
cmp dword [ebp + 8], 0
je 0x6d52bfe6
push dword [ebp - 0xf0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x6d52bfcc