joyce8/EMBER2024-capa huggingface dataset:
Function at 0x500a18
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor edx, edx
push edi
mov edi, dword [esp + 0xc]
cmp esi, 4
jb 0x500a40
mov ecx, esi
shr ecx, 2
mov eax, dword [edi]
sub esi, 4
xor edx, eax
add edi, 4
rol edx, 0xd
sub ecx, 1
jne 0x500a2e
test esi, esi
je 0x500a52
movzx ecx, byte [edi]
xor edx, ecx
inc edi
rol edx, 8
sub esi, 1
jne 0x500a44
pop edi
mov eax, edx
pop esi
ret 8

Function at 0x5051d4
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x6a7d62
call fcn.00640244
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x5051fd
mov eax, dword [ecx + 0x20]
mov edx, dword [ecx + 0x24]
jmp 0x505201
mov eax, ebx
mov edx, ebx
mov dword [esi], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x28]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x34]
push 7
pop edi
mov dword [esi + 4], edx
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 + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [eax + 0x14], edi
mov dword [eax + 0x10], ebx
cmp edi, 8
jb 0x505240
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
lea eax, [esi + 0x4c]
mov dword [eax + 0x14], edi
mov dword [eax + 0x10], ebx
cmp edi, 8
jb 0x505255
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
mov al, byte [ebp + 0x2c]
mov byte [esi + 0x65], al
mov al, byte [esi + 0x66]
and al, 0xe1
mov byte [esi + 0x64], 8
or al, 0x40
mov word [esi + 0x67], bx
mov byte [esi + 0x66], al
lea eax, [esi + 0x6c]
mov dword [eax + 0x14], edi
mov dword [eax + 0x10], ebx
cmp edi, 8
jb 0x505282
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ecx
mov byte [esi + 0x90], bl
mov dword [esi + 0x94], ebx
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00505ad3
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00427b8e
mov ecx, esi
call fcn.005077be
xor eax, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov ecx, dword [esi + 0x8c]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x5052fd
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.00506795
push eax
lea ecx, [ebp - 0x28]
call fcn.00427c6d
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004281f2
lea eax, [ebp - 0x28]
push eax
call fcn.0046103f
test al, al
je 0x50532a
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x505316
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
shl al, 5
xor al, byte [esi + 0x66]
and al, 0x20
xor byte [esi + 0x66], al
jmp 0x50532e
and byte [esi + 0x66], 0xdf
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004281f2
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.004281f2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x28
Function at 0x505da1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x6a16fc
call fcn.00640244
sub esp, 0x18
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov ecx, 0x9c
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
cdq
idiv ecx
test eax, eax
je 0x505e5e
push esi
xor esi, esi
mov eax, dword [edi + 4]
mov ecx, edi
add eax, esi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00506795
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x505dee
lea eax, [ebp - 0x24]
push eax
call fcn.00461054
test al, al
jne 0x505e02
mov eax, dword [edi + 4]
and byte [esi + eax + 0x66], 0xdf
jmp 0x505e34
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x505e0e
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x505e2c
mov ecx, dword [edi + 4]
shl al, 5
xor al, byte [esi + ecx + 0x66]
and al, 0x20
xor byte [esi + ecx + 0x66], al
jmp 0x505e34
mov eax, dword [edi + 4]
or byte [esi + eax + 0x66], 0x20
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
push 0
push 1
call fcn.004281f2
mov eax, dword [edi + 8]
mov ecx, 0x9c
sub eax, dword [edi + 4]
inc ebx
cdq
add esi, ecx
idiv ecx
cmp ebx, eax
jb 0x505dcd
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5061be
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
sub esp, 0x64
mov eax, 0x6a7e71
call fcn.00640244
sub esp, 0x30
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, dword [ecx + 8]
cmp esi, edi
je 0x506389
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.00460227
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x506202
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0x4c]
call fcn.00429973
push 0
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004281f2
mov edx, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x4c]
mov ebx, ecx
cmp edx, 8
jae 0x50622b
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 0x506242
lea ecx, [ebp + 0x4c]
push 0x5c
push ecx
call fcn.0065b08b
pop ecx
pop ecx
cmp eax, ebx
jb 0x506367
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp + 0x60], 8
mov eax, dword [ebp + 0x4c]
jae 0x506265
lea eax, [ebp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x50635c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x91
jne 0x50635c
push str.thumbs.db
lea ecx, [ebp + 0x30]
call fcn.00429973
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.00460227
cmp dword [eax + 0x14], 8
jb 0x5062b1
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.004281f2
push 0
push 1
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 2
call fcn.004281f2
push str..DS_Store
lea ecx, [ebp + 0x18]
call fcn.00429973
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.00460227
cmp dword [eax + 0x14], 8
jb 0x506305
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.004281f2
push 0
push 1
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 2
call fcn.004281f2
test bh, bh
jne 0x506335
test bl, bl
je 0x506367
cmp dword [ebp + 0x60], 8
mov eax, dword [ebp + 0x4c]
jae 0x506341
lea eax, [ebp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x506359
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x91
je 0x506367
mov ebx, dword [ebp + 0x64]
mov edx, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x4c]
jmp 0x50623a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x4c]
push 0
push 1
call fcn.004281f2
mov ecx, dword [ebp + 0x48]
add esi, 0x9c
cmp esi, edi
jne 0x5061e6
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 0x50639a
Capabilities:
Delete file

Disassembly:
mov eax, 0x6a7eb9
call fcn.00640244
sub esp, 0x78
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00461054
test al, al
je 0x506537
push ebx
xor ebx, ebx
push esi
cmp byte [ebp + 0xc], bl
je 0x50649c
push edi
call fcn.00460f37
mov esi, eax
test esi, esi
je 0x506535
call fcn.00493af8
push eax
push 0x21
lea ecx, [ebp - 0x1c]
call fcn.00493570
push edi
push str.fileName
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.0049a3bd
push esi
push str.error
lea ecx, [ebp - 0x1c]
call fcn.0049a3bd
lea eax, [ebp - 0x1c]
push eax
call fcn.0049532b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00493621
push esi
push edi
push str.Warning:_Delete_to_trash_failed_for__S._Error:__d._Deleting_permanently.
push 0x800
call fcn.0048912b
add esp, 0x10
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.00444481
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.004289b7
push ebx
push esi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.0040f52f
push str.deletefail
lea ecx, [ebp - 0x24]
call fcn.0040eeff
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.00488d2d
push ebx
push esi
lea ecx, [ebp - 0x24]
call fcn.0040f52f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
push ebx
push esi
call fcn.0040f52f
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x506535
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.0048912b
add esp, 0x10
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.00538684
push eax
push str._to_trash_:0___error_code_:
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 5
push eax
call fcn.004289b7
push ebx
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.0040f52f
push str.deletefail
lea ecx, [ebp - 0x54]
call fcn.0040eeff
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.00488d2d
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.0040f52f
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.0040f52f
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 0x506e76
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 0x506f08
push edi
xor edi, edi
mov eax, dword [esi + 4]
add eax, edi
test byte [eax + 0x66], 0x20
jne 0x506ef7
push eax
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00506795
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jae 0x506ebe
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 0x506ed7
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.004281f2
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 0x506e97
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x18
ret

Function at 0x506f11
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 0x506fa3
push edi
xor edi, edi
mov eax, dword [esi + 4]
add eax, edi
test byte [eax + 0x66], 0x20
jne 0x506f92
push eax
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00506795
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jae 0x506f59
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 0x506f72
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.004281f2
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 0x506f32
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x18
ret
Function at 0x5072bb
Capabilities:
Move file

Disassembly:
mov eax, 0x6a16fc
call fcn.00640244
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
push edi
call fcn.00505f12
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.00506795
and dword [ebp - 4], edi
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x5072ff
lea eax, [ebp - 0x24]
push eax
call fcn.00461054
mov esi, dword [ebp + 0xc]
test al, al
je 0x50733a
cmp dword [esi + 0x14], 8
jb 0x507316
mov ecx, dword [esi]
jmp 0x507318
mov ecx, esi
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x507324
lea eax, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x50733a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
jmp 0x507353
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00427b8e
mov eax, dword [ebx + 4]
mov ecx, ebx
add eax, dword [ebp + 8]
push eax
call fcn.00507815
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004281f2
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 0x507374
Capabilities:
Move file

Disassembly:
mov eax, 0x6a7f2e
call fcn.00640244
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
and dword [ebp - 4], 0
xor ebx, ebx
push ebx
call fcn.00505f12
mov al, byte [esi + 0x89]
mov ecx, esi
test al, al
jne 0x5073ff
call fcn.00508160
mov edi, 0x70000001
test al, al
je 0x5073d5
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.00506fac
mov ebx, eax
jmp 0x5073d7
mov ebx, edi
test ebx, ebx
je 0x5073e3
cmp ebx, edi
jne 0x5074fd
sub esp, 0x18
mov ecx, esp
push dword [ebp + 0x20]
call fcn.00427b8e
push dword [esi + 4]
mov ecx, esi
call fcn.00507815
jmp 0x5074e3
call fcn.00508160
test al, al
je 0x5074de
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 0x50742c
lea eax, [ebp + 8]
lea edi, [esi + 0x28]
cmp dword [edi + 0x14], 8
jb 0x507439
mov ecx, dword [edi]
jmp 0x50743b
mov ecx, edi
push eax
push ecx
push str.Moving_files_from__s_to__s
call fcn.0047cc80
mov ecx, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0x1c], 8
jae 0x507456
lea ecx, [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x507460
mov eax, dword [edi]
jmp 0x507462
mov eax, edi
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x50748a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x50749c
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.0050754f
mov ebx, eax
test ebx, ebx
jne 0x5074d0
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004281f2
jmp 0x5074e3
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x5074a8
lea eax, [ebp + 8]
push eax
call fcn.00461e6d
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x5074ba
lea eax, [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x5074c2
mov edi, dword [edi]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x50748a
jmp 0x507479
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004281f2
jmp 0x5074fd
mov ebx, 0x70000001
call fcn.00478821
lea eax, [ebp + 8]
lea ecx, [esi + 0x28]
push eax
call fcn.00427c6d
mov byte [ebp - 4], 2
call fcn.00478862
push 0
push 1
lea ecx, [ebp + 8]
call fcn.004281f2
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 0x50754f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x6a7f48
call fcn.00640244
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 0x5076a1
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 0x5075ce
push dword [esi + 0x24]
push dword [esi + 0x20]
call fcn.004947d1
push eax
lea eax, [ebp - 0x5c]
push str._sPartFile__LX.dat
push eax
call fcn.004654e1
add esp, 0x14
lea ecx, [ebp - 0x2c]
push eax
call fcn.00427c6d
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.004281f2
mov byte [ebp - 0x10], bl
jmp 0x5075ff
imul edi, ebx, 0x9c
lea ecx, [ebp - 0x2c]
mov ebx, dword [esi + 4]
lea eax, [ebx - 0x68]
add eax, edi
cmp ecx, eax
je 0x5075ed
push 0xffffffffffffffff
push 0
push eax
call fcn.0042835e
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.00427b8e
lea eax, [ebp - 0x44]
push eax
call fcn.00460380
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
jae 0x50762b
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x50764e
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x507643
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.00506fac
push 0
lea ecx, [ebp - 0x44]
mov edi, eax
push 1
call fcn.004281f2
lea ecx, [ebp - 0x2c]
push 0
push 1
test edi, edi
jne 0x5076bd
or dword [ebp - 4], 0xffffffff
call fcn.004281f2
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 0x507580
mov ecx, esi
call fcn.005061be
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.004281f2
mov eax, edi
jmp 0x5076aa
Function at 0x508160
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov eax, 0x6a7fda
call fcn.00640244
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 0x508185
mov eax, dword [esi]
jmp 0x508187
mov eax, esi
push eax
call fcn.004606c8
push esi
test al, al
je 0x5081a1
lea ecx, [ebp - 0x6c]
call fcn.00427b8e
mov ecx, eax
xor eax, eax
inc eax
jmp 0x5081af
lea eax, [ebp - 0x54]
push eax
call fcn.004735a9
push 2
mov ecx, eax
pop eax
push ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], eax
call fcn.00427b6c
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
test al, 2
je 0x5081de
push 0
and eax, 0xfffffffd
lea ecx, [ebp - 0x54]
push 1
mov dword [ebp - 0x10], eax
call fcn.004281f2
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
test al, 1
je 0x5081f2
push 0
push 1
lea ecx, [ebp - 0x6c]
call fcn.004281f2
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0050682e
xor esi, esi
cmp dword [ebp - 0x14], esi
jbe 0x50827b
push esi
lea ecx, [ebp - 0x24]
call fcn.004f038d
cmp dword [eax + 0x14], 8
jb 0x508219
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 0x508246
test cl, 0x10
jne 0x508279
lea eax, [edx - 1]
cmp esi, eax
je 0x508251
test ecx, 0x1000
jne 0x50824d
test ecx, 0x400
jne 0x50824d
inc esi
cmp esi, edx
jb 0x508208
jmp 0x50827b
xor bl, bl
jmp 0x50827b
push esi
lea ecx, [ebp - 0x24]
call fcn.004f038d
cmp dword [eax + 0x14], 8
jb 0x508262
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 0x50827b
mov bl, 1
lea ecx, [ebp - 0x24]
call fcn.00476299
push 8
push 1
push dword [ebp - 0x24]
call fcn.004280ef
and dword [ebp - 0x24], 0
lea ecx, [ebp - 0x3c]
push 0
push 1
call fcn.004281f2
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 0x508fb5
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6a8080
call fcn.00640244
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0051cfb3
xor ebx, ebx
mov dword [esi + 0xc], 0x6e3a34
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], 0x6c1024
mov dword [esi + 0x14], ebx
mov eax, dword [ebp + 0xc]
mov dl, byte [ebp + 8]
mov dword [esi], 0x6e3ab8
mov dword [esi + 0xc], 0x6e3f10
mov dword [esi + 0x10], 0x6e4114
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.005054ef
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 0x7b907c
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 0x50b018
Capabilities:
Get memory capacity

Disassembly:
mov eax, 0x6a48f1
call fcn.00640244
sub esp, 0x24
push esi
push edi
mov al, 1
mov ecx, 0x7b9079
xchg byte [ecx], al
push str.ntdll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push str.NtSetInformationFile
push eax
mov dword [0x7b9540], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0xc
mov dword [0x7ab458], eax
call fcn.0063ffa4
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x50b084
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], 0x6c1024
mov dword [ecx + 8], esi
mov dword [ecx], 0x6e4398
mov dword [ecx + 4], 0x6e43ac
jmp 0x50b088
xor esi, esi
mov ecx, esi
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x50b095
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
call fcn.0053980a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
test eax, eax
je 0x50b0b5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov edi, 0x6d17a8
push 0x6e446c
push edi
call fcn.00463d8e
push str.SetFileValidData
push edi
mov dword [0x7b950c], eax
call fcn.00463d8e
mov dword [0x7b9510], eax
test eax, eax
je 0x50b0f3
push 2
push str.SeManageVolumePrivilege
call fcn.00461d40
mov byte [0x7b94ec], al
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
push 0x6e44b0
push 0x7b9514
mov dword [0x7b94f0], eax
call fcn.0046b3a5
push 0x6e44b4
push 0x7bad48
call fcn.0046b3a5
push 0x6e44b8
push 0x7b94f4
call fcn.0046b3a5
call fcn.004f4847
push 0x6e44bc
push 0x78bbc0
call fcn.004f4898
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 [0x7b9084], eax
push str.total_physical_memory__Ld_max_disk_cache__Ld
call fcn.0047cc09
add esp, 0x14
call fcn.0054633f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret