joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bdf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b034
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x596634]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.uninstnew
mov dword [ebp - 0x42c], 0
call fcn.0042e1d0
mov ecx, eax
call fcn.004241b0
mov dword [ebp - 4], 0
call fcn.004126e0
mov ecx, eax
test ecx, ecx
je 0x44c04d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], 1
push 0x208
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004dcfa0
add esp, 0xc
mov dword [ebp - 0x424], 0x104
lea eax, [ebp - 0x424]
mov dword [ebp - 0x430], 1
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x430]
push eax
push str.tagID
push str.SOFTWARELudashi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x44bef2
cmp ax, word [ebp - 0x218]
je 0x44bef2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44bed0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.0040de70
lea eax, [ebp - 0x428]
push eax
call fcn.0042e1d0
mov ecx, eax
call fcn.00424190
mov edx, dword [ebp - 0x428]
or esi, 0xffffffff
mov dword [ebp - 0x42c], 0
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44bf36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 1
call fcn.004126e0
mov ecx, eax
test ecx, ecx
je 0x44c057
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], 2
push 0x208
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004dcfa0
add esp, 0xc
mov dword [ebp - 0x430], 0x104
lea eax, [ebp - 0x430]
mov dword [ebp - 0x434], 1
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x434]
push eax
push str.softid
push str.SOFTWARELudashi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x44bff2
cmp ax, word [ebp - 0x420]
je 0x44bff2
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44bfd0
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.0040de70
lea eax, [ebp - 0x424]
push eax
call fcn.0042e1d0
mov ecx, eax
call fcn.00424180
mov edx, dword [ebp - 0x424]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x44c027
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0042e1d0
mov ecx, eax
call fcn.00422150
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00496d46
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040af60
push 0x80004005
call fcn.0040af60
int3
Function at 0x44c980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b0a6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x596634]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x44ca2c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x44ca2c
call fcn.004308a0
mov edi, eax
jmp 0x44cb4b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x44ca4f
call fcn.004308a0
jmp 0x44cb3e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x44ca6d
call fcn.004308a0
jmp 0x44cb3e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x44ca8e
mov edi, 0x8007000e
jmp 0x44cb40
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x44cb84
jb 0x44caac
cmp eax, 0xffffffff
ja 0x44cb84
cmp eax, 0x400
jbe 0x44cac1
push eax
lea ecx, [ebp - 0x418]
call fcn.0044b580
jmp 0x44cae7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x44cae7
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x44cafe
mov edi, 0x8007000e
jmp 0x44cb40
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x44cb1e
call fcn.004308a0
jmp 0x44cb3e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0044c7e0
mov edi, eax
test esi, esi
je 0x44cb4b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x44cb64
lea ecx, [ebp - 0x418]
call fcn.0044b8d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00496d46
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.0040af60
int3
Function at 0x453e80
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x596634]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x453ef8
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496d46
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00496d46
mov esp, ebp
pop ebp
ret
Function at 0x454da0
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5814b0
push 0x4de540
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a14
call fcn.00496d60
mov eax, dword [0x596634]
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 dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a2c], esi
test esi, esi
je 0x454f74
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x454df6
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x454f74
mov dword [ebp - 4], 0
call fcn.00453e80
mov dword [ebp - 4], 0xfffffffe
jmp 0x454e3c
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.004dcfa0
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.004dcfa0
add esp, 0x18
lea eax, [ebp - 0x2a28]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x454f74
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.0050b03e
lea eax, [ebp - 0x224]
push eax
call fcn.004e8d64
add esp, 0x10
xor edi, edi
cmp dword [ebp - 0x2a28], edi
jbe 0x454f74
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + edi*4 - 0x2a24]
call fcn.00454630
add esp, 0xc
test eax, eax
je 0x454f67
lea eax, [ebp - 0xa24]
push eax
call fcn.004e8d64
add esp, 4
lea ecx, [ebp - 0xa24]
lea eax, [ebp - 0x224]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x454f28
test dx, dx
je 0x454f24
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x454f28
add eax, 4
add ecx, 4
test dx, dx
jne 0x454f02
xor eax, eax
jmp 0x454f2d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x454f67
push dword [ebp + edi*4 - 0x2a24]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x454f53
push 0
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xa24]
push eax
push str.Kill_process:__s
call fcn.00456fb0
add esp, 8
inc edi
cmp edi, dword [ebp - 0x2a28]
jb 0x454ec4
xor eax, eax
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.00496d46
mov esp, ebp
pop ebp
ret 4
Function at 0x454fa0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5814f0
push 0x4de540
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x596634]
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 dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 4], 0
test esi, esi
je 0x455114
cmp word [esi], 0
je 0x455114
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x455000
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x455114
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x455114
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.004dcfa0
push esi
push str.__s_
push 0x3ff
lea eax, [ebp - 0x81c]
push eax
call fcn.00455140
push 0x3c
push 0
lea eax, [ebp - 0x858]
push eax
call fcn.004dcfa0
add esp, 0x28
mov dword [ebp - 0x858], 0x3c
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x84c], 0x550938
mov dword [ebp - 0x844], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x854], 0x440
cmp dword [ebp + 0x14], 0
je 0x4550b3
push esi
call fcn.00474780
add esp, 4
test eax, eax
je 0x455114
lea eax, [ebp - 0x858]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x4550db
cmp dword [ebp + 0x18], 0
je 0x4550db
push dword [ebp + 0x20]
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x4550f0
test esi, esi
je 0x455100
push edi
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test esi, esi
je 0x455100
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x45511d
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
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.00496d46
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x4551c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4551dc
pop edi
pop ebp
ret 4
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret 4
Function at 0x455330
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x596634]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x4553f1
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004dcfa0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4553db
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.004dcfa0
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x5588e4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..bat
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x4553f1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496d46
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.004dcfa0
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.0040b580
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.004fa2ba
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x455451
cmp eax, 0x207
ja 0x455451
jne 0x455458
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x455461
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00496d46
mov esp, ebp
pop ebp
ret
Function at 0x455990
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x45599c
pop ebp
ret
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004559b0
Function at 0x4559b0
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x596634]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x455bc3
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x455bc3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4559e3
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x455bc3
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.004dcfa0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004dcfa0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call ebx
push 0x558958
lea eax, [ebp - 0x414]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x455a64
test al, 1
je 0x455a64
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x455ba9
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x455b9d
nop dword [eax]
test byte [ebp - 0x664], 0x10
je 0x455b18
cmp word [ebp - 0x638], 0x2e
jne 0x455ad7
mov ax, word [ebp - 0x636]
test ax, ax
je 0x455b82
cmp ax, 0x2e
jne 0x455ad7
cmp word [ebp - 0x634], 0
je 0x455b82
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004dcfa0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.004559b0
add esp, 4
jmp 0x455b80
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004dcfa0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x455b6f
test al, 1
je 0x455b6f
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x455aa0
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496d46
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00496d46
mov esp, ebp
pop ebp
ret
Function at 0x455be0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x455c38
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x455c38
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x455c18
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x455c38
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x455c33
test al, 0x10
je 0x455c33
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x455c38
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x455f30
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x455f67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_succ__error_code_d
call fcn.00456fb0
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x455f5f
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x455faa
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x455faa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_succ__error_d
call fcn.00456fb0
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x455fc0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b996
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x596634]
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 ebx, dword [ebp + 8]
test ebx, ebx
jne 0x455ffc
xor eax, eax
jmp 0x456202
cmp word [ebx], 0
je 0x455ff5
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456007
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x455ff5
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004dcfa0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x5509d4
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x456062
test al, 1
je 0x456062
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 0x5c
mov dword [ebp - 0x428], 0
mov word [ebp - 0x42c], ax
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x884]
call fcn.004314e0
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4561b2
cmp dword [ebp - 0x424], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x456111
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x456111
cmp word [ebp - 0x858], 0x2e
jne 0x456111
mov ax, word [ebp - 0x856]
test ax, ax
je 0x4560ec
cmp ax, 0x2e
jne 0x456111
cmp word [ebp - 0x854], 0
jne 0x456111
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x45621e
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x4561a4
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x884]
call fcn.00431da0
cmp dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
je 0x45614c
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x45614c
mov esi, dword [ebp - 0x888]
push esi
call fcn.00455fc0
jmp 0x456158
mov esi, dword [ebp - 0x888]
push esi
call fcn.00455f30
mov eax, dword [ebp - 0x428]
add esp, 4
test eax, eax
jne 0x456169
xor edi, edi
jmp 0x456188
cmp dword [ebp - 0x424], 0
jne 0x456176
xor edi, edi
jmp 0x456188
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4561a4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x4560a9
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x4561d8
cmp eax, 0xffffffff
je 0x4561d8
push eax
call esi
mov dword [ebp - 0x428], 0
push ebx
call fcn.004559b0
mov eax, dword [ebp - 0x428]
add esp, 4
mov dword [ebp - 0x424], 0
test eax, eax
je 0x4561fd
cmp eax, 0xffffffff
je 0x4561fd
push eax
call esi
mov eax, 1
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.00496d46
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
jmp 0x4561d8
Function at 0x457ee0
Capabilities:
Check if file exists
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
lea esi, [ecx + 0x2c]
mov ecx, dword [eax]
mov eax, dword [esi]
push edi
lea edx, [ecx - 0x10]
lea edi, [eax - 0x10]
cmp edx, edi
je 0x457f44
cmp dword [edi + 0xc], 0
push ebx
lea ebx, [edi + 0xc]
jl 0x457f36
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x457f36
push edx
call fcn.004124d0
add esp, 4
mov dword [ebp + 8], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x457f2f
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
jmp 0x457f43
push dword [ecx - 0xc]
push ecx
mov ecx, esi
call fcn.0040de70
mov eax, dword [esi]
pop ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x457faa
mov eax, dword [esi]
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
cmp dword [eax - 0xc], 0
je 0x457faa
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x457f91
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jl 0x457faa
jg 0x457fa2
cmp dword [ebp - 8], 0x40000000
jbe 0x457faa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4