joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b984
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4eebf4]
cmp dword [eax + 0x30], 0
je 0x47ba2e
cmp dword [ebx + 0x94], 0
jne 0x47ba28
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47b914
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x47ba28
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x47b9ee
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x47ba28
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041d038
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47b9fd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47c590
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x47c5c5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004045f8
jmp 0x47c5d2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040455c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x47d64c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47d68d
mov eax, esi
call fcn.00463a84
test al, al
je 0x47d68d
mov eax, dword [ebx + 0x84]
call fcn.00463780
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47d68d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00463780
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47fdbc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042ae24
cmp ebx, dword [ebp - 8]
jge 0x47fe1f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042b20c
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042b20c
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042b238
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x47fde5
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x47fe28
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042ae24
cmp ebx, dword [ebp - 8]
jge 0x47fe8b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042b20c
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042b20c
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042b238
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x47fe51
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x491e0c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x491f7d
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x491f58
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.004046f0
lea eax, [ebp - 0x118]
mov edx, 0x491f94
call fcn.004047d0
mov eax, dword [ebp - 0x118]
call fcn.004049c8
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x491eca
lea eax, [ebp - 0x111]
call fcn.00409e08
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.004045f8
jmp 0x491ed1
mov eax, esi
call fcn.00404508
cmp bl, 0x61
jae 0x491ef2
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040ddf4
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.0040455c
jmp 0x491f0c
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040dd68
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.0040455c
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x491fa0
call fcn.0040a510
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.0040455c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491f5f
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x495918
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4959cf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.004049c8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x49595a
call fcn.00403f50
jmp 0x4959d6
mov eax, ebx
call fcn.0040281c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.004049c8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x495983
call fcn.00403f50
jmp 0x4959d6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4959e0
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x4959a4
call fcn.00403f50
jmp 0x4959d6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4959d6
mov eax, dword [ebp - 8]
call fcn.0040283c
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x495c2c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x495c94
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
xor ecx, ecx
mov edx, 0x160
call fcn.0040301c
test ebx, ebx
jne 0x495c69
mov word [ebp - 2], 0
lea ebx, [ebp - 2]
or esi, 0x4008
push esi
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push ebx
call sub.shell32.dll_SHGetFileInfoA
mov ebx, dword [ebp - 0x160]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x495ca0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x495f24
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
push 0x496088
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49607e
xor eax, eax
push ebp
push 0x496077
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4001
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push 0x496094
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
push 0x4000
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push 0x496094
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
push 0x8000
push 0x10
push 0x10
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
mov edx, ebx
mov eax, esi
call fcn.00431a7c
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
mov edx, ebx
mov eax, edi
call fcn.00431a7c
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x10
push 0x10
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
mov edx, ebx
mov eax, esi
call fcn.00431a7c
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
mov edx, ebx
mov eax, edi
call fcn.00431a7c
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
mov byte [0x4e87f0], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49607e
cmp dword [ebp - 4], 0
je 0x496076
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x499134
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov edi, edx
mov ebx, eax
mov eax, dword [edi + 8]
xor edx, edx
mov dword [edi + 0xc], edx
mov eax, dword [eax + 8]
cmp eax, 0xffffff9b
jg 0x499175
je 0x4991ef
sub eax, 0xffffff91
je 0x4992dc
sub eax, 2
je 0x4992dc
sub eax, 4
je 0x49923d
jmp 0x499348
sub eax, 0xffffff9c
je 0x499188
sub eax, 0x5f
je 0x4992ee
jmp 0x499348
mov edx, edi
mov eax, ebx
call fcn.004478ac
mov ebp, dword [edi + 8]
cmp byte [ebx + 0x274], 0
je 0x499351
mov eax, dword [ebp + 0x14]
cmp eax, 0x2000
je 0x4991b6
cmp eax, 0x1000
jne 0x499351
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x22c]
call fcn.0044585c
mov edx, eax
cmp dword [ebp + 0x14], 0x2000
sete cl
mov eax, ebx
mov si, 0xffa8
call fcn.00403810
test al, al
jne 0x499351
mov dword [edi + 0xc], 1
jmp 0x499351
mov edx, edi
mov eax, ebx
call fcn.004478ac
mov esi, dword [edi + 8]
cmp byte [ebx + 0x274], 0
je 0x499351
mov eax, dword [esi + 0x14]
cmp eax, 0x2000
je 0x49921d
cmp eax, 0x1000
jne 0x499351
mov edx, dword [esi + 0xc]
mov eax, dword [ebx + 0x22c]
call fcn.0044585c
mov edx, eax
mov eax, ebx
mov si, 0xffa9
call fcn.00403810
jmp 0x499351
cmp byte [ebx + 0x382], 0
jne 0x4992d1
cmp byte [ebx + 0x27a], 0
je 0x4992d1
cmp byte [ebx + 0x215], 3
jne 0x4992d1
cmp byte [ebx + 0x381], 0
jne 0x4992d1
mov eax, dword [edi + 8]
mov ebp, dword [eax + 0x2c]
lea ecx, [esp + 8]
mov dl, 2
mov eax, ebp
call fcn.004456c0
push esp
call sub.user32.dll_GetCursorPos
lea ecx, [esp + 0x18]
mov edx, esp
mov eax, ebx
call fcn.0045ca34
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
push dword [esp + 4]
push dword [esp + 4]
lea eax, [esp + 0x10]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4992c5
mov edx, ebp
mov eax, ebx
mov si, 0xffb2
call fcn.00403810
test al, al
jne 0x499351
mov dword [edi + 0xc], 1
jmp 0x499351
mov edx, edi
mov eax, ebx
call fcn.004478ac
jmp 0x499351
mov byte [ebx + 0x3d1], 1
mov edx, edi
mov eax, ebx
call fcn.004478ac
jmp 0x499351
push esp
call sub.user32.dll_GetCursorPos
lea ecx, [esp + 0x18]
mov edx, esp
mov eax, ebx
call fcn.0045ca34
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, ebx
call fcn.00448e64
test al, 8
je 0x499329
mov byte [ebx + 0x3f0], 1
mov edx, esp
mov eax, ebx
mov si, 0xffa7
call fcn.00403810
mov byte [ebx + 0x3f0], 0
mov edx, edi
mov eax, ebx
call fcn.004478ac
jmp 0x499351
mov edx, edi
mov eax, ebx
call fcn.004478ac
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x49dbf0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x49dbf8
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x49dd45
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x49dc4e
lea edx, [ebp - 4]
mov eax, dword [0x4ece1c]
call fcn.004067dc
cmp ebx, 1
jbe 0x49dc85
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x49dd5c
call fcn.0040a510
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.004047d0
jmp 0x49dc85
lea eax, [ebp - 4]
mov edx, 0x49dd6c
call fcn.004045a0
cmp ebx, 1
jbe 0x49dc85
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x49dd7c
call fcn.0040a510
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.004047d0
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 4]
call fcn.00404814
mov eax, dword [ebp - 0x18]
call fcn.004049c8
push eax
call sub.kernel32.dll_CreateDirectoryA_1
test eax, eax
jne 0x49dd0d
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
jne 0x49dcbd
mov bl, 1
jmp 0x49dd1d
push 0
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0040c6f8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [0x4ed2d4]
call fcn.004067dc
mov eax, dword [ebp - 0x24]
mov ecx, 1
pop edx
call fcn.00496e80
mov eax, dword [ebp - 0x1c]
mov cx, word [0x49dd80]
xor edx, edx
call fcn.00436c38
mov bl, 2
jmp 0x49dd1d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
call fcn.0040455c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49dd4c
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.0040452c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040452c
ret

Function at 0x49e384
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov ebx, ecx
mov esi, eax
test edx, 0x40000000
jne 0x49e3a6
mov edx, ebx
mov eax, dword [0x4ed2d0]
call fcn.004067dc
jmp 0x49e3dd
push 0x408
push 0x160
lea eax, [esp + 8]
push eax
push 0
push esi
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x49e3d6
mov eax, ebx
lea edx, [esp + 0x110]
mov ecx, 0x50
call fcn.00404778
jmp 0x49e3dd
mov eax, ebx
call fcn.00404508
add esp, 0x160
pop esi
pop ebx
ret
Function at 0x49edec
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x158], ebx
mov ebx, ecx
test ebx, ebx
js 0x49ee1f
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x49ee18
mov edx, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049b8
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 8]
mov edx, dword [0x401100]
call fcn.00405310
xor eax, eax
push ebp
push 0x49efad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x49ef75
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 4]
push 0x49efd4
push dword [esi]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00404888
mov eax, dword [ebp - 0x158]
call fcn.004049c8
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49ef69
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x49ef4e
test al, 2
jne 0x49ef4e
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 0x49efd4
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00404778
push dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00404888
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x10]
call fcn.00495a90
call fcn.00419c0c
test al, al
je 0x49ef0c
or edi, 0xffffffff
jmp 0x49ef1b
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00495c2c
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.004959f4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00404778
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov ecx, edi
mov edi, dword [eax]
call dword [edi + 0x3c]
lea eax, [ebp - 0x154]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x49eea1
push ebx
call sub.kernel32.dll_FindClose_1
add esi, 4
dec dword [ebp - 0x14]
jne 0x49ee64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49efb4
lea eax, [ebp - 0x164]
mov edx, 4
call fcn.0040452c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x401100]
call fcn.004051d0
lea eax, [ebp - 4]
call fcn.00404508
ret

Function at 0x4a0104
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a0186
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x700f0037
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004a020c
mov eax, dword [ebp - 8]
call fcn.0049df3c
test al, al
je 0x4a0157
mov eax, dword [ebp - 8]
call fcn.004049c8
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x4a0157
and dword [ebp - 4], 0xfffbffff
lea eax, [ebp - 4]
push eax
lea eax, [ebx + 0xc]
push eax
push 1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x418]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a018d
lea eax, [ebp - 8]
call fcn.00404508
ret
Function at 0x4a01ac
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov esi, edx
mov ebx, eax
cmp dword [ebx + 0x14], 0
jne 0x4a01f7
push 0x208
push 0x160
lea eax, [esp + 8]
push eax
push 0
mov eax, ebx
call fcn.004a00e0
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4a01f7
lea eax, [esp + 0xc]
call fcn.00409e08
mov ecx, eax
lea edx, [esp + 0xc]
lea eax, [ebx + 0x14]
call fcn.004045f8
mov eax, esi
mov edx, dword [ebx + 0x14]
call fcn.0040455c
add esp, 0x160
pop esi
pop ebx
ret

Function at 0x4a3b68
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004049c8
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 3
je 0x4a3ba9
dec eax
je 0x4a3b8b
sub eax, 2
je 0x4a3ba9
jmp 0x4a3bba
mov al, byte [ebx]
call fcn.00497324
test al, al
je 0x4a3bba
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xff9f
call fcn.00403810
jmp 0x4a3bba
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xff9f
call fcn.00403810
pop esi
pop ebx
pop ebp
ret

Function at 0x4a3bc0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a3c6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3f0], 0
jne 0x4a3c0e
push 0x465
mov eax, dword [ebp - 4]
call fcn.00463780
mov ecx, eax
mov dl, 1
mov eax, dword [0x4a03a0]
call fcn.004a040c
mov edx, dword [ebp - 4]
mov dword [edx + 0x3f0], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3f0]
call fcn.004a08d4
lea eax, [ebp - 8]
mov edx, 0x4a3c84
call fcn.004045a0
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x4a3c59
test bl, 1
je 0x4a3c52
lea eax, [ebp - 8]
call fcn.00404a20
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.004a3b68
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x4a3c36
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3c76
lea eax, [ebp - 8]
call fcn.00404508
ret
Function at 0x4a4808
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004049b8
xor eax, eax
push ebp
push 0x4a4926
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4a48f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
or eax, 1
push eax
call sub.kernel32.dll_SetErrorMode
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 4]
call fcn.004049c8
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a48d6
test byte [ebp - 0x14c], 0x10
jne 0x4a48b9
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.00404778
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.00408d00
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4a487c
push ebx
call sub.kernel32.dll_FindClose_1
mov byte [ebp - 5], 1
jmp 0x4a48e2
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4900
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4a94cc
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, eax
mov al, byte [ebx + 4]
sub al, 1
jb 0x4a94da
je 0x4a94df
jmp 0x4a9504
mov eax, dword [ebx + 8]
pop ebx
ret
cmp dword [ebx + 8], 0
jne 0x4a94ff
lea eax, [ebx + 8]
push eax
xor eax, eax
mov al, byte [ebx + 0xc]
push eax
mov eax, dword [0x4ed204]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebx + 8]
pop ebx
ret
xor eax, eax
pop ebx
ret