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.00450393
mov esi, eax
add esp, 4
test esi, esi
je 0x403afe
push 0x94
push 0
push esi
call fcn.00450460
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.004502b6
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.004502b6
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.004502b6
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.004502b6
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.004502b6
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.00450393
mov esi, eax
add esp, 4
test esi, esi
je 0x403afe
push 0x94
push 0
push esi
call fcn.00450460
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.004502b6
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.004502b6
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.00450393
mov esi, eax
add esp, 4
test esi, esi
je 0x403b68
push 0x94
push 0
push esi
call fcn.00450460
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.004502b6
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.0044fad8
add esp, 4
cmp eax, 0x41
je 0x403c3e
movsx eax, byte [esi]
push eax
call fcn.0044fad8
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.0044f4be
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.00450393
mov esi, eax
add esp, 4
test esi, esi
je 0x404359
push 0x94
push 0
push esi
call fcn.00450460
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.004502b6
add esp, 4
mov al, 1
pop esi
ret
call fcn.004502b6
add esp, 4
xor al, al
pop esi
ret

Function at 0x4046c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4691f8
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 0x40470c
mov cl, 0x20
cmp byte [eax + 0x490143], cl
je 0x404705
inc eax
cmp byte [eax + 0x490143], 0
jne 0x4046f1
jmp 0x40470c
mov byte [eax + 0x490143], 0
push 0x490143
lea ecx, [esp + 0x1c]
call fcn.00428fb0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call fcn.00428f30
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0044f4ee
add esp, 4
lea ecx, [esp + 0xc]
mov esi, eax
mov edi, edx
call fcn.00429090
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00429090
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 0x404cf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x469338
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.00438e8f
push edi
mov ecx, esi
call fcn.00438e3c
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.0043258f
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.00429090
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x469368
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.00428f30
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.00429090
mov ecx, dword [esp + 0x3a4]
push ecx
lea edx, [esp + 0x70]
push 0x320
push edx
call fcn.0044fb04
push 0x44
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00450460
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 0x404ee3
lea ecx, [esp + 0x3a0]
mov dword [esp + 0x398], 0xffffffff
call fcn.00429090
mov eax, 0xbeb95
jmp 0x404f1d
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.00429090
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.0044f4be
add esp, 0x394
ret
Function at 0x404f50
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4693a8
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.0044fb04
lea edx, [esp + 0x534]
push edx
lea eax, [esp + 0x344]
push 0x1f4
push eax
call fcn.0044fb04
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 0x404fd0
sub eax, edx
cmp eax, 4
jl 0x4050ba
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.0044fb04
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
cmp byte [esp + 0x337], bl
je 0x405091
lea edi, [esp + 0x337]
mov al, byte [edi]
cmp al, 0x5c
jne 0x405087
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x144]
push 0x1f4
push edx
mov byte [esp + esi + 0x20], bl
call fcn.0044fdcd
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.0044fdcd
add esp, 0xc
xor esi, esi
mov byte [esp + 0x14], bl
jmp 0x40508c
mov byte [esp + esi + 0x14], al
inc esi
inc edi
cmp byte [edi], bl
jne 0x405036
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x144]
push 0x1f4
push eax
mov byte [esp + esi + 0x20], bl
call fcn.0044fdcd
add esp, 0xc
push ebx
lea ecx, [esp + 0x144]
push ecx
call ebp
lea ecx, [esp + 0x730]
mov dword [esp + 0x728], 0xffffffff
call fcn.00429090
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.0044f4be
add esp, 0x718
ret
Function at 0x405130
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4693e8
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.0044fb04
push 0x473264
lea edx, [esp + 0x730]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00450bb7
add esp, 0x18
test eax, eax
jne 0x40534a
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push 0x1e0
push edx
call fcn.004509ab
mov eax, dword [esp + 0x20]
push eax
call fcn.00450977
add esp, 0x10
test eax, eax
jne 0x40533d
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 0x4051e4
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 0x405220
cmp dl, bl
je 0x40521c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405220
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x405200
xor eax, eax
jmp 0x405225
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x405314
cmp byte [esp + 0x18], 0x5b
jne 0x405248
lea ecx, [esp + 0x18]
push ecx
call fcn.00403ee0
add esp, 4
mov edi, eax
jmp 0x405314
cmp byte [esp + 0x19], 0x22
mov esi, 1
je 0x40525c
inc esi
cmp byte [esp + esi + 0x18], 0x22
jne 0x405254
lea edx, [esi - 1]
push edx
lea eax, [esp + 0x1d]
push eax
lea ecx, [esp + 0x408]
push ecx
call fcn.004504e0
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 0x405283
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.004504e0
lea eax, [esp + 0x24]
add esp, 0xc
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4052b0
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.00450938
lea eax, [esp + 0x21c]
add esp, 0x10
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4052f0
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.004509ab
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00450977
add esp, 0x10
test eax, eax
je 0x4051dd
mov edx, dword [esp + 0x14]
push edx
call fcn.004508bc
add esp, 4
lea ecx, [esp + 0x928]
mov dword [esp + 0x920], 0xffffffff
call fcn.00429090
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.0044f4be
add esp, 0x910
ret
Function at 0x40dff0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46aa0b
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.0043155a
add esp, 4
mov dword [esp + 0x14], eax
xor ebp, ebp
mov dword [esp + 0x54], ebp
cmp eax, ebp
je 0x40e03a
mov ecx, eax
call fcn.004294b0
mov esi, eax
jmp 0x40e03c
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.0040fd00
add esp, 8
mov ecx, 0x4947c0
call fcn.0041d3d0
push 0x473030
lea ecx, [esp + 0x20]
call fcn.00428ec0
cmp dword [esi + 0x1c], ebp
mov dword [esp + 0x54], 1
mov dword [esp + 0x14], ebp
jle 0x40e183
test ebp, ebp
jl 0x40e1b2
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esi + 0x10]
jge 0x40e1b2
mov eax, dword [esi + 0xc]
add eax, ebp
push eax
lea ecx, [esp + 0x20]
call fcn.004290a0
sub esp, 0xc
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00428f30
lea eax, [esp + 0x34]
push eax
call fcn.004057d0
add esp, 0x10
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 2
call fcn.004290a0
lea ecx, [esp + 0x28]
mov byte [esp + 0x54], 1
call fcn.00429090
push 0x473444
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.00428f30
lea edi, [esp + 0x54]
call fcn.0041ac10
add esp, 0xc
mov ecx, eax
mov byte [esp + 0x5c], 3
call fcn.00429200
mov ecx, eax
mov byte [esp + 0x58], 4
call fcn.00429120
lea ecx, [esp + 0x34]
mov bl, al
mov byte [esp + 0x54], 3
call fcn.00429090
mov ecx, edi
mov byte [esp + 0x54], 1
call fcn.00429090
push 5
test bl, bl
je 0x40e15b
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x40e16e
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 0x40e08a
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.00429090
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.0043a19b
int3
Function at 0x415470
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push esi
push eax
call fcn.00415380
mov esi, eax
test esi, esi
je 0x415560
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
call edi
push eax
call fcn.00414f60
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 0x4154b4
mov dword [esp + 0x10], eax
jmp 0x4154c9
cmp dword [eax], 0x28
jne 0x4154be
mov ebx, dword [eax + 4]
jmp 0x4154c2
movzx ebx, word [eax + 4]
push esi
call ebp
mov dword [esp + 0x10], ebx
push esi
call edi
test eax, eax
jne 0x4154d4
xor ebx, ebx
jmp 0x4154e5
cmp dword [eax], 0x28
jne 0x4154de
mov ebx, dword [eax + 8]
jmp 0x4154e2
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.004152e0
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 0x415560
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop esi
add esp, 0xc
ret

