joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481513
Capabilities:
Copy file

Disassembly:
push 0x18
mov eax, 0x508c35
call fcn.004cea03
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], ebx
call fcn.00406bd2
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.00406bd2
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00406bd2
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
mov ecx, dword [edi + 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004885f2
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00446330
push ebx
push 0x530410
lea ecx, [ebp - 0x10]
call fcn.0042e2bd
test eax, eax
jne 0x481598
mov esi, dword [ebp - 0x10]
add esi, 8
jne 0x481587
mov eax, ebx
jmp 0x48158e
push esi
call fcn.004d3ded
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00409e0a
push dword [ebp + 0xc]
lea edx, [ebp - 0x1c]
lea ecx, [ebp + 0xc]
call fcn.0046a0f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
mov edx, eax
mov dword [esp], 0x52995c
call fcn.00452644
pop ecx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
call fcn.004068c3
push ebx
mov dl, 1
lea ecx, [ebp - 0x14]
call fcn.00475740
lea edx, [ebp - 0x14]
mov dword [esp], str.instname_target.msi
lea ecx, [ebp + 0xc]
call fcn.00452644
pop ecx
lea esi, [edi + 0x24]
mov byte [ebp - 4], 7
push eax
mov ecx, esi
call fcn.00446330
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
call fcn.004068c3
push str.instname_custom.mst
lea edx, [ebp - 0x14]
lea ecx, [ebp + 0xc]
call fcn.00452644
pop ecx
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 8
push eax
mov dword [ebp - 0x20], ecx
call fcn.00446330
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
call fcn.004068c3
push ebx
push dword [esi]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x481679
mov ecx, dword [ebp + 8]
call fcn.00406bd2
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 3
call fcn.004068c3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004068c3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004068c3
mov byte [ebp - 4], bl
jmp 0x4816fc
push 0x528064
lea ecx, [ebp + 0xc]
call fcn.00409ea5
lea eax, [edi + 0x1c]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.00481b77
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
mov bl, al
call fcn.004068c3
mov edi, dword [ebp - 0x20]
test bl, bl
je 0x4816c4
push edi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004819ec
lea ecx, [ebp + 0xc]
call fcn.004068c3
mov ecx, dword [ebp + 8]
push edi
call fcn.004071c5
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 3
call fcn.004068c3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004068c3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004068c3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004068c3
mov eax, dword [ebp + 8]
call fcn.004ce9cc
ret 8
Function at 0x481b77
Capabilities:
Reference sql statements

Disassembly:
push 0x10
mov eax, 0x508d6a
call fcn.004cea03
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x18], ebx
je 0x481b9b
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
push 1
mov dword [ebp - 0x18], ebx
push dword [eax]
call dword [sym.imp.msi.dll_MsiOpenProductW]
test eax, eax
jne 0x481d0b
lea ecx, [ebp - 0x1c]
call fcn.00406bd2
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x1c]
push str.SELECT__Value__FROM__Property__WHERE_Property_s
push eax
call fcn.00407aa5
add esp, 0xc
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x10], 0
je 0x481beb
push dword [ebp - 0x10]
call esi
mov edi, dword [sym.imp.msi.dll_MsiEnumClientsA]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x481cf0
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x481cf0
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x14], eax
je 0x481c2b
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
cmp eax, 0x103
setne bl
cmp dword [ebp - 0x10], 0
mov byte [ebp + 0xb], bl
je 0x481c51
push dword [ebp - 0x10]
call esi
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, str.INSERT_INTO__Property____Property____Value___VALUES_______
test bl, bl
mov eax, str.UPDATE__Property__SET__Property_._Value___WHERE_Property_
cmove eax, ecx
push eax
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x481cdf
push 2
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
cmp dword [ebp - 0x14], 0
mov edi, eax
je 0x481c87
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], edi
test edi, edi
je 0x481cdf
mov eax, dword [ebp + 0xc]
test bl, bl
mov ebx, dword [ebp + 0x10]
cmovne eax, ebx
push dword [eax]
push 1
push edi
mov edi, dword [sym.imp.msi.dll_MsiReinstallFeatureW]
call edi
test eax, eax
jne 0x481cdf
cmp byte [ebp + 0xb], al
cmovne ebx, dword [ebp + 0xc]
push dword [ebx]
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x481cdf
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x481cdf
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiDatabaseGenerateTransformW]
test eax, eax
jne 0x481cdf
mov bl, 1
jmp 0x481ce1
xor bl, bl
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 0
je 0x481cf0
push dword [ebp - 0x14]
call esi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x10], 0
je 0x481cff
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004068c3
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0
je 0x481d1a
push dword [ebp - 0x18]
call esi
mov al, bl
call fcn.004ce9cc
ret 0xc
Function at 0x482559
Capabilities:
Reference sql statements

Disassembly:
push ebp
sub esp, 0x200
lea ebp, [esp - 4]
mov eax, dword [0x56d078]
xor eax, ebp
mov dword [ebp + 0x200], eax
push 0x10
mov eax, 0x508f57
call fcn.004cea03
mov esi, edx
mov ebx, ecx
mov eax, dword [ebp + 0x20c]
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.0047b5e0
push esi
lea eax, [ebp]
push str.SELECT__Text__FROM__UIText__WHERE__Key____s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
and dword [ebp - 0x14], 0
add esp, 0xc
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
je 0x4825bd
push dword [ebp - 0x14]
call edi
and dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push ebx
lea ecx, [ebp]
call fcn.0048279f
pop ecx
test eax, eax
jns 0x4825d9
xor bl, bl
jmp 0x482687
and dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x10], 0
je 0x4825ec
push dword [ebp - 0x10]
call edi
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], eax
je 0x482627
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x482622
cmp esi, 0x80070103
je 0x482622
call fcn.0048287a
mov eax, dword [ebp - 0x10]
jmp 0x48262c
mov esi, 0x80070057
test esi, esi
jns 0x482634
xor bl, bl
jmp 0x482678
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
mov esi, dword [sym.imp.msi.dll_MsiRecordSetStreamA]
push ecx
push 0x524ee8
push 1
push eax
call esi
cmp eax, 0xea
jne 0x482673
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
inc eax
push eax
mov ecx, ebx
mov dword [ebp - 0x18], eax
call fcn.0047b600
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 4]
push 1
push dword [ebp - 0x10]
call esi
test eax, eax
sete bl
mov byte [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x482687
push dword [ebp - 0x10]
call edi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x482696
push dword [ebp - 0x14]
call edi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.004cde67
lea esp, [ebp + 0x204]
pop ebp
ret
Function at 0x482b3d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2c
mov eax, 0x508fee
call fcn.004cea03
xor ebx, ebx
lea eax, [ebp - 0x20]
push eax
inc ebx
mov eax, 0x101
cmp byte [ebp + 0xc], 0
cmove eax, ebx
xor edi, edi
push eax
push edi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x14
mov dword [ebp - 0x1c], ebx
mov esi, eax
pop ebx
push ebx
call fcn.004ce399
or dword [ebp - 0x38], 0xffffffff
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], edi
push ebx
mov dword [ebp - 0x14], ebx
call fcn.004ce399
or dword [ebp - 0x30], 0xffffffff
pop ecx
pop ecx
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
call fcn.0047b5e0
push ebx
call fcn.004ce399
or dword [ebp - 0x30], 0xffffffff
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov eax, edi
mov dword [ebp - 0x18], eax
pop ecx
test esi, esi
jne 0x482c8a
mov esi, str.AI_InstallLanguage
lea ecx, [ebp - 0x10]
push ecx
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push edi
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp + 0xc]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x28], eax
cmp eax, 0xea
jne 0x482c3d
lea ecx, [ebp - 0x38]
call fcn.0047b5e0
push dword [ebp - 0x14]
call fcn.004ce399
or dword [ebp - 0x38], 0xffffffff
pop ecx
lea ecx, [ebp - 0x30]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x34], eax
call fcn.0047b5e0
push dword [ebp - 0x10]
call fcn.004ce399
or dword [ebp - 0x30], 0xffffffff
mov ebx, eax
pop ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x2c], ebx
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, dword [ebp + 0xc]
lea eax, [esi - 1]
sub ecx, str.AI_InstallLanguage
mov dword [ebp - 0x24], ecx
inc eax
mov cl, byte [ecx + eax]
mov dl, byte [eax]
cmp cl, dl
jl 0x482c65
jg 0x482c65
test cl, cl
je 0x482c78
test dl, dl
je 0x482c78
mov ecx, dword [ebp - 0x24]
jmp 0x482c4c
mov eax, dword [ebp - 0x18]
inc eax
cmp dword [ebp - 0x28], 0
mov dword [ebp - 0x18], eax
je 0x482bc6
jmp 0x482c8a
or dword [ebp + 0xc], 0xffffffff
lea edx, [ebp + 0xc]
push ecx
mov ecx, ebx
call fcn.0047b7e0
pop ecx
mov edi, eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.0047b5e0
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 5
call fcn.0047b5e0
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.004ce9cc
ret
Function at 0x485c63
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x56d078]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ecx + 0x74], 1
push ebx
push esi
push edi
je 0x485cf1
test dword [ecx + 0x74], 0x2000
jne 0x485cf1
call fcn.00486460
mov edi, eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 3
jl 0x485cf1
xor esi, esi
mov ecx, edi
push esi
call fcn.0046a4e0
push 0x5c
pop ebx
cmp ax, bx
jne 0x485cc2
push 1
mov ecx, edi
call fcn.0046a4e0
cmp ax, bx
jne 0x485cc2
push 2
mov ecx, edi
call fcn.0046a4e0
cmp ax, bx
jne 0x485cf1
test esi, esi
js 0x485d04
push esi
mov ecx, edi
call fcn.0046a4c0
mov word [ebp + esi*2 - 0x10], ax
inc esi
cmp esi, 3
jl 0x485cc2
xor eax, eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
setne al
jmp 0x485cf3
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cde67
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00406bfc
int3

Function at 0x485d0f
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push 0x10
mov eax, 0x509a09
call fcn.004cea03
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.00486460
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.00473870
and dword [ebp - 4], 0
push 0x5c
push dword [edi]
call fcn.004d18c5
pop ecx
pop ecx
test eax, eax
jne 0x485d47
or eax, 0xffffffff
jmp 0x485d4b
sub eax, dword [edi]
sar eax, 1
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00447e2c
xor ebx, ebx
lea ecx, [ebp - 0x10]
inc ebx
mov byte [ebp - 4], bl
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004070e2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.004068c3
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x485d94
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x485dad
mov dword [esi + 0x14], ebx
jmp 0x485e31
push edi
push 3
lea ecx, [esi + 0x1c]
call fcn.0048f848
lea ecx, [ebp - 0x14]
call fcn.00406bd2
push 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x1c]
call fcn.0048f8e0
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push 0x53274c
push eax
call fcn.00407aa5
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.004068c3
mov esi, dword [ebp - 0x1c]
lea ecx, [esi + 0x180]
call fcn.0048b393
push 0
push 0x20
push 0
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.00490387
add esp, 0xc
test al, al
jne 0x485e23
mov dword [esi + 0x14], ebx
jmp 0x485e25
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004068c3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004068c3
mov eax, ebx
call fcn.004ce9cc
ret
Function at 0x486be9
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x509cdb
call fcn.004cea03
mov esi, ecx
mov eax, dword [esi + 0x1d0]
test eax, eax
je 0x486d1f
cmp eax, 0xffffffff
je 0x486d1f
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x1c], 0x103
jne 0x486d1f
lea ecx, [ebp - 0x3c]
call fcn.00496d5f
xor ebx, ebx
lea ecx, [ebp - 0x18]
push str.Advinst_Estimate_
mov dword [ebp - 4], ebx
call fcn.00409ea5
mov byte [ebp - 4], 1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00486460
push ecx
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call fcn.0047b470
pop ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00476130
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
push dword [ebp - 0x14]
call fcn.0047ffcc
push eax
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.0046a0f0
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.00496d9c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004068c3
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.004068c3
push str.CLOSE
lea ecx, [ebp - 0x10]
call fcn.00409ea5
mov byte [ebp - 4], 6
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
push ebx
push edx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004068c3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004068c3
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.0047b5e0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004068c3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00496e38
call fcn.004ce9cc
ret
Function at 0x48795c
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x24
mov eax, 0x509f12
call fcn.004cea03
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp byte [edi + 0xc0], 0
je 0x487adb
cmp byte [edi + 0xd8], 0
jne 0x487adb
xor ebx, ebx
inc ebx
cmp dword [edi + 0x90], 3
je 0x4879b4
call fcn.00489235
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x4879b4
cmp eax, ebx
je 0x4879b4
test byte [edi + 0x44], 0x48
je 0x4879b4
mov ecx, edi
call fcn.00488295
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], bl
mov ebx, ecx
mov eax, dword [edi + 0xa8]
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x487a22
lea eax, [edi + 0xa4]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
push ebx
mov ecx, eax
call fcn.00406560
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x487a17
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.00406560
push eax
lea ecx, [ebp - 0x30]
call fcn.00471ac0
mov eax, dword [ebp - 0x10]
inc ebx
cmp ebx, edi
jl 0x4879e9
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + 0xb4]
sub ebx, 1
js 0x487a6d
lea eax, [edi + 0xb0]
mov dword [ebp - 0x18], eax
mov edi, eax
push ebx
mov ecx, edi
call fcn.00406560
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x487a65
push ebx
mov ecx, edi
call fcn.00406560
push eax
lea ecx, [ebp - 0x24]
call fcn.00471ac0
sub ebx, 1
jns 0x487a38
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 0xa4]
call fcn.0048a824
lea ebx, [edi + 0xb0]
mov ecx, ebx
call fcn.00454aaf
mov esi, dword [ebp - 0x20]
jmp 0x487a9f
push esi
lea ecx, [ebp - 0x24]
call fcn.00406560
push eax
mov ecx, ebx
call fcn.00471ac0
sub esi, 1
jns 0x487a8e
cmp dword [edi + 0xa8], 0
jne 0x487abb
cmp dword [edi + 0xb4], 0
jne 0x487abb
xor eax, eax
inc eax
jmp 0x487abd
xor eax, eax
mov byte [edi + 0xd8], al
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00454aaf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00454aaf
call fcn.004ce9cc
ret
Function at 0x489235
Capabilities:
Delete file

