joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47db90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x538074]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
call fcn.00406a40
push 0x412
lea eax, [esp + 8]
push 0
push eax
call fcn.004c0fa0
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x47dbec
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004be500
add esp, 0x418
ret
cmp eax, 0x208
jae 0x47dbd4
xor eax, eax
mov word [esp + 0x414], ax
lea eax, [esp + 4]
push eax
call fcn.00403540
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.00403270
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.004be500
add esp, 0x418
ret

Function at 0x47e120
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f60d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x538074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x47e166
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0049a580
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x47e18f
lea ebx, [esi + 8]
jmp 0x47e191
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00402f40
test al, al
jne 0x47e1a7
mov ecx, dword [ebp - 0x18]
call fcn.00402f50
jmp 0x47e1a9
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x47e1ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x47e1ca
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x47e1f3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x47e208
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004be541
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
ret 4
Function at 0x47e240
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f60d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x538074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x47e283
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0049a640
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x47e2b0
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
jmp 0x47e2b7
mov dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.00402f40
test al, al
jne 0x47e2cb
mov ecx, ebx
call fcn.00402f50
jmp 0x47e2cd
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x47e31e
call ecx
cmp eax, 5
jne 0x47e318
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.00402f40
test al, al
jne 0x47e308
mov ecx, ebx
call fcn.00402f50
jmp 0x47e30a
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x47e33c
call ecx
cmp eax, 0xb7
jne 0x47e331
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.00490bc0
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x47e362
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x47e377
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004be541
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
ret 4
Function at 0x4844f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x52f450
push 0x4c02a0
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x538074]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x444], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x440], eax
xor bl, bl
mov byte [ebp - 0x439], bl
push 0x412
push 0
lea eax, [ebp - 0x438]
push eax
call fcn.004c0fa0
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
mov ecx, edi
call fcn.004842e0
cmp byte [edi + 0x30], bl
je 0x48459c
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4845c4
test al, 0x10
jne 0x4845c4
call fcn.00484d60
push ecx
lea ecx, [ebp - 0x438]
push ecx
mov ecx, eax
call fcn.00484e40
test al, al
je 0x4845c4
mov dword [edi + 0x34], 0
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x4845c8
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x484634
push str.ExtractArchive
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4845ff
mov dword [edi + 0x34], esi
push edi
push 0x4841e0
push 0
push dword [ebp - 0x440]
push dword [ebp - 0x444]
call eax
add esp, 0x14
test eax, eax
sete bl
mov byte [ebp - 0x439], bl
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x484627
test esi, esi
je 0x484632
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
ret 0xc
Function at 0x484660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x52f470
push 0x4c02a0
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x538074]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x444], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x440], eax
xor bl, bl
mov byte [ebp - 0x439], bl
push 0x412
push 0
lea eax, [ebp - 0x438]
push eax
call fcn.004c0fa0
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
mov ecx, edi
call fcn.004842e0
cmp byte [edi + 0x30], bl
je 0x48470c
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x484734
test al, 0x10
jne 0x484734
call fcn.00484d60
push ecx
lea ecx, [ebp - 0x438]
push ecx
mov ecx, eax
call fcn.00484e40
test al, al
je 0x484734
mov dword [edi + 0x34], 0
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x484738
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x4847a7
push str.ExtractArchive2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x484772
mov dword [edi + 0x34], esi
push dword [edi + 0x38]
push edi
push 0x4841e0
push 0
push dword [ebp - 0x440]
push dword [ebp - 0x444]
call eax
add esp, 0x18
test eax, eax
sete bl
mov byte [ebp - 0x439], bl
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x48479a
test esi, esi
je 0x4847a5
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
ret 0xc
Function at 0x487cf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f788b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x538074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x487d29
call fcn.00487e90
cmp byte [0x53aad4], 0
jne 0x487d3c
mov eax, SysReAllocString
jmp 0x487e6c
mov eax, dword [esi]
test eax, eax
jne 0x487dbc
push 8
call fcn.004be511
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.004be511
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call fcn.004c0fa0
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x487dab
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x487e5b
call fcn.0048feb0
test al, al
jne 0x487df6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.004903f0
test al, al
je 0x487e5b
mov ecx, dword [esi]
add ecx, 4
call fcn.0048fa10
call fcn.0048feb0
test al, al
je 0x487e5b
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.00403010
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.00488e00
mov ecx, eax
call fcn.00488ec0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.00402fc0
test edi, edi
je 0x487e5b
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x487e5b
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x487e5b
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x487e6a
mov dword [eax], SysReAllocString
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
ret 4
Function at 0x488050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7946
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x538074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x654]
mov ebx, dword [ebp + 0xc]
call fcn.00403060
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x63c]
call fcn.00404210
push 0x53aaf4
call fcn.00404bc0
mov byte [ebp - 4], 1
mov ecx, 0x53ab04
call fcn.00402f40
test al, al
jne 0x4880f5
mov ecx, 0x53ab04
call fcn.00403170
lea ecx, [ebp - 0x654]
cmp ecx, eax
je 0x4881b9
mov ecx, 0x53ab04
call fcn.00403170
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4880ec
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x4881ae
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004c0fa0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x48824c
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x638]
push eax
call fcn.004c0fa0
add esp, 0xc
lea eax, [ebp - 0x638]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x488197
test eax, eax
je 0x488197
add eax, eax
cmp eax, 0x412
jae 0x48828f
xor ecx, ecx
mov word [ebp + eax - 0x638], cx
lea eax, [ebp - 0x638]
push eax
call fcn.00403540
add esp, 4
push eax
lea eax, [ebp - 0x638]
jmp 0x4881ad
lea eax, [ebp - 0x220]
push eax
call fcn.00403540
add esp, 4
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x654]
call fcn.00403270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x63c]
call fcn.00404bf0
push ebx
push edi
lea eax, [ebp - 0x654]
mov ecx, esi
push eax
call fcn.00487fe0
test al, al
je 0x4881e0
mov bl, 1
jmp 0x48825d
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004c0fa0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x48825b
xor eax, eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x220]
push eax
call fcn.00403540
add esp, 4
lea ecx, [ebp - 0x654]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00403270
push ebx
push edi
lea eax, [ebp - 0x654]
mov ecx, esi
push eax
call fcn.00487fe0
mov bl, al
jmp 0x48825d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x63c]
call fcn.00404bf0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x654]
call fcn.00402fc0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
ret 8
call fcn.004beb7d
int3
Function at 0x48a700
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7f6f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x538074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + 4]
push eax
lea ecx, [eax + 0x94]
call fcn.0048ade0
mov esi, dword [edi + 4]
add esp, 4
sub esi, 0x94
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00402fc0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00402fc0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00402fc0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00402fc0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00402fc0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00402fc0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add dword [edi + 4], 0xffffff6c
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x48b3b0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f815f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x538074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00402fc0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00402fc0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00402fc0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00402fc0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00402fc0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00402fc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x48c690
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f82ff
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x538074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.00402fd0
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00402fd0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00402fd0
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00402fd0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00402fd0
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00402fd0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x48f2d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x538074]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.004be511
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.004c0fa0
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x48f32c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.004be500
add esp, 0x120
ret
Function at 0x4927c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x538074]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x492842
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x492842
test ecx, ecx
je 0x49283e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x492800
xor eax, eax
jmp 0x492847
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x492851
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004be500
add esp, 0xc
ret 0xc

Function at 0x494b80
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x494bb8
mov edx, dword [esp + 4]
test edx, edx
je 0x494bb8
cmp dword [eax], 0xffffffff
je 0x494bb8
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x494bb8
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x494bc0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x494bfa
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x494bfa
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x494bfa
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x494bfa
cmp edi, dword [esi]
jne 0x494bfa
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x494c40
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x538074]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x494ca3
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x494ca3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x494c7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x494ca3
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004be500
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004be500
add esp, 8
ret 4
Function at 0x495d20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f95b6
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x538074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x820], ecx
lea eax, [ebp - 0x810]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
mov dword [ebp - 0x818], ebx
test ebx, ebx
je 0x495dfe
lea edi, [ebp - 0x810]
mov dword [ebp - 0x814], 0
xor esi, esi
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x814], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x495e1c
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004bec5c
add esp, 4
mov dword [ebp - 0x81c], eax
mov edi, eax
mov esi, edi
mov dword [ebp - 0x814], esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x495dea
cmp eax, ebx
ja 0x495dea
xor ecx, ecx
mov ebx, eax
mov dword [edi + eax*2], ecx
mov dword [ebp - 0x818], ebx
jmp 0x495e4a
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x495dfe
push edi
call fcn.004bec57
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x495ed5
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x495ed5
mov word [ebp + eax - 0x810], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x495eba
mov esi, dword [ebp - 0x81c]
mov ebx, 2
mov eax, dword [ebp - 0x818]
cmp word [esi + ebx - 2], 0
jne 0x495eac
cmp ecx, edi
je 0x495eac
lea eax, [esi + ecx*2]
push eax
lea ecx, [ebp - 0x838]
call fcn.00403010
mov byte [ebp - 4], 1
lea eax, [ebp - 0x838]
mov ecx, dword [ebp - 0x820]
push eax
call fcn.0040a7c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x838]
call fcn.00402fc0
mov eax, dword [ebp - 0x818]
lea ecx, [edi + 1]
inc edi
add ebx, 2
cmp edi, eax
jb 0x495e63
mov esi, dword [ebp - 0x814]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x495ece
push esi
call fcn.004bec57
add esp, 4
mov al, 1
jmp 0x495e00
call fcn.004beb7d
int3