Function at 0x10005320
Capabilities:
Delete file
Enumerate files on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058508
mov eax, dword fs:[0]
push eax
sub esp, 0x5a8
mov eax, dword [0x100764f8]
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
push str._OfficeTeamAddin__WorkProc_Beg
mov dword [ebp - 0x580], esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x10078020], esi
jne 0x10005396
push 4
call fcn.1003462a
add esp, 4
mov dword [ebp - 0x584], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x1000538f
mov ecx, eax
call fcn.1001c630
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.10037070
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x10078018]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1000566d
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]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005400
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.10006f50
push 0
push 0
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 1
push 0x1005c4a0
push eax
call fcn.100170b0
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 0x100055c5
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test byte [ebp - 0x578], 0x10
jne 0x100055a6
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 0x100054d0
mov eax, dword [ebp - 0x238]
sub ecx, edx
sar ecx, 1
add eax, ecx
lea ecx, [ebp - 0x260]
push eax
call fcn.10007f80
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.10006ce0
lea ecx, [ebp - 0x54c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005522
sub ecx, edx
lea eax, [ebp - 0x54c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.10006ce0
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 0x100055a6
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000559c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005f59
push edx
push ecx
call fcn.1003465a
add esp, 8
lea eax, [ebp - 0x578]
push eax
push edi
call ebx
test eax, eax
jne 0x10005490
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 0x10005609
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100055ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005f59
push edx
push ecx
call fcn.1003465a
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 0x1000566d
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10005663
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005f5e
push edx
push ecx
call fcn.1003465a
add esp, 8
mov ecx, dword [ebx + 8]
call fcn.10023820
mov eax, dword [ebx + 8]
lea edx, [ebx + 0x10]
lea ecx, [eax + 0x1d0]
cmp ecx, edx
je 0x1000569b
cmp dword [edx + 0x14], 0x10
mov eax, edx
jb 0x1000568f
mov eax, dword [edx]
push dword [edx + 0x10]
push eax
call fcn.10006e60
mov eax, dword [ebx + 8]
cmp dword [eax + 0x1f4], 0
jne 0x10005f3b
cmp dword [eax + 0x1f8], 0
jne 0x10005f3b
cmp dword [eax + 0x1fc], 0
jne 0x10005f3b
cmp dword [eax + 0x214], 0
jne 0x10005f3b
lea ecx, [ebp - 0x2d8]
call fcn.10003ce0
lea eax, [ebp - 0x2a0]
mov dword [ebp - 4], 4
push 0
lea ecx, [ebp - 0x298]
mov dword [ebp - method.CAPIModule::apibase.virtual_0], 0x1005c53c
mov dword [ebp - 0x584], eax
mov byte [ebp - 0x2a0], 0
call fcn.1002a070
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 5
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
call fcn.10005fa0
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.10005fa0
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.1001c700
test al, al
je 0x10005e7c
cmp dword [ebp - 0x2d4], 0
jne 0x10005e7c
xor eax, eax
cmp byte [ebp - 0x2a0], al
setne al
push eax
push str.openaddin
push dword [0x10076010]
push SysReAllocString
call fcn.100168c0
add esp, 0x10
lea ecx, [ebp - 0x298]
call fcn.1002c260
test al, al
je 0x10005e7c
lea eax, [ebp - 0x5a0]
push eax
lea ecx, [ebp - 0x298]
call fcn.1002ba80
lea eax, [ebp - 0x598]
push eax
lea ecx, [ebp - 0x298]
call fcn.1002bcc0
lea eax, [ebp - 0x598]
push eax
lea ecx, [ebp - 0x5a0]
call fcn.1002c270
test al, al
jne 0x1000597b
lea ecx, [ebp - 0x5a0]
call fcn.1002bb00
push eax
lea ecx, [ebp - 0x230]
call fcn.10029cd0
push str.type
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 8
call fcn.1002c350
test al, al
je 0x10005947
push 0x1005c7c4
lea ecx, [ebp - 0x230]
call fcn.1002c350
test al, al
je 0x10005947
push str.type
lea ecx, [ebp - 0x230]
call fcn.1002a7c0
mov ecx, eax
call fcn.1002b1f0
push 0x1005c7c4
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x584], eax
call fcn.1002a7c0
mov ecx, eax
call fcn.1002b1f0
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 0x100058ef
mov ecx, dword [ebp - 0x580]
cmp dword [eax + 0x10], ecx
jge 0x100058dc
mov eax, dword [eax + 8]
jmp 0x100058e0
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x100058d2
cmp esi, edx
je 0x100058ef
cmp ecx, dword [esi + 0x10]
jge 0x10005931
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 0x1005c49c
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.1002a300
lea ecx, [ebp - 0x5a0]
call fcn.1002c250
lea eax, [ebp - 0x598]
push eax
lea ecx, [ebp - 0x5a0]
call fcn.1002c270
test al, al
je 0x10005825
lea eax, [ebp - 0x598]
push eax
lea ecx, [ebp - 0x298]
call fcn.1002ba80
lea eax, [ebp - 0x5ac]
push eax
lea ecx, [ebp - 0x298]
call fcn.1002bcc0
lea eax, [ebp - 0x5ac]
push eax
lea ecx, [ebp - 0x598]
call fcn.1002c270
test al, al
jne 0x10005e7c
nop dword [eax]
lea ecx, [ebp - 0x598]
call fcn.1002bb00
push eax
lea ecx, [ebp - 0x230]
call fcn.10029cd0
push str.type
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xa
call fcn.1002c350
test al, al
je case.0x10005a4b.4
push 0x1005c7c4
lea ecx, [ebp - 0x230]
call fcn.1002c350
test al, al
je case.0x10005a4b.4
push str.type
lea ecx, [ebp - 0x230]
call fcn.1002a7c0
mov ecx, eax
call fcn.1002b1f0
push 0x1005c7c4
lea ecx, [ebp - 0x230]
lea esi, [eax - 1]
call fcn.1002a7c0
mov ecx, eax
call fcn.1002b1f0
mov dword [ebp - 0x57c], eax
cmp esi, 4
ja case.0x10005a4b.4
jmp dword [esi*4 + 0x10005f64]
push 0xac
call fcn.1003462a
mov ebx, eax
add esp, 4
mov dword [ebp - 0x5a4], ebx
mov byte [ebp - 4], 0xb
test ebx, ebx
je 0x10005cce
push 0xac
push 0
push ebx
call fcn.10037070
add esp, 0xc
mov ecx, ebx
call fcn.100038a0
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.10005fa0
mov dword [esi], eax
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa8], 0
jmp 0x10005cd0
push 0x50
call fcn.1003462a
mov ebx, eax
add esp, 4
mov dword [ebp - 0x590], ebx
mov byte [ebp - 4], 0xe
test ebx, ebx
je 0x10005cce
push 0x50
push 0
push ebx
call fcn.10037070
add esp, 0xc
mov ecx, ebx
call fcn.100037f0
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.10005fa0
mov dword [esi], eax
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
jmp 0x10005cd0
push 0xc4
call fcn.1003462a
mov ebx, eax
add esp, 4
mov dword [ebp - 0x5b0], ebx
mov byte [ebp - 4], 0x10
test ebx, ebx
je 0x10005cce
push 0xc4
push 0
push ebx
call fcn.10037070
add esp, 0xc
mov ecx, ebx
call fcn.100038a0
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.10005fa0
mov dword [esi], eax
mov dword [ebx + 0xbc], 0
mov dword [ebx + 0xc0], 0
jmp 0x10005cd0
push 0xd8
call fcn.1003462a
mov ebx, eax
add esp, 4
mov dword [ebp - 0x5b4], ebx
mov byte [ebp - 4], 0x14
test ebx, ebx
je 0x10005cce
push 0xd8
push 0
push ebx
call fcn.10037070
add esp, 0xc
mov ecx, ebx
call fcn.100038a0
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.10005fa0
mov dword [esi], eax
mov dword [ebx + 0xd0], 0
mov dword [ebx + 0xd4], 0
jmp 0x10005cd0
xor ebx, ebx
mov byte [ebp - 4], 0xa
test ebx, ebx
je case.0x10005a4b.4
mov eax, dword [ebx]
lea ecx, [ebp - 0x230]
push ecx
mov ecx, ebx
call dword [eax]
mov esi, dword [0x10078020]
mov edi, eax
test esi, esi
je 0x10005e36
lea ecx, [ebp - 0x328]
call fcn.10003c40
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 0x10005d86
test edi, edi
jne 0x10005d46
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.1001c720
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 0x10005db5
nop dword [eax]
mov edx, dword [eax + 0x10]
cmp edx, dword [ebp - 0x57c]
jge 0x10005d96
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x580]
jmp 0x10005daf
test edi, edi
je 0x10005d2b
mov dword [ebp - 0x2ec], 0
jmp 0x10005d38
cmp byte [edi + 0xd], 0
je 0x10005da5
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 0x10005d70
cmp byte [edi + 0xd], 0
jne 0x10005dbd
mov ecx, dword [edi]
cmp byte [ecx + 0xd], 0
jne 0x10005de4
mov eax, dword [ebp - 0x57c]
nop dword [eax]
cmp eax, dword [ecx + 0x10]
jge 0x10005ddb
mov edi, ecx
mov ecx, dword [ecx]
jmp 0x10005dde
mov ecx, dword [ecx + 8]
cmp byte [ecx + 0xd], 0
je 0x10005dd0
mov dword [ebp - 0x57c], edx
cmp edx, edi
je 0x10005e09
nop
lea ecx, [ebp - 0x57c]
call fcn.10004700
cmp dword [ebp - 0x57c], edi
jne 0x10005df0
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.10007370
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x328]
mov byte [ebp - 4], 0xa
call fcn.10004520
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
push 4
push ebx
call fcn.1003465a
add esp, 8
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 7
call fcn.1002a300
lea ecx, [ebp - 0x598]
call fcn.1002c250
lea eax, [ebp - 0x5ac]
push eax
lea ecx, [ebp - 0x598]
call fcn.1002c270
test al, al
je 0x100059c0
push str._OfficeTeamAddin__WorkProc_End
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, dword [ebp - 0x270]
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], 0x1a
push dword [esi + 4]
call fcn.10006170
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.1003465a
add esp, 8
mov esi, dword [ebp - 0x280]
lea ecx, [ebp - 0x280]
mov dword [ebp - 4], 0x1b
push dword [esi + 4]
call fcn.10006170
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.1003465a
add esp, 8
lea ecx, [ebp - 0x298]
call fcn.1002a300
lea ecx, [ebp - 0x2d8]
call fcn.100045a0
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.10034676
mov esp, ebp
pop ebp
ret
call fcn.10039dac
call fcn.10039dac
nop
push edx
pop edx
add byte [eax], dl
int1
pop edx
add byte [eax], dl
arpl word [ebx], bx
adc byte [eax + 94], cl
add byte [eax], dl
adc bl, byte [eax + eax + 0x10]
int3