Disassembly:
push 0x1c
mov eax, 0x50a36c
call fcn.004cea03
mov esi, ecx
test byte [esi + 0x44], 1
je 0x489253
test byte [esi + 0x44], 0x40
je 0x489399
mov eax, dword [esi + 0x7c]
xor edi, edi
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x489399
lea eax, [esi + 0x78]
push edi
mov ecx, eax
call fcn.0048a6ba
mov ebx, eax
cmp byte [ebx + 0x1c], 0
je 0x48938c
cmp dword [ebx], 1
je 0x4892ac
cmp dword [ebx], 3
je 0x4892ac
cmp dword [ebx], 7
je 0x4892ac
cmp dword [ebx], 8
je 0x4892ac
cmp dword [ebx], 0x64
jb 0x4892d3
mov eax, dword [esi + 0x90]
cmp eax, 2
je 0x48938c
cmp eax, 5
jne 0x4892d3
jmp 0x48938c
mov eax, dword [esi + 0x90]
cmp eax, 4
je 0x4892d3
cmp eax, 2
je 0x48938c
cmp eax, 1
je 0x48938c
test byte [ebx + 8], 1
jne 0x48938c
push dword [ebx + 4]
mov ecx, esi
call fcn.00489f54
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.004071c5
and dword [ebp - 4], 0
mov ecx, dword [ebx + 0x18]
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004070e2
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x489313
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406708
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x48935b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x48935b
lea ecx, [ebp - 0x28]
call fcn.00406bd2
lea ecx, [ebp - 0x24]
call fcn.00406bd2
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x28]
call fcn.0048317f
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00452fc6
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00473d20
mov edx, dword [ebp - 0x14]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00474930
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.004068c3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004068c3
inc edi
lea eax, [esi + 0x78]
cmp edi, dword [ebp - 0x1c]
jl 0x489266
call fcn.004ce9cc
ret
Function at 0x48939f
Capabilities:
Read file on windows

Disassembly:
push 0x34
mov eax, 0x50a39d
call fcn.004cea03
mov ebx, ecx
xor eax, eax
cmp dword [ebx + 0x10], eax
je 0x48950a
mov ecx, dword [ebx + 0x1c]
add ecx, dword [ebx + 0x58]
push 0
adc eax, dword [ebx + 0x5c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
push dword [ebx + 0x84]
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4893fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.00489edd
push 2
pop eax
jmp 0x48950a
xor eax, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
call fcn.00406bd2
mov byte [ebp - 0x24], 0
and dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x10], esi
and dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
cmp dword [ebx + 0x10], esi
jbe 0x4894e4
push 0
lea eax, [ebp - 0x14]
push eax
push 0x18
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x489514
cmp dword [ebp - 0x14], 0
je 0x489514
test esi, esi
je 0x489470
push esi
call fcn.004ce497
and dword [ebp - 0x10], 0
pop ecx
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.004822c3
mov esi, dword [ebp - 0x10]
test al, al
je 0x489510
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x2c]
add eax, eax
push eax
push esi
push dword [ebx + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x489514
cmp dword [ebp - 0x14], 0
je 0x489514
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebx + 0x78]
call fcn.0048a6e1
push dword [ebp - 0x18]
lea ecx, [ebx + 0x78]
call fcn.0048a6ba
push esi
lea ecx, [eax + 0x18]
call fcn.00409e7d
mov edi, dword [ebp - 0x18]
inc edi
mov dword [ebp - 0x18], edi
cmp edi, dword [ebx + 0x10]
jb 0x489437
xor edi, edi
push esi
mov byte [ebp - 4], 0
call fcn.004ce497
and dword [ebp - 0x10], 0
pop ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 5
call fcn.004068c3
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.004ce9cc
ret
push 3
jmp 0x48952d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.00489edd
push 2
pop edi
jmp 0x4894e6