joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c30d
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x46188a
call fcn.004571ec
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x448]
mov dword [ebp - 4], 0x21
call fcn.00410fc7
lea ecx, [esi + 0x430]
mov byte [ebp - 4], 0x20
call fcn.0041d948
lea ecx, [esi + 0x418]
mov byte [ebp - 4], 0x1f
call fcn.0041d948
lea ecx, [esi + 0x408]
mov byte [ebp - 4], 0x1e
call fcn.0040bb65
lea ecx, [esi + 0x3e0]
mov byte [ebp - 4], 0x1d
call fcn.004060f2
lea ecx, [esi + 0x3b4]
mov byte [ebp - 4], 0x1c
call fcn.004060f2
lea ecx, [esi + 0x384]
mov byte [ebp - 4], 0x1b
call fcn.004060f2
lea ecx, [esi + 0x35c]
mov byte [ebp - 4], 0x1a
call fcn.004060f2
lea ecx, [esi + 0x334]
mov byte [ebp - 4], 0x19
call fcn.004060f2
lea ecx, [esi + 0x30c]
mov byte [ebp - 4], 0x18
call fcn.004060f2
lea ecx, [esi + 0x2e8]
mov byte [ebp - 4], 0x17
call fcn.00441196
lea ecx, [esi + 0x2b0]
mov byte [ebp - 4], 0x16
call fcn.004060f2
lea ecx, [esi + 0x288]
mov byte [ebp - 4], 0x15
call fcn.004060f2
lea ecx, [esi + 0x260]
mov byte [ebp - 4], 0x14
call fcn.004060f2
mov byte [ebp - 4], 0x13
lea ecx, [esi + 0x238]
call fcn.004060f2
lea ecx, [esi + 0x210]
mov byte [ebp - 4], 0x12
call fcn.004060f2
lea ecx, [esi + 0x1e8]
mov byte [ebp - 4], 0x11
call fcn.004060f2
lea ecx, [esi + 0x1c0]
mov byte [ebp - 4], 0x10
call fcn.004060f2
lea ecx, [esi + 0x198]
mov byte [ebp - 4], 0xf
call fcn.004060f2
lea ecx, [esi + 0x170]
mov byte [ebp - 4], 0xe
call fcn.004060f2
lea ecx, [esi + 0x148]
mov byte [ebp - 4], 0xd
call fcn.004060f2
lea ecx, [esi + 0x120]
mov byte [ebp - 4], 0xc
call fcn.004060f2
lea ecx, [esi + 0xf8]
mov byte [ebp - 4], 0xb
call fcn.004060f2
lea ecx, [esi + 0xd0]
mov byte [ebp - 4], 0xa
call fcn.004060f2
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 9
call fcn.004060f2
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 8
call fcn.004060f2
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 7
call fcn.004060f2
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 6
call fcn.0042f3e8
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 5
call fcn.0042f3e8
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 4
call fcn.0042f3e8
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 3
call fcn.0042f3e8
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
call fcn.0042f3e8
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0042f3e8
and byte [ebp - 4], 0
lea ecx, [esi + 0x1c]
call fcn.0040b7e0
or dword [ebp - 4], 0xffffffff
mov ecx, esi
add esi, 0x14
neg ecx
sbb ecx, ecx
and ecx, esi
add ecx, 4
call fcn.0042f3e8
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x41619c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
call fcn.00405599
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4161e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4161e2
cmp eax, 3
je 0x4161e2
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.00418b18
lea eax, [ebp - 0x48]
push 0x46d3b8
push eax
call fcn.00457c2c
xor al, al
leave
ret
test byte [ebp + 0xc], 4
je 0x4161f0
test al, 0x10
je 0x4161fa
test byte [ebp + 0xc], 8
je 0x4161ff
test al, 0x10
je 0x4161ff
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x4176e1
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x417726
mov eax, dword [ebp + 8]
test eax, eax
je 0x4176fb
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x417782
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0041778a
lea eax, [ebp - 0x4c]
push 0x46fcb0
push eax
call fcn.00457c2c
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x417782
cmp dword [ebp + 8], 0
jne 0x41775b
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004082db
lea eax, [ebp - 0x48]
push 0x46d3b8
push eax
call fcn.00457c2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x417782
push 1
add esi, 0xc
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00418b18
lea eax, [ebp - 0x48]
push 0x46d3b8
push eax
call fcn.00457c2c
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x41805e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x418071
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4180a6
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004082db
lea eax, [ebp - 0x48]
push 0x46d3b8
push eax
call fcn.00457c2c
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x418eed
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 0xc]
call fcn.00405599
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x418f28
test al, 1
je 0x418f28
push 1
push 5
push dword [ebp + 0xc]
lea ecx, [ebp - 0x48]
call fcn.00418f2c
lea eax, [ebp - 0x48]
push 0x470208
push eax
call fcn.00457c2c
xor al, al
leave
ret

Function at 0x419c5a
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x462d94
call fcn.004571ec
sub esp, 0xb0
push ebx
push esi
push edi
push 0x10
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0xb8]
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0xbc], 0x44
call fcn.0041a553
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0041ab79
add esp, 0xc
lea ecx, [ebp - 0x28]
push 0x104
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00405cca
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 4
call fcn.00405599
lea ecx, [ebp - 0x1c]
mov dword [esi + 8], eax
push ecx
lea ecx, [ebp - 0xbc]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, eax
lea ecx, [ebp - 0x28]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 3
inc bl
call fcn.00404c0f
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.004060f2
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.004060f2
pop edi
pop esi
test bl, bl
pop ebx
je 0x419d3a
lea ecx, [ebp - 0x44]
call fcn.00408347
lea eax, [ebp - 0x44]
push 0x470688
push eax
call fcn.00457c2c
push 0x3a98
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x419d6a
push 0x5b4
lea ecx, [ebp - 0x44]
call fcn.00412232
lea eax, [ebp - 0x44]
push 0x470688
push eax
call fcn.00457c2c
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00419d90
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004060f2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0x2c
Function at 0x41de98
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4635a4
call fcn.004571ec
sub esp, 0x104
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [ebp - 0x48]
xor ebx, ebx
neg edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x44]
sbb edi, edi
mov dword [ebp - 0x14], ebx
and edi, eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call fcn.0041e03d
push 4
lea ecx, [ebp - 0xc0]
pop esi
mov dword [ebp - 4], ebx
push esi
push ebx
push ecx
mov ecx, eax
call fcn.00408213
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], 1
call fcn.0041a92b
push dword [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0041ab79
add esp, 0xc
push dword [0x46950c]
mov ecx, eax
add eax, esi
mov byte [ebp - 4], 3
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
mov eax, dword [ebp - 0x18]
push ecx
lea ecx, [eax + 4]
call fcn.00405665
lea ecx, [ebp - 0xe8]
call fcn.004060f2
lea ecx, [ebp - 0x98]
call fcn.004060f2
lea ecx, [ebp - 0xc0]
call fcn.004060f2
lea ecx, [ebp - 0x110]
call fcn.004060f2
lea eax, [ebp - 0x19]
push ebx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0x469494
mov dword [ebp - 0x28], 0x46948c
call fcn.00404ab9
lea eax, [ebp - 0x54]
push 0x104
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], esi
call fcn.00405cca
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 5
call fcn.00405599
movzx ecx, word [ebp - 0x10]
push ecx
push str._hx.rra
push eax
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.00404c0f
push dword [0x46950c]
push ebx
mov eax, dword [ebp - 0x18]
push edi
lea ecx, [eax + 4]
call fcn.00411a14
mov ecx, dword [ebp - 0x18]
call fcn.00405599
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41e024
inc dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004060f2
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xffff
jl 0x41dec8
push 0x50
lea ecx, [ebp - 0x70]
call fcn.00412232
lea eax, [ebp - 0x70]
push 0x470688
push eax
call fcn.00457c2c
lea ecx, [ebp - 0x48]
call fcn.004060f2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41e605
Capabilities:
Create thread

Disassembly:
mov eax, 0x4635e8
call fcn.004571ec
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x14], edi
lea ebx, [esi + 0x14]
jne 0x41e6a2
push str.UIManagerStarted
push edi
push edi
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x10]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x18]
push edi
push eax
push 0x41e4f0
push edi
push edi
call fcn.0045820f
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xc]
add esp, 0x18
cmp eax, dword [ebp - 0x14]
je 0x41e668
cmp eax, edi
je 0x41e662
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], edi
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
push 0x7530
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push 0x46bbe8
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoGetInterfaceAndReleaseStream]
mov eax, dword [ebx]
push dword [esi + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x41e6a2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebx]
push dword [ebp + 8]
mov eax, dword [ebx]
push 0x46bbe8
push ebx
call dword [eax]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x421e00
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x463b20
call fcn.004571ec
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.00421dc2
mov edi, eax
cmp edi, esi
je 0x421e4a
cmp dword [ebp - 0x10], esi
je 0x421e43
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x421ee7
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x421ebb
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.00421e00
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x421ea8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x421e6d
cmp dword [ebp - 0x10], esi
je 0x421eb6
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x421ee7
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x421ece
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x421ee5
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42467d
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x463d93
call fcn.004571ec
sub esp, 0xc40
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x800
lea eax, [ebp - 0x20]
push esi
lea ecx, [edi + 0x20]
push eax
mov dword [ebp - 0x10], esi
call fcn.004049f7
mov ebx, eax
mov ecx, dword [ebx]
and dword [ebp - 4], 0
call fcn.004054cd
lea ecx, [ebp - 0x10]
mov dword [ebx + 8], eax
push ecx
push eax
push 1
push dword [ebp + 0xc]
call sub.msi.dll_MsiRecordSetInteger
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00404a35
lea eax, [ebp - 0x20]
push esi
push eax
lea ecx, [edi + 0x70]
mov dword [ebp - 0x10], esi
call fcn.004049f7
mov ebx, eax
mov ecx, dword [ebx]
mov dword [ebp - 4], 1
call fcn.004054cd
lea ecx, [ebp - 0x10]
mov dword [ebx + 8], eax
push ecx
push eax
push 2
push dword [ebp + 0xc]
call sub.msi.dll_MsiRecordSetInteger
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00404a35
lea eax, [ebp - 0x20]
push esi
push eax
lea ecx, [edi + 0x48]
mov dword [ebp - 0x10], esi
call fcn.004049f7
mov ebx, eax
mov ecx, dword [ebx]
mov dword [ebp - 4], 2
call fcn.004054cd
lea ecx, [ebp - 0x10]
mov dword [ebx + 8], eax
push ecx
push eax
push 3
pop ebx
push ebx
push dword [ebp + 0xc]
call sub.msi.dll_MsiRecordSetInteger
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00404a35
and dword [ebp - 0x44c], 0
lea eax, [ebp - 0x448]
push 0x485ac0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [edi + 0x20]
mov dword [ebp - 4], ebx
call fcn.004054cd
push eax
push str.SELECT_Feature__FROM_ISSetupTypeFeatures_WHERE_ISSetupType____s
push dword [ebp + 8]
lea eax, [ebp - 0x44c]
push eax
call fcn.0040157a
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x14], ebx
je 0x4247a2
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x44c]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, ebx
jne 0x424809
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 0xc4c]
push eax
push 1
push dword [ebp - 0x14]
call sub.msi.dll_MsiRecordSetInteger
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0xc4c]
push eax
lea ecx, [ebp - 0x48]
call fcn.00404c93
lea eax, [ebp - 0x48]
lea ecx, [edi + 0xc]
push eax
mov byte [ebp - 4], 5
call fcn.00424c4e
lea ecx, [ebp - 0x48]
mov dword [eax], 2
mov byte [ebp - 4], 4
call fcn.004060f2
jmp 0x424795
cmp dword [ebp - 0x14], ebx
je 0x424816
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x44c], ebx
pop edi
pop esi
pop ebx
je 0x42482c
push dword [ebp - 0x44c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
leave
ret 8
Function at 0x428520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x428533
xor eax, eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x428567
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0045479b
test al, al
jne 0x42859a
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0041778a
lea eax, [ebp - 0x4c]
push 0x46fcb0
push eax
call fcn.00457c2c
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42859a
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004082db
lea eax, [ebp - 0x48]
push 0x46d3b8
push eax
call fcn.00457c2c
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x4285c3
Capabilities:
Delete file

Disassembly:
mov eax, 0x464595
call fcn.004571ec
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi - 4], 0x469ce0
mov dword [esi], 0x469cdc
mov dword [ebp - 4], 5
call fcn.0041637e
cmp dword [esi + 0xc8], 0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x42860b
lea ecx, [esi + 0xbc]
call fcn.00405599
push eax
call edi
cmp dword [esi + 0xf0], 0
je 0x428622
lea ecx, [esi + 0xe4]
call fcn.00405599
push eax
call edi
mov eax, dword [esi + 0x114]
mov byte [ebp - 4], 4
test eax, eax
je 0x428636
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x110]
mov byte [ebp - 4], 3
test eax, eax
je 0x42864a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0xe4]
mov byte [ebp - 4], 2
call fcn.004060f2
lea ecx, [esi + 0xbc]
mov byte [ebp - 4], 1
call fcn.004060f2
and byte [ebp - 4], 0
lea ecx, [esi + 0x94]
call fcn.004060f2
lea edi, [esi - 4]
neg edi
sbb edi, edi
and edi, esi
mov dword [ebp - 0x10], edi
mov dword [edi], 0x469ce8
mov ecx, edi
mov dword [ebp - 4], 6
call fcn.0041637e
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
call fcn.004060f2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4289dc
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00405599
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x428a13
push 1
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.004082db
lea eax, [ebp - 0x48]
push 0x46d3b8
push eax
call fcn.00457c2c
leave
ret
Function at 0x428ac9
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x464654
call fcn.004571ec
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
lea eax, [ebp + 0x30]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp + 8]
push eax
call fcn.00429276
pop ecx
test al, al
pop ecx
je 0x428b01
and byte [ebp - 4], 0
jmp 0x428be3
lea eax, [ebp - 0x1c]
lea ecx, [ebp + 0x30]
push eax
mov byte [ebp - 4], 2
call fcn.00405caf
push dword [eax + 8]
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00428c34
cmp byte [ebp - 0x18], 0
mov byte [ebp - 4], 2
je 0x428b34
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 0x1c]
call fcn.00404bc1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0x30]
call fcn.00405599
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x428b8d
call edi
mov esi, eax
cmp esi, 3
je 0x428b8d
cmp esi, 2
je 0x428b8d
lea eax, [ebp - 0x1c]
lea ecx, [ebp + 0x30]
push eax
call fcn.00405caf
push dword [eax + 8]
mov ecx, ebx
mov byte [ebp - 4], 4
push esi
call fcn.00428c95
cmp byte [ebp - 0x18], 0
mov byte [ebp - 4], 2
je 0x428b3a
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 0x1c]
call fcn.00404bc1
jmp 0x428b3a
lea ecx, [ebp + 8]
call fcn.00405599
lea ecx, [ebp + 0x30]
mov esi, eax
call fcn.00405599
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x428bdf
lea eax, [ebp - 0x1c]
lea ecx, [ebp + 0x30]
push eax
call fcn.00405caf
push dword [eax + 8]
mov byte [ebp - 4], 5
call edi
push eax
mov ecx, ebx
call fcn.00428c95
cmp byte [ebp - 0x18], 0
mov byte [ebp - 4], 2
je 0x428b8d
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 0x1c]
call fcn.00404bc1
jmp 0x428b8d
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004060f2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.004060f2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x50

