joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421420
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
push edi
push 0x20
push 0x5f7dc0
push eax
xor edi, edi
call fcn.005bc918
mov ebx, eax
add esp, 0xc
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x42154d
push esi
push 0x1040
call fcn.004a8048
mov esi, eax
add esp, 4
test esi, esi
je 0x421543
mov dword [ebp - 0x1c], 0x67452301
mov dword [ebp - 0x18], 0xefcdab89
mov dword [ebp - 0x14], 0x98badcfe
mov dword [ebp - 0x10], 0x10325476
jmp 0x421486
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 8]
push ebx
push 0x1000
push 1
push esi
call fcn.005bc8fb
mov ecx, eax
add edi, ecx
add esp, 0x10
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edi
cmp ecx, 0x1000
jne 0x4214ad
mov ebx, eax
jmp 0x4214e3
lea eax, [ecx + 1]
mov edx, eax
and edx, 0x3f
mov byte [ecx + esi], 0x80
cmp dl, 0x38
je 0x4214cf
mov edi, edi
mov byte [eax + esi], 0
inc eax
mov edx, eax
and edx, 0x3f
cmp dl, 0x38
jne 0x4214c0
lea edx, [edi*8]
shr edi, 0x1d
mov dword [eax + esi], edx
mov dword [eax + esi + 4], edi
lea ebx, [eax + 8]
xor edi, edi
test ebx, ebx
je 0x421505
lea esp, [esp]
lea ecx, [edi + esi]
lea eax, [ebp - 0x1c]
call fcn.00420710
add edi, 0x40
cmp edi, ebx
jb 0x4214f0
mov ecx, dword [ebp - 0xc]
cmp ecx, 0x1000
je 0x421480
push esi
call fcn.004a803d
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
add esp, 4
cmp eax, ecx
je 0x42153b
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [eax], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ebx, dword [ebp - 4]
mov edi, 1
push ebx
call fcn.005bcc87
add esp, 4
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422b70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dc4bb
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x66c0e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x422bb6
or eax, 0xffffffff
jmp 0x422d0a
push 0
call fcn.00484bc0
add esp, 4
test eax, eax
jns 0x422bce
mov eax, 0xfffffffe
jmp 0x422d0a
lea ecx, [ebp - 0x94]
call fcn.00422a20
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi]
lea edx, [ebp - 0x8c]
push edx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x34
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.005bb320
lea ecx, [ebp - 0x44]
push esi
push ecx
call fcn.00422690
mov ecx, dword [esi + 0x28]
add esp, 0x14
test ecx, ecx
je 0x422c4d
mov eax, dword [esi + 0x24]
cdq
idiv ecx
cmp eax, 0x18
jle 0x422c42
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], 1
jmp 0x422c4d
mov edx, dword [esi + 0x24]
mov eax, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
cmp ecx, 0x140
jb 0x422c74
cmp eax, 0x140000
jle 0x422ca2
mov dword [ebp - 0x28], 0x100000
jmp 0x422ca2
cmp ecx, 0x100
jb 0x422c8c
cmp eax, 0x1c0000
jle 0x422ca2
mov dword [ebp - 0x28], 0x180000
jmp 0x422ca2
cmp ecx, 0x80
jb 0x422ca2
cmp eax, 0x280000
jle 0x422ca2
mov dword [ebp - 0x28], 0x200000
mov esi, dword [esi + 0x30]
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x94]
push esi
push edi
mov dword [ebp - 0x2c], 0x15001
mov dword [ebp - 0x30], 0xd
mov dword [ebp - 0x18], 0x422af0
mov dword [ebp - 0x14], edx
call fcn.00484ad0
xor ecx, ecx
add esp, 0xc
test eax, eax
setns cl
mov esi, ecx
call fcn.00484a70
lea edx, [ebp - 0x8c]
push edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x94], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [ebp - 0x94]
call fcn.004ca6ec
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bb30e
mov esp, ebp
pop ebp
ret
Function at 0x423d30
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dc668
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], 0
test esi, esi
jne 0x423d89
cmp dword [ebx], 0
mov esi, dword [ebx + 4]
jne 0x423d89
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [esi], 0
je 0x423ef9
mov eax, dword [ebx + 4]
push esi
push eax
call fcn.005bc263
add esp, 8
test eax, eax
je 0x423dbb
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423da8
sub eax, edx
push eax
push esi
lea ecx, [ebx + 4]
call fcn.00406350
mov ebx, dword [ebx + 0x10]
xor edi, edi
cmp ebx, edi
jle 0x423edd
lea ecx, [ebp - 0x30]
call fcn.004c0de6
push edi
push 0x5021
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], edi
call fcn.004c0cc4
test eax, eax
je 0x423ec7
call fcn.004b5c24
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x423e04
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 8], eax
xor esi, esi
mov byte [ebp - 4], 1
cmp ebx, edi
jle 0x423e95
lea ecx, [ecx]
test esi, esi
js 0x423ed8
mov eax, dword [ebp - 0x10]
cmp esi, dword [eax + 0x10]
jge 0x423ed8
mov ecx, dword [eax + 0xc]
lea edx, [ebp + 8]
add ecx, edi
push edx
call fcn.00423730
test eax, eax
jle 0x423e8d
push 0x5fa3fc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040c560
add esp, 0xc
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004c0ec1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x423e8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
add edi, 0x58
cmp esi, ebx
jl 0x423e20
lea ecx, [ebp - 0x30]
call fcn.004c1085
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423ec7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.004c10c3
jmp 0x423ef6
call fcn.004a815b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x423ef6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x14], 1
mov ebx, dword [ebp - 0x10]
mov dword [ebx], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x424750
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dc738
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
lea ebx, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42485c
mov eax, dword [esi + 0x30]
lea edi, [esi + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42485c
lea ecx, [ebp - 0x68]
call fcn.00422e60
push ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 0
call fcn.00406510
mov eax, dword [ebx]
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x60]
push edx
push eax
call fcn.0041aea0
mov ebx, dword [ebx]
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.00421420
mov ecx, dword [esi + 0x18]
add esp, 0x14
mov dword [ebp - 0x40], ecx
push edi
lea ecx, [ebp - 0x3c]
call fcn.00406510
mov eax, dword [edi]
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.0041aea0
mov edi, dword [edi]
lea edx, [ebp - 0x28]
push edi
push edx
call fcn.00421420
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebx + 0x10]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
add esp, 0x14
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
test edi, edi
jns 0x424828
call fcn.004a815b
push 0xffffffffffffffff
lea edx, [edi + 1]
push edx
lea ecx, [ebx + 8]
call fcn.00422f80
mov ecx, edi
imul ecx, ecx, 0x58
add ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x68]
push eax
call fcn.00423890
lea ecx, [ebp - 0x68]
mov dword [ebx], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00422e10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x429610
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea ecx, [esi + 4]
mov dword [esi + 0x20], edi
call fcn.004c3db3
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
test eax, eax
je 0x429687
cmp byte [eax], 0
je 0x429687
push str..gif
push eax
call fcn.0044f9a0
add esp, 8
test al, al
je 0x429687
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x429687
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
push 3
push ebx
mov ecx, esi
call fcn.00428990
test eax, eax
je 0x429687
lea eax, [esi + 0x24]
mov dword [esi + 0x60], eax
lea eax, [edi + 4]
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x42bc60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dcc38
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004b5c24
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42bca6
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov dword [esi + 0x20], edi
call fcn.004c3db3
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
mov edi, eax
test edi, edi
je 0x42bd3b
cmp byte [edi], 0
je 0x42bd3b
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42bd3b
push edi
call fcn.0041b2e0
add esp, 4
test eax, eax
je 0x42bd3b
lea ecx, [ebp - 0x10]
cmp eax, 3
jne 0x42bd07
push ecx
push ebx
call fcn.0041da90
add esp, 8
jmp 0x42bd0d
push ebx
call fcn.00415540
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x10]
push ecx
push edx
push 3
push eax
mov ecx, esi
call fcn.00428bb0
test eax, eax
je 0x42bd3b
lea eax, [esi + 0x24]
mov dword [esi + 0x60], eax
mov esi, 4
jmp 0x42bd3e
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bd64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x42c640
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
call fcn.004c3db3
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
test eax, eax
je 0x42c6c8
cmp byte [eax], 0
je 0x42c6c8
push 0x5fa974
push eax
call fcn.0044f9a0
add esp, 8
test al, al
je 0x42c6c8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42c6c8
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
push ebx
push eax
push ecx
mov ecx, esi
call fcn.0042b8e0
test eax, eax
je 0x42c6c8
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push edx
push edi
push eax
push ebx
push ecx
push 3
mov ecx, esi
call fcn.004299b0
test eax, eax
je 0x42c6c8
lea eax, [esi + 0x24]
pop edi
mov dword [esi + 0x60], eax
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x18
Function at 0x42d630
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
lea ecx, [esi + 4]
mov dword [ebp - 4], eax
mov dword [esi + 0x20], eax
call fcn.004c3db3
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
mov edi, eax
test edi, edi
je 0x42d6eb
cmp byte [edi], 0
je 0x42d6eb
push str..doc_.rtf_.xls
push edi
call fcn.0044f9a0
add esp, 8
test al, al
je 0x42d6eb
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42d6eb
push str..rtf
push edi
call fcn.005bcdf4
add esp, 8
test eax, eax
jne 0x42d6c0
mov ecx, dword [esi + 0x64]
push ebx
call fcn.0048e310
test eax, eax
je 0x42d6eb
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push 0
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
push 3
push ebx
mov ecx, esi
call fcn.00427ff0
jmp 0x42d6da
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
push 3
push ebx
mov ecx, esi
call fcn.0042c430
test eax, eax
je 0x42d6eb
lea eax, [esi + 0x24]
mov dword [ebp - 4], 1
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x42dbe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dcde8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004b5c24
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42dc22
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x18]
push esi
push ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0xd], 0
call fcn.0042a3d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00406510
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42dc80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
je 0x42dd99
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42dcaa
push esi
push ebx
call fcn.0041a6a0
add esp, 8
test al, al
je 0x42dd99
cmp edi, 1
jne 0x42dcf2
lea ecx, [ebp - 0x3c]
call fcn.004916a0
mov byte [ebp - 4], 2
cmp dword [ebx - 4], edi
jle 0x42dccf
mov ecx, dword [ebx - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00405c00
mov ebx, dword [ebp - 0x14]
push esi
push ebx
lea ecx, [ebp - 0x3c]
call fcn.00491420
test al, al
je 0x42dce1
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.004913b0
jmp 0x42dd99
lea ecx, [ebp - 0x70]
call fcn.004048d0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004a7de0
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
mov byte [ebp - 4], 4
call fcn.00406c70
lea ecx, [ebp - 0x2c]
call fcn.004a7e20
test al, al
je 0x42dd85
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004a7c20
mov edi, dword [eax + 4]
mov esi, dword [eax]
push 0
push 0
push edi
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.0041ced0
push 0
push edi
push esi
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.004274d0
add esp, 0x28
test eax, eax
je 0x42dd85
cmp dword [ebx - 4], 1
jle 0x42dd6f
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.00405c00
mov ebx, dword [ebp - 0x14]
push 0x63b2c0
push ebx
lea ecx, [ebp - 0x70]
call fcn.0042d970
test eax, eax
jne 0x42dd85
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004a7df0
lea ecx, [ebp - 0x70]
call fcn.00404d00
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ddbc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42dde0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dce28
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
or eax, 0xffffffff
push 0x676b78
mov dword [ebp - 0x40], vtable.ATL::CImage.0
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x24], bx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x676b90]
push 0x676b78
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esi + 4]
mov dword [ebp - 4], ebx
call fcn.004c3db3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
cmp eax, ebx
je 0x42df82
cmp byte [eax], bl
je 0x42df82
push str..bmp_.jpg_.gif_.png_.tif
push eax
call fcn.0044f9a0
add esp, 8
test al, al
je 0x42df82
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42df82
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [esi + 0x28], eax
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x40], ecx
lea edi, [esi + 0x24]
push eax
lea ecx, [ebp - 0x40]
mov dword [esi + 0x60], ebx
mov dword [edi], edx
call fcn.00422230
cmp byte [ebp + 0x20], bl
je 0x42df4a
cmp dword [ebp - 0x28], 8
jle 0x42df4a
lea ecx, [ebp + 0x20]
call fcn.00406050
push str.___P809.gif
lea ecx, [ebp + 8]
push ecx
mov ecx, 0x66d9e8
mov byte [ebp - 4], 1
call fcn.0043f620
push eax
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 2
call fcn.00406510
lea ecx, [ebp + 8]
call fcn.004273a0
mov edx, dword [ebp + 0x20]
push 0x63b2c0
push edx
lea ecx, [ebp - 0x40]
call fcn.0042d970
test eax, eax
jne 0x42df3f
lea ecx, [ebp - 0x40]
call fcn.00404b80
mov eax, dword [ebp + 0x20]
push eax
lea ecx, [ebp - 0x40]
call fcn.00422230
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], bl
call fcn.004273a0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push edx
push eax
mov ecx, edi
call fcn.00427dd0
test eax, eax
je 0x42df76
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push ecx
mov ecx, dword [edi + 0xc]
push edx
lea eax, [ebp - 0x40]
push eax
push ecx
call fcn.004278b0
add esp, 0x10
or dword [esi + 0x4c], 2
mov dword [esi + 0x60], edi
mov ebx, 1
lea ecx, [ebp - 0x40]
call fcn.00404d00
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x42ec40
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x66d5b0]
push esi
push edi
mov esi, ecx
lea edi, [esi + 4]
push edi
mov dword [esi], eax
inc dword [0x66d5b0]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x104
lea ecx, [esi + 0x108]
push edi
push ecx
call fcn.005bc9f0
add esp, 0xc
pop edi
mov eax, esi
pop esi
ret

Function at 0x42ec80
Capabilities:
Set current directory

Disassembly:
dec dword [0x66d5b0]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
ret

Function at 0x42eca0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dce58
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi], 0
jne 0x42ed78
mov esi, dword [ebp + 8]
push esi
lea ecx, [ebp + 8]
call fcn.00406c70
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x42ed52
mov esi, dword [ebp + 8]
cmp dword [esi - 4], 1
jle 0x42ed05
mov eax, dword [esi - 0xc]
push eax
lea ecx, [ebp + 8]
call fcn.00405c00
mov esi, dword [ebp + 8]
lea edx, [edi + 0x108]
mov eax, esi
sub edx, esi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42ed10
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ed3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ed78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4