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

Disassembly:
push 0xffffffffffffffff
push 0x10040d38
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10050fc0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
xor esi, esi
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x10131e40], esi
jne 0x10007ccc
or ebp, 0xffffffff
jmp 0x10007fb1
mov ecx, dword [esp + 0x3c]
push esi
push esi
mov ebx, 2
push ebx
push esi
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or ebp, 0xffffffff
cmp edi, ebp
jne 0x10007d08
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov dword [esp + 0x34], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
jmp 0x10007fc4
mov esi, dword [0x10131e38]
test esi, esi
je 0x10007e53
mov eax, esi
mov esi, dword [esi]
add eax, 8
push eax
lea ecx, [esp + 0x28]
call fcn.10005ab0
mov ecx, dword [esp + 0x28]
push 0x100439f4
push ecx
mov byte [esp + 0x3c], 1
call fcn.10029339
add esp, 8
test eax, eax
sete al
test al, al
je 0x10007e08
push 0x10043808
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.10007050
lea ecx, [esp + 0x34]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x4c], bl
call fcn.10006f90
push 0x100439f0
push eax
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x58], 3
call fcn.10007050
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0x24
mov byte [esp + 0x34], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007dae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x34], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007dd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007e08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007e2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007e4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x10007d16
mov esi, dword [0x10131e38]
test esi, esi
je 0x10007fa0
mov bl, 5
mov eax, esi
mov esi, dword [esi]
add eax, 8
push eax
lea ecx, [esp + 0x28]
call fcn.10005ab0
mov ecx, dword [esp + 0x28]
push 0x100439ec
push ecx
mov byte [esp + 0x3c], 4
call fcn.10029339
add esp, 8
test eax, eax
sete al
test al, al
je 0x10007f55
push 0x10043808
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.10007050
lea ecx, [esp + 0x34]
push ecx
push eax
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x4c], bl
call fcn.10006f90
push 0x100439f0
push eax
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x58], 6
call fcn.10007050
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
add esp, 0x24
mov byte [esp + 0x34], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007efb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x34], 4
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007f1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007f55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007f79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007f98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x10007e63
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x10131e34
call fcn.100068c0
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov dword [esp + 0x34], ebp
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x10007fd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4