joyce8/EMBER2024-capa huggingface dataset:
Function at 0x503bca
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
sub esp, 0x64
mov eax, 0x6b6853
call fcn.00651da4
sub esp, 0x30
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, dword [ecx + 8]
cmp esi, edi
je 0x503d95
add ecx, 0x28
mov dword [ebp + 0x48], ecx
push ebx
push 0
lea eax, [esi + 0x34]
push eax
push ecx
lea eax, [ebp]
push eax
call fcn.0045c5cd
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x503c0e
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0x4c]
call fcn.00428153
push 0
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004284eb
mov edx, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x4c]
mov ebx, ecx
cmp edx, 8
jae 0x503c37
lea ebx, [ebp + 0x4c]
mov eax, dword [ebp + 0x5c]
sub eax, dword [esi + 0x44]
lea ebx, [ebx + eax*2]
add ebx, 0xfffffffe
mov dword [ebp + 0x64], ebx
cmp edx, 8
jae 0x503c4e
lea ecx, [ebp + 0x4c]
push 0x5c
push ecx
call fcn.0066cbdb
pop ecx
pop ecx
cmp eax, ebx
jb 0x503d73
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp + 0x60], 8
mov eax, dword [ebp + 0x4c]
jae 0x503c71
lea eax, [ebp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x503d68
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x91
jne 0x503d68
push str.thumbs.db
lea ecx, [ebp + 0x30]
call fcn.00428153
push 0
lea eax, [ebp + 0x30]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0045c5cd
cmp dword [eax + 0x14], 8
jb 0x503cbd
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
lea ecx, [ebp - 0x24]
push 0
push 1
setne bh
call fcn.004284eb
push 0
push 1
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 2
call fcn.004284eb
push str..DS_Store
lea ecx, [ebp + 0x18]
call fcn.00428153
push 0
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0045c5cd
cmp dword [eax + 0x14], 8
jb 0x503d11
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
lea ecx, [ebp - 0x3c]
push 0
push 1
setne bl
call fcn.004284eb
push 0
push 1
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 2
call fcn.004284eb
test bh, bh
jne 0x503d41
test bl, bl
je 0x503d73
cmp dword [ebp + 0x60], 8
mov eax, dword [ebp + 0x4c]
jae 0x503d4d
lea eax, [ebp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x503d65
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x91
je 0x503d73
mov ebx, dword [ebp + 0x64]
mov edx, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x4c]
jmp 0x503c46
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x4c]
push 0
push 1
call fcn.004284eb
mov ecx, dword [ebp + 0x48]
add esi, 0x9c
cmp esi, edi
jne 0x503bf2
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
lea esp, [ebp + 0x68]
pop ebp
ret
Function at 0x503da6
Capabilities:
Delete file

Disassembly:
mov eax, 0x6b689b
call fcn.00651da4
sub esp, 0x78
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0045d475
test al, al
je 0x503f43
push ebx
xor ebx, ebx
push esi
cmp byte [ebp + 0xc], bl
je 0x503ea8
push edi
call fcn.0045d358
mov esi, eax
test esi, esi
je 0x503f41
call fcn.0049052c
push eax
push 0x21
lea ecx, [ebp - 0x1c]
call fcn.0048ffa4
push edi
push str.fileName
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.00463556
push esi
push str.error
lea ecx, [ebp - 0x1c]
call fcn.00463556
lea eax, [ebp - 0x1c]
push eax
call fcn.00491a76
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00490055
push esi
push edi
push str.Warning:_Delete_to_trash_failed_for__S._Error:__d._Deleting_permanently.
push 0x800
call fcn.00485bac
add esp, 0x10
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.0043f4e7
push eax
xor esi, esi
lea eax, [ebp - 0x3c]
push str._to_trash_:1___error_code_:
inc esi
push eax
mov dword [ebp - 4], esi
call fcn.00428d1d
push ebx
push esi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.0040facf
push str.deletefail
lea ecx, [ebp - 0x24]
call fcn.0040f49f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x21
call fcn.004857ae
push ebx
push esi
lea ecx, [ebp - 0x24]
call fcn.0040facf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
push ebx
push esi
call fcn.0040facf
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x503f41
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push edi
push str.Warning:_Delete_to_trash_failed_for__S._Error:__d._Deleting_permanently.
push 0x800
call fcn.00485bac
add esp, 0x10
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.00472f4e
push eax
push str._to_trash_:0___error_code_:
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 5
push eax
call fcn.00428d1d
push ebx
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.0040facf
push str.deletefail
lea ecx, [ebp - 0x54]
call fcn.0040f49f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x6c]
push eax
push 0x21
call fcn.004857ae
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.0040facf
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.0040facf
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x504882
Capabilities:
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov ecx, 0x9c
mov bl, 1
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
cdq
idiv ecx
test eax, eax
je 0x504914
push edi
xor edi, edi
mov eax, dword [esi + 4]
add eax, edi
test byte [eax + 0x66], 0x20
jne 0x504903
push eax
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.005041a1
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jae 0x5048ca
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, dword [esp + 0x10]
or eax, 1
cmp dword [esp + 0x24], 8
jae 0x5048e3
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
neg eax
lea ecx, [esp + 0x10]
push 0
sbb al, al
push 1
and bl, al
call fcn.004284eb
mov ecx, 0x9c
mov eax, dword [esi + 8]
inc ebp
sub eax, dword [esi + 4]
add edi, ecx
cdq
idiv ecx
cmp ebp, eax
jb 0x5048a3
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x18
ret

