Function at 0x413cd0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x431b81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push ebp
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push 0x104
xor ebx, ebx
push eax
push ebx
call ebp
lea ecx, [esp + 0x34]
push 0x5c
push ecx
call fcn.0041bd80
mov byte [eax + 1], bl
mov edi, str.CapLogcapsrcdel.
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.0041ab80
lea eax, [esp + 0x34]
push ebx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x148], ebx
call fcn.0041ac43
test eax, eax
je 0x413e13
lea ecx, [esp + 0x18]
call fcn.0041ae63
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041b05b
mov edx, dword [esp + 0x10]
push 0x43cb34
push edx
mov byte [esp + 0x148], 1
call fcn.0041bda7
add esp, 8
test eax, eax
je 0x413dfb
mov eax, dword [esp + 0x10]
push 0x43cb30
push eax
call fcn.0041bda7
add esp, 8
test eax, eax
je 0x413dfb
mov ecx, dword [esp + 0x10]
push 0x441314
push ecx
call fcn.0041bda7
add esp, 8
test eax, eax
je 0x413dfb
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
call fcn.0041af32
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
call fcn.004288f2
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], bl
call fcn.004288f2
cmp esi, ebx
jne 0x413d78
lea ecx, [esp + 0x18]
call fcn.0041abf9
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x34]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
push eax
push ebx
call ebp
lea ecx, [esp + 0x34]
push 0x5c
push ecx
call fcn.0041bd80
mov byte [eax + 1], bl
mov edi, str.CapLogdel.
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x38]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.0041ac43
test eax, eax
je 0x413f28
lea ecx, [esp + 0x18]
call fcn.0041ae63
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041b05b
mov edx, dword [esp + 0x10]
push 0x43cb34
push edx
mov byte [esp + 0x148], 2
call fcn.0041bda7
add esp, 8
test eax, eax
je 0x413f10
mov eax, dword [esp + 0x10]
push 0x43cb30
push eax
call fcn.0041bda7
add esp, 8
test eax, eax
je 0x413f10
mov ecx, dword [esp + 0x10]
push 0x441314
push ecx
call fcn.0041bda7
add esp, 8
test eax, eax
je 0x413f10
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
call fcn.0041af32
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
call fcn.004288f2
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], bl
call fcn.004288f2
cmp esi, ebx
jne 0x413e8d
lea ecx, [esp + 0x18]
call fcn.0041abf9
lea ecx, [esp + 0x18]
mov dword [esp + 0x140], 0xffffffff
call fcn.0041abbd
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret