joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489eb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7598
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4fa7e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
test edi, edi
je 0x489f87
mov esi, edi
test edi, edi
je 0x489fa0
mov esi, dword [esi + 8]
mov edi, dword [edi]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x489f18
cmp ecx, dword [esi - 0x10]
jne 0x489f18
lea ebx, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x489f40
mov eax, dword [ecx]
push 1
push dword [esi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x489f9b
mov ecx, dword [esi - 0xc]
lea eax, [ebx + 0x10]
mov dword [ebx + 4], ecx
mov ecx, dword [esi - 0xc]
inc ecx
push ecx
push esi
push ecx
push eax
call fcn.004b466c
add esp, 0x10
lea esi, [ebx + 0x10]
mov dword [ebp + 8], esi
push esi
mov dword [ebp - 4], 0
call fcn.0048e430
test eax, eax
je 0x489f5e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x489f7f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x489ee3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0049da20
call fcn.0049d3c8
int3
Function at 0x489fb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d54a0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x4fa7e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.regsvr32
lea ecx, [ebp - 0x14]
call fcn.004861f0
mov dword [ebp - 4], 0
call fcn.0049dc5a
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x48a008
push 0x80004005
call fcn.00486f80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0xc], 0
mov byte [ebp - 4], 1
jne 0x48a02c
push 3
push 0x4da4e4
lea ecx, [ebp - 0x10]
call fcn.00487e40
push 1
push 0x4eef3c
lea ecx, [ebp - 0x10]
call fcn.00486e20
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00486e20
push 1
push 0x4eef3c
lea ecx, [ebp - 0x10]
call fcn.00486e20
push 0x3c
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.004b4310
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x48], eax
call fcn.00499e50
mov esi, dword [ebp - 0x10]
test eax, eax
mov eax, dword [ebp - 0x14]
mov ecx, str.runas
cmove ecx, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x48a0c9
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x48a0e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x48a10a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x48a3a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5518
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x4fa7e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
call fcn.004874d0
push str.CLSID_
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], 0
call fcn.004861f0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00486e20
push 0xf
push str.InprocServer32
lea ecx, [ebp - 0x14]
call fcn.00486e20
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor bl, bl
test eax, eax
jne 0x48a48f
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x4ee565
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48a486
cmp dword [ebp - 0x1c], 1
jne 0x48a486
mov eax, dword [ebp - 0x18]
inc eax
push eax
call fcn.0049d329
add esp, 4
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x4ee565
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48a47d
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00486b20
mov bl, 1
push esi
call fcn.0049d324
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x14]
or ecx, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48a4b3
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48b0b0
Capabilities:
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d56e8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x4fa7e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push 0x4e3a88
push 4
push edi
push 0x4e3a98
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x48b1ff
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x78]
push eax
call fcn.004abf25
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
call fcn.004abf25
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 1
push eax
call fcn.004abf25
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.004abf25
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
call fcn.004abf25
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
push 3
mov ecx, eax
call fcn.004abf3b
mov eax, dword [ebp + 8]
push edi
push edi
mov ebx, dword [eax]
mov eax, dword [ebx - 0xc]
push eax
push ebx
push edi
push 3
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
test esi, esi
je 0x48b219
push dword [ebp - 0x14]
push esi
push dword [ebp - 0x18]
push ebx
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x38]
push edx
push edx
push edx
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push esi
push eax
call dword [ecx + 0x2c]
test eax, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
js 0x48b1c4
push edi
push eax
call dword [ecx + 0xa4]
mov edi, 1
jmp 0x48b1cb
push eax
call dword [ecx + 0x80]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x48]
push eax
call esi
lea eax, [ebp - 0x58]
push eax
call esi
lea eax, [ebp - 0x68]
push eax
call esi
lea eax, [ebp - 0x28]
push eax
call esi
lea eax, [ebp - 0x78]
push eax
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
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.0049da20
int3
Function at 0x48da40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5b00
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
mov eax, dword [0x4fa7e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x3c
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.004b4310
mov eax, dword [esi + 4]
add esp, 0xc
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x40
mov dword [ebp - 0x40], eax
je 0x48daac
call fcn.00499e50
test eax, eax
mov ecx, str.runas
cmove ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x2c], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x48dae3
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x48db06
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x48db27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x48dc20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x128
push 0
push esi
mov dword [ebp - 4], ebx
call fcn.004b4310
add esp, 0xc
mov dword [esi], 0x128
push esi
push ebx
call sub.KERNEL32.dll_Process32First
mov edi, eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp + 8], eax
test edi, edi
je 0x48dc90
mov edi, dword [ebp - 4]
lea esp, [esp]
cmp eax, dword [esi + 8]
jne 0x48dc78
mov ebx, dword [esi + 0x18]
mov dword [esi], 0x128
test ebx, ebx
jne 0x48dc90
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
mov eax, dword [ebp + 8]
jne 0x48dc70
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48e100
Capabilities:
Check if file exists
Get file attributes
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x48e11f
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
lea eax, [ebp - 4]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x48e138
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push esi
push ebx
mov dword [ebp + 8], 0
call fcn.0049d329
add esp, 4
mov esi, eax
push esi
push ebx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x48e19e
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x4d9d94
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x48e19e
mov edx, dword [ebp + 8]
test edx, edx
je 0x48e19e
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
push esi
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [edx + 0xc]
mov dword [eax], ecx
call fcn.0049d324
add esp, 4
mov eax, 1
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push esi
call fcn.0049d324
add esp, 4
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x48eac0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
mov eax, ecx
mov dword [ebp - 4], eax
test edi, edi
jg 0x48eada
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ebx
dec edi
je 0x48eb1b
push dword [eax + 0x14]
lea eax, [ebp + 0xc]
push 2
push 1
push eax
call fcn.004b5bf3
add esp, 0x10
test eax, eax
je 0x48eb4b
mov ax, word [ebp + 0xc]
mov ecx, 0xffff
cmp ax, cx
je 0x48eb4b
cmp ax, 0xa
je 0x48eb2b
mov word [esi], ax
add esi, 2
mov eax, dword [ebp - 4]
dec edi
jne 0x48eae4
xor eax, eax
mov word [esi], ax
mov eax, ebx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
cmp word [esi - 2], 0xd
jne 0x48eb1b
mov eax, 0xa
mov word [esi - 2], ax
xor eax, eax
mov word [esi], ax
mov eax, ebx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
cmp esi, ebx
jne 0x48eb1b
xor ebx, ebx
pop esi
mov eax, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x48ed80
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5c10
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x4fa7e0]
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 edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x160], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x15c], 0
call fcn.0049dc5a
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x48edf1
push 0x80004005
call fcn.00486f80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 0x160], 1
push eax
call fcn.00486fe0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x154], eax
push 2
push 0x4daeec
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 2
call fcn.00486e20
mov esi, dword [ebp - 0x154]
lea eax, [ebp - 0x150]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea edx, [esi - 0x10]
mov dword [ebp - 0x154], eax
or esi, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x48ee6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x154], 0xffffffff
je 0x48ef98
lea ebx, [ebx]
lea eax, [ebp - 0x124]
push 0x4eefb8
push eax
call fcn.004b5611
add esp, 8
test eax, eax
je 0x48ef6e
lea eax, [ebp - 0x124]
push 0x4daef0
push eax
call fcn.004b5611
add esp, 8
test eax, eax
je 0x48ef6e
test byte [ebp - 0x150], 0x10
je 0x48ef6e
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x158]
call fcn.004861f0
mov byte [ebp - 4], 3
test ebx, ebx
je 0x48ef40
mov eax, dword [ebp - 0x158]
cmp dword [eax - 0xc], 0
jl 0x48ef46
push ebx
push eax
call fcn.004b54c5
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x48ef40
mov eax, dword [ebp - 0x158]
sub ecx, eax
cmp ecx, 0xffffffff
je 0x48ef46
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00486ab0
push 0x5c
mov ecx, edi
call fcn.00486b60
mov eax, dword [ebp - 0x158]
mov ecx, edi
push dword [eax - 0xc]
push eax
call fcn.00486e20
mov eax, dword [ebp - 0x158]
mov esi, 1
mov dword [ebp - 0x15c], esi
jmp 0x48ef4c
mov eax, dword [ebp - 0x158]
mov esi, dword [ebp - 0x15c]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48ef6a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x48ef89
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x48ee80
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x48efb6
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
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 - 0x10]
xor ecx, ebp
call fcn.004b3861
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48f600
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5d28
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x4fa7e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4eef3c
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.004861f0
mov edx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
test edx, edx
jne 0x48f649
xor ecx, ecx
jmp 0x48f659
mov ecx, edx
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48f650
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00486e20
push 1
push 0x4eef3c
lea ecx, [ebp - 0x10]
call fcn.00486e20
push str.open
lea ecx, [ebp - 0x14]
call fcn.004861f0
cmp dword [ebp + 0x14], 0
mov byte [ebp - 4], 2
je 0x48f6a1
call fcn.00499e50
test eax, eax
je 0x48f6a1
push 5
push str.runas
lea ecx, [ebp - 0x14]
call fcn.00487e40
call fcn.004a4af7
xorps xmm0, xmm0
push 0xffffffffffffffff
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], ecx
movdqu xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
or esi, 0xffffffff
test eax, eax
jne 0x48f766
push eax
push eax
lea eax, [ebp + 0xc]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp + 0xc]
lea ecx, [ebp + 0x14]
call fcn.004861f0
push 0x30
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp + 0x14]
mov ecx, esi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48f766
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48f786
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48f7a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x48f7c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48f7e0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48f814
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov edx, dword [ebp + 0xc]
mov cl, 0x20
mov eax, dword [edx]
mov edx, dword [edx + 4]
mov dword [ebp - 8], eax
call fcn.004b5f80
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x48f860
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004ac314
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x48f880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp word [esi], 0
je 0x48f8e2
mov edx, dword [ebp + 8]
movzx eax, word [esi]
lea esi, [esi + 2]
mov dword [ebp - 4], eax
cmp eax, 0xa
jne 0x48f8c2
cmp dx, 0xd
je 0x48f8c2
push dword [edi + 0x14]
lea eax, [ebp + 8]
mov dword [ebp + 8], 0xd
push 2
push 1
push eax
call fcn.004b5df8
add esp, 0x10
push dword [edi + 0x14]
lea eax, [ebp - 4]
push 2
push 1
push eax
call fcn.004b5df8
movzx edx, word [ebp - 4]
add esp, 0x10
cmp word [esi], 0
mov dword [ebp + 8], edx
jne 0x48f894
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4905d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5f13
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4fa7e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [esi + 0x30]
or ebx, 0xffffffff
sub edi, 0x10
mov dword [ebp - 4], 1
mov eax, ebx
lea edx, [edi + 0xc]
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x490621
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0x2c]
sub edx, 0x10
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x49063f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.004902d0
test byte [ebp + 8], 1
je 0x490655
push esi
call fcn.0049d324
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x491de0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6178
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4fa7e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x44], 0
je 0x491f7a
xor esi, esi
test byte [edi + 0x48], 1
je 0x491f33
cmp dword [edi + 0x58], esi
je 0x491f33
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x491f7a
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x491f33
nop
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebx + 4]
cmp dword [eax - 0xc], 0
je 0x491f2e
mov eax, dword [ebx + 8]
cmp dword [eax - 0xc], 0
je 0x491f2e
lea eax, [ebx + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x491f2e
push ebx
mov ecx, edi
call fcn.00490dc0
mov esi, eax
test esi, esi
jne 0x491ea7
lea eax, [ebx + 0xc]
mov ecx, edi
push eax
call fcn.00490980
mov esi, eax
test esi, esi
jne 0x491ea7
mov ecx, edi
call fcn.00490de0
mov esi, eax
test esi, esi
jne 0x491ea7
mov dword [ebx + 0x24], 1
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x491ec8
push eax
call fcn.0048e430
test eax, eax
je 0x491ec8
push dword [ebx]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call ebx
jmp 0x491ece
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [edi + 0x58]
lea eax, [ebp - 0x10]
push eax
call fcn.0048e080
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x491efc
push eax
call fcn.0048e430
test eax, eax
je 0x491ef9
push dword [ebp - 0x10]
call ebx
mov eax, dword [ebp - 0x10]
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x491f1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x491f33
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x491e40
jmp 0x491f33
mov esi, 1
test byte [edi + 0x48], 2
je 0x491f4a
test esi, esi
jne 0x491f4a
lea eax, [edi + 0x4c]
mov ecx, edi
push eax
call fcn.00490980
mov esi, eax
test byte [edi + 0x48], 4
je 0x491f66
test esi, esi
jne 0x491f66
cmp dword [edi + 0x54], esi
je 0x491f66
lea eax, [edi + 0x4c]
mov ecx, edi
push eax
call fcn.004906d0
mov esi, eax
mov eax, dword [edi + 0x44]
push 0
push esi
push 0x8065
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, 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