joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f9541
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x6b2a1a
call fcn.00664608
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov edx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
test edx, edx
je 0x4f956a
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
jmp 0x4f956e
mov eax, ebx
mov ecx, ebx
mov dword [esi], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x28]
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
push 7
pop edi
mov dword [esi + 0x38], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], edi
mov word [esi + 0x38], ax
mov dword [esi + 0x50], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], edi
mov word [esi + 0x50], ax
mov al, byte [ebp + 0x2c]
mov byte [esi + 0x69], al
mov al, byte [esi + 0x6a]
and al, 0xe1
mov byte [esi + 0x68], 8
or al, 0x40
mov word [esi + 0x6b], bx
mov byte [esi + 0x6a], al
xor eax, eax
mov dword [esi + 0x70], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], edi
mov word [esi + 0x70], ax
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], edx
mov byte [esi + 0x94], bl
mov dword [esi + 0x98], ebx
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004f9e31
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00427a37
mov ecx, esi
call fcn.004fbdcd
xor eax, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
mov ecx, dword [esi + 0x90]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x4f966e
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.004fac95
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x4f9666
mov byte [ebp + 0x2c], bl
push dword [ebp + 0x2c]
push eax
call fcn.00427ad3
lea ecx, [ebp - 0x40]
call fcn.00427afc
lea eax, [ebp - 0x28]
push eax
call fcn.004526fa
test al, al
je 0x4f969b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4f9687
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
shl al, 5
xor al, byte [esi + 0x6a]
and al, 0x20
xor byte [esi + 0x6a], al
jmp 0x4f969f
and byte [esi + 0x6a], 0xdf
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4f96da
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x2c], eax
mov dword [ebp + 8], ecx
cmp eax, 0x1000
jb 0x4f96d1
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
lea ecx, [ebp + 0xc]
call fcn.00427afc
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x28
Function at 0x4fa1a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x6a7c02
call fcn.00664608
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0xa0
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
sub eax, ecx
cdq
idiv esi
test eax, eax
je 0x4fa25a
xor esi, esi
lea eax, [esi + ecx]
mov ecx, edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004fac95
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x4fa1f0
mov eax, dword [ebp - 0x28]
push eax
call fcn.0045270f
test al, al
jne 0x4fa204
mov eax, dword [edi + 4]
and byte [eax + esi + 0x6a], 0xdf
jmp 0x4fa233
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4fa210
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, dword [edi + 4]
cmp eax, 0xffffffff
je 0x4fa22e
shl al, 5
xor al, byte [esi + ecx + 0x6a]
and al, 0x20
xor byte [esi + ecx + 0x6a], al
jmp 0x4fa233
or byte [esi + ecx + 0x6a], 0x20
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00427afc
mov eax, dword [edi + 8]
inc ebx
mov ecx, dword [edi + 4]
add esi, 0xa0
sub eax, ecx
cdq
idiv dword [ebp - 0x10]
cmp ebx, eax
jb 0x4fa1d1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4fa831
Capabilities:
Delete file

