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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x536fdc
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5371c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.0064e1b0
mov ebx, eax
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 [0x673034]
mov edi, dword [eax + 0x18]
dec edi
test edi, edi
jl 0x5370e2
inc edi
xor esi, esi
mov eax, dword [0x673034]
mov eax, dword [eax + 0x1c]
mov ebx, dword [eax + esi*4]
cmp byte [ebx + 0x427], 0
jne 0x5370da
cmp byte [ebx + 0x45c], 0
jne 0x5370da
cmp byte [ebx + 0x43c], 0
je 0x53706f
mov eax, dword [ebx + 0x160]
call fcn.00654ea8
test al, al
je 0x5370da
cmp dword [ebp - 0x18], 0
je 0x537082
lea eax, [ebp - 0x18]
mov edx, 0x5371d8
call fcn.00403ab4
mov eax, dword [0x673034]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
cmp eax, dword [0x67303c]
jne 0x5370a2
lea eax, [ebp - 0x18]
mov edx, 0x5371e4
call fcn.00403ab4
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x160]
call fcn.00626b04
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
call fcn.00403ab4
cmp byte [ebx + 0x3f6], 0
je 0x5370da
cmp byte [ebx + 0x3f7], 0
je 0x5370da
lea eax, [ebp - 0x18]
mov edx, 0x5371ec
call fcn.00403ab4
inc esi
dec edi
jne 0x537032
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.00654c3c
mov eax, dword [ebp - 0x14]
call fcn.0040351c
mov ebx, eax
mov eax, dword [ebp - 0x18]
call fcn.00403aa8
cmp ebx, eax
je 0x537119
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.00654e2c
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 0x53718b
mov eax, dword [ebp - 8]
call fcn.00658f24
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x537147
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0062016c
cmp ax, 2
je 0x53718f
jmp 0x537126
cmp dword [ebp - 0x14], 0
je 0x537185
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 0x537185
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dl, 2
call fcn.0062016c
cmp ax, 2
jne 0x53714d
push ebx
call sub.kernel32.dll_CloseHandle
jmp 0x53718f
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 0x5371c9
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 0x537444
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 [0x653000]
call fcn.00403e38
xor eax, eax
push ebp
push 0x53759a
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0064d630
mov dword [ebx + 8], eax
lea eax, [ebp - 4]
call fcn.0061c97c
mov ecx, dword [0x66ed84]
mov ecx, dword [ecx + 4]
lea eax, [ebp - 0x278]
mov edx, 0x5375b0
call fcn.00403568
mov edx, dword [ebp - 0x278]
lea eax, [ebp - 0x274]
call fcn.00403a24
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x270]
mov edx, dword [ebp - 4]
call fcn.00403b14
mov eax, dword [ebp - 0x270]
lea ecx, [ebp - 0x26c]
mov edx, 0x20
call fcn.00654fa0
test eax, eax
jne 0x53753c
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 4]
call fcn.00403b14
mov eax, dword [ebp - 8]
call fcn.0053741c
test al, al
jne 0x53752d
cmp dword [ebp - 0x26c], 0
jne 0x537522
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_DeleteFileW
jmp 0x53752d
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea eax, [ebp - 0x26c]
call fcn.00655044
test eax, eax
je 0x5374f1
lea eax, [ebp - 0x26c]
call fcn.00655068
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 0x5375a1
lea eax, [ebp - 0x278]
call fcn.00403274
lea eax, [ebp - 0x274]
mov edx, 2
call fcn.00403898
lea eax, [ebp - 0x26c]
mov edx, dword [0x653000]
call fcn.00403f00
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403898
ret
Function at 0x5390d8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x5391be
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x436bb0]
call fcn.00436d58
mov ebx, eax
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00436d90
test al, al
je 0x53918e
mov byte [ebp - 9], 1
call fcn.0064d630
mov edi, eax
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.005371f4
test al, al
je 0x539177
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jl 0x539177
inc eax
mov dword [ebp - 0x10], eax
xor esi, esi
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0x160]
call fcn.006552dc
mov ecx, dword [ebp - 0x14]
mov eax, dword [edi + 0x18]
mov edx, dword [eax + esi*4]
mov eax, ebx
call fcn.0043723c
test al, al
jne 0x539171
mov byte [ebp - 9], 0
jmp 0x539177
inc esi
dec dword [ebp - 0x10]
jne 0x539140
mov eax, edi
call fcn.00537314
mov eax, edi
call fcn.004028c0
mov eax, ebx
call fcn.00437540
jmp 0x539192
mov byte [ebp - 9], 0
cmp byte [ebp - 9], 0
jne 0x5391a1
mov eax, dword [ebp - 8]
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 0x5391c5
lea eax, [ebp - 0x14]
call fcn.00403880
ret
Function at 0x53a390
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x53a65a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c]
call fcn.0061cf6c
mov esi, dword [edi + 0x24]
dec esi
test esi, esi
jl 0x53a4af
inc esi
xor ebx, ebx
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + ebx*4]
call fcn.006552dc
mov edx, dword [ebp - 0x30]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x44]
inc eax
je 0x53a474
xor eax, eax
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x30]
call fcn.0065530c
mov eax, dword [ebp - 0x30]
call fcn.00403aa8
push eax
mov eax, dword [ebp - 0x38]
call fcn.00403aa8
pop edx
sub edx, eax
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0x30]
call fcn.00654774
inc dword [ebp - 0x48]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0xf
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xf
lea edx, [ebp - 0x74]
mov eax, 0x53a668
mov ecx, 2
call fcn.00655a70
mov edx, dword [ebp - 0x30]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x44]
inc eax
jne 0x53a430
mov eax, dword [edi + 0x20]
lea eax, [eax + ebx*4]
mov dword [ebp - 0x4c], eax
push 0
lea eax, [ebp - 0x78]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
call fcn.00403b14
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CopyFileW
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x30]
call fcn.004038bc
inc ebx
dec esi
jne 0x53a3e3
lea eax, [ebp - 0x5c]
push eax
push 0x53a674
call sub.ole32.dll_CLSIDFromString
lea eax, [ebp - 8]
call fcn.004043c0
lea eax, [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetMalloc
lea eax, [ebp - 0x10]
push eax
call sub.shell32.dll_SHGetDesktopFolder
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
lea eax, [ebp - 0x18]
push eax
push 0x53a6c4
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, dword [edi + 0x24]
shl eax, 2
call fcn.00653710
mov dword [ebp - 0x1c], eax
mov esi, dword [edi + 0x24]
dec esi
test esi, esi
jl 0x53a54c
inc esi
xor ebx, ebx
Function at 0x53bc70
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 0x53be0c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x10c]
test eax, eax
je 0x53bcdb
cmp byte [eax + 0x45c], 0
je 0x53bcdb
cmp dword [ebx + 0x100], 0
jne 0x53bdda
mov eax, dword [0x66ebb0]
movzx eax, byte [eax + 4]
add eax, 0x3b9aca16
call fcn.0060ecb4
mov dword [ebx + 0x100], eax
jmp 0x53bdda
lea edx, [ebp - 0x2c0]
mov eax, dword [ebx + 0x110]
call fcn.0065530c
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 0x53bdc1
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x110]
call fcn.004038bc
mov eax, dword [ebp - 4]
call fcn.00654ea8
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
xor al, 1
test al, al
je 0x53bd66
lea edx, [ebp - 0x2c4]
mov eax, dword [ebp - 4]
call fcn.0065530c
mov eax, dword [ebp - 0x2c4]
lea edx, [ebp - 0x2c0]
call fcn.0061cd24
mov edx, dword [ebp - 0x2c0]
lea eax, [ebp - 4]
call fcn.004038bc
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0061c950
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 0x53bd91
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.0065530c
mov edx, dword [ebp - 0x2c0]
mov eax, edi
mov ecx, dword [ebp - 0x2bc]
call fcn.0064f61c
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.0053be1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53be13
lea eax, [ebp - 0x2c4]
mov edx, 2
call fcn.00403898
lea eax, [ebp - 4]
call fcn.00403880
ret
Function at 0x55df3c
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 0x55dfe4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
jne 0x55df69
mov eax, dword [0x66f038]
test byte [eax + 1], 0x10
je 0x55df75
lea eax, [ebx + 0xc]
mov edx, esi
call fcn.004038bc
jmp 0x55dfb9
lea edx, [ebp - 4]
xor eax, eax
call fcn.0061cd68
mov edx, dword [ebp - 4]
lea eax, [ebx + 0xc]
call fcn.004038bc
test esi, esi
je 0x55df9c
push 0
mov eax, dword [ebx + 0xc]
push eax
push esi
call sub.kernel32.dll_CopyFileW
jmp 0x55dfb9
mov eax, dword [ebx + 0xc]
call fcn.0065163c
mov esi, eax
mov edx, edi
mov ecx, dword [ebp + 0xc]
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.00658f04
mov dword [ebx + 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55dfeb
lea eax, [ebp - 4]
call fcn.00403880
ret

Function at 0x565960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor eax, eax
push ebp
push 0x565a95
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 0x565a7d
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.00653538
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 [0x6733c4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x565a41
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x565a29
call fcn.004306f4
lea ecx, [ebp - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x18]
call fcn.00430130
mov eax, dword [ebp - 4]
push eax
call fcn.004306f4
mov edx, dword [0x6733c4]
pop ecx
call fcn.004303a4
call fcn.004306f4
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 0xc]
sub ecx, 0x2a
mov edx, dword [0x6733c4]
add edx, 0x2a
call fcn.0043053c
jmp 0x565a58
call fcn.004306f4
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 0xc]
mov edx, dword [0x6733c4]
call fcn.0043053c
jmp 0x565a58
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x1c]
mov eax, dword [0x66ee1c]
mov eax, dword [eax]
call fcn.00620080
call fcn.00656a70
cmp byte [0x66a86c], 0
je 0x565a79
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov eax, dword [ebp + 8]
add edx, dword [eax - 0xc]
mov eax, dword [0x66fc38]
mov eax, dword [eax]
call fcn.004ff60c
mov bl, 1
jmp 0x565a7f
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x565a9c
lea eax, [ebp - 4]
call fcn.00403274
ret
Function at 0x565b1c
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 [0x66a86c], 0
je 0x565b56
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetFileSize
push eax
call fcn.00506a54
mov ecx, dword [0x66f380]
mov ecx, dword [ecx]
pop edx
call fcn.00503ed0
xor eax, eax
push ebp
push 0x565c05
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 0x565ba5
sub dword [ebp - 0x10], 0x10
jmp 0x565bb9
mov eax, dword [0x66ee1c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x1c]
call fcn.00620080
call fcn.00656a70
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.00565960
pop ecx
test al, al
jne 0x565bd2
push ebp
call fcn.00565aa4
pop ecx
cmp byte [0x66a86c], 0
je 0x565bf9
call fcn.00506a54
mov dl, 1
call fcn.00503f2c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x565c26
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x565c30
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
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 0x565cc3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 4]
xor eax, eax
call fcn.0061cd68
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 0x565c9a
mov ax, word [0x565cd4]
push eax
mov edx, dword [edi + 8]
mov eax, dword [0x66e840]
mov eax, dword [eax]
mov cl, 1
call fcn.0061fe54
cmp ax, 2
je 0x565cad
jmp 0x565c68
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 0x565cca
lea eax, [ebp - 4]
call fcn.00403880
ret
Function at 0x565f70
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 0x5660bc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
sub eax, dword [0x6733c4]
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 0x565fb8
mov edx, dword [0x6733c4]
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 0x565fd2
mov esi, 0x10000
jmp 0x565fdc
mov edx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, eax
sub esi, ebx
mov eax, dword [ebp + 8]
mov edx, dword [0x6733c4]
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 + 0x164]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x56608a
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 0x5660a1
mov eax, dword [ebp + 8]
cmp byte [eax - 0x25], 0
jne 0x5660a1
mov eax, dword [ebp + 8]
cmp dword [eax - 0x20], 0
jne 0x566074
push ebp
call fcn.00565cd8
pop ecx
call fcn.004306f4
mov ecx, esi
sub ecx, 0x2a
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x1c]
add edx, 0x2a
call fcn.0043053c
jmp 0x5660a1
call fcn.004306f4
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x1c]
add edx, ebx
mov ecx, esi
call fcn.0043053c
jmp 0x5660a1
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x2c]
mov eax, dword [0x66ee1c]
mov eax, dword [eax]
call fcn.00620080
call fcn.00656a70
cmp byte [0x66a86c], 0
je 0x5660bc
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x20]
mov eax, dword [0x66fc38]
mov eax, dword [eax]
call fcn.004ff60c
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x566d10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor eax, eax
push ebp
push 0x566f16
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov al, byte [eax - 0x6c5]
sub al, 1
jb 0x566d43
jne 0x566f00
mov bl, 1
jmp 0x566f00
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 0x566f00
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x10]
cmp byte [eax + 0x3f6], 0
je 0x566da4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.00565c30
pop ecx
test al, al
je 0x566f00
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov edx, dword [edx - 4]
call fcn.004038bc
jmp 0x566dc3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x10]
call fcn.005b9b50
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.004043c0
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 0x566e81
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0xffffff3c
call fcn.004043c0
push eax
push 0
push 0x10
push 0
mov eax, dword [0x66fc8c]
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 0x566e81
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 0x566e81
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
movzx ebx, word [eax - 0x6c4]
cmp ebx, 0xa5dc
je 0x566e71
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp ebx, 0xa5ec
jne 0x566e81
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp word [eax - 0x6c2], 0x65
jae 0x566e85
xor eax, eax
jmp 0x566e87
mov al, 1
mov ebx, eax
test bl, bl
je 0x566e9c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov byte [eax - 0x6c5], 1
jmp 0x566f00
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0xffffff40
call fcn.004043c0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x10]
cmp byte [eax + 0x3f6], 0
je 0x566ed9
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 0x566f00
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x2c]
mov ecx, 1
mov edx, 0xc0000000
call fcn.00658f04
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov edx, dword [edx - 0x10]
mov dword [edx + 0x164], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x566f1d
lea eax, [ebp - 4]
call fcn.00403880
ret
Function at 0x58ef0c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
mov bl, 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
cmp byte [eax + 0x47b], 0
jne 0x58efef
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
call fcn.00401e58
mov edx, dword [ebp + 8]
mov dword [edx - 0x1c], eax
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0x164]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0x164]
push eax
call sub.kernel32.dll_ReadFile
call fcn.0064e78c
mov dword [ebp - 8], eax
call fcn.0064e78c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x114], 0x4e4
xor eax, eax
push ebp
push 0x58efc8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
mov dword [ebp - 4], eax
push ebp
call fcn.0058e574
pop ecx
push ebp
call fcn.0058eca8
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58efd4
mov eax, dword [ebp - 0xc]
call fcn.0064edac
mov eax, dword [ebp - 8]
call fcn.0064edac
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
call fcn.00401fac
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret