joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410710
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
mov esi, ecx
push 0x105
push eax
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
push 0
lea edx, [esp + 0xc]
push 1
push edx
mov ecx, esi
call fcn.00413120
test eax, eax
je 0x410755
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop esi
add esp, 0x108
ret
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [esi + 0x18]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
add esp, 0x108
ret

Function at 0x410d50
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push edi
mov edi, ecx
push 0
push 0
mov eax, dword [edi + 8]
push 0x1004
push eax
call ebx
mov ecx, dword [edi + 8]
push 1
push 0xffffffffffffffff
push 0x100c
push ecx
mov ebp, eax
call ebx
push 0x10
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 0x7000
xor esi, esi
test ebp, ebp
mov dword [esp + 0x14], eax
jle 0x410de3
push esi
mov ecx, edi
call fcn.004136f0
mov eax, dword [eax + 4]
xor ecx, ecx
test eax, eax
je 0x410db8
mov edx, dword [esp + 0x14]
test edx, edx
je 0x410dc1
cmp eax, 1
jne 0x410dc1
mov ecx, 2
mov dword [esp + 0x10], esi
mov eax, dword [edi + 8]
lea edx, [esp + 0x18]
push edx
push esi
push 0x102b
push eax
mov dword [esp + 0x38], 3
mov dword [esp + 0x34], ecx
call ebx
inc esi
cmp esi, ebp
jl 0x410d9a
mov esi, dword [esp + 0x10]
mov ecx, dword [edi + 8]
push 0
push esi
push 0x1013
push ecx
call ebx
mov eax, 1
lea edx, [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov eax, dword [edi + 8]
push edx
push esi
push 0x102b
push eax
call ebx
mov ecx, edi
call fcn.004139f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x4115c0
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
mov esi, ecx
push edi
push 0x104
push eax
mov ecx, dword [esi + 0x90]
push 0x78
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0xc]
push 0
push edx
mov edi, 2
call fcn.00498c50
add esp, 8
test eax, eax
jne 0x411629
mov eax, edi
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esi + 0x90]
push 0x79
push eax
push ecx
inc edi
call fcn.0043e2a0
add esp, 0x10
lea edx, [esp + 0xc]
push 0
push edx
call fcn.00498c50
add esp, 8
test eax, eax
je 0x4115fc
mov ecx, esi
call fcn.0041a670
lea eax, [esp + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, esi
mov edi, eax
call fcn.0041a6c0
test edi, edi
jne 0x411669
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x90]
push 0x77
push ecx
push edx
call fcn.0043cfa0
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x104
ret
mov eax, dword [0x4cab50]
test eax, eax
je 0x4116b8
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xb
push eax
call edi
push 0
push 0
mov ecx, esi
call fcn.00418280
mov ecx, dword [esi + 0xc]
push 0
push 9
push 0x110a
push ecx
call edi
mov edx, dword [esi + 0xc]
push eax
push 2
push 0x1102
push edx
call edi
mov eax, dword [esi + 0xc]
push 0
push 1
push 0xb
push eax
call edi
cmp dword [0x4caaf4], 4
jne 0x4116ca
mov eax, dword [0x4cab94]
test eax, eax
je 0x41170e
mov edi, dword [0x4cab8c]
mov ebx, dword [0x4cab90]
mov ecx, esi
mov dword [0x4cab8c], 1
mov dword [0x4cab90], 2
call fcn.00419610
mov dword [0x4cab8c], edi
mov dword [0x4cab90], ebx
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, esi
call fcn.00410600
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x414210
Capabilities:
Move file

Disassembly:
sub esp, 0x554
push ebx
push ebp
mov ebp, dword [esp + 0x560]
push esi
push edi
mov esi, ecx
push ebp
call fcn.004136f0
mov edi, eax
mov eax, dword [esp + 0x56c]
lea ecx, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0x144]
push 0x105
push edx
push eax
call sub.comdlg32.dll_GetFileTitleA
lea ecx, [esp + 0x144]
push 0x2e
push ecx
call fcn.004989e0
mov edx, dword [edi + 0x5c]
add esp, 8
mov ebx, eax
push 0x2e
push edx
call fcn.004989e0
add esp, 8
test eax, eax
je 0x41429e
test ebx, ebx
je 0x414292
mov edx, dword [edi + 0x5c]
mov ecx, eax
sub ecx, edx
lea edx, [esp + 0x144]
sub ebx, edx
cmp ebx, ecx
je 0x41429e
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [edi + 0x5c]
lea ebx, [esi + 0xa4]
push ecx
lea edx, [esp + 0x460]
push ebx
push edx
call fcn.0043c6e0
add esp, 0xc
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x354]
push eax
push ebx
push ecx
call fcn.0043c6e0
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x24c]
lea ecx, [esp + 0x354]
push edx
push eax
push 0x105
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov edx, dword [esi + 0xa0]
mov ebx, dword [edx + 0x28]
test ebx, ebx
je 0x414310
mov ecx, ebx
call fcn.00444ee0
test eax, eax
je 0x414310
push 1
mov ecx, ebx
call fcn.004448d0
lea eax, [esp + 0x24c]
lea ecx, [esp + 0x45c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x41441d
mov ecx, dword [esi + 0x6dc]
test ecx, ecx
je 0x414346
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0x3c]
push edx
push eax
call fcn.00423080
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
call fcn.0041d8c0
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.0041db20
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 8]
push edx
push ebp
push 0x102e
push eax
call ebx
push edi
mov ecx, esi
call fcn.00417300
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x41439e
call fcn.0041c990
test eax, eax
jne 0x41439e
mov dword [esi + 0x2a4], 1
mov ecx, esi
call fcn.00412dd0
mov eax, dword [0x4caa74]
test eax, eax
je 0x4143c5
push 0
mov ecx, esi
call fcn.004175b0
mov ecx, dword [esi + 8]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [edi + 4], 1
jne 0x4143f7
mov eax, dword [0x4cab50]
test eax, eax
je 0x4143f7
mov edx, dword [esi + 0xc]
push 0
push 0
push 0xb
push edx
call ebx
push 0
push 0
mov ecx, esi
call fcn.00418280
mov eax, dword [esi + 0xc]
push 0
push 1
push 0xb
push eax
call ebx
mov ecx, esi
call fcn.004139f0
mov eax, dword [esi + 0x2b8]
dec eax
mov dword [esi + 0x2b8], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret 8
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x90]
push 0x6a
push ecx
push edx
call fcn.0043cfa0
mov eax, dword [esi + 4]
add esp, 0xc
push 0
push 0x4e88
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x554
ret 8
Function at 0x418da0
Capabilities:
Move file
Persist via lnk shortcut

Disassembly:
sub esp, 0x270
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x1c]
push 1
push 0xffffffffffffffff
push 0x100c
push eax
call edi
push eax
mov ecx, esi
call fcn.00418d40
mov ebx, eax
test ebx, ebx
je 0x418f0d
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x284]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 4
push edx
push 0
push 0x1005
push eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], 0
call edi
test eax, eax
je 0x418f03
mov edx, dword [ebx]
lea ecx, [esp + 0x17c]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x418f03
lea eax, [esp + 0x17c]
lea ecx, [esp + 0x78]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x78]
push edx
call fcn.0043d350
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x418f03
mov ebp, dword [esp + 0x288]
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str..lnk
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x78]
lea ecx, [esp + 0x17c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x418ed8
mov ecx, esi
call fcn.00418850
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
push eax
push 0
mov ebx, 2
push 0x100d
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
call edi
lea edx, [esp + 0x50]
mov dword [esp + 0x60], ebx
push edx
push eax
mov eax, dword [esi + 0x1c]
push 0x102b
push eax
mov dword [esp + 0x6c], ebx
call edi
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x270
ret 8
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x90]
push 0x6a
push ecx
push edx
call fcn.0043cfa0
mov eax, dword [esi + 4]
add esp, 0xc
push 0
push 0x4e88
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x270
ret 8
Function at 0x41a5b0
Capabilities:
Resume thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0041a530
mov eax, dword [esi + 0x484]
test eax, eax
je 0x41a668
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x41a668
mov eax, dword [esi + 0x84]
mov dword [esi + 0x88], 0
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 8]
push 0
push 0
push 0x1004
push edx
mov dword [esi + 0x8c], 1
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esi + 0x4c0], eax
lea eax, [esp + 4]
push eax
push 4
push esi
push 0x409e10
push 0
push 0
mov dword [esi + 0x4c4], 0
call fcn.00498d80
add esp, 0x18
mov dword [esi + 0x7c], eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
mov ecx, esi
mov dword [esi + 0x3f8], 0
call fcn.00416520
mov ecx, dword [esi + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ecx
ret

Function at 0x41a6c0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0041a670
mov eax, dword [esi + 0x74]
test eax, eax
jne 0x41a6fd
mov eax, dword [0x4cab88]
test eax, eax
je 0x41a6fd
mov eax, dword [esi + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 4]
push ecx
push 0
push esi
push 0x409c90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x74], eax
pop esi
pop ecx
ret

Function at 0x41a750
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0041a700
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x41a78e
mov eax, dword [esi + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 4]
mov dword [esi + 0x2bc], 0
push ecx
push 0
push esi
push 0x409d30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x78], eax
pop esi
pop ecx
ret
Function at 0x41b790
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x4caa6c]
sub esp, 0xc
cmp eax, 1
push esi
push edi
mov edi, ecx
jne 0x41b7ad
mov dword [edi + 0x2b0], eax
pop edi
pop esi
add esp, 0xc
ret
test eax, eax
jne 0x41b7bd
mov dword [edi + 0x2b0], eax
pop edi
pop esi
add esp, 0xc
ret
movsx eax, byte [edi + 0xa4]
push eax
call fcn.004990a0
mov esi, eax
add esp, 4
sub esi, 0x41
lea edx, [esp + 8]
lea ecx, [esi + 0x41]
push ecx
push str._c:_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp dword [0x4caa6c], 2
jne 0x41b811
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [edi + 0x2b0], ecx
pop edi
pop esi
add esp, 0xc
ret
cmp eax, 5
je 0x41b82c
cmp esi, 1
jle 0x41b82c
mov eax, 1
mov dword [edi + 0x2b0], eax
pop edi
pop esi
add esp, 0xc
ret
xor eax, eax
mov dword [edi + 0x2b0], eax
pop edi
pop esi
add esp, 0xc
ret
Function at 0x41c4b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x304
push ebx
push ebp
push esi
push edi
push 0x2e
push eax
call fcn.004989e0
mov edi, eax
add esp, 8
test edi, edi
jne 0x41c4df
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x304
ret
push str..lnk
push edi
call fcn.004a7820
add esp, 8
test eax, eax
jne 0x41c501
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x304
ret
push 0x4be99c
push edi
call fcn.004a7820
add esp, 8
test eax, eax
jne 0x41c523
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x304
ret
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push edi
lea ecx, [esp + 0x18]
mov ebp, 0x100
push str._sDefaultIcon
push ecx
mov dword [esp + 0x1c], ebp
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x114]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x80000000
call esi
test eax, eax
jne 0x41c588
lea edx, [esp + 0x114]
push 0x25
push edx
call fcn.00498920
add esp, 8
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x304
ret
push edi
lea eax, [esp + 0x18]
push str._s_shellexIconHandler
push eax
mov dword [esp + 0x1c], ebp
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x114]
lea eax, [esp + 0x14]
push ecx
push edx
push eax
push 0x80000000
call esi
test eax, eax
jne 0x41c5c9
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x304
ret
lea ecx, [esp + 0x10]
lea edx, [esp + 0x214]
push ecx
push edx
push edi
push 0x80000000
mov dword [esp + 0x20], ebp
call esi
test eax, eax
jne 0x41c690
lea eax, [esp + 0x214]
lea ecx, [esp + 0x14]
push eax
push str._sDefaultIcon
push ecx
mov dword [esp + 0x1c], ebp
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x114]
lea ecx, [esp + 0x14]
push edx
push eax
push ecx
push 0x80000000
call esi
test eax, eax
jne 0x41c648
lea edx, [esp + 0x114]
push 0x25
push edx
call fcn.00498920
add esp, 8
test eax, eax
je 0x41c648
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x304
ret
lea eax, [esp + 0x214]
lea ecx, [esp + 0x14]
push eax
push str._s_shellexIconHandler
push ecx
mov dword [esp + 0x1c], ebp
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x214]
lea ecx, [esp + 0x14]
push edx
push eax
push ecx
push 0x80000000
call esi
test eax, eax
jne 0x41c690
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x304
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x304
ret
Function at 0x41d170
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x268
push ebx
push esi
push edi
mov edi, ecx
mov dword [edi], 0x4aa758
call fcn.0041d330
mov esi, dword [esp + 0x278]
test esi, esi
je 0x41d2aa
lea eax, [esi + 0x2c]
push eax
call fcn.0043c610
mov dword [edi + 0x5c], eax
mov ecx, dword [esi + 0x20]
add esp, 4
mov dword [edi + 0x1c], ecx
mov edx, dword [esi]
lea eax, [edi + 0x34]
add esi, 0x14
push eax
push esi
mov dword [edi + 0x3c], edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov eax, dword [edi + 0x3c]
shr eax, 4
and eax, 1
cmp eax, 1
mov dword [edi + 4], eax
jne 0x41d20e
mov eax, dword [edi + 0x5c]
mov esi, 0x4be9b8
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41d1fe
test cl, cl
je 0x41d1fa
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41d1fe
add eax, 2
add esi, 2
test cl, cl
jne 0x41d1d6
xor eax, eax
jmp 0x41d203
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41d20e
mov dword [edi + 4], 2
mov eax, dword [edi + 4]
cmp eax, 1
je 0x41d224
cmp eax, 3
je 0x41d224
cmp eax, 2
je 0x41d224
xor eax, eax
jmp 0x41d229
mov eax, 1
mov dword [edi + 8], eax
mov eax, dword [edi + 0x5c]
push 0x2e
push eax
call fcn.004989e0
add esp, 8
test eax, eax
je 0x41d2aa
push str..lnk
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x41d2aa
mov edx, dword [edi + 0x5c]
push 1
lea ecx, [esp + 0x10]
push 0x3e80005
push ecx
push edx
push eax
call fcn.00431420
add esp, 0x14
test eax, eax
jl 0x41d2aa
push 0x800
lea eax, [esp + 0x118]
push 0x160
push eax
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [edi + 0xc], 1
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x41d2aa
test dword [esp + 0x11c], 0x20000000
je 0x41d2aa
mov eax, dword [edi + 8]
or al, 1
mov dword [edi + 8], eax
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x268
ret 4
Function at 0x41d7a0
Capabilities:
Get file system object information
Query or enumerate registry value

Disassembly:
sub esp, 0x464
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x14]
push eax
call fcn.00498600
mov edx, dword [edi + 0x5c]
add esp, 4
lea ecx, [esp + 0x310]
push 0x400
push 0x160
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x41d7e6
lea eax, [esp + 0x420]
push eax
jmp 0x41d8a1
cmp dword [edi + 4], 1
jne 0x41d7f6
push str.File_Folder
jmp 0x41d8a1
mov ecx, dword [edi + 0x5c]
push 0x2e
push ecx
call fcn.004989e0
mov esi, eax
add esp, 8
test esi, esi
je 0x41d89f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea edx, [esp + 0xc]
lea eax, [esp + 0x210]
push edx
push eax
push esi
push 0x80000000
mov dword [esp + 0x1c], 0x100
call ebx
test eax, eax
jne 0x41d85d
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x214]
push edx
push eax
push 0x80000000
mov dword [esp + 0x1c], 0x100
call ebx
lea edx, [esp + 0x10]
push edx
jmp 0x41d8a1
inc esi
lea ecx, [esp + 0x110]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x110]
push edx
call fcn.004a7db0
add esp, 4
lea eax, [esp + 0x110]
lea ecx, [esp + 0x10]
push eax
push str._s_File
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
jmp 0x41d8a1
push 0
call fcn.0043c610
add esp, 4
mov dword [edi + 0x14], eax
pop edi
pop esi
pop ebx
add esp, 0x464
ret
Function at 0x41db20
Capabilities:
Get disk information
Get file system object information

Disassembly:
sub esp, 0x36c
push esi
mov esi, ecx
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x41dc97
mov al, byte [0x4caf4c]
push edi
mov byte [esp + 0x14], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x15]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x41db6a
mov ecx, dword [esi + 0x5c]
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x41dc86
cmp eax, 3
jne 0x41dc73
mov eax, dword [esi + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x41dc23
mov cl, byte [0x4caf4c]
xor eax, eax
mov byte [esp + 0x114], cl
mov ecx, 0x3f
lea edi, [esp + 0x115]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x14]
push 0
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esi + 0x5c]
push ecx
lea edx, [esp + 0x128]
push 0x100
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov al, byte [esp + 0x114]
test al, al
je 0x41dc15
lea ecx, [esp + 0x214]
lea edx, [esp + 0x114]
push ecx
push edx
call dword [sym.imp.USER32.dll_OemToCharA]
mov eax, dword [esi + 0x5c]
lea edx, [esp + 0x214]
movsx ecx, byte [eax]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._s___c:_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x41dc86
mov ecx, dword [esi + 0x5c]
movsx edx, byte [ecx]
push edx
push str.__c:_
jmp 0x41dc63
mov edx, dword [esi + 0x5c]
push 0x200
lea ecx, [esp + 0x218]
push 0x160
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x41dc5a
lea eax, [esp + 0x220]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x41dc86
mov edx, dword [esi + 0x5c]
push edx
push str.__s_
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x41dc86
mov edx, dword [esi + 0x5c]
lea ecx, [esp + 0x14]
push 0x100
push ecx
push edx
call sub.comdlg32.dll_GetFileTitleA
lea eax, [esp + 0x14]
push eax
call fcn.0043c610
add esp, 4
mov dword [esi + 0x60], eax
pop edi
mov eax, dword [esi + 0x60]
pop esi
add esp, 0x36c
ret
Function at 0x41e150
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x268
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x27c]
mov esi, ecx
test edi, edi
je 0x41e2fb
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x41e2fb
push 0x2e
push eax
call fcn.004989e0
add esp, 8
xor ebp, ebp
test eax, eax
je 0x41e1fc
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x41e1fc
inc eax
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
push ecx
call fcn.004a7db0
add esp, 4
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.0041deb0
mov ecx, dword [esi]
mov ebp, dword [ecx + eax*4]
test ebp, ebp
je 0x41e1fe
mov eax, dword [ebp]
lea esi, [esp + 0x10]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41e1ec
test cl, cl
je 0x41e1e8
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41e1ec
add eax, 2
add esi, 2
test cl, cl
jne 0x41e1c4
xor eax, eax
jmp 0x41e1f1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41e1fc
mov ebp, dword [ebp + 0x10]
test ebp, ebp
jne 0x41e1bd
test ebp, ebp
mov ebx, dword [esp + 0x280]
je 0x41e23e
test ebx, ebx
jne 0x41e216
mov eax, dword [ebp + 8]
test eax, eax
jl 0x41e23e
test ebx, ebx
je 0x41e22e
mov eax, dword [ebp + 0xc]
test eax, eax
jl 0x41e23e
test ebx, ebx
je 0x41e22e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x268
ret 8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x268
ret 8
xor eax, eax
lea edx, [esp + 0x118]
test ebx, ebx
sete al
mov esi, eax
mov eax, dword [edi + 0x5c]
mov ecx, esi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
or ch, 0x40
push ecx
push 0x160
push edx
push 0
push eax
call edi
test eax, eax
jne 0x41e292
mov edx, dword [esp + 0x27c]
or esi, 0x4010
push esi
lea ecx, [esp + 0x11c]
mov eax, dword [edx + 0x5c]
push 0x160
push ecx
push 0x80
push eax
call edi
test ebp, ebp
mov esi, 0xfffffffe
je 0x41e2c4
cmp dword [ebp + 8], esi
je 0x41e2c2
cmp dword [ebp + 0xc], esi
je 0x41e2c2
mov ecx, dword [esp + 0x27c]
mov edx, dword [ecx + 0x5c]
push edx
call fcn.0041c4b0
add esp, 4
test eax, eax
je 0x41e2c2
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], esi
test ebp, ebp
mov eax, dword [esp + 0x11c]
je 0x41e2fe
cmp dword [ebp + 8], esi
je 0x41e2fe
cmp dword [ebp + 0xc], esi
je 0x41e2fe
test ebx, ebx
je 0x41e2eb
mov dword [ebp + 0xc], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x268
ret 8
mov dword [ebp + 8], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x268
ret 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x268
ret 8