Disassembly:
mov eax, 0x6b2ba6
call fcn.00664608
sub esp, 0x78
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0045270f
test al, al
je 0x4faa41
push ebx
xor ebx, ebx
push esi
cmp byte [ebp + 0xc], bl
je 0x4fa96a
push edi
call fcn.004525f3
mov esi, eax
test esi, esi
je 0x4faa3f
call fcn.004878f2
push eax
push 0x21
lea ecx, [ebp - 0x1c]
call fcn.00487711
push edi
push str.fileName
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.00458a40
push esi
push str.error
lea ecx, [ebp - 0x1c]
call fcn.00458a40
lea eax, [ebp - 0x1c]
push eax
call fcn.00488c25
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0048777a
push esi
push edi
push str.Warning:_Delete_to_trash_failed_for__S._Error:__d._Deleting_permanently.
push 0x800
call fcn.0047d9cc
add esp, 0x10
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.0043c828
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 1
push eax
push str._to_trash_:1___error_code_:
lea eax, [ebp - 0x6c]
push eax
call fcn.00428032
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.00410858
push 0xa
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x24]
push str.deletefail
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], bl
call fcn.00410407
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x6c]
push eax
push 0x21
call fcn.004745de
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x4fa95e
mov ecx, dword [ebp - 0x24]
inc eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ecx
cmp eax, 0x1000
jb 0x4fa955
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00410858
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x4faa3f
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.0047d9cc
add esp, 0x10
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.00464fbd
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 5
push eax
push str._to_trash_:0___error_code_:
lea eax, [ebp - 0x84]
push eax
call fcn.00428032
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 7
call fcn.00410858
push 0xa
mov dword [ebp - 0x3c], ebx
lea ecx, [ebp - 0x3c]
push str.deletefail
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], bl
call fcn.00410407
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x84]
push eax
push 0x21
call fcn.004745de
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x4faa34
mov ecx, dword [ebp - 0x3c]
inc eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ecx
cmp eax, 0x1000
jb 0x4faa2b
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
lea ecx, [ebp - 0x84]
call fcn.00410858
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4fb3c6
Capabilities:
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, 0xa0
xor ecx, ecx
mov dword [esp + 0x14], ebp
mov bl, 1
mov dword [esp + 0x10], ecx
mov eax, dword [edi + 8]
mov esi, dword [edi + 4]
sub eax, esi
cdq
idiv ebp
test eax, eax
je 0x4fb466
mov ebp, ecx
lea eax, [esi + ebp]
test byte [eax + 0x6a], 0x20
jne 0x4fb44a
push eax
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.004fac95
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
jb 0x4fb416
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
or eax, 1
lea ecx, [esp + 0x18]
cmp dword [esp + 0x2c], 8
jb 0x4fb42f
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
neg eax
lea ecx, [esp + 0x18]
sbb al, al
and bl, al
call fcn.00427afc
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 8]
inc ecx
mov esi, dword [edi + 4]
add ebp, 0xa0
sub eax, esi
mov dword [esp + 0x10], ecx
cdq
idiv dword [esp + 0x14]
cmp ecx, eax
jb 0x4fb3f1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x20
ret

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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, 0xa0
xor ecx, ecx
mov dword [esp + 0x14], ebp
mov bl, 1
mov dword [esp + 0x10], ecx
mov eax, dword [edi + 8]
mov esi, dword [edi + 4]
sub eax, esi
cdq
idiv ebp
test eax, eax
je 0x4fb510
mov ebp, ecx
lea eax, [esi + ebp]
test byte [eax + 0x6a], 0x20
jne 0x4fb4f4
push eax
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.004fac95
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
jb 0x4fb4c0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
and eax, 0xfffffffe
lea ecx, [esp + 0x18]
cmp dword [esp + 0x2c], 8
jb 0x4fb4d9
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
neg eax
lea ecx, [esp + 0x18]
sbb al, al
and bl, al
call fcn.00427afc
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 8]
inc ecx
mov esi, dword [edi + 4]
add ebp, 0xa0
sub eax, esi
mov dword [esp + 0x10], ecx
cdq
idiv dword [esp + 0x14]
cmp ecx, eax
jb 0x4fb49b
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x20
ret
Function at 0x4fbaed
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x6b2c4b
call fcn.00664608
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ecx, 0xa0
mov eax, dword [esi + 8]
mov edi, dword [esi + 4]
sub eax, edi
cdq
idiv ecx
add eax, 1
jmp 0x4fbc70
xor edx, edx
mov dword [ebp - 0x24], 7
xor eax, eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x38], ax
mov dword [ebp - 4], edx
test ebx, ebx
jne 0x4fbb74
push dword [esi + 0x24]
push dword [esi + 0x20]
call fcn.00487fd7
push eax
lea eax, [ebp - 0x68]
push str._sPartFile__LX.dat
push eax
call fcn.004577f2
lea ecx, [ebp - 0x38]
add esp, 0x14
cmp ecx, eax
je 0x4fbb65
mov byte [ebp - 0x1c], bl
push dword [ebp - 0x1c]
push eax
call fcn.00427ad3
lea ecx, [ebp - 0x68]
call fcn.00427afc
xor edx, edx
mov byte [ebp - 0x10], dl
jmp 0x4fbba3
imul ebx, ebx, 0xa0
lea eax, [edi - 0x68]
lea ecx, [ebp - 0x38]
add eax, ebx
cmp ecx, eax
je 0x4fbb94
mov byte [ebp - 0x20], dl
push dword [ebp - 0x20]
push eax
call fcn.00427ab9
xor edx, edx
mov al, byte [ebx + edi - 0x36]
mov ebx, dword [ebp - 0x18]
shr al, 2
and al, 1
mov byte [ebp - 0x10], al
push edx
lea eax, [ebp - 0x38]
push eax
sub esp, 0x18
mov ecx, esp
push dword [ebp + 8]
mov dword [ecx], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
call fcn.00427a37
lea eax, [ebp - 0x50]
push eax
call fcn.004516a9
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
jb 0x4fbbd6
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4fbbf9
cmp dword [ebp - 0x3c], 8
lea ecx, [ebp - 0x50]
jb 0x4fbbee
mov ecx, dword [ebp - 0x50]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push 1
push dword [ebp - 0x10]
lea eax, [esi + 0x28]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x38]
push eax
push eax
call fcn.004fb51a
lea ecx, [ebp - 0x50]
mov edi, eax
call fcn.00427afc
mov eax, dword [ebp - 0x24]
test edi, edi
jne 0x4fbc93
or dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x4fbc5c
mov ecx, dword [ebp - 0x38]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
cmp eax, 0x1000
jb 0x4fbc53
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004279ae
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov eax, dword [esi + 8]
mov ecx, 0xa0
mov edi, dword [esi + 4]
inc ebx
sub eax, edi
cdq
idiv ecx
inc eax
cmp ebx, eax
mov dword [ebp - 0x18], ebx
jne 0x4fbb19
mov ecx, esi
call fcn.004fa59c
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
cmp eax, 8
jb 0x4fbccb
mov ecx, dword [ebp - 0x38]
lea eax, [eax*2 + 2]
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], ecx
cmp eax, 0x1000
jb 0x4fbcc2
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004279ae
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov eax, edi
jmp 0x4fbc82
Function at 0x4fc807
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov eax, 0x6b2ce1
call fcn.00664608
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0xd], bl
lea esi, [edi + 0x28]
push esi
call fcn.00451a5f
push esi
test al, al
je 0x4fc846
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call fcn.00427a37
lea eax, [ebp - 0x48]
inc ebx
jmp 0x4fc852
lea eax, [ebp - 0x78]
push eax
call fcn.00466707
push 2
pop ebx
push eax
lea ecx, [ebp - 0x60]
call fcn.004277f3
mov dword [ebp - 4], 1
test bl, 2
je 0x4fc872
lea ecx, [ebp - 0x78]
and ebx, 0xfffffffd
call fcn.00427afc
mov byte [ebp - 4], 2
test bl, 1
je 0x4fc8b6
mov eax, dword [ebp - 0x34]
cmp eax, 8
jb 0x4fc8b6
mov ecx, dword [ebp - 0x48]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
cmp eax, 0x1000
jb 0x4fc8ad
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004279ae
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004fad24
xor ebx, ebx
mov esi, ebx
cmp dword [ebp - 0x20], ebx
jbe 0x4fc95f
lea edi, [ebp - 0x30]
mov eax, dword [ebp - 0x24]
lea ecx, [eax + esi]
mov eax, dword [edi + 8]
dec eax
and ecx, eax
mov eax, dword [edi + 4]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x14], 8
jb 0x4fc8ef
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov edx, dword [ebp - 0x20]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4fc91c
test cl, 0x10
jne 0x4fc95b
lea eax, [edx - 1]
cmp esi, eax
je 0x4fc928
test ecx, 0x1000
jne 0x4fc923
test ecx, 0x400
jne 0x4fc923
inc esi
cmp esi, edx
jb 0x4fc8d5
jmp 0x4fc95f
mov byte [ebp - 0xd], bl
jmp 0x4fc95f
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x30]
lea ecx, [eax + esi]
mov eax, dword [edx + 8]
dec eax
and ecx, eax
mov eax, dword [edx + 4]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x14], 8
jb 0x4fc945
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 0x4fc95f
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x30]
call fcn.004696aa
mov ecx, dword [ebp - 0x30]
push 8
push ecx
mov dword [ebp - 0x30], ebx
call fcn.006643a9
pop ecx
pop ecx
lea ecx, [ebp - 0x60]
call fcn.00427afc
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4fd113
Capabilities:
Get process heap flags

Disassembly:
mov eax, 0x6ab14e
call fcn.00664608
push ecx
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.00427a37
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov dword [ebp - 4], edi
mov dword [ecx], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.00427a37
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x4fd321
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6b2da4
call fcn.00664608
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00510278
xor ebx, ebx
mov dword [esi + 0xc], 0x6ed070
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], 0x6ce08c
mov dword [esi + 0x14], ebx
mov al, byte [ebp + 8]
lea ecx, [esi + 0x34]
mov byte [esi + 0x18], al
movzx eax, al
push eax
mov eax, dword [ebp + 0xc]
mov dword [esi], 0x6ed0f4
mov dword [esi + 0xc], 0x6ed130
mov dword [esi + 0x10], 0x6ed1b4
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x24], bl
mov dword [esi + 0x28], ebx
mov byte [esi + 0x30], bl
push dword [eax]
mov byte [ebp - 4], 2
call fcn.004f986f
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
xor eax, eax
mov dword [esi + 0x7c], ebx
inc eax
mov dword [esi + 0x2c], ebx
lock xadd dword [0x7c29f0], eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x20], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x4ff595
Capabilities:
Get memory capacity

Disassembly:
mov eax, 0x6af209
call fcn.00664608
sub esp, 0x24
push esi
push edi
mov al, 1
mov ecx, 0x7c2a57
xchg byte [ecx], al
push str.ntdll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push str.NtSetInformationFile
push eax
mov dword [0x7c2f14], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0xc
mov dword [0x7b4e7c], eax
call fcn.00664379
pop ecx
mov ecx, eax
xor esi, esi
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x4ff60e
mov edi, ecx
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ecx + 4], 0x6ce08c
mov dword [ecx + 8], esi
mov dword [ecx], 0x6ed9d4
mov dword [ecx + 4], 0x6ed9e8
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x4ff611
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
jmp 0x4ff611
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
call fcn.0052bfeb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
test eax, eax
je 0x4ff631
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov edi, 0x6dae38
push 0x6edaac
push edi
call fcn.00455fd1
push str.SetFileValidData
push edi
mov dword [0x7c2ef4], eax
call fcn.00455fd1
mov dword [0x7c2ef8], eax
test eax, eax
je 0x4ff66f
push 2
push str.SeManageVolumePrivilege
call fcn.00453903
mov byte [0x7c2a55], al
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
push 0x6edaf0
push 0x7c2efc
mov dword [0x7c2ed8], eax
call fcn.0045d875
push 0x6edaf4
push 0x7c4730
call fcn.0045d875
push 0x6edaf8
push 0x7c2edc
call fcn.0045d875
call fcn.004e7cfa
push 0x6edafc
push 0x793ee8
call fcn.004e7d41
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 [0x7c2a38], eax
push str.total_physical_memory__Ld_max_disk_cache__Ld
call fcn.00470476
add esp, 0x14
call fcn.005385d8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x501df3
Capabilities:
Clear file content
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x7c2a55], 0
push ebx
push esi
push edi
je 0x501e0f
cmp byte [0x7c29f9], 0
je 0x501e0f
xor bl, bl
jmp 0x501e11
mov bl, 1
cmp byte [ebp + 0x20], 0
mov esi, dword [ebp + 8]
je 0x501e49
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x501e25
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test eax, 0x200
je 0x501e6c
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 0x501e60
cmp byte [0x7c29f8], 0
je 0x501e6c
push 0
lea eax, [ebp + 8]
push eax
push 0
push 0
push 0
push 0
push 0x900c4
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
cmp byte [ebp + 0x1c], 0
jne 0x501edd
mov edi, dword [ebp + 0x10]
mov byte [0x7c2a40], 1
test bl, bl
je 0x501e8e
push dword [edi + 0xc]
push dword [edi + 8]
push esi
call fcn.004532d2
jmp 0x501eae
push 0
push dword [edi + 0xc]
push dword [edi + 8]
push esi
call fcn.00452fdd
and eax, edx
cmp eax, 0xffffffff
je 0x501ee7
push esi
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
je 0x501ee7
cmp byte [0x7c2a55], 0
je 0x501ed6
cmp byte [0x7c29f9], 0
je 0x501ed6
cmp byte [0x7c29f8], 0
jne 0x501ed6
push dword [edi + 0xc]
push dword [edi + 8]
push esi
call dword [0x7c2ef8]
mov byte [0x7c2a40], 0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
mov byte [0x7c2a40], 0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
jmp 0x501ee0

