joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e6b9
Capabilities:
Delete directory

Disassembly:
mov eax, 0x4e1cab
call fcn.004aef44
sub esp, 0x518
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x3ec]
call fcn.00416bd2
and dword [ebp - 4], 0
push 0xa
lea ecx, [ebp - 0x38]
call fcn.004c4251
push 0x523a30
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004c5f18
lea edi, [esi + 0x10]
lea ecx, [ebp - 0x18]
push edi
mov byte [ebp - 4], 2
call fcn.004c5c1f
push 0x5c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004c2ca0
lea ecx, [ebp - 0x7c]
call fcn.0040ce17
push ecx
add esi, 0x254
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
mov byte [ebp - 4], 4
call fcn.004c5c1f
lea ecx, [ebp - 0x3ec]
call fcn.00416c9c
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push edi
call fcn.004c5c1f
lea ecx, [ebp - 0x3ec]
call fcn.00416cef
lea eax, [ebp - 0x3c8]
mov dword [ebp - 0x3c4], 1
push eax
call fcn.0049d7a0
mov esi, eax
test esi, esi
jne 0x46e7dd
mov ebx, dword [ebp - 0x37c]
lea eax, [ebp - 0x524]
xor edi, edi
mov dword [ebp - 0x3bc], eax
test ebx, ebx
jle 0x46e7dd
test esi, esi
jne 0x46e7dd
lea eax, [ebp - 0x3c8]
mov dword [ebp - 0x3c4], 2
push eax
call fcn.0049d7a0
mov esi, eax
test esi, esi
jne 0x46e7d8
lea eax, [ebp - 0x4fe]
lea ecx, [ebp - 0x10]
push eax
call fcn.004c6033
push str._TUProj.dat
push dword [ebp - 0x10]
call fcn.004afa15
pop ecx
test eax, eax
pop ecx
je 0x46e7d8
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x38]
push eax
call fcn.004c43fa
inc edi
cmp edi, ebx
jl 0x46e78a
mov eax, dword [0x523ba4]
lea ecx, [eax + 0x38]
call fcn.00443c36
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x46e854
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [ebp - 0x10]
push eax
call fcn.004c5fe3
lea eax, [ebp - 0x18]
push 0x510870
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004c613f
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004c60d9
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.004c5fe3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.004c5eaa
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004c5eaa
lea ecx, [ebp - 0x7c]
call fcn.0040cf25
jmp 0x46e7ed
mov eax, dword [0x523ba4]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call fcn.0040ceb6
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004c5eaa
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004c5eaa
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004c42c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3ec]
call fcn.00416c4b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x46e6ca
Capabilities:
Delete directory

Disassembly:
mov eax, 0x4e1cab
call fcn.004aef44
sub esp, 0x518
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x3ec]
call fcn.00416bd2
and dword [ebp - 4], 0
push 0xa
lea ecx, [ebp - 0x38]
call fcn.004c4251
push 0x523a30
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004c5f18
lea edi, [esi + 0x10]
lea ecx, [ebp - 0x18]
push edi
mov byte [ebp - 4], 2
call fcn.004c5c1f
push 0x5c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004c2ca0
lea ecx, [ebp - 0x7c]
call fcn.0040ce17
push ecx
add esi, 0x254
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
mov byte [ebp - 4], 4
call fcn.004c5c1f
lea ecx, [ebp - 0x3ec]
call fcn.00416c9c
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push edi
call fcn.004c5c1f
lea ecx, [ebp - 0x3ec]
call fcn.00416cef
lea eax, [ebp - 0x3c8]
mov dword [ebp - 0x3c4], 1
push eax
call fcn.0049d7a0
mov esi, eax
test esi, esi
jne 0x46e7dd
mov ebx, dword [ebp - 0x37c]
lea eax, [ebp - 0x524]
xor edi, edi
mov dword [ebp - 0x3bc], eax
test ebx, ebx
jle 0x46e7dd
test esi, esi
jne 0x46e7dd
lea eax, [ebp - 0x3c8]
mov dword [ebp - 0x3c4], 2
push eax
call fcn.0049d7a0
mov esi, eax
test esi, esi
jne 0x46e7d8
lea eax, [ebp - 0x4fe]
lea ecx, [ebp - 0x10]
push eax
call fcn.004c6033
push str._TUProj.dat
push dword [ebp - 0x10]
call fcn.004afa15
pop ecx
test eax, eax
pop ecx
je 0x46e7d8
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x38]
push eax
call fcn.004c43fa
inc edi
cmp edi, ebx
jl 0x46e78a
mov eax, dword [0x523ba4]
lea ecx, [eax + 0x38]
call fcn.00443c36
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x46e854
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [ebp - 0x10]
push eax
call fcn.004c5fe3
lea eax, [ebp - 0x18]
push 0x510870
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004c613f
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004c60d9
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.004c5fe3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.004c5eaa
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004c5eaa
lea ecx, [ebp - 0x7c]
call fcn.0040cf25
jmp 0x46e7ed
mov eax, dword [0x523ba4]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call fcn.0040ceb6
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004c5eaa
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004c5eaa
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004c42c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3ec]
call fcn.00416c4b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x46ebee
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov eax, 0x4e1d63
call fcn.004aef44
sub esp, 0x120
and dword [ebp - 0x28], 0
push ebx
push esi
push edi
push 0x523a30
lea ecx, [ebp - 0x10]
call fcn.004c5f18
push 1
lea ecx, [ebp - 0x1c]
pop ebx
mov dword [ebp - 4], ebx
call fcn.00413311
mov eax, dword [0x51f03c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push ebx
push eax
push ecx
mov esi, str.NONE
mov ecx, esp
mov dword [ebp - 0x20], esp
push esi
mov byte [ebp - 4], 3
call fcn.004c5f18
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.InstallerLocation
call fcn.004c5f18
push ecx
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
call fcn.004c5f18
push 3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004139e5
test eax, eax
mov edi, 0x510870
je 0x46ece5
push esi
push dword [ebp - 0x18]
call fcn.004af56e
pop ecx
test eax, eax
pop ecx
je 0x46ece5
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], 0
je 0x46ece5
push edi
lea ecx, [ebp - 0x18]
call fcn.004c2c4d
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
call fcn.004c5c1f
push 0x513208
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.004c6286
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46ecd9
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x10]
push eax
call fcn.004c5fe3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004c5eaa
mov eax, dword [ebp - 0x10]
mov esi, 0x104
cmp dword [eax - 8], 0
jne 0x46ed82
push str.msi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x20], eax
je 0x46ed82
lea ecx, [ebp - 0x12c]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x46ed79
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x14]
push eax
call fcn.004c5f18
push 0x5c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.004c2892
cmp eax, 0xffffffff
je 0x46ed6d
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.004c281a
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.004c5fe3
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.004c5eaa
push edi
lea ecx, [ebp - 0x10]
call fcn.004c2c4d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004c5eaa
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
jne 0x46edb1
lea eax, [ebp - 0x12c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x10]
push eax
call fcn.004c6033
push edi
lea ecx, [ebp - 0x10]
call fcn.004c2c4d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004c5c1f
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004c5eaa
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00413336
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x471b31
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4e24df
call fcn.004aef44
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x18], ebx
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 4], 2
call fcn.004c5c1f
push 0x510870
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.004c2c4d
mov eax, dword [0x51f03c]
mov dword [ebp - 0x10], eax
push ebx
mov edi, str._s_s__d
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push dword [ebp + 0xc]
push edi
push eax
call fcn.004c2c3a
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x14
push dword [ebp - 0x10]
call esi
cmp eax, 0xffffffff
je 0x471bb9
inc ebx
lea eax, [ebp - 0x10]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.004c2c3a
add esp, 0x14
push dword [ebp - 0x10]
jmp 0x471b98
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call fcn.004c5fe3
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004c5c1f
call fcn.0040ca76
pop ecx
lea eax, [ebp - 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.004c5c1f
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004c5eaa
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004c5eaa
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004c5eaa
and byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x4744ff
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4e2ad8
call fcn.004aef44
push ecx
push ecx
mov eax, dword [0x51f03c]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [0x523ba4]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x114], ebx
je 0x4745d2
add eax, 0x118
lea ecx, [ebp - 0x10]
push eax
call fcn.004c5fe3
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004c5c1f
lea eax, [ebp - 0x14]
push eax
call fcn.0047fcf1
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004c5fe3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004c5eaa
mov eax, dword [0x523ba4]
push ebx
mov eax, dword [eax + 0x118]
push eax
call fcn.004b0b55
pop ecx
cmp eax, 0xffffffff
pop ecx
jne 0x4745d2
mov eax, dword [0x523ba4]
lea ecx, [ebp - 0x10]
add eax, 0x10
push eax
call fcn.004c5fe3
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.004c2ca0
mov eax, dword [0x523ba4]
add eax, 0x118
push eax
lea eax, [ebp - 0x14]
push 0x510870
push eax
call fcn.004c61b3
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004c62c2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004c5eaa
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x474602
call fcn.004d373b
mov eax, dword [eax + 8]
push ebx
push dword [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconA]
cmp eax, ebx
mov dword [esi + 0xbc], eax
je 0x474602
cmp eax, 1
jne 0x474619
call fcn.004d373b
mov eax, dword [eax + 8]
push 0x73
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0xbc], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x479fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4e33ef
call fcn.004aef44
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
push 0x523a30
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], edi
call fcn.004c5f18
push 1
lea ecx, [ebp - 0x1c]
pop ebx
mov dword [ebp - 0x24], edi
push str._DATFILE
mov dword [ebp - 4], ebx
call fcn.004c5f18
push 0x514880
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004c6286
push edi
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004c5c1f
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0047a22e
mov eax, dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp dword [eax - 8], edi
je 0x47a0fd
mov ecx, dword [0x51f03c]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax - 8]
mov byte [ebp - 4], 4
cmp edx, dword [ecx - 8]
jle 0x47a0f1
mov eax, edx
sub eax, dword [ecx - 8]
lea ecx, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004c279e
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004c5fe3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004c5eaa
push dword [ebp - 0x14]
call esi
cmp eax, 0xffffffff
je 0x47a08a
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
call fcn.004c5fe3
mov dword [ebp - 0x24], ebx
jmp 0x47a0f1
mov eax, dword [0x51f03c]
mov dword [ebp - 0x10], eax
mov eax, dword [0x523ba4]
lea ecx, [ebp - 0x10]
add eax, 0xc
mov byte [ebp - 4], 6
push eax
call fcn.004c5fe3
mov edi, 0x510870
lea ecx, [ebp - 0x10]
push edi
call fcn.004c2c4d
push edi
lea ecx, [ebp - 0x10]
call fcn.004c6286
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call fcn.004c62c2
push dword [ebp - 0x10]
call esi
cmp eax, 0xffffffff
je 0x47a0e3
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.004c5fe3
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004c5eaa
xor edi, edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004c5eaa
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004c5eaa
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004c5eaa
cmp dword [ebp - 0x24], edi
jne 0x47a19d
mov eax, dword [0x51f03c]
mov dword [ebp - 0x10], eax
mov eax, dword [0x523ba4]
lea ecx, [ebp - 0x10]
add eax, 8
mov byte [ebp - 4], 7
push eax
call fcn.004c5fe3
push 0x2e
lea ecx, [ebp - 0x10]
call fcn.004c2892
cmp eax, 0xffffffff
je 0x47a192
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.004c281a
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.004c5fe3
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.004c5eaa
push str..dat
lea ecx, [ebp - 0x10]
call fcn.004c6286
push dword [ebp - 0x10]
call esi
cmp eax, 0xffffffff
je 0x47a192
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.004c5fe3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004c5eaa
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.004c5c1f
mov dword [ebp - 0x28], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x47a400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4e348b
call fcn.004aef44
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x18], ebx
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 4], 2
call fcn.004c5c1f
push 0x510870
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.004c2c4d
mov eax, dword [0x51f03c]
mov dword [ebp - 0x10], eax
push ebx
mov edi, str._s_s__d
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push dword [ebp + 0xc]
push edi
push eax
call fcn.004c2c3a
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x14
push dword [ebp - 0x10]
call esi
cmp eax, 0xffffffff
je 0x47a488
inc ebx
lea eax, [ebp - 0x10]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.004c2c3a
add esp, 0x14
push dword [ebp - 0x10]
jmp 0x47a467
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call fcn.004c5fe3
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004c5c1f
call fcn.0040ca76
pop ecx
lea eax, [ebp - 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.004c5c1f
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004c5eaa
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004c5eaa
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004c5eaa
and byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x47a801
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x4e357c
call fcn.004aef44
sub esp, 0x30
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x28]
call fcn.004c55f5
xor esi, esi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], esi
call fcn.004c5162
mov eax, dword [0x51f03c]
mov dword [ebp - 0x2c], eax
or dword [ebp - 0x30], 0xffffffff
mov ebx, vtable.CFileException.0
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], esi
call fcn.004c6033
mov eax, dword [0x51f03c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
lea esi, [edi + 8]
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.004c6033
push 0x5c
mov ecx, esi
call fcn.004c2892
cmp eax, 0xffffffff
je 0x47a8a8
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.004c281a
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.004c5fe3
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.004c5eaa
push 0x510870
lea ecx, [ebp - 0x10]
call fcn.004c2c4d
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
call fcn.004c5c1f
mov ecx, edi
call fcn.0047a963
test eax, eax
je 0x47a8cd
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004c5c1f
call fcn.0040ca76
cmp dword [ebp + 0xc], 0
mov esi, dword [esi]
pop ecx
lea eax, [ebp - 0x3c]
push eax
je 0x47a8f5
push 0x1002
jmp 0x47a8fa
push 0x3002
push esi
lea ecx, [ebp - 0x28]
call fcn.004c5707
mov esi, eax
test esi, esi
jne 0x47a90e
and dword [edi + 0xc], eax
jmp 0x47a91d
lea ecx, [ebp - 0x28]
call fcn.004c5922
mov dword [edi + 0xc], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004c5eaa
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004c5eaa
mov dword [ebp - 0x3c], ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.004c5eaa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004c564a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8

Function at 0x47a963
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x47a97c
test al, 1
je 0x47a97c
push 1
pop esi
lea ecx, [esp + 8]
call fcn.004c5eaa
mov eax, esi
pop esi
ret 4
Function at 0x47b6f9
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4e3778
call fcn.004aef44
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [0x51f03c]
and dword [ebp - 4], 0
lea edi, [esi + 4]
mov dword [edi], eax
lea ecx, [esi + 0x14]
push 0xa
mov byte [ebp - 4], 1
call fcn.004c3e94
mov eax, dword [0x51f03c]
lea ebx, [esi + 0x30]
mov dword [ebx], eax
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 3
call fcn.0047a98b
push str.New_Package
mov ecx, edi
mov byte [ebp - 4], 4
mov dword [esi], vtable.CSUFPackage.0
call fcn.004c6033
push 1
xor edi, edi
pop eax
lea ecx, [esi + 0x40]
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x10], edi
push eax
call fcn.0047a9bf
mov dword [esi + 0x38], edi
push 0x523a30
mov ecx, ebx
mov dword [esi + 0x3c], edi
call fcn.004c6033
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x480c4d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4e3d95
call fcn.004aef44
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x480c7c
lea edi, [esi + 4]
mov ecx, edi
call fcn.004c3f7e
cmp eax, ebx
je 0x480c77
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 4]
cmp dword [esi + 8], ebx
jne 0x480c63
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x480c91
xor esi, esi
jmp 0x480d49
lea ecx, [ebp - 0x38]
call fcn.0041d1e8
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x51ae38
mov byte [ebp - 4], 1
call fcn.004c5f18
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 2
call fcn.004c5c1f
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0041d254
cmp eax, ebx
jne 0x480d3a
cmp dword [ebp - 0x28], ebx
jne 0x480cdb
xor esi, esi
jmp 0x480d3d
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x480d3a
mov eax, ebx
mov ebx, dword [ebx]
mov esi, dword [eax + 8]
test esi, esi
je 0x480cde
push 0xc
call fcn.004c512e
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x480d0b
mov ecx, eax
call fcn.004808b3
mov edi, eax
jmp 0x480d0d
xor edi, edi
lea eax, [esi + 0x2a]
mov byte [ebp - 4], 1
push eax
lea eax, [edi + 4]
push 0x511890
push eax
call fcn.004c2c3a
mov eax, dword [esi + 0x14]
add esp, 0xc
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x10]
push edi
lea ecx, [eax + 4]
call fcn.004c4661
jmp 0x480cde
push 1
pop esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0041d21b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x49a650
Capabilities:
Get disk information
Get thread local storage value

Disassembly:
push ecx
mov ecx, dword [0x526ad4]
mov eax, dword [0x51cf2c]
push ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49a6ab
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x49a679
mov eax, 1
pop ecx
ret
mov eax, dword [esp + 8]
test eax, eax
jl 0x49a6ab
cmp eax, 0x1a
jg 0x49a6ab
test eax, eax
jne 0x49a68f
call fcn.0049a640
mov cl, byte [esp]
dec al
lea edx, [esp]
add cl, al
push edx
mov byte [esp + 4], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x49a672
xor eax, eax
pop ecx
ret

Function at 0x49a740
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x526ad4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49a7a2
mov ecx, dword [eax + 0x97e]
push ebx
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call fcn.0049fa70
mov bl, al
call fcn.0049fa70
mov byte [esp + 6], al
call fcn.0049fa70
mov byte [esp + 7], al
call fcn.0049fa70
cmp bl, 0x50
pop ebx
jne 0x49a7a2
cmp byte [esp + 2], 0x4b
jne 0x49a7a2
cmp byte [esp + 3], 1
jne 0x49a7a2
cmp al, 2
jne 0x49a7a2
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret