joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53eb08
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 0x53eca4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x10c]
test eax, eax
je 0x53eb73
cmp byte [eax + 0x45c], 0
je 0x53eb73
cmp dword [ebx + 0x100], 0
jne 0x53ec72
mov eax, dword [0x671c18]
movzx eax, byte [eax + 4]
add eax, 0x3b9aca16
call fcn.00611e34
mov dword [ebx + 0x100], eax
jmp 0x53ec72
lea edx, [ebp - 0x2c0]
mov eax, dword [ebx + 0x110]
call fcn.00658934
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 0x53ec59
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x110]
call fcn.004038bc
mov eax, dword [ebp - 4]
call fcn.006584d0
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
xor al, 1
test al, al
je 0x53ebfe
lea edx, [ebp - 0x2c4]
mov eax, dword [ebp - 4]
call fcn.00658934
mov eax, dword [ebp - 0x2c4]
lea edx, [ebp - 0x2c0]
call fcn.0062025c
mov edx, dword [ebp - 0x2c0]
lea eax, [ebp - 4]
call fcn.004038bc
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0061fe88
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 0x53ec29
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.00658934
mov edx, dword [ebp - 0x2c0]
mov eax, edi
mov ecx, dword [ebp - 0x2bc]
call fcn.00652c78
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.0053ecb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53ecab
lea eax, [ebp - 0x2c4]
mov edx, 2
call fcn.00403898
lea eax, [ebp - 4]
call fcn.00403880
ret
Function at 0x560ef4
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 0x560f9c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
jne 0x560f21
mov eax, dword [0x6720a0]
test byte [eax + 1], 0x10
je 0x560f2d
lea eax, [ebx + 0xc]
mov edx, esi
call fcn.004038bc
jmp 0x560f71
lea edx, [ebp - 4]
xor eax, eax
call fcn.006202a0
mov edx, dword [ebp - 4]
lea eax, [ebx + 0xc]
call fcn.004038bc
test esi, esi
je 0x560f54
push 0
mov eax, dword [ebx + 0xc]
push eax
push esi
call sub.kernel32.dll_CopyFileW
jmp 0x560f71
mov eax, dword [ebx + 0xc]
call fcn.00654c98
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.0065c53c
mov dword [ebx + 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x560fa3
lea eax, [ebp - 4]
call fcn.00403880
ret

Function at 0x568918
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor eax, eax
push ebp
push 0x568a4d
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 0x568a35
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.00656b70
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 [0x6763c4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x5689f9
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x5689e1
call fcn.00431054
lea ecx, [ebp - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x18]
call fcn.00430a90
mov eax, dword [ebp - 4]
push eax
call fcn.00431054
mov edx, dword [0x6763c4]
pop ecx
call fcn.00430d04
call fcn.00431054
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 0xc]
sub ecx, 0x2a
mov edx, dword [0x6763c4]
add edx, 0x2a
call fcn.00430e9c
jmp 0x568a10
call fcn.00431054
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 0xc]
mov edx, dword [0x6763c4]
call fcn.00430e9c
jmp 0x568a10
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x1c]
mov eax, dword [0x671e84]
mov eax, dword [eax]
call fcn.006235b8
call fcn.0065a09c
cmp byte [0x66d860], 0
je 0x568a31
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov eax, dword [ebp + 8]
add edx, dword [eax - 0xc]
mov eax, dword [0x672c9c]
mov eax, dword [eax]
call fcn.00501fb8
mov bl, 1
jmp 0x568a37
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x568a54
lea eax, [ebp - 4]
call fcn.00403274
ret
Function at 0x568ad4
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 [0x66d860], 0
je 0x568b0e
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetFileSize
push eax
call fcn.005093e8
mov ecx, dword [0x6723e8]
mov ecx, dword [ecx]
pop edx
call fcn.0050687c
xor eax, eax
push ebp
push 0x568bbd
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 0x568b5d
sub dword [ebp - 0x10], 0x10
jmp 0x568b71
mov eax, dword [0x671e84]
mov eax, dword [eax]
mov edx, dword [ebp - 0x1c]
call fcn.006235b8
call fcn.0065a09c
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.00568918
pop ecx
test al, al
jne 0x568b8a
push ebp
call fcn.00568a5c
pop ecx
cmp byte [0x66d860], 0
je 0x568bb1
call fcn.005093e8
mov dl, 1
call fcn.005068d4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x568bde
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x568be8
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 0x568c7b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 4]
xor eax, eax
call fcn.006202a0
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 0x568c52
mov ax, word [0x568c8c]
push eax
mov edx, dword [edi + 8]
mov eax, dword [0x6718a8]
mov eax, dword [eax]
mov cl, 1
call fcn.0062338c
cmp ax, 2
je 0x568c65
jmp 0x568c20
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 0x568c82
lea eax, [ebp - 4]
call fcn.00403880
ret
Function at 0x568f28
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 0x569074
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
sub eax, dword [0x6763c4]
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 0x568f70
mov edx, dword [0x6763c4]
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 0x568f8a
mov esi, 0x10000
jmp 0x568f94
mov edx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, eax
sub esi, ebx
mov eax, dword [ebp + 8]
mov edx, dword [0x6763c4]
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 0x569042
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 0x569059
mov eax, dword [ebp + 8]
cmp byte [eax - 0x25], 0
jne 0x569059
mov eax, dword [ebp + 8]
cmp dword [eax - 0x20], 0
jne 0x56902c
push ebp
call fcn.00568c90
pop ecx
call fcn.00431054
mov ecx, esi
sub ecx, 0x2a
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x1c]
add edx, 0x2a
call fcn.00430e9c
jmp 0x569059
call fcn.00431054
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x1c]
add edx, ebx
mov ecx, esi
call fcn.00430e9c
jmp 0x569059
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x2c]
mov eax, dword [0x671e84]
mov eax, dword [eax]
call fcn.006235b8
call fcn.0065a09c
cmp byte [0x66d860], 0
je 0x569074
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x20]
mov eax, dword [0x672c9c]
mov eax, dword [eax]
call fcn.00501fb8
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x569cc8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor eax, eax
push ebp
push 0x569ece
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 0x569cfb
jne 0x569eb8
mov bl, 1
jmp 0x569eb8
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 0x569eb8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x10]
cmp byte [eax + 0x3f6], 0
je 0x569d5c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.00568be8
pop ecx
test al, al
je 0x569eb8
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov edx, dword [edx - 4]
call fcn.004038bc
jmp 0x569d7b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x10]
call fcn.005bcb08
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 0x569e39
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 [0x672cec]
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 0x569e39
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 0x569e39
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
movzx ebx, word [eax - 0x6c4]
cmp ebx, 0xa5dc
je 0x569e29
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp ebx, 0xa5ec
jne 0x569e39
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp word [eax - 0x6c2], 0x65
jae 0x569e3d
xor eax, eax
jmp 0x569e3f
mov al, 1
mov ebx, eax
test bl, bl
je 0x569e54
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov byte [eax - 0x6c5], 1
jmp 0x569eb8
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 + 0x3f6], 0
je 0x569e91
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 0x569eb8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x2c]
mov ecx, 1
mov edx, 0xc0000000
call fcn.0065c53c
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 0x569ed5
lea eax, [ebp - 4]
call fcn.00403880
ret
Function at 0x591ec4
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 0x591fa7
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.00651de8
mov dword [ebp - 8], eax
call fcn.00651de8
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x114], 0x4e4
xor eax, eax
push ebp
push 0x591f80
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.0059152c
pop ecx
push ebp
call fcn.00591c60
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x591f8c
mov eax, dword [ebp - 0xc]
call fcn.00652408
mov eax, dword [ebp - 8]
call fcn.00652408
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
Function at 0x598cec
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
xor ebx, ebx
mov eax, dword [0x6720a0]
test byte [eax], 8
setne al
and eax, 0x7f
mov edx, dword [eax*4 + 0x66e714]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
mov ecx, 1
call fcn.0065c53c
mov edi, eax
mov eax, dword [esi]
mov dword [eax + 0x164], edi
inc edi
je 0x598d64
mov eax, dword [0x6720a0]
test byte [eax], 8
je 0x598d4b
mov eax, dword [esi]
mov byte [eax + 0x3f6], 1
mov eax, dword [esi]
mov byte [eax + 0x3f7], 1
mov eax, dword [ebp + 8]
add eax, 0xffffffd4
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov edx, dword [edx + 8]
call fcn.004038bc
jmp 0x598ecd
call sub.kernel32.dll_GetLastError
cmp eax, 0x20
jne 0x598df8
mov eax, dword [esi]
cmp byte [eax + 0x45e], 0
jne 0x598daa
mov eax, dword [0x6720a0]
test byte [eax], 0x40
jne 0x598daa
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov edx, dword [edx + 8]
mov eax, dword [0x6721b4]
mov eax, dword [eax]
mov cl, 3
call fcn.00623644
cmp ax, 7
je 0x598ecf
mov eax, dword [ebp + 8]
push eax
call fcn.00568be8
pop ecx
test al, al
je 0x598ecf
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, 1
mov edx, 0xc0000000
call fcn.0065c53c
mov edx, dword [esi]
mov dword [edx + 0x164], eax
mov eax, dword [ebp + 8]
add eax, 0xffffffd4
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
call fcn.004038bc
mov eax, dword [esi]
mov byte [eax + 0x3f5], 1
jmp 0x598ecd
mov edx, dword [0x6720a0]
test byte [edx], 8
jne 0x598ea4
sub eax, 5
je 0x598e15
sub eax, 0x3c
jne 0x598ea4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
mov ecx, 1
mov edx, 0x80000000
call fcn.0065c53c
mov edi, eax
mov eax, dword [esi]
mov dword [eax + 0x164], edi
inc edi
jne 0x598e63
mov ax, word [0x598ed8]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov edx, dword [edx + 8]
mov eax, dword [0x671bb0]
mov eax, dword [eax]
mov cl, 1
call fcn.0062338c
cmp ax, 2
je 0x598ecf
jmp 0x598cfa
mov eax, dword [esi]
mov byte [eax + 0x3f6], 1
mov eax, dword [ebp + 8]
add eax, 0xffffffd4
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov edx, dword [edx + 8]
call fcn.004038bc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x2c]
push eax
call sub.kernel32.dll_GetFileAttributesW
test al, 1
jne 0x598ecd
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x2c]
mov eax, dword [0x672bbc]
mov eax, dword [eax]
call fcn.00652c10
jmp 0x598ecd
mov ax, word [0x598ed8]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov edx, dword [edx + 8]
mov eax, dword [0x671bb0]
mov eax, dword [eax]
mov cl, 1
call fcn.0062338c
cmp ax, 2
je 0x598ecf
jmp 0x598cfa
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x59c2f4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x59c3d8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
cmp byte [eax - 1], 0xff
jne 0x59c3b7
xor ebx, ebx
lea edx, [ebp - 4]
mov eax, 0x20
call fcn.00624c34
cmp dword [ebp - 4], 0
je 0x59c348
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x160]
mov edx, dword [ebp - 4]
call fcn.006586c0
test al, al
je 0x59c348
mov bl, 1
jmp 0x59c3af
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.00403de4
mov eax, dword [ebp - 4]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
test eax, eax
jne 0x59c371
lea eax, [ebp - 4]
call fcn.00403880
jmp 0x59c38f
lea eax, [ebp - 4]
call fcn.006580fc
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0061f6b8
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.004038bc
cmp dword [ebp - 4], 0
je 0x59c3af
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x160]
mov edx, dword [ebp - 4]
call fcn.006586c0
test al, al
je 0x59c3af
mov bl, 1
mov eax, dword [ebp + 8]
mov byte [eax - 1], bl
jmp 0x59c3bd
mov eax, dword [ebp + 8]
mov bl, byte [eax - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59c3df
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403898
ret
Function at 0x59d584
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 1], cl
mov edi, edx
mov ebx, eax
lea eax, [ebp - 0x40]
mov edx, dword [0x546530]
call fcn.00403e48
xor eax, eax
push ebp
push 0x59d72a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x42b], 1
mov eax, dword [ebx + 0x164]
mov dword [ebp - 0xc], eax
mov eax, edi
call fcn.0065c55c
mov esi, eax
mov dword [ebx + 0x164], esi
inc esi
jne 0x59d5ff
xor edx, edx
mov eax, edi
call fcn.006236a4
cmp ax, 2
jne 0x59d5c5
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x164], eax
mov byte [ebx + 0x42b], 0
mov byte [ebp - 2], 2
jmp 0x59d706
lea eax, [ebp - 8]
mov edx, dword [ebx + 0x160]
call fcn.004038bc
lea eax, [ebx + 0x160]
mov edx, edi
call fcn.004038bc
mov byte [ebp - 0x40], 0
mov eax, dword [0x6730b4]
test byte [eax + 1], 0x20
je 0x59d651
mov eax, ebx
call fcn.005c504c
test al, al
je 0x59d651
lea edx, [ebp - 0x60]
mov eax, dword [ebx + 0x300]
call fcn.0054ade0
lea esi, [ebp - 0x60]
lea edi, [ebp - 0x3c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
jmp 0x59d67e
lea edx, [ebp - 0x60]
mov eax, ebx
call fcn.005c8b04
lea esi, [ebp - 0x60]
lea edi, [ebp - 0x3c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
cmp byte [ebx + 0x433], 0
je 0x59d67e
lea edx, [ebp - 0x2c]
or ecx, 0xffffffff
mov eax, ebx
call fcn.005c8a80
mov eax, dword [ebx + 0x168]
mov dword [ebp - 0x1c], eax
mov al, byte [0x59d73c]
mov byte [ebp - 0x3e], al
mov eax, dword [ebx + 0x16c]
mov dword [ebp - 0x18], eax
mov al, byte [ebx + 0x170]
mov byte [ebp - 0x3f], al
test byte [ebp - 1], 1
je 0x59d6b2
or byte [ebp - 0x3e], 2
mov dword [ebp - 0x1c], 6
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.004038bc
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.005bc404
mov byte [ebp - 2], al
mov eax, dword [ebx + 0x164]
push eax
call sub.kernel32.dll_CloseHandle
cmp byte [ebp - 2], 0
je 0x59d6e8
mov eax, dword [ebx + 0x160]
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x164], eax
lea eax, [ebx + 0x160]
mov edx, dword [ebp - 8]
call fcn.004038bc
mov byte [ebx + 0x42b], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59d731
lea eax, [ebp - 0x40]
mov edx, dword [0x546530]
call fcn.00403f10
lea eax, [ebp - 8]
call fcn.00403880
ret
Function at 0x59d740
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], edx
mov ebx, eax
lea eax, [ebp - 0x38]
mov edx, dword [0x546530]
call fcn.00403e48
xor eax, eax
push ebp
push 0x59d95d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x442], 0
jne 0x59d931
cmp byte [ebx + 0x440], 0
je 0x59d931
cmp byte [ebx + 0x38], 0
jne 0x59d79c
cmp byte [ebx + 0x43d], 0
je 0x59d931
cmp byte [ebx + 0x45c], 0
jne 0x59d931
cmp byte [ebx + 0x43d], 0
jne 0x59d7f1
lea edx, [ebp - 0x3c]
mov al, 1
call fcn.006202a0
mov edx, dword [ebp - 0x3c]
lea eax, [ebx + 0x30]
call fcn.004038bc
mov eax, dword [ebx + 0x30]
call fcn.0065c55c
mov esi, eax
mov dword [ebx + 0x34], esi
inc esi
jne 0x59d7f1
xor edx, edx
mov eax, dword [ebx + 0x30]
call fcn.006236a4
cmp ax, 2
jne 0x59d7c7
xor eax, eax
mov dword [ebx + 0x34], eax
jmp 0x59d931
mov eax, dword [0x672298]
inc dword [eax]
mov byte [ebp - 0x38], 0
lea edx, [ebp - 0x5c]
mov eax, ebx
call fcn.005c8b04
lea esi, [ebp - 0x5c]
lea edi, [ebp - 0x34]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x168], 4
jne 0x59d831
cmp dword [ebx + 0x178], 0
je 0x59d831
mov dword [ebp - 0x14], 4
lea eax, [ebp - 8]
mov edx, dword [ebx + 0x160]
call fcn.004038bc
mov al, byte [0x59d96c]
mov byte [ebp - 0x36], al
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x160]
call fcn.004038bc
lea eax, [ebx + 0x160]
mov edx, dword [ebx + 0x30]
call fcn.004038bc
mov esi, dword [ebx + 0x164]
mov eax, dword [ebx + 0x34]
mov dword [ebx + 0x164], eax
mov byte [ebx + 0x441], 1
mov byte [ebx + 0x442], 1
lea edx, [ebp - 0x38]
mov eax, ebx
call fcn.005bc404
test al, al
jne 0x59d8dd
mov byte [ebx + 0x43d], 1
mov byte [ebx + 0x440], 0
mov eax, dword [ebx + 0x4b0]
mov dword [ebx + 0x4b8], eax
mov eax, 0x811
call fcn.004accd0
mov eax, dword [0x672b54]
mov eax, dword [eax]
mov byte [eax + 0xa], 1
mov eax, dword [ebx + 0x34]
push eax
call sub.kernel32.dll_CloseHandle
mov ecx, 1
mov edx, 0xc0000000
mov eax, dword [ebx + 0x30]
call fcn.0065c53c
mov dword [ebx + 0x34], eax
jmp 0x59d903
cmp byte [ebx + 0x43d], 0
jne 0x59d903
mov eax, dword [ebx + 0x164]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebx + 0x160]
push eax
call sub.kernel32.dll_DeleteFileW
xor eax, eax
mov dword [ebx + 0x34], eax
mov byte [ebx + 0x441], 0
mov dword [ebx + 0x164], esi
lea eax, [ebx + 0x160]
mov edx, dword [ebp - 4]
call fcn.004038bc
call fcn.00509538
mov byte [ebx + 0x442], 0
mov eax, dword [0x672298]
dec dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59d964
lea eax, [ebp - 0x3c]
call fcn.00403880
lea eax, [ebp - 0x38]
mov edx, dword [0x546530]
call fcn.00403f10
lea eax, [ebp - 4]
call fcn.00403880
ret