joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10032d00
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0xc], 0
call ebp
mov dword [esp + 0xc], eax
test eax, eax
jne 0x10032d2c
pop esi
xor al, al
pop ebp
add esp, 8
ret
push ebx
push edi
push esi
call ebp
lea ebx, [eax + 1]
test esi, esi
je 0x10032db4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10032db4
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x10032db4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
test eax, eax
je 0x10032e6f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
push eax
call ebp
test eax, eax
jle 0x10032e6f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
inc eax
push eax
mov edx, ebx
mov ecx, edi
call fcn.10032b30
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x1012d6c0
push edi
call ebx
test eax, eax
je 0x10032db4
push str.html
push edi
call ebx
test eax, eax
je 0x10032db4
push 0x1012d6cc
push edi
call ebx
test eax, eax
jne 0x10032e93
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x10032e9a
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10032e93
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x400
push edi
push esi
call ebp
test eax, eax
je 0x10032e57
lea esp, [esp]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10032e57
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push ebx
push edx
push edi
call fcn.10032bf0
add esp, 0xc
test al, al
jne 0x10032e7b
cmp dword [esp + 0x10], ebx
jbe 0x10032e43
push 1
push 0
neg ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
push 0x400
push edi
push esi
call ebp
test eax, eax
jne 0x10032e10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
xor al, al
pop ebp
add esp, 8
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x10032db4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
add esp, 8
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebx
pop esi
xor al, al
pop ebp
add esp, 8
ret
Function at 0x10033050
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov ebx, eax
push esi
lea eax, [ebx + 1]
push eax
push 0x40
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x100330ff
test ebx, ebx
jbe 0x100330f8
test ebp, ebp
je 0x100330f8
mov ecx, dword [esp + 0x18]
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100330de
push 0
lea edx, [esp + 0x18]
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100330de
cmp dword [esp + 0x14], ebx
jne 0x100330de
mov eax, dword [esp + 0x24]
push eax
mov eax, ebp
call fcn.10032fd0
add esp, 4
test al, al
je 0x100330de
mov byte [esp + 0x13], 1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
Function at 0x10034220
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x214
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
push ebx
push edi
push eax
xor ebx, ebx
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x10034398
lea ecx, [esp + 0xc]
push ecx
push 4
lea edx, [esp + 0x10]
push edx
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x10034398
mov ecx, dword [esp + 8]
push ebp
push 0x104
lea eax, [esp + 0x18]
push eax
push ecx
push edi
call sub.PSAPI.DLL_GetModuleBaseNameW
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.vmtoolsd.exe
lea edx, [esp + 0x18]
push edx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x100342b9
push esi
push str.TRUE
push str.vmtoolsd.exe
push 0x1012caa0
mov ebx, 1
call edi
push str.vboxtray.exe
lea eax, [esp + 0x18]
push eax
call ebp
test eax, eax
jne 0x100342de
push esi
push str.TRUE
push str.vboxtray.exe
push 0x1012caa0
lea ebx, [eax + 1]
call edi
push str.VBoxService.exe
lea ecx, [esp + 0x18]
push ecx
call ebp
test eax, eax
jne 0x10034303
push esi
push str.TRUE
push str.VBoxService.exe
push 0x1012caa0
lea ebx, [eax + 1]
call edi
push str.VMwareUser.exe
lea edx, [esp + 0x18]
push edx
call ebp
test eax, eax
jne 0x10034328
push esi
push str.TRUE
push str.VMwareUser.exe
push 0x1012caa0
lea ebx, [eax + 1]
call edi
push str.VMwareTray.exe
lea eax, [esp + 0x18]
push eax
call ebp
test eax, eax
jne 0x1003434d
push esi
push str.TRUE
push str.VMwareTray.exe
push 0x1012caa0
lea ebx, [eax + 1]
call edi
push str.VMUpgradeHelper.exe
lea ecx, [esp + 0x18]
push ecx
call ebp
test eax, eax
jne 0x10034372
push esi
push str.TRUE
push str.VMUpgradeHelper.exe
push 0x1012caa0
lea ebx, [eax + 1]
call edi
push str.vmacthlp.exe
lea edx, [esp + 0x18]
push edx
call ebp
pop ebp
test eax, eax
jne 0x10034398
push esi
push str.TRUE
push str.vmacthlp.exe
push 0x1012caa0
lea ebx, [eax + 1]
call edi
mov ecx, dword [esp + 0x218]
pop edi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x214
ret
Function at 0x100343c0
Capabilities:
Enumerate process modules
Get common file path

