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

Disassembly:
push ebp
sub esp, 0x64
mov eax, 0x6747c6
call fcn.006313fc
sub esp, 0x30
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, dword [ecx + 8]
cmp esi, edi
je 0x4fd2cb
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.0045daae
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x4fd144
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0x4c]
call fcn.004249e7
push 0
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0042341c
mov edx, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x4c]
mov ebx, ecx
cmp edx, 8
jae 0x4fd16d
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 0x4fd184
lea ecx, [ebp + 0x4c]
push 0x5c
push ecx
call fcn.00637ecd
pop ecx
pop ecx
cmp eax, ebx
jb 0x4fd2a9
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp + 0x60], 8
mov eax, dword [ebp + 0x4c]
jae 0x4fd1a7
lea eax, [ebp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x4fd29e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x91
jne 0x4fd29e
push str.thumbs.db
lea ecx, [ebp + 0x30]
call fcn.004249e7
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.0045daae
cmp dword [eax + 0x14], 8
jb 0x4fd1f3
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.0042341c
push 0
push 1
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 2
call fcn.0042341c
push str..DS_Store
lea ecx, [ebp + 0x18]
call fcn.004249e7
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.0045daae
cmp dword [eax + 0x14], 8
jb 0x4fd247
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.0042341c
push 0
push 1
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 2
call fcn.0042341c
test bh, bh
jne 0x4fd277
test bl, bl
je 0x4fd2a9
cmp dword [ebp + 0x60], 8
mov eax, dword [ebp + 0x4c]
jae 0x4fd283
lea eax, [ebp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x4fd29b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x91
je 0x4fd2a9
mov ebx, dword [ebp + 0x64]
mov edx, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x4c]
jmp 0x4fd17c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x4c]
push 0
push 1
call fcn.0042341c
mov ecx, dword [ebp + 0x48]
add esi, 0x9c
cmp esi, edi
jne 0x4fd128
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 0x4fd2dc
Capabilities:
Delete file

Disassembly:
mov eax, 0x6747f8
call fcn.006313fc
sub esp, 0x60
push edi
mov edi, dword [esp + 0x78]
push edi
call fcn.0045e93a
test al, al
je 0x4fd460
push ebx
push ebp
xor ebp, ebp
xor ebx, ebx
inc ebp
push esi
cmp byte [esp + 0x88], bl
je 0x4fd3dd
push edi
call fcn.0045e81d
mov esi, eax
test esi, esi
je 0x4fd45d
call fcn.00490095
push eax
push 0x21
lea ecx, [esp + 0x18]
call fcn.0048f892
push edi
push str.fileName
lea ecx, [esp + 0x18]
mov dword [esp + 0x80], ebx
call fcn.004626fb
push esi
push str.error
lea ecx, [esp + 0x18]
call fcn.004626fb
lea eax, [esp + 0x10]
push eax
call fcn.00491509
or dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0048f8e2
push esi
push edi
push str.Warning:_Delete_to_trash_failed_for__S._Error:__d._Deleting_permanently.
push 0x800
call fcn.00484d2b
push esi
push ebp
lea eax, [esp + 0x40]
push str._to_trash_:_d___error_code_:_d
push eax
call fcn.00472228
add esp, 0x20
push str.deletefail
lea ecx, [esp + 0x14]
mov dword [esp + 0x7c], ebp
call fcn.00409ba7
push ebx
push ebx
push ebx
lea eax, [esp + 0x1c]
mov byte [esp + 0x84], 2
push eax
lea eax, [esp + 0x38]
push eax
push 0x21
call fcn.00484725
push ebx
push ebp
lea ecx, [esp + 0x18]
call fcn.0040a0e9
or dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x28]
push ebx
push ebp
call fcn.0040a0e9
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x4fd45d
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.00484d2b
push esi
push ebx
lea eax, [esp + 0x70]
push str._to_trash_:_d___error_code_:_d
push eax
call fcn.00472228
add esp, 0x20
push str.deletefail
lea ecx, [esp + 0x44]
mov dword [esp + 0x7c], 3
call fcn.00409ba7
push ebx
push ebx
push ebx
lea eax, [esp + 0x4c]
mov byte [esp + 0x84], 4
push eax
lea eax, [esp + 0x68]
push eax
push 0x21
call fcn.00484725
push ebx
push ebp
lea ecx, [esp + 0x48]
call fcn.0040a0e9
push ebx
push ebp
lea ecx, [esp + 0x60]
call fcn.0040a0e9
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
pop edi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4fdd3c
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 0x4fddce
push edi
xor edi, edi
mov eax, dword [esi + 4]
add eax, edi
test byte [eax + 0x66], 0x20
jne 0x4fddbd
push eax
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.004fd6a4
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jae 0x4fdd84
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 0x4fdd9d
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.0042341c
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 0x4fdd5d
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x18
ret

