joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477020
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f32a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x534068]
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 0x477063
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.00493a60
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x477090
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
jmp 0x477097
mov dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.00405520
test al, al
jne 0x4770ab
mov ecx, ebx
call fcn.004027b0
jmp 0x4770ad
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 0x4770fe
call ecx
cmp eax, 5
jne 0x4770f8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.00405520
test al, al
jne 0x4770e8
mov ecx, ebx
call fcn.004027b0
jmp 0x4770ea
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 0x47711c
call ecx
cmp eax, 0xb7
jne 0x477111
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.00489fe0
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x477142
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 0x477157
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004bc9aa
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.004bc969
mov esp, ebp
pop ebp
ret 4
Function at 0x47d900
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x52b4c8
push 0x4be710
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x534068]
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.004bf410
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
mov ecx, edi
call fcn.0047d6f0
cmp byte [edi + 0x30], bl
je 0x47d9ac
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47d9d4
test al, 0x10
jne 0x47d9d4
call fcn.0047e170
push ecx
lea ecx, [ebp - 0x438]
push ecx
mov ecx, eax
call fcn.0047e250
test al, al
je 0x47d9d4
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 0x47d9d8
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x47da44
push str.ExtractArchive
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47da0f
mov dword [edi + 0x34], esi
push edi
push 0x47d5f0
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 0x47da37
test esi, esi
je 0x47da42
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.004bc969
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47da70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x52b4e8
push 0x4be710
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x534068]
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.004bf410
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
mov ecx, edi
call fcn.0047d6f0
cmp byte [edi + 0x30], bl
je 0x47db1c
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47db44
test al, 0x10
jne 0x47db44
call fcn.0047e170
push ecx
lea ecx, [ebp - 0x438]
push ecx
mov ecx, eax
call fcn.0047e250
test al, al
je 0x47db44
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 0x47db48
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x47dbb7
push str.ExtractArchive2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47db82
mov dword [edi + 0x34], esi
push dword [edi + 0x38]
push edi
push 0x47d5f0
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 0x47dbaa
test esi, esi
je 0x47dbb5
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.004bc969
mov esp, ebp
pop ebp
ret 0xc
Function at 0x481120
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4a5b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x534068]
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 0x481159
call fcn.004812c0
cmp byte [0x536aec], 0
jne 0x48116c
mov eax, SysReAllocString
jmp 0x48129c
mov eax, dword [esi]
test eax, eax
jne 0x4811ec
push 8
call fcn.004bc97a
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.004bc97a
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call fcn.004bf410
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 0x4811db
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 0x48128b
call fcn.004892d0
test al, al
jne 0x481226
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.00489810
test al, al
je 0x48128b
mov ecx, dword [esi]
add ecx, 4
call fcn.00488e30
call fcn.004892d0
test al, al
je 0x48128b
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.00402800
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.00482220
mov ecx, eax
call fcn.004822e0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.004027f0
test edi, edi
je 0x48128b
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48128b
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x48128b
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x48129a
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.004bc969
mov esp, ebp
pop ebp
ret 4
Function at 0x481480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4b16
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x534068]
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.00402850
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x63c]
call fcn.00403800
push 0x536b0c
call fcn.00404230
mov byte [ebp - 4], 1
mov ecx, 0x536b1c
call fcn.00405520
test al, al
jne 0x481525
mov ecx, 0x536b1c
call fcn.00402870
lea ecx, [ebp - 0x654]
cmp ecx, eax
je 0x4815e9
mov ecx, 0x536b1c
call fcn.00402870
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x48151c
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x4815de
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004bf410
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x48167c
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x638]
push eax
call fcn.004bf410
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 0x4815c7
test eax, eax
je 0x4815c7
add eax, eax
cmp eax, 0x412
jae 0x4816bf
xor ecx, ecx
mov word [ebp + eax - 0x638], cx
lea eax, [ebp - 0x638]
push eax
call fcn.00402af0
add esp, 4
push eax
lea eax, [ebp - 0x638]
jmp 0x4815dd
lea eax, [ebp - 0x220]
push eax
call fcn.00402af0
add esp, 4
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x654]
call fcn.004028e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x63c]
call fcn.00404260
push ebx
push edi
lea eax, [ebp - 0x654]
mov ecx, esi
push eax
call fcn.00481410
test al, al
je 0x481610
mov bl, 1
jmp 0x48168d
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004bf410
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x48168b
xor eax, eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x220]
push eax
call fcn.00402af0
add esp, 4
lea ecx, [ebp - 0x654]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004028e0
push ebx
push edi
lea eax, [ebp - 0x654]
mov ecx, esi
push eax
call fcn.00481410
mov bl, al
jmp 0x48168d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x63c]
call fcn.00404260
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x654]
call fcn.004027f0
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.004bc969
mov esp, ebp
pop ebp
ret 8
call fcn.004bcfe6
int3
Function at 0x483b20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f513f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x534068]
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.00484200
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.004027f0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.004027f0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.004027f0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.004027f0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.004027f0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004027f0
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 0x4847d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f532f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x534068]
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.004027f0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.004027f0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.004027f0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.004027f0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.004027f0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004027f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x485ab0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f54cf
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x534068]
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.00404060
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00404060
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00404060
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00404060
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.00404060
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00404060
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 0x4886f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x534068]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.004bc97a
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.004bf410
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 0x48874c
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.004bc969
add esp, 0x120
ret
Function at 0x48bbe0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x534068]
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 0x48bc62
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 0x48bc62
test ecx, ecx
je 0x48bc5e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x48bc20
xor eax, eax
jmp 0x48bc67
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x48bc71
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004bc969
add esp, 0xc
ret 0xc

Function at 0x48dfa0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x48dfd8
mov edx, dword [esp + 4]
test edx, edx
je 0x48dfd8
cmp dword [eax], 0xffffffff
je 0x48dfd8
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 0x48dfd8
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x48dfe0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x48e01a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x48e01a
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x48e01a
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 0x48e01a
cmp edi, dword [esi]
jne 0x48e01a
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x48e060
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x534068]
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 0x48e0c3
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x48e0c3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48e09e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48e0c3
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.004bc969
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004bc969
add esp, 8
ret 4
Function at 0x48ef60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6766
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x534068]
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 0x48f03e
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 0x48f05c
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004bd0c5
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 0x48f02a
cmp eax, ebx
ja 0x48f02a
xor ecx, ecx
mov ebx, eax
mov dword [edi + eax*2], ecx
mov dword [ebp - 0x818], ebx
jmp 0x48f08a
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x48f03e
push edi
call fcn.004bd0c0
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.004bc969
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x48f115
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x48f115
mov word [ebp + eax - 0x810], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x48f0fa
mov esi, dword [ebp - 0x81c]
mov ebx, 2
mov eax, dword [ebp - 0x818]
cmp word [esi + ebx - 2], 0
jne 0x48f0ec
cmp ecx, edi
je 0x48f0ec
lea eax, [esi + ecx*2]
push eax
lea ecx, [ebp - 0x838]
call fcn.00402800
mov byte [ebp - 4], 1
lea eax, [ebp - 0x838]
mov ecx, dword [ebp - 0x820]
push eax
call fcn.0040a1f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x838]
call fcn.004027f0
mov eax, dword [ebp - 0x818]
lea ecx, [edi + 1]
inc edi
add ebx, 2
cmp edi, eax
jb 0x48f0a3
mov esi, dword [ebp - 0x814]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x48f10e
push esi
call fcn.004bd0c0
add esp, 4
mov al, 1
jmp 0x48f040
call fcn.004bcfe6
int3
Function at 0x492200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6ff8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x534068]
xor eax, ebp
mov dword [ebp - 0x14], 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 + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [ebp - 0x3c], xmm0
call fcn.0048e0e0
test al, al
jne 0x492260
mov eax, 1
jmp 0x4923dd
push 0x10000
call fcn.004bd0c5
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
push 0x10000
push 0
push ebx
call fcn.004bf410
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x4923b6
test ebx, ebx
je 0x4923b6
cmp dword [eax], 0xffffffff
je 0x4923b6
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4923b6
mov esi, dword [ebp - 0x20]
mov ecx, 0x8000
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
add esi, ecx
nop word [eax + eax]
cmp byte [edi + 0x9c], 0
jne 0x4923ac
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [esi + ebx]
push eax
call fcn.004b5e40
test al, al
je 0x49239f
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x492352
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x492341
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x4923ac
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x49235c
add ebx, eax
cmp ebx, 0x8000
je 0x49236c
cmp dword [ebp - 0x28], 0xf
ja 0x492395
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x4922f0
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x49238e
add ecx, 4
add esi, 4
sub edx, 4
jae 0x492376
mov esi, 4
jmp 0x4923c7
mov esi, 5
jmp 0x4923c7
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x4923c7
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x4923c1
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x4923c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4923db
push ebx
call fcn.004bd0c0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bc969
mov esp, ebp
pop ebp
ret 0xc