Disassembly:
mov eax, 0x1808
call fcn.100d4920
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x1804], eax
push edi
push 0x800
lea eax, [esp + 0x100c]
push 0
push eax
call fcn.100d4cc0
add esp, 0xc
push 0
push 0x1a
lea ecx, [esp + 0x1010]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x1012d6d0
mov eax, 0x800
lea edi, [esp + 0x100c]
call fcn.100044f0
lea edx, [esp + 4]
push edx
push 0x1000
lea eax, [esp + 0x10]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x10034496
push ebx
mov ebx, dword [esp + 8]
push ebp
shr ebx, 2
xor ebp, ebp
xor edi, edi
test ebx, ebx
jbe 0x10034468
push esi
mov eax, dword [esp + edi*4 + 0x14]
test eax, eax
je 0x1003445e
push eax
lea esi, [esp + 0x1018]
call fcn.10034220
add esp, 4
or ebp, eax
inc edi
cmp edi, ebx
jb 0x10034444
pop esi
test ebp, ebp
jne 0x10034477
lea ecx, [esp + 0x1010]
push ecx
push str.FALSE
jmp 0x10034484
lea edx, [esp + 0x1010]
push edx
push str.TRUE
push str.FindWarningProcess
push 0x1012caa0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop ebp
pop ebx
mov ecx, dword [esp + 0x1808]
pop edi
xor ecx, esp
call fcn.100d0738
add esp, 0x1808
ret
Function at 0x10038780
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x12019f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100387c5
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.100d0738
add esp, 0x14
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0xc]
push eax
push 8
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
test eax, eax
jne 0x100387fb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.100d0738
add esp, 0x14
ret
cmp dword [esp + 8], 8
push ebx
jne 0x10038899
mov eax, 8
mov ecx, str.WANACRY_
lea edx, [esp + 0x14]
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x1003882b
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x10038815
jmp 0x1003885f
movzx eax, bl
movzx ebx, byte [ecx]
sub eax, ebx
jne 0x10038857
movzx eax, byte [edx + 1]
movzx ebx, byte [ecx + 1]
sub eax, ebx
jne 0x10038857
movzx eax, byte [edx + 2]
movzx ebx, byte [ecx + 2]
sub eax, ebx
jne 0x10038857
movzx eax, byte [edx + 3]
movzx edx, byte [ecx + 3]
sub eax, edx
sar eax, 0x1f
or eax, 1
jne 0x10038899
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
test eax, eax
je 0x10038899
cmp dword [esp + 0x10], 0x100
push esi
jne 0x1003889a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.100d0738
add esp, 0x14
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
pop ebx
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.100d0738
add esp, 0x14
ret

Function at 0x100394c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push 0x208
push 0
push esi
mov dword [esp + 0xc], 0x208
mov dword [esp + 0x10], 1
call fcn.100d4cc0
add esp, 0xc
lea eax, [esp]
push eax
push esi
lea ecx, [esp + 0xc]
push ecx
push str.path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360DocProtect.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
inc eax
add esp, 8
ret
Function at 0x10039510
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x218
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
push 0
push 1
push 0x101dd378
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x10039624
push 0x208
push eax
lea eax, [esp + 0x18]
push eax
call fcn.100d4cc0
mov edx, dword [0x101dd35c]
add esp, 0xc
push 0x104
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10039586
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.100d0738
add esp, 0x218
ret
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp word [esp + 0x10], 0
je 0x1003956c
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str...360Base.dll
lea ecx, [esp + 0x14]
push ecx
call ebx
test eax, eax
je 0x1003956c
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [esp + 0x10]
push edx
call edi
test eax, eax
jne 0x100395e8
lea esi, [esp + 0x10]
call fcn.100394c0
cmp word [esp + 0x10], 0
je 0x1003956c
push str.360base.dll
mov eax, esi
push eax
call ebx
test eax, eax
je 0x1003956c
mov ecx, esi
push ecx
call edi
test eax, eax
je 0x1003956c
lea edx, [esp + 0x10]
push edx
call fcn.100396f0
add esp, 4
test eax, eax
je 0x1003956c
mov dword [0x101dd37c], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.100d0738
add esp, 0x218
ret
mov ecx, dword [esp + 0x21c]
mov eax, dword [0x101dd37c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x218
ret

Function at 0x10039ee0
Capabilities:
Create directory

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10039f53
push edi
push 0x208
push 0
push 0x101dd568
call fcn.100d4cc0
add esp, 0xc
mov eax, esi
mov ecx, 0x104
mov edx, 0x101dd568
call fcn.10003cf0
push 0x10129ee0
mov eax, 0x208
mov edi, 0x101dd568
call fcn.100044f0
mov eax, edi
lea edx, [eax + 2]
pop edi
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10039f30
push 0
sub eax, edx
push 0x101dd568
sar eax, 1
push 0
mov dword [0x101dd4b4], eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
pop esi
ret
Function at 0x1003a050
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x100f3cab
mov eax, dword fs:[0]
push eax
sub esp, 0x108
push edi
mov eax, dword [0x10139d00]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
test esi, esi
je 0x1003a144
lea eax, [esp + 0x10]
push 3
mov dword [esp + 0x10], eax
push esi
lea eax, [esp + 0x14]
call fcn.10028700
mov dword [esp + 0x118], 0
mov edi, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.100399d0
add esp, 4
test eax, eax
je 0x1003a0bf
mov edi, 1
jmp 0x1003a0e3
call fcn.10039510
test eax, eax
je 0x1003a0d4
push 0x101de748
call fcn.10039b40
jmp 0x1003a0db
mov eax, edi
call fcn.10064100
neg eax
sbb eax, eax
neg eax
mov edi, eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
cmp eax, ecx
je 0x1003a0f8
push eax
call fcn.100d1800
add esp, 4
test edi, edi
je 0x1003a144
mov edx, dword [esp + 0x12c]
mov eax, dword [esp + 0x128]
mov ecx, dword [esp + 0x124]
push edx
mov edx, dword [esp + 0x124]
push eax
push ecx
push 0
push 0
push 1
push 0
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x114
ret
xor eax, eax
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x114
ret
Function at 0x1003aac0
Capabilities:
Get disk size
Get file attributes
Get file size
Set file attributes

Disassembly:
sub esp, 0x7f4
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x7ec], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0x7ce
xor ebp, ebp
lea ecx, [esp + 0x2e]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x30], edi
mov esi, edx
mov word [esp + 0x34], ax
call fcn.100d4cc0
add esp, 0xc
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
cmp dword [0x101d30c0], ebp
jne 0x1003ab2a
call fcn.10018560
test eax, eax
jne 0x1003ab33
push 5
push esi
call edi
or eax, 0xffffffff
jmp 0x1003ac18
mov ecx, esi
call fcn.100185c0
jmp 0x1003ab19
push ebp
push ebp
lea edx, [esp + 0x18]
push edx
push 0x101dd568
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1003ab76
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x1c]
ja 0x1003ab99
jb 0x1003ab8c
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x18]
jae 0x1003ab99
push 6
push esi
call edi
or eax, 0xffffffff
jmp 0x1003ac18
push esi
lea eax, [esp + 0x2c]
call fcn.10039f60
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x1003ac0f
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x1003abb3
sub eax, edx
sar eax, 1
cmp eax, 6
jbe 0x1003abd8
cmp word [esp + eax*2 + 0x1c], 0x2e
lea eax, [esp + eax*2 + 0x1c]
jne 0x1003abd8
xor ecx, ecx
mov word [eax], cx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push esi
mov ebp, eax
call edi
lea ecx, [esp + 0x28]
mov edx, esi
call fcn.10018d60
push ebp
push esi
mov ebx, eax
call edi
mov edx, ebx
neg edx
sbb edx, edx
add edx, 5
push edx
push esi
call dword [esp + 0x2c]
mov eax, ebx
neg eax
sbb eax, eax
neg eax
dec eax
mov ecx, dword [esp + 0x7fc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x7f4
ret
Function at 0x1003ac40
Capabilities:
Get disk size
Get file attributes
Get file size
Set file attributes

Disassembly:
sub esp, 0x7f4
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x7f0], eax
push ebx
push ebp
mov ebp, dword [esp + 0x800]
push edi
push 0x7ce
xor ebx, ebx
lea ecx, [esp + 0x2e]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x30], ebp
mov word [esp + 0x34], ax
call fcn.100d4cc0
add esp, 0xc
push ebx
push ebx
lea edx, [esp + 0x18]
push edx
push 0x101dd568
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003acd1
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x1c]
ja 0x1003ad07
jb 0x1003ace7
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x18]
jae 0x1003ad07
push 6
push esi
call ebp
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7f0]
xor ecx, esp
call fcn.100d0738
add esp, 0x7f4
ret
push esi
lea eax, [esp + 0x2c]
call fcn.10039f60
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x1003ad8d
push 0x10129ee0
push ebx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRStrIW]
cmp eax, ebx
je 0x1003ad55
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 0x10129d28
push eax
call edi
cmp eax, ebx
je 0x1003ad55
push 0x10129d28
add eax, 2
push eax
call edi
cmp eax, ebx
je 0x1003ad55
xor ecx, ecx
mov word [eax], cx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push esi
mov ebx, eax
call ebp
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.1001a3f0
push ebx
push esi
mov edi, eax
call ebp
mov eax, edi
neg eax
sbb eax, eax
add eax, 5
push eax
push esi
call dword [esp + 0x2c]
mov ecx, dword [esp + 0x7fc]
mov eax, edi
neg eax
pop edi
sbb eax, eax
pop ebp
neg eax
pop ebx
xor ecx, esp
dec eax
call fcn.100d0738
add esp, 0x7f4
ret
Function at 0x1003adb0
Capabilities:
Get disk size
Get file attributes
Get file size
Set file attributes

Disassembly:
sub esp, 0x7f4
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x7f0], eax
push ebx
push ebp
push edi
xor ebp, ebp
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x24], ebx
cmp dword [0x101dd3bc], ebp
jne 0x1003adf1
mov eax, dword [esp + 0x804]
push eax
mov edx, esi
call fcn.1003a7e0
add esp, 4
cmp dword [0x101dd3bc], ebp
jbe 0x1003af33
push 0x7ce
lea edx, [esp + 0x2e]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x34], cx
call fcn.100d4cc0
add esp, 0xc
push ebp
push ebp
lea eax, [esp + 0x18]
push eax
push 0x101dd568
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003ae64
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x1c]
ja 0x1003ae9a
jb 0x1003ae7a
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
jae 0x1003ae9a
push 6
push esi
call ebx
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7f0]
xor ecx, esp
call fcn.100d0738
add esp, 0x7f4
ret
push esi
lea eax, [esp + 0x2c]
call fcn.10039f60
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x1003af33
cmp dword [esp + 0x804], 8
je 0x1003aef0
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x1003aec2
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x20], 0x2e
lea ecx, [esp + eax*2 + 0x20]
je 0x1003aeeb
cmp eax, 6
jbe 0x1003aef0
xor ecx, ecx
mov word [esp + eax*2 + 0x1c], cx
jmp 0x1003aef0
xor edx, edx
mov word [ecx], dx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push esi
mov ebx, eax
call ebp
mov eax, dword [esp + 0x804]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.10043220
add esp, 8
push ebx
push esi
mov edi, eax
call ebp
mov edx, edi
neg edx
sbb edx, edx
add edx, 5
push edx
push esi
call dword [esp + 0x2c]
mov ecx, dword [esp + 0x7fc]
mov eax, edi
neg eax
pop edi
sbb eax, eax
pop ebp
neg eax
pop ebx
xor ecx, esp
dec eax
call fcn.100d0738
add esp, 0x7f4
ret
Function at 0x1003af60
Capabilities:
Get disk size
Get file attributes
Get file size
Set file attributes

Disassembly:
mov eax, 0x1ff4
call fcn.100d4920
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x1ff0], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2000]
push edi
push 0x7ce
xor ebx, ebx
lea ecx, [esp + 0x82e]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x30], ebp
mov word [esp + 0x834], ax
call fcn.100d4cc0
add esp, 0xc
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
push 0x101dd568
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003affb
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x14]
ja 0x1003b031
jb 0x1003b011
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x10]
jae 0x1003b031
push 6
push esi
call ebp
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1ff0]
xor ecx, esp
call fcn.100d0738
add esp, 0x1ff4
ret
push esi
lea eax, [esp + 0x82c]
call fcn.10039f60
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
je 0x1003b18d
push 0x7fe
lea ecx, [esp + 0xffe]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x1004], ax
call fcn.100d4cc0
add esp, 0xc
push 0x7fe
lea eax, [esp + 0x17fe]
xor edx, edx
push ebx
push eax
mov word [esp + 0x1804], dx
call fcn.100d4cc0
add esp, 0xc
push 0x7fe
lea edx, [esp + 0x2e]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x34], cx
call fcn.100d4cc0
add esp, 0xc
lea eax, [esp + 0x828]
push eax
lea ecx, [esp + 0xffc]
push 0x400
push ecx
call fcn.100d43cd
add esp, 0xc
lea edx, [esp + 0xff8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x828]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, ebx
je 0x1003b0fa
push eax
lea ecx, [esp + 0x17fc]
push 0x400
push ecx
call fcn.100d43cd
add esp, 0xc
lea edx, [esp + 0x17f8]
push 0x1012efe0
push edx
call fcn.100d2d54
add esp, 8
mov edi, eax
lea eax, [esp + 0xff8]
push eax
lea ecx, [esp + 0x2c]
push 0x400
push ecx
call fcn.100d43cd
add esp, 0xc
cmp edi, ebx
je 0x1003b13a
add edi, 0x58
push edi
lea edx, [esp + 0x2c]
push edx
jmp 0x1003b147
lea edx, [esp + 0x17f8]
push edx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push esi
mov ebx, eax
call ebp
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.10048b50
mov edi, eax
cmp edi, 4
jne 0x1003b17f
mov dword [esp + 0xc], 1
push ebx
push esi
call ebp
push edi
push esi
call dword [esp + 0x2c]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1ffc]
neg eax
pop edi
sbb eax, eax
pop ebp
neg eax
pop ebx
xor ecx, esp
dec eax
call fcn.100d0738
add esp, 0x1ff4
ret