Function at 0x50491d
Capabilities:
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov ecx, 0x9c
mov bl, 1
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
cdq
idiv ecx
test eax, eax
je 0x5049af
push edi
xor edi, edi
mov eax, dword [esi + 4]
add eax, edi
test byte [eax + 0x66], 0x20
jne 0x50499e
push eax
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.005041a1
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jae 0x504965
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, dword [esp + 0x10]
and eax, 0xfffffffe
cmp dword [esp + 0x24], 8
jae 0x50497e
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
neg eax
lea ecx, [esp + 0x10]
push 0
sbb al, al
push 1
and bl, al
call fcn.004284eb
mov ecx, 0x9c
mov eax, dword [esi + 8]
inc ebp
sub eax, dword [esi + 4]
add edi, ecx
cdq
idiv ecx
cmp ebp, eax
jb 0x50493e
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x18
ret
Function at 0x504cc7
Capabilities:
Move file

Disassembly:
mov eax, 0x6b68ad
call fcn.00651da4
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
push edi
call fcn.0050391e
imul ecx, dword [ebp + 8], 0x9c
mov eax, dword [ebx + 4]
add eax, ecx
mov dword [ebp + 8], ecx
push eax
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.005041a1
and dword [ebp - 4], edi
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x504d0b
lea eax, [ebp - 0x24]
push eax
call fcn.0045d475
mov esi, dword [ebp + 0xc]
test al, al
je 0x504d46
cmp dword [esi + 0x14], 8
jb 0x504d22
mov ecx, dword [esi]
jmp 0x504d24
mov ecx, esi
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x504d30
lea eax, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x504d46
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
jmp 0x504d5f
sub esp, 0x18
mov ecx, esp
push esi
call fcn.0042812e
mov eax, dword [ebx + 4]
mov ecx, ebx
add eax, dword [ebp + 8]
push eax
call fcn.00505221
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004284eb
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x504d80
Capabilities:
Move file

Disassembly:
mov eax, 0x6b6922
call fcn.00651da4
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
and dword [ebp - 4], 0
xor ebx, ebx
push ebx
call fcn.0050391e
mov al, byte [esi + 0x89]
mov ecx, esi
test al, al
jne 0x504e0b
call fcn.00505b6c
mov edi, 0x70000001
test al, al
je 0x504de1
mov edx, dword [esi + 4]
lea ecx, [esi + 0x28]
push 1
mov al, byte [edx + 0x66]
shr al, 2
and al, 1
movzx eax, al
push eax
lea eax, [ebp + 8]
push eax
push ecx
lea eax, [edx + 0x34]
push eax
push dword [ebp + 0x20]
call fcn.005049b8
mov ebx, eax
jmp 0x504de3
mov ebx, edi
test ebx, ebx
je 0x504def
cmp ebx, edi
jne 0x504f09
sub esp, 0x18
mov ecx, esp
push dword [ebp + 0x20]
call fcn.0042812e
push dword [esi + 4]
mov ecx, esi
call fcn.00505221
jmp 0x504eef
call fcn.00505b6c
test al, al
je 0x504eea
and dword [ebp - 0x18], ebx
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
jae 0x504e38
lea eax, [ebp + 8]
lea edi, [esi + 0x28]
cmp dword [edi + 0x14], 8
jb 0x504e45
mov ecx, dword [edi]
jmp 0x504e47
mov ecx, edi
push eax
push ecx
push str.Moving_files_from__s_to__s
call fcn.0047995d
mov ecx, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0x1c], 8
jae 0x504e62
lea ecx, [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x504e6c
mov eax, dword [edi]
jmp 0x504e6e
mov eax, edi
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x504e96
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x504ea8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00504f5b
mov ebx, eax
test ebx, ebx
jne 0x504edc
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004284eb
jmp 0x504eef
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x504eb4
lea eax, [ebp + 8]
push eax
call fcn.0045e721
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x504ec6
lea eax, [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x504ece
mov edi, dword [edi]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x504e96
jmp 0x504e85
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004284eb
jmp 0x504f09
mov ebx, 0x70000001
call fcn.00475363
lea eax, [ebp + 8]
lea ecx, [esi + 0x28]
push eax
call fcn.004281d1
mov byte [ebp - 4], 2
call fcn.004753a4
push 0
push 1
lea ecx, [ebp + 8]
call fcn.004284eb
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x504f5b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x6b693c
call fcn.00651da4
sub esp, 0x50
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, 0x9c
mov dword [ebp - 0x14], ebx
push edi
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
cdq
idiv ecx
add eax, 1
je 0x5050ad
lea edi, [esi + 0x28]
and dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
and dword [ebp - 4], eax
test ebx, ebx
jne 0x504fda
push dword [esi + 0x24]
push dword [esi + 0x20]
call fcn.00490f1c
push eax
lea eax, [ebp - 0x5c]
push str._sPartFile__LX.dat
push eax
call fcn.00462014
add esp, 0x14
lea ecx, [ebp - 0x2c]
push eax
call fcn.004281d1
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.004284eb
mov byte [ebp - 0x10], bl
jmp 0x50500b
imul edi, ebx, 0x9c
lea ecx, [ebp - 0x2c]
mov ebx, dword [esi + 4]
lea eax, [ebx - 0x68]
add eax, edi
cmp ecx, eax
je 0x504ff9
push 0xffffffffffffffff
push 0
push eax
call fcn.00428657
mov al, byte [edi + ebx - 0x36]
lea edi, [esi + 0x28]
mov ebx, dword [ebp - 0x14]
shr al, 2
and al, 1
mov byte [ebp - 0x10], al
push 0
lea eax, [ebp - 0x2c]
push eax
sub esp, 0x18
mov ecx, esp
push dword [ebp + 8]
call fcn.0042812e
lea eax, [ebp - 0x44]
push eax
call fcn.0045c726
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
jae 0x505037
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x50505a
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x50504f
lea ecx, [ebp - 0x44]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push 1
push dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push dword [ebp + 8]
push edi
push eax
push eax
call fcn.005049b8
push 0
lea ecx, [ebp - 0x44]
mov edi, eax
push 1
call fcn.004284eb
lea ecx, [ebp - 0x2c]
push 0
push 1
test edi, edi
jne 0x5050c9
or dword [ebp - 4], 0xffffffff
call fcn.004284eb
mov eax, dword [esi + 8]
lea edi, [esi + 0x28]
sub eax, dword [esi + 4]
mov ecx, 0x9c
cdq
inc ebx
idiv ecx
mov dword [ebp - 0x14], ebx
inc eax
cmp ebx, eax
jne 0x504f8c
mov ecx, esi
call fcn.00503bca
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004284eb
mov eax, edi
jmp 0x5050b6
Function at 0x505b6c
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov eax, 0x6b69bc
call fcn.00651da4
sub esp, 0x64
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 0xd], 0
lea esi, [edi + 0x28]
push esi
call fcn.0045ca59
push esi
test al, al
je 0x505ba1
lea ecx, [ebp - 0x70]
call fcn.0042812e
xor ebx, ebx
inc ebx
jmp 0x505bad
lea eax, [ebp - 0x58]
push eax
call fcn.004701a9
push 2
pop ebx
push eax
lea ecx, [ebp - 0x40]
call fcn.0042810c
mov dword [ebp - 4], 1
test bl, 2
je 0x505bd1
push 0
push 1
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffd
call fcn.004284eb
mov byte [ebp - 4], 2
test bl, 1
je 0x505be9
xor ebx, ebx
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.004284eb
jmp 0x505beb
xor ebx, ebx
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0050423a
cmp dword [ebp - 0x18], 0
mov esi, ebx
jbe 0x505c77
push esi
lea ecx, [ebp - 0x28]
call fcn.004733af
cmp dword [eax + 0x14], 8
jb 0x505c13
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov edx, dword [ebp - 0x18]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x505c40
test cl, 0x10
jne 0x505c73
lea eax, [edx - 1]
cmp esi, eax
je 0x505c4c
test ecx, 0x1000
jne 0x505c47
test ecx, 0x400
jne 0x505c47
inc esi
cmp esi, edx
jb 0x505c02
jmp 0x505c77
mov byte [ebp - 0xd], bl
jmp 0x505c77
push esi
lea ecx, [ebp - 0x28]
call fcn.004733af
cmp dword [eax + 0x14], 8
jb 0x505c5d
mov eax, dword [eax]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
setne byte [ebp - 0xd]
jmp 0x505c77
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x28]
call fcn.00472e12
push 8
push 1
push dword [ebp - 0x28]
call fcn.004283e8
push ebx
push 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x28], ebx
call fcn.004284eb
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x506991
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6b6a62
call fcn.00651da4
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0051aa1e
xor ebx, ebx
mov dword [esi + 0xc], 0x6f35a4
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], 0x6d2024
mov dword [esi + 0x14], ebx
mov eax, dword [ebp + 0xc]
mov dl, byte [ebp + 8]
mov dword [esi], 0x6f3628
mov dword [esi + 0xc], 0x6f3b4c
mov dword [esi + 0x10], 0x6f3a08
mov byte [esi + 0x18], dl
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x24], bl
mov dword [esi + 0x28], ebx
mov byte [esi + 0x30], bl
mov ecx, dword [eax]
movzx eax, dl
push eax
push ecx
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
call fcn.00502efb
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
push 0x7ce6cc
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x2c], ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x20], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5089f2
Capabilities:
Get memory capacity

Disassembly:
mov eax, 0x6c86f8
call fcn.00651da4
sub esp, 0x24
push esi
push edi
mov al, 1
mov ecx, 0x7ce6c8
xchg byte [ecx], al
push str.ntdll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push str.NtSetInformationFile
push eax
mov dword [0x7ceb90], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0xc
mov dword [0x7c0a98], eax
call fcn.00651ae6
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x508a5e
mov edi, ecx
xor eax, eax
xor esi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ecx + 4], 0x6d2024
mov dword [ecx + 8], esi
mov dword [ecx], 0x6f3f08
mov dword [ecx + 4], 0x6f3f1c
jmp 0x508a62
xor esi, esi
mov ecx, esi
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x508a6f
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
call fcn.00537769
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
test eax, eax
je 0x508a8f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov edi, 0x6e14c0
push 0x6f3fdc
push edi
call fcn.004608c1
push str.SetFileValidData
push edi
mov dword [0x7ceb5c], eax
call fcn.004608c1
mov dword [0x7ceb60], eax
test eax, eax
je 0x508acd
push 2
push str.SeManageVolumePrivilege
call fcn.0045e5f4
mov byte [0x7ceb3c], al
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
push 0x6f4020
push 0x7ceb64
mov dword [0x7ceb40], eax
call fcn.00467f7b
push 0x6f4024
push 0x7d03c8
call fcn.00467f7b
push 0x6f4028
push 0x7ceb44
call fcn.00467f7b
call fcn.004f139e
push 0x6f402c
push 0x7a0c00
call fcn.004f13ef
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
mov ecx, 0x8000000
cmp dword [ebp - 0x28], ecx
push esi
sbb eax, eax
and eax, 0xf8800000
add eax, ecx
push eax
push esi
push dword [ebp - 0x28]
mov dword [0x7ce6d4], eax
push str.total_physical_memory__Ld_max_disk_cache__Ld
call fcn.004798e6
add esp, 0x14
call fcn.0054414c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x50afe9
Capabilities:
Clear file content
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x7ceb3c], 0
push ebx
push esi
push edi
je 0x50b005
cmp byte [0x7ce6d9], 0
je 0x50b005
xor bl, bl
jmp 0x50b007
mov bl, 1
cmp byte [ebp + 0x20], 0
mov edi, dword [ebp + 8]
je 0x50b03f
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x50b01b
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test eax, 0x200
je 0x50b062
push 0
lea eax, [ebp + 8]
mov byte [ebp + 0x23], 0
push eax
push 0
push 0
push 1
lea eax, [ebp + 0x23]
push eax
jmp 0x50b056
cmp byte [0x7ce6d8], 0
je 0x50b062
push 0
lea eax, [ebp + 8]
push eax
push 0
push 0
push 0
push 0
push 0x900c4
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
cmp byte [ebp + 0x1c], 0
jne 0x50b0d3
mov esi, dword [ebp + 0x10]
add esi, 8
mov byte [0x7ce6c9], 1
test bl, bl
je 0x50b086
push dword [esi + 4]
push dword [esi]
push edi
call fcn.0045ddd9
jmp 0x50b0a5
push 0
push dword [esi + 4]
push dword [esi]
push edi
call fcn.0045db01
and eax, edx
cmp eax, 0xffffffff
je 0x50b0dd
push edi
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
je 0x50b0dd
cmp byte [0x7ceb3c], 0
je 0x50b0cc
cmp byte [0x7ce6d9], 0
je 0x50b0cc
cmp byte [0x7ce6d8], 0
jne 0x50b0cc
push dword [esi + 4]
push dword [esi]
push edi
call dword [0x7ceb60]
mov byte [0x7ce6c9], 0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
mov byte [0x7ce6c9], 0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
jmp 0x50b0d6

Function at 0x50c5c8
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, 0x6b71cf
call fcn.00651da4
sub esp, 0x14
push ebx
xor ebx, ebx
mov byte [ebp - 0xd], 1
push edi
mov edi, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
push dword [edi + 4]
call fcn.0050c34c
test al, al
je 0x50c682
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
mov edx, dword [ebp - 0x20]
sub eax, edx
sar eax, 2
push esi
mov esi, ebx
test eax, eax
je 0x50c653
push dword [edx + esi*4]
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
cmp eax, 0xffffffff
jne 0x50c63e
mov byte [ebp - 0xd], bl
mov edi, ebx
test esi, esi
jle 0x50c63e
mov eax, dword [ebp - 0x20]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
inc edi
cmp edi, esi
jl 0x50c62d
mov ecx, dword [ebp - 0x1c]
inc esi
mov edx, dword [ebp - 0x20]
mov eax, ecx
sub eax, edx
sar eax, 2
cmp esi, eax
jb 0x50c616
mov edi, dword [ebp - 0x14]
sub ecx, edx
sar ecx, 2
pop esi
test ecx, ecx
je 0x50c676
push dword [edx + ebx*4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x1c]
inc ebx
mov edx, dword [ebp - 0x20]
sub eax, edx
sar eax, 2
cmp ebx, eax
jb 0x50c65d
mov al, byte [ebp - 0xd]
test al, al
je 0x50c680
inc dword [edi + 0x14]
mov bl, al
lea ecx, [ebp - 0x20]
call fcn.005f4b53
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x50c734
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x6b720f
call fcn.00651da4
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0xd0]
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x50c755
push 0
lea eax, [ebp - 0x14]
sub esi, ecx
push eax
mov eax, 0xbb7
sub eax, esi
push eax
lea eax, [ebx + esi]
push eax
push dword [edi + 0xa8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
mov eax, dword [ebp - 0x14]
je 0x50c78b
mov byte [ebp - 0xd], 1
test eax, eax
jne 0x50c78f
mov byte [ebp - 0xd], 0
add eax, esi
push 0xa
push ebx
mov byte [eax + edi + 0xd0], 0
mov eax, dword [ebp - 0x14]
add dword [edi + 0xc], eax
adc dword [edi + 0x10], 0
call fcn.0066cab0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x50c7c4
push 0xd
push ebx
call fcn.0066cab0
pop ecx
pop ecx
mov esi, eax
jmp 0x50c8a7
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040f49f
mov eax, esi
mov dword [ebp - 0x18], 0xf
sub eax, edi
xor ecx, ecx
sub eax, 0xd0
mov dword [ebp - 4], ecx
push eax
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x2c], cl
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040f9be
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040facf
jmp 0x50c80d
cmp al, 0x20
jae 0x50c813
inc esi
mov al, byte [esi]
test al, al
jne 0x50c808
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50c818
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push ebx
call fcn.00669cc0
push 0xa
push ebx
call fcn.0066cab0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x50c84b
push 0xd
push ebx
call fcn.0066cab0
pop ecx
mov esi, eax
pop ecx
test esi, esi
setne al
lea ecx, [edi + 0xac]
movzx eax, al
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.005464d5
lea ecx, [edi + 0xac]
call fcn.00546577
fmul qword [0x6dd158]
call fcn.00652680
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
test eax, eax
je 0x50c897
lea ecx, [edi + 0xac]
call fcn.005461b8
call fcn.00652680
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.0040facf
test esi, esi
jne 0x50c7c4
cmp byte [ebp - 0xd], 0
jne 0x50c750
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4