Function at 0x50314c
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, 0x6b34d5
call fcn.00664608
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.00502ecc
mov edx, dword [ebp - 0x20]
test al, al
je 0x503202
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
sub eax, edx
sar eax, 2
push esi
mov esi, ebx
test eax, eax
je 0x5031d3
push dword [edx + esi*4]
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
cmp eax, 0xffffffff
jne 0x5031be
mov byte [ebp - 0xd], bl
mov edi, ebx
test esi, esi
jle 0x5031be
mov eax, dword [ebp - 0x20]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
inc edi
cmp edi, esi
jl 0x5031ad
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 0x503196
mov edi, dword [ebp - 0x14]
sub ecx, edx
sar ecx, 2
pop esi
test ecx, ecx
je 0x5031f6
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 0x5031dd
mov al, byte [ebp - 0xd]
test al, al
je 0x503200
inc dword [edi + 0x18]
mov bl, al
test edx, edx
je 0x503215
mov ecx, dword [ebp - 0x18]
sub ecx, edx
and ecx, 0xfffffffc
push ecx
push edx
call fcn.004276a2
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x503e21
Capabilities:
Resume thread

Disassembly:
mov eax, 0x6aea40
call fcn.00664608
sub esp, 0xc
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
cmp dword [edi + 0x18], esi
je 0x503e9f
lea eax, [ebp - 0x18]
push eax
push dword [edi + 4]
call fcn.00502ecc
mov ecx, dword [ebp - 0x18]
test al, al
je 0x503e8c
mov eax, dword [ebp - 0x14]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x503e89
push dword [ecx + esi*4]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov eax, dword [ebp - 0x18]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x14]
inc esi
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x503e64
dec dword [edi + 0x18]
test ecx, ecx
je 0x503e9f
mov eax, dword [ebp - 0x10]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.004276a2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret