joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4039b0
Capabilities:
Check os version

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x403a8b
push 0x94
mov edi, 1
call fcn.00450531
mov esi, eax
add esp, 4
test esi, esi
je 0x403afe
push 0x94
push 0
push esi
call fcn.00450600
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x403a15
push esi
lea edi, [eax + 1]
call fcn.00450454
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x403a4c
cmp dword [esi + 8], 0
jne 0x403a31
push esi
lea edi, [eax + 1]
call fcn.00450454
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x403a4c
cmp dword [esi + 8], edi
jne 0x403a4c
push esi
lea edi, [eax + 2]
call fcn.00450454
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 6
jne 0x403af5
cmp dword [esi + 8], 0
jne 0x403a6c
push esi
lea edi, [eax + 2]
call fcn.00450454
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 6
jne 0x403af5
cmp dword [esi + 8], edi
jne 0x403af5
push esi
lea edi, [eax + 3]
call fcn.00450454
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp al, 4
jae 0x403a94
pop edi
xor eax, eax
pop esi
ret
push 0x94
mov edi, 2
call fcn.00450531
mov esi, eax
add esp, 4
test esi, esi
je 0x403afe
push 0x94
push 0
push esi
call fcn.00450600
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x403af5
cmp dword [esi + 8], 0xa
jne 0x403ae8
push esi
lea edi, [eax - 1]
call fcn.00450454
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 4
jne 0x403af5
cmp dword [esi + 8], 0x5a
jne 0x403af5
mov edi, eax
push esi
call fcn.00450454
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x403b10
Capabilities:
Check os version

Disassembly:
push ebx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x403b6d
push esi
push 0x94
call fcn.00450531
mov esi, eax
add esp, 4
test esi, esi
je 0x403b68
push 0x94
push 0
push esi
call fcn.00450600
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esi + 4], 6
jb 0x403b5f
cmp dword [esi + 8], 1
jb 0x403b5f
mov bl, 1
push esi
call fcn.00450454
add esp, 4
pop esi
mov al, bl
pop ebx
ret
mov al, bl
pop ebx
ret
Function at 0x403b80
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x491c04]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea ecx, [esp + 0x28]
push ecx
push 0x64
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [esp + 0x28], 0
mov dword [edi], 0
lea esi, [esp + 0x28]
je 0x403c5a
lea esp, [esp]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x403be8
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x403c3e
movsx edx, byte [esi]
push edx
call fcn.0044fb38
add esp, 4
cmp eax, 0x41
je 0x403c3e
movsx eax, byte [esi]
push eax
call fcn.0044fb38
mov ecx, dword [edi]
mov edx, dword [esp + 0x10]
add esp, 4
mov byte [edx + ecx], al
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
shrd ecx, edx, 0x14
shr edx, 0x14
mov dword [ebx + eax*8], ecx
mov dword [ebx + eax*8 + 4], edx
inc dword [edi]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403c43
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x403bd0
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044f51e
mov esp, ebp
pop ebp
ret

Function at 0x404300
Capabilities:
Check os version

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x404359
push 0x94
call fcn.00450531
mov esi, eax
add esp, 4
test esi, esi
je 0x404359
push 0x94
push 0
push esi
call fcn.00450600
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esi + 4], 6
push esi
jb 0x404351
call fcn.00450454
add esp, 4
mov al, 1
pop esi
ret
call fcn.00450454
add esp, 4
xor al, al
pop esi
ret

Function at 0x4047d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x469298
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x491c04]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor eax, eax
cmp byte [0x490143], al
je 0x40481c
mov cl, 0x20
cmp byte [eax + 0x490143], cl
je 0x404815
inc eax
cmp byte [eax + 0x490143], 0
jne 0x404801
jmp 0x40481c
mov byte [eax + 0x490143], 0
push 0x490143
lea ecx, [esp + 0x1c]
call fcn.00429010
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call fcn.00428f90
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0044f54e
add esp, 4
lea ecx, [esp + 0xc]
mov esi, eax
mov edi, edx
call fcn.004290f0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004290f0
mov eax, esi
mov edx, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret
Function at 0x404e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4693d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x491c04]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
push eax
push edi
mov ecx, esi
mov dword [esp + 0x2c], 0
call fcn.00438f08
push edi
mov ecx, esi
call fcn.00438eb5
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004325dd
mov edx, dword [esi + 0x20]
push 1
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
call fcn.004290f0
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x404ef0
Capabilities:
Create process on windows
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x469408
mov eax, dword fs:[0]
push eax
sub esp, 0x388
mov eax, dword [0x491c04]
xor eax, esp
mov dword [esp + 0x384], eax
push esi
mov eax, dword [0x491c04]
xor eax, esp
push eax
lea eax, [esp + 0x390]
mov dword fs:[0], eax
sub esp, 0xc
lea eax, [esp + 0x3ac]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x3a8], 0
call fcn.00428f90
lea esi, [esp + 0x28]
call fcn.004043e0
mov eax, dword [eax + 4]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, esi
call fcn.004290f0
mov ecx, dword [esp + 0x3a4]
push ecx
lea edx, [esp + 0x70]
push 0x320
push edx
call fcn.0044fb64
push 0x44
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00450600
mov cx, word [esp + 0x3c4]
add esp, 0x18
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0x20
push 1
push 0
mov word [esp + 0x74], cx
push 0
lea ecx, [esp + 0x8c]
push ecx
push 0
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x7c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x404ff3
lea ecx, [esp + 0x3a0]
mov dword [esp + 0x398], 0xffffffff
call fcn.004290f0
mov eax, 0xbeb95
jmp 0x40502d
mov edx, dword [esp + 0xc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [esp + 8]
lea ecx, [esp + 0x3a0]
mov dword [esp + 0x398], 0xffffffff
call fcn.004290f0
mov eax, esi
mov ecx, dword [esp + 0x390]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x384]
xor ecx, esp
call fcn.0044f51e
add esp, 0x394
ret
Function at 0x405060
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x469448
mov eax, dword fs:[0]
push eax
sub esp, 0x70c
mov eax, dword [0x491c04]
xor eax, esp
mov dword [esp + 0x708], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491c04]
xor eax, esp
push eax
lea eax, [esp + 0x720]
mov dword fs:[0], eax
mov eax, dword [esp + 0x734]
push eax
lea ecx, [esp + 0x52c]
push 0x1f4
push ecx
call fcn.0044fb64
lea edx, [esp + 0x534]
push edx
lea eax, [esp + 0x344]
push 0x1f4
push eax
call fcn.0044fb64
lea eax, [esp + 0x34c]
add esp, 0x18
lea edx, [eax + 1]
xor ebx, ebx
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4050e0
sub eax, edx
cmp eax, 4
jl 0x4051ca
mov cx, word [esp + 0x334]
mov dl, byte [esp + 0x336]
push 0x473030
lea eax, [esp + 0x18]
push 0x12c
push eax
mov word [esp + 0x14c], cx
mov byte [esp + 0x14e], dl
mov byte [esp + 0x14f], bl
xor esi, esi
call fcn.0044fb64
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
cmp byte [esp + 0x337], bl
je 0x4051a1
lea edi, [esp + 0x337]
mov al, byte [edi]
cmp al, 0x5c
jne 0x405197
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x144]
push 0x1f4
push edx
mov byte [esp + esi + 0x20], bl
call fcn.0044fe2d
add esp, 0xc
push ebx
lea eax, [esp + 0x144]
push eax
call ebp
push 0x47317c
lea ecx, [esp + 0x144]
push 0x1f4
push ecx
call fcn.0044fe2d
add esp, 0xc
xor esi, esi
mov byte [esp + 0x14], bl
jmp 0x40519c
mov byte [esp + esi + 0x14], al
inc esi
inc edi
cmp byte [edi], bl
jne 0x405146
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x144]
push 0x1f4
push eax
mov byte [esp + esi + 0x20], bl
call fcn.0044fe2d
add esp, 0xc
push ebx
lea ecx, [esp + 0x144]
push ecx
call ebp
lea ecx, [esp + 0x730]
mov dword [esp + 0x728], 0xffffffff
call fcn.004290f0
mov ecx, dword [esp + 0x720]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x708]
xor ecx, esp
call fcn.0044f51e
add esp, 0x718
ret
Function at 0x405240
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x469488
mov eax, dword fs:[0]
push eax
sub esp, 0x904
mov eax, dword [0x491c04]
xor eax, esp
mov dword [esp + 0x900], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491c04]
xor eax, esp
push eax
lea eax, [esp + 0x918]
mov dword fs:[0], eax
mov eax, dword [esp + 0x92c]
push eax
lea ecx, [esp + 0x724]
push 0x1f4
push ecx
call fcn.0044fb64
push 0x473264
lea edx, [esp + 0x730]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00450d57
add esp, 0x18
test eax, eax
jne 0x40545a
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push 0x1e0
push edx
call fcn.00450b4b
mov eax, dword [esp + 0x20]
push eax
call fcn.00450b17
add esp, 0x10
test eax, eax
jne 0x40544d
mov edi, dword [esp + 0x14]
lea ebp, [esp + 0x18]
sub ebp, 2
xor ebx, ebx
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4052f4
sub eax, edx
mov byte [eax + ebp], bl
mov ecx, 0x473030
lea eax, [esp + 0x18]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405330
cmp dl, bl
je 0x40532c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405330
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x405310
xor eax, eax
jmp 0x405335
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x405424
cmp byte [esp + 0x18], 0x5b
jne 0x405358
lea ecx, [esp + 0x18]
push ecx
call fcn.00403ee0
add esp, 4
mov edi, eax
jmp 0x405424
cmp byte [esp + 0x19], 0x22
mov esi, 1
je 0x40536c
inc esi
cmp byte [esp + esi + 0x18], 0x22
jne 0x405364
lea edx, [esi - 1]
push edx
lea eax, [esp + 0x1d]
push eax
lea ecx, [esp + 0x408]
push ecx
call fcn.00450680
lea eax, [esp + 0x24]
add esp, 0xc
mov byte [esp + esi + 0x3ff], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405393
sub eax, edx
sub eax, esi
sub eax, 4
push eax
lea edx, [esp + esi + 0x1f]
push edx
lea eax, [esp + 0x214]
push eax
call fcn.00450680
lea eax, [esp + 0x24]
add esp, 0xc
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4053c0
sub eax, ecx
lea ecx, [esp + 0x20c]
push ecx
push 0x473260
lea edx, [esp + 0x5fc]
sub eax, esi
push 0x12c
push edx
mov byte [esp + eax + 0x218], bl
call fcn.00450ad8
lea eax, [esp + 0x21c]
add esp, 0x10
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x405400
sub eax, ecx
push eax
lea eax, [esp + 0x5f8]
push eax
push 1
push ebx
lea ecx, [esp + 0x410]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push 0x1e0
push eax
call fcn.00450b4b
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00450b17
add esp, 0x10
test eax, eax
je 0x4052ed
mov edx, dword [esp + 0x14]
push edx
call fcn.00450a5c
add esp, 4
lea ecx, [esp + 0x928]
mov dword [esp + 0x920], 0xffffffff
call fcn.004290f0
mov ecx, dword [esp + 0x918]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x900]
xor ecx, esp
call fcn.0044f51e
add esp, 0x910
ret
Function at 0x40e0b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46aadb
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491c04]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
push 0x20
call fcn.004315ba
add esp, 4
mov dword [esp + 0x14], eax
xor ebp, ebp
mov dword [esp + 0x54], ebp
cmp eax, ebp
je 0x40e0fa
mov ecx, eax
call fcn.00429510
mov esi, eax
jmp 0x40e0fc
xor esi, esi
push esi
push 9
push 1
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x2c], esp
push 0x16
push eax
mov dword [esp + 0x74], 0xffffffff
call fcn.0040fe70
add esp, 8
mov ecx, 0x4947c0
call fcn.0041d430
push 0x473030
lea ecx, [esp + 0x20]
call fcn.00428f20
cmp dword [esi + 0x1c], ebp
mov dword [esp + 0x54], 1
mov dword [esp + 0x14], ebp
jle 0x40e243
test ebp, ebp
jl 0x40e272
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esi + 0x10]
jge 0x40e272
mov eax, dword [esi + 0xc]
add eax, ebp
push eax
lea ecx, [esp + 0x20]
call fcn.00429100
sub esp, 0xc
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00428f90
lea eax, [esp + 0x34]
push eax
call fcn.004058e0
add esp, 0x10
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 2
call fcn.00429100
lea ecx, [esp + 0x28]
mov byte [esp + 0x54], 1
call fcn.004290f0
push 0x473430
lea ecx, [esp + 0x38]
push ecx
sub esp, 0xc
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00428f90
lea edi, [esp + 0x54]
call fcn.0041ac70
add esp, 0xc
mov ecx, eax
mov byte [esp + 0x5c], 3
call fcn.00429260
mov ecx, eax
mov byte [esp + 0x58], 4
call fcn.00429180
lea ecx, [esp + 0x34]
mov bl, al
mov byte [esp + 0x54], 3
call fcn.004290f0
mov ecx, edi
mov byte [esp + 0x54], 1
call fcn.004290f0
push 5
test bl, bl
je 0x40e21b
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x40e22e
mov ecx, dword [esp + 0x24]
push 0
push 0
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esp + 0x14]
inc eax
add ebp, 0xc
cmp eax, dword [esi + 0x1c]
mov dword [esp + 0x14], eax
jl 0x40e14a
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], 0xffffffff
call fcn.004290f0
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
call fcn.0043a214
int3
Function at 0x4155e0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push esi
push eax
call fcn.004154f0
mov esi, eax
test esi, esi
je 0x4156d0
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
call edi
push eax
call fcn.004150d0
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
mov dword [esp + 0x18], eax
call ebp
push esi
call edi
test eax, eax
jne 0x415624
mov dword [esp + 0x10], eax
jmp 0x415639
cmp dword [eax], 0x28
jne 0x41562e
mov ebx, dword [eax + 4]
jmp 0x415632
movzx ebx, word [eax + 4]
push esi
call ebp
mov dword [esp + 0x10], ebx
push esi
call edi
test eax, eax
jne 0x415644
xor ebx, ebx
jmp 0x415655
cmp dword [eax], 0x28
jne 0x41564e
mov ebx, dword [eax + 8]
jmp 0x415652
movzx ebx, word [eax + 6]
push esi
call ebp
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
mov ebp, dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [ecx], edx
mov ecx, dword [esp + 0x14]
push 0
mov dword [eax], ebx
mov edx, dword [edi + 4]
push ecx
push edx
call ebp
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push esi
push ebx
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call fcn.00415450
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 4]
push 1
push edx
push eax
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
test eax, eax
je 0x4156d0
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop esi
add esp, 0xc
ret

Function at 0x4158e0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x164
mov eax, dword [0x491c04]
xor eax, esp
mov dword [esp + 0x160], eax
push esi
push 0
mov esi, ecx
call fcn.00416f90
test eax, eax
je 0x41590a
lea ecx, [esi + 0x5c]
call fcn.0043e663
push 0x4001
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x474434
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
jne 0x41594f
push str.Cannot_retrieve_the_Handle_of_SystemImageList_
lea ecx, [esi + 0x58]
call fcn.00402ba0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.0044f51e
add esp, 0x164
ret
push edi
lea edi, [esi + 0x5c]
push eax
mov ecx, edi
call fcn.0043e6d9
test eax, eax
jne 0x415985
push str.Cannot_Attach_SystemImageList_Handle
lea ecx, [esi + 0x58]
call fcn.00402ba0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.0044f51e
add esp, 0x164
ret
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_DestroyIcon]
push 0
push edi
mov ecx, esi
call fcn.00416fb0
mov ecx, dword [esp + 0x168]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0044f51e
add esp, 0x164
ret
Function at 0x4159c0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x84
mov eax, dword [0x491c04]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
mov ebx, ecx
call fcn.00416f50
lea eax, [esp + 4]
push eax
push 0x80
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
jne 0x415a15
push str.Error_Getting_Logical_DriveStrings_
lea ecx, [ebx + 0x58]
call fcn.00402ba0
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0044f51e
add esp, 0x84
ret
cmp byte [esp + 4], 0
push esi
lea esi, [esp + 8]
je 0x415a6c
push edi
push esi
push 0xffff0000
mov ecx, ebx
call fcn.00415d40
push esi
mov ecx, ebx
mov edi, eax
call fcn.00416020
test eax, eax
je 0x415a53
push 0xffff0002
push edi
push 0
push 0
push 0x47442e
mov ecx, ebx
call fcn.00416ed0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415a58
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x415a22
pop edi
mov ecx, dword [esp + 0x88]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044f51e
add esp, 0x84
ret
Function at 0x415d40
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x46ba66
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x491c04]
xor eax, esp
mov dword [esp + 0x16c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491c04]
xor eax, esp
push eax
lea eax, [esp + 0x184]
mov dword fs:[0], eax
mov eax, dword [esp + 0x194]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x198]
mov esi, ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00402b00
push 1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x194], 0
call fcn.00416860
push 0x5c
push eax
call fcn.004169d0
add esp, 8
lea ecx, [esp + 0x18]
mov bl, al
call fcn.00402b70
test bl, bl
je 0x415ddc
push 0x4744c0
lea ecx, [esp + 0x18]
call fcn.00402310
push 0x101
push 0x160
lea edx, [esp + 0x28]
push edx
push 0
lea ecx, [esp + 0x24]
call fcn.00402be0
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push eax
call ebx
test eax, eax
jne 0x415e20
push 0x4744c4
lea ecx, [esi + 0x58]
call fcn.00402ba0
lea ecx, [esp + 0x14]
call fcn.00402b70
xor eax, eax
jmp 0x415eea
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.USER32.dll_DestroyIcon]
push eax
call edi
mov ebp, dword [esp + 0x24]
push 0x103
push 0x160
lea ecx, [esp + 0x28]
push ecx
push 0
lea ecx, [esp + 0x24]
call fcn.00402be0
push eax
call ebx
test eax, eax
jne 0x415e59
push str.Error_Gettting_SystemFileInfo_
jmp 0x415e08
mov edx, dword [esp + 0x20]
push edx
call edi
mov edi, dword [esp + 0x24]
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00416860
push 0x474504
push eax
call fcn.00416960
add esp, 8
lea ecx, [esp + 0x18]
mov bl, al
call fcn.00402b70
test bl, bl
je 0x415ea7
push 0
lea ecx, [esp + 0x18]
call fcn.00402bd0
dec eax
push eax
lea ecx, [esp + 0x1c]
call fcn.00416a00
mov eax, dword [esp + 0x1c]
push 0xffff0002
lea ecx, [esp + 0x18]
cmp eax, 0xffff0000
jne 0x415ec5
push eax
push edi
push ebp
call fcn.00402be0
jmp 0x415ed5
push eax
push edi
push ebp
call fcn.00402be0
push eax
mov ecx, esi
call fcn.00415f20
push eax
mov ecx, esi
call fcn.00416ed0
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00402b70
mov eax, esi
mov ecx, dword [esp + 0x184]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x16c]
xor ecx, esp
call fcn.0044f51e
add esp, 0x17c
ret 8