Function at 0x100052e0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057a28
mov eax, dword fs:[0]
push eax
sub esp, 0x5a8
mov eax, dword [0x100754f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x588], ebx
xor esi, esi
mov dword [ebp - 0x580], esi
cmp dword [0x10077020], esi
jne 0x1000534b
push 4
call fcn.10033b5a
add esp, 4
mov dword [ebp - 0x584], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x10005344
mov ecx, eax
call fcn.1001ba20
mov dword [ebp - 4], 0xffffffff
mov eax, 0x208
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push 0
push eax
call fcn.100365a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x10077018]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10005620
xor eax, eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100053b3
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.10006ee0
push 0
push 0
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 1
push 0x1005b4f8
push eax
call fcn.10016360
push str..dll_d_
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10001160
add esp, 0x1c
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x578]
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10005578
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test byte [ebp - 0x578], 0x10
jne 0x10005559
xor eax, eax
mov byte [ebp - 4], 3
or esi, 2
mov dword [ebp - 0x250], 0
lea ecx, [ebp - 0x54c]
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
lea edx, [ecx + 2]
mov dword [ebp - 0x580], esi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005483
mov eax, dword [ebp - 0x238]
sub ecx, edx
sar ecx, 1
add eax, ecx
lea ecx, [ebp - 0x260]
push eax
call fcn.10007f10
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x260]
push eax
call fcn.10006c70
lea ecx, [ebp - 0x54c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100054d5
sub ecx, edx
lea eax, [ebp - 0x54c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.10006c70
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x24c]
and esi, 0xfffffffd
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x10005559
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000554f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005f0e
push edx
push ecx
call fcn.10033b8a
add esp, 8
lea eax, [ebp - 0x578]
push eax
push edi
call ebx
test eax, eax
jne 0x10005443
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x588]
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x100055bc
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100055b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005f0e
push edx
push ecx
call fcn.10033b8a
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x10005620
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10005616
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005f13
push edx
push ecx
call fcn.10033b8a
add esp, 8
mov ecx, dword [ebx + 8]
call fcn.10022d20
mov eax, dword [ebx + 8]
lea edx, [ebx + 0x10]
lea ecx, [eax + 0x1e8]
cmp ecx, edx
je 0x1000564e
cmp dword [edx + 0x14], 0x10
mov eax, edx
jb 0x10005642
mov eax, dword [edx]
push dword [edx + 0x10]
push eax
call fcn.10006df0
mov eax, dword [ebx + 8]
cmp dword [eax + 0x20c], 0
jne 0x10005ef0
cmp dword [eax + 0x210], 0
jne 0x10005ef0
cmp dword [eax + 0x214], 0
jne 0x10005ef0
cmp dword [eax + 0x22c], 0
jne 0x10005ef0
lea ecx, [ebp - 0x2d8]
call fcn.10003cb0
lea eax, [ebp - 0x2a0]
mov dword [ebp - 4], 4
push 0
lea ecx, [ebp - 0x298]
mov dword [ebp - method.CAPIModule::apibase.virtual_0], 0x1005b594
mov dword [ebp - 0x584], eax
mov byte [ebp - 0x2a0], 0
call fcn.100295a0
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 5
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
call fcn.10005f50
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 0
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 6
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0
call fcn.10005f50
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x2d8]
push eax
mov dword [ebp - 4], 7
call fcn.1001bad0
test al, al
je 0x10005e3c
cmp dword [ebp - 0x2d4], 0
jne 0x10005e3c
xor eax, eax
cmp byte [ebp - 0x2a0], al
setne al
push eax
push str.openaddin
push dword [0x10075010]
push SysReAllocString
call fcn.10015b70
add esp, 0x10
lea ecx, [ebp - 0x298]
call fcn.1002b790
test al, al
je 0x10005e3c
lea eax, [ebp - 0x5a0]
push eax
lea ecx, [ebp - 0x298]
call fcn.1002afb0
lea eax, [ebp - 0x598]
push eax
lea ecx, [ebp - 0x298]
call fcn.1002b1f0
lea eax, [ebp - 0x598]
push eax
lea ecx, [ebp - 0x5a0]
call fcn.1002b7a0
test al, al
jne 0x10005939
nop dword [eax + eax]
lea ecx, [ebp - 0x5a0]
call fcn.1002b030
push eax
lea ecx, [ebp - 0x230]
call fcn.10029200
push str.type
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 8
call fcn.1002b880
test al, al
je 0x10005905
push 0x1005b71c
lea ecx, [ebp - 0x230]
call fcn.1002b880
test al, al
je 0x10005905
push str.type
lea ecx, [ebp - 0x230]
call fcn.10029cf0
mov ecx, eax
call fcn.1002a720
push 0x1005b71c
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x584], eax
call fcn.10029cf0
mov ecx, eax
call fcn.1002a720
lea edi, [ebx + 0x30]
mov dword [ebp - 0x580], eax
push edi
mov dword [ebp - 0x5a4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebx + 0x48]
mov esi, edx
mov byte [ebp - 4], 9
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100058ad
mov ecx, dword [ebp - 0x580]
nop dword [eax]
cmp dword [eax + 0x10], ecx
jge 0x1000589a
mov eax, dword [eax + 8]
jmp 0x1000589e
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10005890
cmp esi, edx
je 0x100058ad
cmp ecx, dword [esi + 0x10]
jge 0x100058ef
lea eax, [ebp - 0x580]
mov dword [ebp - 0x57c], eax
lea ecx, [ebx + 0x48]
lea eax, [ebp - 0x589]
push eax
lea eax, [ebp - 0x57c]
push eax
push 0x1005b4f6
call fcn.10001220
push eax
add eax, 0x10
lea ecx, [ebx + 0x48]
push eax
push esi
lea eax, [ebp - 0x590]
push eax
call fcn.10001980
mov esi, dword [ebp - 0x590]
mov eax, dword [ebp - 0x584]
push edi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp - 0x588]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 7
call fcn.10029830
lea ecx, [ebp - 0x5a0]
call fcn.1002b780
lea eax, [ebp - 0x598]
push eax
lea ecx, [ebp - 0x5a0]
call fcn.1002b7a0
test al, al
je 0x100057e0
lea eax, [ebp - 0x598]
push eax
lea ecx, [ebp - 0x298]
call fcn.1002afb0
lea eax, [ebp - 0x5ac]
push eax
lea ecx, [ebp - 0x298]
call fcn.1002b1f0
lea eax, [ebp - 0x5ac]
push eax
lea ecx, [ebp - 0x598]
call fcn.1002b7a0
test al, al
jne 0x10005e3c
nop word [eax + eax]
lea ecx, [ebp - 0x598]
call fcn.1002b030
push eax
lea ecx, [ebp - 0x230]
call fcn.10029200
push str.type
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xa
call fcn.1002b880
test al, al
je case.0x10005a0b.4
push 0x1005b71c
lea ecx, [ebp - 0x230]
call fcn.1002b880
test al, al
je case.0x10005a0b.4
push str.type
lea ecx, [ebp - 0x230]
call fcn.10029cf0
mov ecx, eax
call fcn.1002a720
push 0x1005b71c
lea ecx, [ebp - 0x230]
lea esi, [eax - 1]
call fcn.10029cf0
mov ecx, eax
call fcn.1002a720
mov dword [ebp - 0x57c], eax
cmp esi, 4
ja case.0x10005a0b.4
jmp dword [esi*4 + 0x10005f18]
push 0xac
call fcn.10033b5a
mov ebx, eax
add esp, 4
mov dword [ebp - 0x5a4], ebx
mov byte [ebp - 4], 0xb
test ebx, ebx
je 0x10005c8e
push 0xac
push 0
push ebx
call fcn.100365a0
add esp, 0xc
mov ecx, ebx
call fcn.10003870
mov dword [ebx], vtable.CTaskUpdateAddin.0
mov byte [ebx + 0x80], 0
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x98], 0xf
mov byte [ebx + 0x84], 0
lea esi, [ebx + 0x9c]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x584], esi
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10005f50
mov dword [esi], eax
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa8], 0
jmp 0x10005c90
push 0x50
call fcn.10033b5a
mov ebx, eax
add esp, 4
mov dword [ebp - 0x590], ebx
mov byte [ebp - 4], 0xe
test ebx, ebx
je 0x10005c8e
push 0x50
push 0
push ebx
call fcn.100365a0
add esp, 0xc
mov ecx, ebx
call fcn.100037c0
lea esi, [ebx + 0x40]
mov dword [ebx], vtable.CTaskRemoveSelf.0
mov byte [ebx + 0x3c], 0
mov ecx, esi
mov dword [ebp - 0x584], esi
mov byte [ebp - 4], 0xf
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10005f50
mov dword [esi], eax
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
jmp 0x10005c90
push 0xc4
call fcn.10033b5a
mov ebx, eax
add esp, 4
mov dword [ebp - 0x5b0], ebx
mov byte [ebp - 4], 0x10
test ebx, ebx
je 0x10005c8e
push 0xc4
push 0
push ebx
call fcn.100365a0
add esp, 0xc
mov ecx, ebx
call fcn.10003870
mov dword [ebx], vtable.CTaskRunExe.0
xor eax, eax
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 7
mov word [ebx + 0x80], ax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], 7
mov word [ebx + 0x98], ax
lea esi, [ebx + 0xb4]
mov byte [ebx + 0xb0], al
mov dword [ebp - 0x584], esi
mov ecx, esi
mov byte [ebp - 4], 0x13
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.10005f50
mov dword [esi], eax
mov dword [ebx + 0xbc], 0
mov dword [ebx + 0xc0], 0
jmp 0x10005c90
push 0xd8
call fcn.10033b5a
mov ebx, eax
add esp, 4
mov dword [ebp - 0x5b4], ebx
mov byte [ebp - 4], 0x14
test ebx, ebx
je 0x10005c8e
push 0xd8
push 0
push ebx
call fcn.100365a0
add esp, 0xc
mov ecx, ebx
call fcn.10003870
mov dword [ebx], vtable.CTaskInstallOfficeAidByDll.0
xor eax, eax
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 7
mov word [ebx + 0x80], ax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], 7
mov word [ebx + 0x98], ax
mov dword [ebx + 0xc0], eax
mov dword [ebx + 0xc4], 0xf
mov byte [ebx + 0xb0], al
lea esi, [ebx + 0xc8]
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x584], esi
mov ecx, esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.10005f50
mov dword [esi], eax
mov dword [ebx + 0xd0], 0
mov dword [ebx + 0xd4], 0
jmp 0x10005c90
xor ebx, ebx
mov byte [ebp - 4], 0xa
test ebx, ebx
je case.0x10005a0b.4
mov eax, dword [ebx]
lea ecx, [ebp - 0x230]
push ecx
mov ecx, ebx
call dword [eax]
mov esi, dword [0x10077020]
mov edi, eax
test esi, esi
je 0x10005df6
lea ecx, [ebp - 0x328]
call fcn.10003c10
mov eax, dword [ebx]
mov ecx, ebx
mov byte [ebp - 4], 0x19
call dword [eax + 0xc]
mov dword [ebp - 0x2f4], eax
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x10]
mov dword [ebp - 0x2f0], eax
cmp eax, 5
jne 0x10005d46
test edi, edi
jne 0x10005d06
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov dword [ebp - 0x2ec], eax
lea eax, [ebp - 0x328]
mov ecx, esi
push eax
call fcn.1001baf0
mov edi, dword [ebp - 0x588]
lea esi, [edi + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi + 0x48]
mov edi, edx
mov dword [ebp - 0x580], edx
mov ecx, dword [edx + 4]
mov eax, ecx
cmp byte [eax + 0xd], 0
jne 0x10005d75
nop dword [eax]
mov edx, dword [eax + 0x10]
cmp edx, dword [ebp - 0x57c]
jge 0x10005d56
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x580]
jmp 0x10005d6f
test edi, edi
je 0x10005ceb
mov dword [ebp - 0x2ec], 0
jmp 0x10005cf8
cmp byte [edi + 0xd], 0
je 0x10005d65
cmp dword [ebp - 0x57c], edx
cmovl edi, eax
mov edx, eax
mov eax, dword [eax]
mov dword [ebp - 0x580], edx
cmp byte [eax + 0xd], 0
je 0x10005d30
cmp byte [edi + 0xd], 0
jne 0x10005d7d
mov ecx, dword [edi]
cmp byte [ecx + 0xd], 0
jne 0x10005da4
mov eax, dword [ebp - 0x57c]
nop dword [eax]
cmp eax, dword [ecx + 0x10]
jge 0x10005d9b
mov edi, ecx
mov ecx, dword [ecx]
jmp 0x10005d9e
mov ecx, dword [ecx + 8]
cmp byte [ecx + 0xd], 0
je 0x10005d90
mov dword [ebp - 0x57c], edx
cmp edx, edi
je 0x10005dc9
nop
lea ecx, [ebp - 0x57c]
call fcn.100046d0
cmp dword [ebp - 0x57c], edi
jne 0x10005db0
mov edx, dword [ebp - 0x580]
mov ecx, dword [ebp - 0x588]
lea eax, [ebp - 0x59c]
push edi
push edx
push eax
lea ecx, [ecx + 0x48]
call fcn.10007300
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x328]
mov byte [ebp - 4], 0xa
call fcn.100044f0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
push 4
push ebx
call fcn.10033b8a
add esp, 8
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 7
call fcn.10029830
lea ecx, [ebp - 0x598]
call fcn.1002b780
lea eax, [ebp - 0x5ac]
push eax
lea ecx, [ebp - 0x598]
call fcn.1002b7a0
test al, al
je 0x10005980
mov esi, dword [ebp - 0x270]
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], 0x1a
push dword [esi + 4]
call fcn.10006120
mov eax, dword [ebp - 0x270]
push 0x28
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x270]
mov dword [eax], esi
mov eax, dword [ebp - 0x270]
mov dword [eax + 8], esi
push dword [ebp - 0x270]
mov dword [ebp - 0x26c], 0
call fcn.10033b8a
add esp, 8
mov esi, dword [ebp - 0x280]
lea ecx, [ebp - 0x280]
mov dword [ebp - 4], 0x1b
push dword [esi + 4]
call fcn.10006120
mov eax, dword [ebp - 0x280]
push 0x28
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x280]
mov dword [eax], esi
mov eax, dword [ebp - 0x280]
mov dword [eax + 8], esi
push dword [ebp - 0x280]
mov dword [ebp - 0x27c], 0
call fcn.10033b8a
add esp, 8
lea ecx, [ebp - 0x298]
call fcn.10029830
lea ecx, [ebp - 0x2d8]
call fcn.10004570
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10033ba6
mov esp, ebp
pop ebp
ret
call fcn.100392dc
call fcn.100392dc
adc bl, byte [edx]
adc byte [ecx + 588251226], dh
pop ebx
add byte [eax], dl
or byte [esi], bl
adc dl, dl
pop ebx
add byte [eax], dl
int3