Function at 0x428c34
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
mov ebp, ecx
push 0
call fcn.00418eed
pop ecx
test al, al
pop ecx
je 0x428c8e
mov ecx, esi
call fcn.00405599
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov ecx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00405599
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
call edi
test eax, eax
jne 0x428c8e
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebp
call fcn.00428c95
push ebx
mov ecx, esi
call fcn.00405599
push eax
jmp 0x428c6e
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x42c6b5
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x464d60
call fcn.004571ec
sub esp, 0x168
push ebx
push esi
push 0x47dd78
lea eax, [ebp - 0x34]
push dword [ebp + 8]
push eax
call fcn.0040614f
add esp, 0xc
lea ecx, [ebp - 0x174]
xor ebx, ebx
push ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00405599
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp + 8], esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004060f2
cmp esi, 0xffffffff
jne 0x42c70f
mov al, 1
jmp 0x42c73e
lea eax, [ebp - 0x174]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push eax
push esi
call edi
test eax, eax
je 0x42c732
lea eax, [ebp - 0x174]
push eax
push esi
call edi
test eax, eax
jne 0x42c734
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42d088
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x1c]
mov ebp, ecx
call fcn.00418eed
pop ecx
test al, al
pop ecx
je 0x42d0ea
mov ecx, esi
call fcn.00405599
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov ecx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00405599
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
call edi
test eax, eax
jne 0x42d0ea
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push esi
mov ecx, ebp
call fcn.0042cfb1
push ebx
mov ecx, esi
call fcn.00405599
push eax
jmp 0x42d0c4
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x42d0f1
Capabilities:
Delete file

Disassembly:
mov eax, 0x464e80
call fcn.004571ec
push esi
push edi
mov edi, ecx
push dword [ebp + 0x34]
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.0042d088
lea ecx, [ebp + 8]
call fcn.00405599
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
test eax, eax
jne 0x42d151
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x42d151
cmp eax, 2
je 0x42d151
push dword [ebp + 0x34]
mov ecx, edi
push eax
lea eax, [ebp + 8]
push dword [ebp + 0x30]
push eax
call fcn.0042cfb1
lea ecx, [ebp + 8]
call fcn.00405599
push eax
jmp 0x42d11e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004060f2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x30