joyce8/EMBER2024-capa huggingface dataset:
Function at 0x535e34
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x535e3c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x53603d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
call fcn.00656518
mov ebx, eax
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00656834
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
lea eax, [ebp - 0x10]
call fcn.00403358
mov eax, ebx
call fcn.004028c0
mov eax, dword [0x674e38]
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0x18]
dec edi
test edi, edi
jl 0x535f2b
inc edi
xor esi, esi
mov eax, dword [0x674e38]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov ebx, dword [eax + esi*4]
cmp byte [ebx + 0x41e], 0
jne 0x535f23
cmp byte [ebx + 0x454], 0
jne 0x535f23
cmp byte [ebx + 0x434], 0
je 0x535ed4
mov eax, dword [ebx + 0x158]
call fcn.0065cc54
test al, al
je 0x535f23
cmp dword [ebp - 0x18], 0
je 0x535ee7
lea eax, [ebp - 0x18]
mov edx, 0x536054
call fcn.00403ac4
mov eax, dword [0x674e38]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
cmp eax, dword [0x674e3c]
jne 0x535f0a
lea eax, [ebp - 0x18]
mov edx, 0x536060
call fcn.00403ac4
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x158]
call fcn.006301a4
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
call fcn.00403ac4
inc esi
dec edi
jne 0x535e9c
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.0065c920
mov eax, dword [ebp - 0x14]
call fcn.0040351c
mov ebx, eax
mov eax, dword [ebp - 0x18]
call fcn.00403ab8
cmp ebx, eax
je 0x535f62
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.0065cb10
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
call fcn.0040330c
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.0040362c
je 0x536006
mov eax, dword [ebp - 8]
call fcn.00660d7c
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x535fab
lea ecx, [ebp - 0x24]
mov eax, 0x536064
mov edx, dword [ebp - 8]
call fcn.0065d968
mov eax, dword [ebp - 0x24]
mov cx, word [0x536080]
mov dl, 1
call fcn.0062941c
cmp ax, 2
je 0x53600a
jmp 0x535f73
cmp dword [ebp - 0x14], 0
je 0x536000
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0040351c
push eax
mov eax, dword [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_WriteFile
test eax, eax
jne 0x536000
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, 0x536084
call fcn.0065d968
mov eax, dword [ebp - 0x24]
mov cx, word [0x536080]
mov dl, 1
call fcn.0062941c
cmp ax, 2
jne 0x535fb1
push ebx
call sub.kernel32.dll_CloseHandle
jmp 0x53600a
push ebx
call sub.kernel32.dll_CloseHandle
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x536044
lea eax, [ebp - 0x24]
call fcn.00403274
lea eax, [ebp - 0x20]
call fcn.00403880
lea eax, [ebp - 0x18]
call fcn.00403880
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403298
ret
Function at 0x5361f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
test dl, dl
je 0x536213
add esp, 0xfffffff0
call fcn.00402ab0
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x53638e
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00656a10
mov dword [ebx + 0xc], eax
call fcn.00656a10
mov dword [ebx + 0x10], eax
mov dl, 1
mov eax, dword [0x61dc98]
call fcn.00402898
mov esi, eax
mov dword [ebx + 0x58], esi
mov byte [esi + 0xb], 1
mov byte [esi + 0x30], 1
mov dl, 1
mov eax, dword [0x61dc98]
call fcn.00402898
mov esi, eax
mov dword [ebx + 0x5c], esi
mov byte [esi + 0xb], 1
mov byte [esi + 0x30], 1
mov dl, 1
mov eax, dword [0x61dc98]
call fcn.00402898
mov esi, eax
mov dword [ebx + 0x60], esi
mov byte [esi + 0xb], 1
mov byte [esi + 0x30], 0
mov dl, 1
mov eax, dword [0x61dc98]
call fcn.00402898
mov esi, eax
mov dword [ebx + 0x64], esi
mov byte [esi + 0xb], 1
mov byte [esi + 0x30], 0
mov dl, 1
mov eax, dword [0x61dc98]
call fcn.00402898
mov esi, eax
mov dword [ebx + 0x68], esi
mov byte [esi + 0xb], 1
mov byte [esi + 0x30], 0
xor edi, edi
mov esi, dword [0x672760]
lea eax, [ebp - 0x110]
mov edx, dword [esi]
call fcn.00402774
mov edx, 0x5363b0
lea eax, [ebp - 0x110]
call fcn.004025b0
lea edx, [ebp - 0x110]
lea eax, [ebp - 8]
call fcn.004034a4
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00403524
mov eax, edi
call fcn.00539b90
test al, al
je 0x536307
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00403524
inc edi
add esi, 4
cmp edi, 7
jne 0x5362bb
call fcn.00501d74
mov eax, dword [eax + 0x190]
add eax, 0x30
mov ecx, 0x5363bc
mov edx, dword [ebp - 0xc]
call fcn.00403568
lea eax, [ebp - 0x10]
call fcn.0065b910
call fcn.00501d74
mov eax, dword [eax + 0x198]
add eax, 0x30
mov edx, dword [ebp - 0x10]
call fcn.004032c8
call fcn.006562d0
mov dword [ebx + 0x78], eax
call fcn.006562d0
mov esi, eax
mov dword [ebx + 0x88], esi
mov byte [esi + 0x28], 1
call fcn.006562d0
mov esi, eax
mov dword [ebx + 0x8c], esi
mov byte [esi + 0x28], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x536395
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00403298
ret
Function at 0x53655c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd88
push ebx
xor edx, edx
mov dword [ebp - 0x270], edx
mov dword [ebp - 0x274], edx
mov dword [ebp - 0x278], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov ebx, eax
lea eax, [ebp - 0x26c]
mov edx, dword [0x65ad54]
call fcn.00403e48
xor eax, eax
push ebp
push 0x5366b2
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.006562d0
mov dword [ebx + 8], eax
lea eax, [ebp - 4]
call fcn.006261cc
mov ecx, dword [0x6721c8]
mov ecx, dword [ecx + 4]
lea eax, [ebp - 0x278]
mov edx, 0x5366c8
call fcn.00403568
mov edx, dword [ebp - 0x278]
lea eax, [ebp - 0x274]
call fcn.00403a34
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x270]
mov edx, dword [ebp - 4]
call fcn.00403b24
mov eax, dword [ebp - 0x270]
lea ecx, [ebp - 0x26c]
mov edx, 0x20
call fcn.0065cd4c
test eax, eax
jne 0x536654
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 4]
call fcn.00403b24
mov eax, dword [ebp - 8]
call fcn.00536534
test al, al
jne 0x536645
cmp dword [ebp - 0x26c], 0
jne 0x53663a
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_DeleteFileW
jmp 0x536645
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea eax, [ebp - 0x26c]
call fcn.0065cdf0
test eax, eax
je 0x536609
lea eax, [ebp - 0x26c]
call fcn.0065ce14
mov eax, dword [ebx + 8]
cmp dword [eax + 0x24], 0
setg al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5366b9
lea eax, [ebp - 0x278]
call fcn.00403274
lea eax, [ebp - 0x274]
mov edx, 2
call fcn.00403898
lea eax, [ebp - 0x26c]
mov edx, dword [0x65ad54]
call fcn.00403f10
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403898
ret
Function at 0x5392c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5393af
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4b4028]
call fcn.004b41e0
mov ebx, eax
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004b4218
test al, al
je 0x53937f
mov byte [ebp - 0xd], 1
call fcn.006562d0
mov edi, eax
mov ecx, edi
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005360a0
test al, al
je 0x539365
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jl 0x539365
inc eax
mov dword [ebp - 0x14], eax
xor esi, esi
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0x158]
call fcn.0065d088
mov ecx, dword [ebp - 0x18]
mov eax, dword [edi + 0x18]
mov edx, dword [eax + esi*4]
mov eax, ebx
call fcn.004b46d4
test al, al
jne 0x53935f
mov byte [ebp - 0xd], 0
jmp 0x539365
inc esi
dec dword [ebp - 0x14]
jne 0x53932e
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.005361c0
mov eax, edi
call fcn.004028c0
mov eax, ebx
call fcn.004b4a0c
jmp 0x539383
mov byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
jne 0x539392
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, ebx
call fcn.004028c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5393b6
lea eax, [ebp - 0x18]
call fcn.00403880
ret
Function at 0x53b178
Capabilities:
Delete file
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd3c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2c0], edx
mov dword [ebp - 0x2c4], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x53b327
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x10c]
test eax, eax
je 0x53b1f6
cmp byte [eax + 0x454], 0
je 0x53b1f6
cmp dword [ebx + 0x100], 0
jne 0x53b2f5
mov dl, 1
mov eax, dword [0x64dec8]
call fcn.006515a0
mov esi, eax
mov dword [ebx + 0x100], esi
mov eax, dword [0x672428]
movzx eax, byte [eax + 0x180]
add eax, 0x3b9aca16
mov edx, esi
call fcn.00615aa4
jmp 0x53b2f5
lea edx, [ebp - 0x2c0]
mov eax, dword [ebx + 0x110]
call fcn.0065d0b8
mov edx, dword [ebp - 0x2c0]
mov eax, dword [ebx + 0xfc]
mov eax, dword [eax + 0x124]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov esi, eax
test esi, esi
jge 0x53b2dc
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x110]
call fcn.004038bc
mov eax, dword [ebp - 4]
call fcn.0065cc54
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
xor al, 1
test al, al
je 0x53b281
lea edx, [ebp - 0x2c4]
mov eax, dword [ebp - 4]
call fcn.0065d0b8
mov eax, dword [ebp - 0x2c4]
lea edx, [ebp - 0x2c0]
call fcn.00626580
mov edx, dword [ebp - 0x2c0]
lea eax, [ebp - 4]
call fcn.004038bc
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.006261a0
push 0x101
push 0x2b4
lea eax, [ebp - 0x2bc]
push eax
push 0
mov esi, dword [ebp - 4]
push esi
call sub.shell32.dll_SHGetFileInfoW
mov al, byte [ebp - 5]
xor al, 1
test al, al
je 0x53b2ac
push esi
call sub.kernel32.dll_DeleteFileW
mov eax, dword [ebx + 0xfc]
mov edi, dword [eax + 0x124]
mov esi, dword [edi + 0x24]
lea edx, [ebp - 0x2c0]
mov eax, dword [ebp - 4]
call fcn.0065d0b8
mov edx, dword [ebp - 0x2c0]
mov eax, edi
mov ecx, dword [ebp - 0x2bc]
call fcn.0065779c
mov eax, dword [ebx + 0xfc]
mov eax, dword [eax + 0x124]
mov edx, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebx + 0x104], eax
mov cl, 1
mov edx, dword [ebx + 0x30]
mov eax, ebx
call fcn.0053b338
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53b32e
lea eax, [ebp - 0x2c4]
mov edx, 2
call fcn.00403898
lea eax, [ebp - 4]
call fcn.00403880
ret
Function at 0x55e620
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x55e6ce
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.005397ec
test byte [eax + 0x55], 0x10
je 0x55e653
lea eax, [ebx + 0xc]
mov edx, esi
call fcn.004038bc
jmp 0x55e6a3
lea edx, [ebp - 4]
xor eax, eax
call fcn.006265c4
mov edx, dword [ebp - 4]
lea eax, [ebx + 0xc]
call fcn.004038bc
test esi, esi
je 0x55e67a
push 0
mov eax, dword [ebx + 0xc]
push eax
push esi
call sub.kernel32.dll_CopyFileW
jmp 0x55e6a3
push 0xffff
mov ecx, dword [ebx + 0xc]
mov dl, 1
mov eax, dword [0x655cb0]
call fcn.00659754
mov esi, eax
mov edx, edi
mov ecx, dword [ebp + 8]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, esi
call fcn.004028c0
mov ecx, 1
mov edx, 0x80000000
mov eax, dword [ebx + 0xc]
call fcn.00660d68
mov dword [ebx + 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55e6d5
lea eax, [ebp - 4]
call fcn.00403880
ret
Function at 0x5665a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor eax, eax
push ebp
push 0x5666d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp + 8]
add eax, dword [edx - 0xc]
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x10]
jge 0x5666bf
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
add dword [edx - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [ebp + 8]
sub eax, dword [edx - 8]
mov edx, 0x4000
call fcn.0065b28c
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push 0
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [0x6752a0]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x566681
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x566669
call fcn.004236a0
lea ecx, [ebp - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x18]
call fcn.004230b8
mov eax, dword [ebp - 4]
push eax
call fcn.004236a0
mov edx, dword [0x6752a0]
pop ecx
call fcn.00423350
call fcn.004236a0
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 0xc]
sub ecx, 0x2a
mov edx, dword [0x6752a0]
add edx, 0x2a
call fcn.004234e8
jmp 0x566696
call fcn.004236a0
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 0xc]
mov edx, dword [0x6752a0]
call fcn.004234e8
jmp 0x566696
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x1c]
mov eax, 0x5666e4
call fcn.00629744
call fcn.0065e804
cmp byte [0x66dec4], 0
je 0x5666bb
call fcn.00501d74
mov eax, dword [eax + 0x268]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov ecx, dword [ebp + 8]
add edx, dword [ecx - 0xc]
call fcn.004f9e50
mov bl, 1
jmp 0x5666c1
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5666de
lea eax, [ebp - 4]
call fcn.00403274
ret
Function at 0x566778
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
cmp byte [0x66dec4], 0
je 0x5667af
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetFileSize
push eax
call fcn.00501d74
mov ecx, 0x566890
pop edx
call fcn.004fec24
xor eax, eax
push ebp
push 0x56685c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x10], eax
push 0
push 0
mov eax, dword [ebp - 0x10]
sub eax, 0x10
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
push 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x5667fe
sub dword [ebp - 0x10], 0x10
jmp 0x566810
mov eax, 0x5668a0
mov edx, dword [ebp - 0x1c]
call fcn.00629744
call fcn.0065e804
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetFilePointer
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
push ebp
call fcn.005665a0
pop ecx
test al, al
jne 0x566829
push ebp
call fcn.00566700
pop ecx
cmp byte [0x66dec4], 0
je 0x566850
call fcn.00501d74
mov dl, 1
call fcn.004fec6c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x56687d
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5668bc
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
mov edi, dword [ebp + 8]
mov edi, dword [edi - 8]
xor eax, eax
push ebp
push 0x566962
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 4]
xor eax, eax
call fcn.006265c4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004038bc
push 0xffffffffffffffff
mov eax, dword [esi]
push eax
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x566931
lea ecx, [ebp - 8]
mov edx, dword [edi + 8]
mov eax, 0x566974
call fcn.0065d968
mov eax, dword [ebp - 8]
mov cx, word [0x566998]
mov dl, 1
call fcn.0062941c
cmp ax, 2
je 0x566944
jmp 0x5668f6
push 0x20
mov eax, dword [esi]
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp + 8]
mov byte [eax - 9], 1
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x566969
lea eax, [ebp - 8]
call fcn.00403274
lea eax, [ebp - 4]
call fcn.00403880
ret
Function at 0x566cc4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, dword [ebp + 8]
cmp byte [eax - 0x15], 0
jne 0x566e12
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
sub eax, dword [0x6752a0]
mov edx, dword [ebp + 8]
add dword [edx - 0x20], eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax - 0x24]
mov eax, dword [ebp + 8]
sub ebx, dword [eax - 0x1c]
test ebx, ebx
jle 0x566d0c
mov edx, dword [0x6752a0]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
mov ecx, ebx
call fcn.004023c8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov edx, dword [ebp + 8]
sub eax, dword [edx - 0x20]
cmp eax, 0x10020
jle 0x566d26
mov esi, 0x10000
jmp 0x566d30
mov edx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, eax
sub esi, ebx
mov eax, dword [ebp + 8]
mov edx, dword [0x6752a0]
mov dword [eax - 0x1c], edx
push 0
lea eax, [ebp - 4]
push eax
push esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
add eax, ebx
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0x15c]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x566dde
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
add eax, ebx
add eax, esi
mov edx, dword [ebp + 8]
mov dword [edx - 0x24], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
add eax, ebx
add eax, esi
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x14]
mov eax, dword [ebp + 8]
setge byte [eax - 0x15]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp dword [eax + 4], 4
jne 0x566df3
mov eax, dword [ebp + 8]
cmp byte [eax - 0x25], 0
jne 0x566df3
mov eax, dword [ebp + 8]
cmp dword [eax - 0x20], 0
jne 0x566dc8
push ebp
call fcn.0056699c
pop ecx
call fcn.004236a0
mov ecx, esi
sub ecx, 0x2a
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x1c]
add edx, 0x2a
call fcn.004234e8
jmp 0x566df3
call fcn.004236a0
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x1c]
add edx, ebx
mov ecx, esi
call fcn.004234e8
jmp 0x566df3
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x2c]
mov eax, 0x566e18
call fcn.00629744
call fcn.0065e804
cmp byte [0x66dec4], 0
je 0x566e12
call fcn.00501d74
mov eax, dword [eax + 0x268]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x20]
call fcn.004f9e50
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x567aa8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor eax, eax
push ebp
push 0x567cb5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov al, byte [eax - 0x6c5]
dec al
je 0x567ad2
dec al
je 0x567ad9
jmp 0x567ae0
mov bl, 1
jmp 0x567c9f
xor ebx, ebx
jmp 0x567c9f
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov byte [eax - 0x6c5], 2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
push eax
call sub.ole32.dll_StgIsStorageFile
test eax, eax
jne 0x567c9f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x10]
cmp byte [eax + 0x3ee], 0
je 0x567b43
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.005668bc
pop ecx
test al, al
je 0x567c9f
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov edx, dword [edx - 4]
call fcn.004038bc
jmp 0x567b62
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x10]
call fcn.005bc984
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov edx, dword [edx - 0x2c]
call fcn.004038bc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0xffffff40
call fcn.004043d0
push eax
push 0
push 0
push 0x400022
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ole32.dll_StgOpenStorage
test eax, eax
jne 0x567c20
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0xffffff3c
call fcn.004043d0
push eax
push 0
push 0x10
push 0
mov eax, dword [0x67271c]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0xc0]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
jne 0x567c20
push 0
push 0x600
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0xfffff93c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0xc4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
jne 0x567c20
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
movzx ebx, word [eax - 0x6c4]
cmp ebx, 0xa5dc
je 0x567c10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp ebx, 0xa5ec
jne 0x567c20
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp word [eax - 0x6c2], 0x65
jae 0x567c24
xor eax, eax
jmp 0x567c26
mov al, 1
mov ebx, eax
test bl, bl
je 0x567c3b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov byte [eax - 0x6c5], 1
jmp 0x567c9f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0xffffff40
call fcn.004043d0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x10]
cmp byte [eax + 0x3ee], 0
je 0x567c78
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov byte [eax - 9], 0
jmp 0x567c9f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x2c]
mov ecx, 1
mov edx, 0xc0000000
call fcn.00660d68
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov edx, dword [edx - 0x10]
mov dword [edx + 0x15c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x567cbc
lea eax, [ebp - 4]
call fcn.00403880
ret
Function at 0x579800
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x57991a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x64dec8]
call fcn.006515a0
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x655d70]
call fcn.00402898
mov dword [ebp - 8], eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00659884
xor eax, eax
push ebp
push 0x57986d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x579884
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00659884
mov eax, dword [ebp - 8]
call fcn.004028c0
cmp dword [ebp - 4], 0
je 0x579904
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov ebx, dword [eax + 0xc]
mov byte [ebx + 0x46], 1
mov dl, 1
mov eax, dword [0x41ef24]
call fcn.006515a0
mov esi, eax
mov dword [ebx + 0x38], esi
mov eax, esi
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
call fcn.004028c0
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.006265c4
mov eax, dword [ebx + 0x38]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0055e620
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_DeleteFileW
mov byte [ebx + 0x45], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x579921
lea eax, [ebp - 0xc]
call fcn.00403880
ret