Function at 0x4fddd7
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 0x4fde69
push edi
xor edi, edi
mov eax, dword [esi + 4]
add eax, edi
test byte [eax + 0x66], 0x20
jne 0x4fde58
push eax
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.004fd6a4
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jae 0x4fde1f
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 0x4fde38
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.0042341c
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 0x4fddf8
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x18
ret
Function at 0x4fe20b
Capabilities:
Move file

Disassembly:
mov eax, 0x66d28b
call fcn.006313fc
sub esp, 0x18
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, ecx
push edi
call fcn.004fce34
imul ebp, dword [esp + 0x3c], 0x9c
mov ecx, ebx
mov eax, dword [ebx + 4]
add eax, ebp
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004fd6a4
and dword [esp + 0x30], edi
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jae 0x4fe253
lea eax, [esp + 0x10]
push eax
call fcn.0045e93a
mov esi, dword [esp + 0x40]
test al, al
je 0x4fe292
cmp dword [esi + 0x14], 8
jb 0x4fe26b
mov ecx, dword [esi]
jmp 0x4fe26d
mov ecx, esi
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jae 0x4fe27c
lea eax, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x4fe292
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
jmp 0x4fe2aa
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00422efb
mov eax, dword [ebx + 4]
mov ecx, ebx
add eax, ebp
push eax
call fcn.004fe73e
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.0042341c
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x4fe2cc
Capabilities:
Move file

Disassembly:
mov eax, 0x674867
call fcn.006313fc
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov esi, ecx
and dword [esp + 0x34], 0
xor ebx, ebx
push ebx
call fcn.004fce34
mov al, byte [esi + 0x89]
mov ecx, esi
test al, al
jne 0x4fe35c
call fcn.004ff0cf
mov edi, 0x70000001
test al, al
je 0x4fe331
mov ecx, dword [esi + 4]
push 1
mov al, byte [ecx + 0x66]
shr al, 2
and al, 1
movzx eax, al
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esi + 0x28]
push eax
lea eax, [ecx + 0x34]
push eax
push dword [esp + 0x6c]
call fcn.004fde72
mov ebx, eax
jmp 0x4fe333
mov ebx, edi
test ebx, ebx
je 0x4fe33f
cmp ebx, edi
jne 0x4fe468
sub esp, 0x18
mov ecx, esp
push dword [esp + 0x70]
call fcn.00422efb
push dword [esi + 4]
mov ecx, esi
call fcn.004fe73e
jmp 0x4fe451
call fcn.004ff0cf
test al, al
je 0x4fe44c
and dword [esp + 0x24], ebx
xor eax, eax
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x40]
push 8
pop ebp
mov byte [esp + 0x34], 1
cmp dword [esp + 0x54], ebp
jae 0x4fe392
lea eax, [esp + 0x40]
lea edi, [esi + 0x28]
cmp dword [edi + 0x14], ebp
jb 0x4fe39e
mov ecx, dword [edi]
jmp 0x4fe3a0
mov ecx, edi
push eax
push ecx
push str.Moving_files_from__s_to__s
call fcn.004790ad
mov eax, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x54], ebp
jae 0x4fe3bd
lea eax, [esp + 0x40]
cmp dword [edi + 0x14], ebp
jb 0x4fe3c6
mov ecx, dword [edi]
jmp 0x4fe3c8
mov ecx, edi
mov ebp, dword [sym.imp.KERNEL32.DLL_MoveFileW]
push eax
push ecx
call ebp
test eax, eax
jne 0x4fe3f3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x4fe407
lea eax, [esp + 0x40]
mov ecx, esi
push eax
call fcn.004fe4bb
mov ebx, eax
test ebx, ebx
jne 0x4fe43d
push 0
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 0
call fcn.0042341c
jmp 0x4fe451
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x4fe416
lea eax, [esp + 0x40]
push eax
call fcn.0045f74f
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x4fe42b
lea eax, [esp + 0x40]
cmp dword [edi + 0x14], 8
jb 0x4fe433
mov edi, dword [edi]
push eax
push edi
call ebp
test eax, eax
jne 0x4fe3f3
jmp 0x4fe3e1
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.0042341c
jmp 0x4fe468
mov ebx, 0x70000001
call fcn.00475044
lea eax, [esp + 0x40]
push eax
lea ecx, [esi + 0x28]
call fcn.0044dbe6
call fcn.00475085
push 0
push 1
lea ecx, [esp + 0x48]
call fcn.0042341c
mov ecx, dword [esp + 0x2c]
mov eax, ebx
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret 0x1c
Function at 0x4fe4bb
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x674881
call fcn.006313fc
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov ecx, 0x9c
push edi
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
cdq
idiv ecx
inc eax
je 0x4fe61e
lea ebx, [esi + 0x28]
and dword [esp + 0x28], 0
xor eax, eax
mov dword [esp + 0x2c], 7
mov word [esp + 0x18], ax
and dword [esp + 0x68], eax
test ebp, ebp
jne 0x4fe53f
push dword [esi + 0x24]
push dword [esi + 0x20]
call fcn.00490b0d
push eax
lea eax, [esp + 0x54]
push str._sPartFile__LX.dat
push eax
call fcn.0047224d
add esp, 0x14
lea ecx, [esp + 0x18]
push eax
call fcn.0044dbe6
push ebp
push 1
lea ecx, [esp + 0x50]
call fcn.0042341c
mov byte [esp + 0x10], 0
jmp 0x4fe56f
mov ebx, dword [esi + 4]
lea ecx, [esp + 0x18]
imul edi, ebp, 0x9c
lea eax, [ebx - 0x68]
add eax, edi
cmp ecx, eax
je 0x4fe55f
push 0xffffffffffffffff
push 0
push eax
call fcn.0042358a
mov al, byte [edi + ebx - 0x36]
lea ebx, [esi + 0x28]
shr al, 2
and al, 1
mov byte [esp + 0x10], al
push 0
lea eax, [esp + 0x1c]
push eax
sub esp, 0x18
mov ecx, esp
push dword [esp + 0x94]
call fcn.00422efb
lea eax, [esp + 0x50]
push eax
call fcn.0045dbfb
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
mov byte [esp + 0x68], 1
jae 0x4fe5a5
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4fe5cb
cmp dword [esp + 0x44], 8
mov ecx, dword [esp + 0x30]
jae 0x4fe5c0
lea ecx, [esp + 0x30]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push 1
push dword [esp + 0x14]
lea eax, [esp + 0x20]
push dword [esp + 0x7c]
push ebx
push eax
push eax
call fcn.004fde72
push 0
lea ecx, [esp + 0x34]
mov edi, eax
push 1
call fcn.0042341c
lea ecx, [esp + 0x18]
push 0
push 1
test edi, edi
jne 0x4fe63a
or dword [esp + 0x70], 0xffffffff
call fcn.0042341c
mov eax, dword [esi + 8]
mov ecx, 0x9c
sub eax, dword [esi + 4]
inc ebp
cdq
idiv ecx
inc eax
cmp ebp, eax
jne 0x4fe4e8
mov ecx, esi
call fcn.004fd100
xor eax, eax
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret 4
call fcn.0042341c
mov eax, edi
jmp 0x4fe627
Function at 0x4ff0cf
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov eax, 0x6748e9
call fcn.006313fc
sub esp, 0x60
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov edi, ecx
xor bl, bl
lea esi, [edi + 0x28]
cmp dword [esi + 0x14], 8
jb 0x4ff0f4
mov eax, dword [esi]
jmp 0x4ff0f6
mov eax, esi
push eax
call fcn.0045deea
push esi
test al, al
je 0x4ff110
lea ecx, [ebp - 0x6c]
call fcn.00422efb
mov ecx, eax
xor eax, eax
inc eax
jmp 0x4ff11e
lea eax, [ebp - 0x54]
push eax
call fcn.0046e8dd
push 2
mov ecx, eax
pop eax
push ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], eax
call fcn.00422ed9
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
test al, 2
je 0x4ff14d
push 0
and eax, 0xfffffffd
lea ecx, [ebp - 0x54]
push 1
mov dword [ebp - 0x10], eax
call fcn.0042341c
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
test al, 1
je 0x4ff161
push 0
push 1
lea ecx, [ebp - 0x6c]
call fcn.0042341c
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004fd722
xor esi, esi
cmp dword [ebp - 0x14], esi
jbe 0x4ff1ea
push esi
lea ecx, [ebp - 0x24]
call fcn.004f47a5
cmp dword [eax + 0x14], 8
jb 0x4ff188
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov edx, dword [ebp - 0x14]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4ff1b5
test cl, 0x10
jne 0x4ff1e8
lea eax, [edx - 1]
cmp esi, eax
je 0x4ff1c0
test ecx, 0x1000
jne 0x4ff1bc
test ecx, 0x400
jne 0x4ff1bc
inc esi
cmp esi, edx
jb 0x4ff177
jmp 0x4ff1ea
xor bl, bl
jmp 0x4ff1ea
push esi
lea ecx, [ebp - 0x24]
call fcn.004f47a5
cmp dword [eax + 0x14], 8
jb 0x4ff1d1
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
setne bl
jmp 0x4ff1ea
mov bl, 1
lea ecx, [ebp - 0x24]
call fcn.00614a15
push dword [ebp - 0x24]
call fcn.0040a313
and dword [ebp - 0x24], 0
pop ecx
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.0042341c
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4ffdd2
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x67497d
call fcn.006313fc
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0050f659
xor ebx, ebx
mov dword [esi + 0xc], 0x6ab400
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], 0x68987c
mov dword [esi + 0x14], ebx
mov eax, dword [ebp + 0xc]
mov dl, byte [ebp + 8]
mov dword [esi], 0x6ab484
mov dword [esi + 0xc], 0x6abb40
mov dword [esi + 0x10], 0x6ab75c
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.004fc40d
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 0x76b8f0
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 0x501e6c
Capabilities:
Get memory capacity

