joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4548a0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x220c]
mov eax, 0x220c
call fcn.004c4b70
push 0xffffffffffffffff
push 0x5c8d5d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x671580]
xor eax, ebp
mov dword [ebp + 0x2208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x1ffe
xor ebx, ebx
lea eax, [ebp + 2]
push ebx
push eax
call fcn.004cf790
add esp, 0xc
mov eax, 0x22
mov word [ebp], ax
test esi, esi
je 0x454a33
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x454a33
push esi
call edi
cmp eax, 0xffa
jge 0x454a33
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp]
push eax
call esi
push 0x655c58
lea eax, [ebp]
push eax
call esi
call fcn.00459e00
push 0x655c5c
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0044ddd0
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00459ec0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0044dd70
test esi, esi
je 0x454a2c
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x454a2c
push 1
push ebx
push ebx
lea eax, [ebp]
push eax
push str.open
push ebx
call edi
cmp eax, 0x20
jbe 0x4549ae
mov ebx, 0x10
mov eax, ebx
jmp 0x454a35
mov dword [ebp - 0x14], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x10], str._programfiles_Internet_Exploreriexplore.exe
nop
push 0x208
lea eax, [ebp + 0x2000]
push 0
push eax
call fcn.004cf790
add esp, 0xc
lea eax, [ebp + 0x2000]
push 0x103
push eax
push dword [ebp + esi*4 - 0x14]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x2000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x454a1b
push 1
push 0
lea eax, [ebp]
push eax
lea eax, [ebp + 0x2000]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x454a25
inc esi
cmp esi, 2
jb 0x4549c0
mov eax, ebx
jmp 0x454a35
lea ebx, [esi + 0x11]
mov eax, ebx
jmp 0x454a35
mov eax, 1
jmp 0x454a35
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2208]
xor ecx, ebp
call fcn.004c4309
lea esp, [ebp + 0x220c]
pop ebp
ret
Function at 0x457080
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c90ed
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x671580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x38]
mov edi, dword [ebp + 0xc]
push esi
push eax
call fcn.00457a00
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.004531c0
xorps xmm0, xmm0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x1c], 0
test eax, eax
jne 0x457104
xor bl, bl
jmp 0x457122
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45711c
cmp eax, 0x80
je 0x45711c
xor bl, bl
jmp 0x457122
mov byte [ebp - 0x14], 1
mov bl, 1
mov byte [ebp - 0x1c], bl
mov byte [ebp - 4], 2
lea eax, [ebp - 0x39]
push eax
push edi
push esi
mov byte [ebp - 0x39], 0
call fcn.00457210
test al, al
jne 0x457150
cmp byte [ebp - 0x39], al
je 0x457150
cmp dword [esi + 0x14], 7
jbe 0x457149
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
test bl, bl
je 0x45716a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x457166
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45718a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x24]
cmp ecx, 7
jbe 0x4571cd
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4571c3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457206
push ecx
push edx
call fcn.004c46ad
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c4309
mov esp, ebp
pop ebp
ret 8
call fcn.004d91aa
int3
Function at 0x458f90
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x671580]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.004cf790
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x459027
cmp dword [esp + 8], 6
jb 0x459027
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.004c4309
add esp, 0x118
ret
Function at 0x459040
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c9425
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x671580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00459e00
push str.wintrust.dll
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0044ddd0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.00459ec0
mov edi, eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4590d3
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4590c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459206
push ecx
push edx
call fcn.004c46ad
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00459e00
push str.crypt32.dll
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.0044ddd0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.00459ec0
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x45915b
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45914e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45920b
push ecx
push edx
call fcn.004c46ad
mov eax, dword [ebp - 0x10]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4591f4
test eax, eax
je 0x4591f4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push edi
call esi
push str.CryptCATAdminAcquireContext
push edi
mov dword [ebx + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push edi
mov dword [ebx + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push edi
mov dword [ebx + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push edi
mov dword [ebx + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push edi
mov dword [ebx + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push edi
mov dword [ebx + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push edi
mov dword [ebx + 0x1c], eax
call esi
push str.WinVerifyTrust
push edi
mov dword [ebx + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [ebx + 0x24], eax
call esi
mov dword [ebx + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004d91aa
call fcn.004d91aa
int3
Function at 0x45ad30
Capabilities:
Delete directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c97bd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1c
mov eax, dword [0x671580]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x45ad79
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x45ae34
mov dword [ebp - 4], 2
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 3
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.00460750
test al, al
je 0x45ae38
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x45ae38
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x45ae19
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45ae0f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45aeaf
push ecx
push edx
call fcn.004c46ad
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0xffffffff
mov al, 1
jmp 0x45ae92
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x45ae75
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45ae6b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45aeaf
push ecx
push edx
call fcn.004c46ad
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c4309
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004d91aa
int3
Function at 0x45aec0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c97fd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x671580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x45aef6
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x45afb5
mov dword [ebp - 4], 2
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], al
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00460750
test al, al
je 0x45afb9
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x45afb9
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x45af9a
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45af90
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b02d
push ecx
push edx
call fcn.004c46ad
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
mov al, 1
jmp 0x45b013
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x45aff6
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45afec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b02d
push ecx
push edx
call fcn.004c46ad
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c4309
mov esp, ebp
pop ebp
ret
call fcn.004d91aa
int3

Function at 0x45b050
Capabilities:
Delete file

Disassembly:
mov ecx, dword [esp + 4]
jmp fcn.00460110

Function at 0x45b8b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x671580]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.004c4317
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.004cf790
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x45b90c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.004c4309
add esp, 0x120
ret
Function at 0x45d080
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x661d78
push 0x4cece0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x671580]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x45d0e9
xor eax, eax
jmp 0x45d25f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45d22a
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x45d22a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45d22a
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x45d22a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45d22a
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x45d22a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45d22a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x45d22a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45d22a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x45d22a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x45d22a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x45d213
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x45d200
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x45d210
jmp 0x45d22a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0045d286
test ebx, ebx
jne 0x45d25d
test esi, esi
je 0x45d24f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x45d25d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004c4309
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45f9a0
Capabilities:
Set file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca20d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [0x671580]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp esi, 0xffffffff
jne 0x45f9ee
xor al, al
jmp 0x45fad4
and esi, 0xffffb1af
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x45f9fe
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x45fa11
mov al, 1
jmp 0x45fad4
mov dword [ebp - 4], 2
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 3
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.00460750
test al, al
je 0x45fa75
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push esi
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [ebp - 0x2d], 1
test eax, eax
jne 0x45fa79
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x45fab6
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45faac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45faf2
push ecx
push edx
call fcn.004c46ad
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c4309
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004d91aa
int3
Function at 0x45fb00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca24d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [0x671580]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x45fb4a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45fc11
mov dword [ebp - 4], 2
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 3
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.00460750
test al, al
je 0x45fbb9
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x45fbf6
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45fbec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45fc31
push ecx
push edx
call fcn.004c46ad
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c4309
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004d91aa
int3
Function at 0x460110
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca335
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x671580]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x46015a
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
jne 0x4602e2
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x460175
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0044ddd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0045fb00
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0044dd70
cmp dword [ebp - 0x34], 0xffffffff
je 0x4602de
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x4601b3
mov ecx, dword [esi]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0044ddd0
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x2c]
call fcn.0045f9a0
mov byte [ebp - 0x2d], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0044dd70
cmp byte [ebp - 0x2d], 0
je 0x4602de
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x4601f3
mov eax, dword [esi]
push eax
call edi
test eax, eax
jne 0x4602e2
mov dword [ebp - 4], 4
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 5
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.00460750
test al, al
je 0x460251
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call edi
test eax, eax
je 0x460251
mov byte [ebp - 0x2d], 1
jmp 0x460281
cmp dword [esi + 0x14], 7
jbe 0x460259
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x4c]
call fcn.0044ddd0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 0x34]
call fcn.0045f9a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4c]
call fcn.0044dd70
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 8
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x4602be
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4602b4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x460302
push ecx
push edx
call fcn.004c46ad
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x2d]
jmp 0x4602e4
xor al, al
jmp 0x4602e4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c4309
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004d91aa
int3