Function at 0x415770
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.00416e20
test eax, eax
je 0x41579a
lea ecx, [esi + 0x5c]
call fcn.0043e61a
push 0x4001
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x474444
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
jne 0x4157df
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.0044f4be
add esp, 0x164
ret
push edi
lea edi, [esi + 0x5c]
push eax
mov ecx, edi
call fcn.0043e690
test eax, eax
jne 0x415815
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.0044f4be
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.00416e40
mov ecx, dword [esp + 0x168]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0044f4be
add esp, 0x164
ret
Function at 0x415850
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.00416de0
lea eax, [esp + 4]
push eax
push 0x80
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
jne 0x4158a5
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.0044f4be
add esp, 0x84
ret
cmp byte [esp + 4], 0
push esi
lea esi, [esp + 8]
je 0x4158fc
push edi
push esi
push 0xffff0000
mov ecx, ebx
call fcn.00415bd0
push esi
mov ecx, ebx
mov edi, eax
call fcn.00415eb0
test eax, eax
je 0x4158e3
push 0xffff0002
push edi
push 0
push 0
push 0x47443e
mov ecx, ebx
call fcn.00416d60
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4158e8
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x4158b2
pop edi
mov ecx, dword [esp + 0x88]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044f4be
add esp, 0x84
ret
Function at 0x415bd0
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x46b986
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.004166f0
push 0x5c
push eax
call fcn.00416860
add esp, 8
lea ecx, [esp + 0x18]
mov bl, al
call fcn.00402b70
test bl, bl
je 0x415c6c
push 0x4744d0
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 0x415cb0
push 0x4744d4
lea ecx, [esi + 0x58]
call fcn.00402ba0
lea ecx, [esp + 0x14]
call fcn.00402b70
xor eax, eax
jmp 0x415d7a
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 0x415ce9
push str.Error_Gettting_SystemFileInfo_
jmp 0x415c98
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.004166f0
push 0x474514
push eax
call fcn.004167f0
add esp, 8
lea ecx, [esp + 0x18]
mov bl, al
call fcn.00402b70
test bl, bl
je 0x415d37
push 0
lea ecx, [esp + 0x18]
call fcn.00402bd0
dec eax
push eax
lea ecx, [esp + 0x1c]
call fcn.00416890
mov eax, dword [esp + 0x1c]
push 0xffff0002
lea ecx, [esp + 0x18]
cmp eax, 0xffff0000
jne 0x415d55
push eax
push edi
push ebp
call fcn.00402be0
jmp 0x415d65
push eax
push edi
push ebp
call fcn.00402be0
push eax
mov ecx, esi
call fcn.00415db0
push eax
mov ecx, esi
call fcn.00416d60
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.0044f4be
add esp, 0x17c
ret 8