Disassembly:
mov eax, 0x673d8a
call fcn.006313fc
sub esp, 0x24
mov al, 1
mov ecx, 0x76bd5c
push esi
xchg byte [ecx], al
push 0x6abcf4
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push str.NtSetInformationFile
push eax
mov dword [0x76bdb0], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0xc
mov dword [0x75dffc], eax
call fcn.00630af1
pop ecx
mov ecx, eax
xor esi, esi
test ecx, ecx
je 0x501ecd
mov dword [ecx + 4], 0x68987c
mov dword [ecx + 8], esi
mov dword [ecx], 0x6abc3c
mov dword [ecx + 4], 0x6abc50
jmp 0x501ecf
mov ecx, esi
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x501edc
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
call fcn.0052af1e
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x501ef9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
push 0x6abd18
mov edi, 0x698990
push edi
call fcn.004617d7
push str.SetFileValidData
push edi
mov dword [0x76bd7c], eax
call fcn.004617d7
mov dword [0x76bd80], eax
pop edi
test eax, eax
je 0x501f35
push 2
push str.SeManageVolumePrivilege
call fcn.0045f622
mov byte [0x76bd5e], al
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
push 0x6abd5c
push 0x76bd84
mov dword [0x76bd60], eax
call fcn.00466fdc
push 0x6abd60
push 0x76d5f4
call fcn.00466fdc
push 0x6abd64
push 0x76bd64
call fcn.00466fdc
call fcn.004ed098
push 0x6abd68
push 0x7417ec
call fcn.004ed0e9
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 [0x76b938], eax
push str.total_physical_memory__Ld_max_disk_cache__Ld
call fcn.00479036
add esp, 0x14
call fcn.005397d6
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5044c8
Capabilities:
Clear file content
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x76bd5e], 0
push ebx
push esi
push edi
je 0x5044e4
cmp byte [0x76b8f9], 0
je 0x5044e4
xor bl, bl
jmp 0x5044e6
mov bl, 1
cmp byte [ebp + 0x20], 0
mov edi, dword [ebp + 8]
je 0x50451e
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x5044fa
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test eax, 0x200
je 0x504541
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 0x504535
cmp byte [0x76b8f8], 0
je 0x504541
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 0x5045b2
mov esi, dword [ebp + 0x10]
add esi, 8
mov byte [0x76b8ed], 1
test bl, bl
je 0x504565
push dword [esi + 4]
push dword [esi]
push edi
call fcn.0045f26d
jmp 0x504584
push 0
push dword [esi + 4]
push dword [esi]
push edi
call fcn.0045efda
and eax, edx
cmp eax, 0xffffffff
je 0x5045bc
push edi
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
je 0x5045bc
cmp byte [0x76bd5e], 0
je 0x5045ab
cmp byte [0x76b8f9], 0
je 0x5045ab
cmp byte [0x76b8f8], 0
jne 0x5045ab
push dword [esi + 4]
push dword [esi]
push edi
call dword [0x76bd80]
mov byte [0x76b8ed], 0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
mov byte [0x76b8ed], 0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
jmp 0x5045b5

Function at 0x50546d
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x674eec
call fcn.006313fc
push ecx
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x18]
mov byte [esi], bl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.00409ba7
push dword [ebp + 0xc]
lea ecx, [esi + 0x30]
mov dword [ebp - 4], ebx
call fcn.004249e7
push 7
pop ecx
xor eax, eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x58], ebx
mov word [esi + 0x48], ax
mov dword [esi + 0x74], ecx
mov dword [esi + 0x70], ebx
mov word [esi + 0x60], ax
mov dword [esi + 0x8c], ecx
mov dword [esi + 0x88], ebx
mov word [esi + 0x78], ax
mov dword [esi + 0xa4], ecx
mov dword [esi + 0xa0], ebx
mov word [esi + 0x90], ax
or dword [esi + 0xa8], 0xffffffff
lea ecx, [esi + 0xac]
mov byte [ebp - 4], 5
call fcn.0053b76a
push 0xbb8
lea eax, [esi + 0xd0]
push ebx
push eax
call fcn.00635a30
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x505ba8
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, 0x680434
call fcn.006313fc
sub esp, 0x10
push ebx
xor ebx, ebx
mov byte [esp + 7], 1
push ebp
mov ebp, ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0xc]
mov dword [esp + 0x20], ebx
push eax
push dword [ebp + 4]
call fcn.00505924
test al, al
je 0x505c6d
mov ecx, dword [esp + 0x10]
mov eax, ecx
mov edx, dword [esp + 0xc]
sub eax, edx
sar eax, 2
push esi
mov esi, ebx
test eax, eax
je 0x505c3b
push edi
push dword [edx + esi*4]
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
cmp eax, 0xffffffff
jne 0x505c26
mov byte [esp + 0x13], bl
mov edi, ebx
test esi, esi
jle 0x505c26
mov eax, dword [esp + 0x14]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
inc edi
cmp edi, esi
jl 0x505c14
mov ecx, dword [esp + 0x18]
inc esi
mov edx, dword [esp + 0x14]
mov eax, ecx
sub eax, edx
sar eax, 2
cmp esi, eax
jb 0x505bfc
pop edi
sub ecx, edx
sar ecx, 2
pop esi
test ecx, ecx
je 0x505c60
push dword [edx + ebx*4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
inc ebx
mov edx, dword [esp + 0xc]
sub eax, edx
sar eax, 2
cmp ebx, eax
jb 0x505c45
mov al, byte [esp + 0xb]
test al, al
je 0x505c6b
inc dword [ebp + 0x14]
mov bl, al
lea ecx, [esp + 0xc]
call fcn.0041abd3
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret