joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4041c9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov eax, dword [eax]
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x4042e5
cmp byte [ebp + 0xc], bl
jne 0x40427d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [esi + 1]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x4042e5
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x4042db
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00435c30
mov eax, esp
push esi
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov word [eax], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 8]
call fcn.00434ff7
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.004051a5
push dword [ebp + 0xc]
jmp 0x4042cd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [esi + 3]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x4042e5
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x4042db
call fcn.00434ff7
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.004051a5
push dword [ebp + 0xc]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x4042e7
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x404fe6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 1], bl
je 0x405055
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jb 0x405038
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x405038
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x405038
mov byte [ebp - 1], 1
jmp 0x405055
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x405055
cmp byte [ebp - 1], bl
jne 0x405055
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x40503f
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x409fb7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x409fdd
push ebx
push ebx
call fcn.0043663c
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x409ff5
push ebx
push ebx
call fcn.0043663c
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
jne 0x40a00c
push ebx
push ebx
call fcn.0043663c
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [esi], eax
jne 0x40a022
push ebx
push ebx
call fcn.0043663c
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.00436010
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40a3c9
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x464ba6
call fcn.0043540c
sub esp, 0x828
push ebx
push esi
push dword [ebp + 8]
mov ebx, ecx
call fcn.0040a5c2
test al, al
je 0x40a3fc
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x40a56b
push edi
xor esi, esi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x832]
mov word [ebp - 0x834], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x834]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.0040a5ec
lea eax, [ebp - 0x834]
lea edi, [ebx + 0x90]
test eax, eax
lea eax, [ebp - 0x834]
jne 0x40a443
mov eax, 0x486618
push eax
mov ecx, edi
call fcn.00401c3a
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 0xb8]
cmp eax, esi
jne 0x40a45d
mov eax, 0x486618
push eax
call fcn.00401c3a
push 0x2c
call fcn.00435520
pop ecx
mov dword [ebp + 8], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x40a48c
mov ecx, edi
call fcn.00408f42
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push 4
push ebx
push eax
call fcn.0040a57b
jmp 0x40a48e
xor eax, eax
mov dword [ebx + 0xe0], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
push esi
push ebx
push 0x40a373
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 4
mov dword [ebp - 0x10], edi
call fcn.00435520
pop ecx
mov dword [eax], edi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
push esi
push eax
mov dword [ebp + 8], eax
push 1
call edi
cmp eax, 1
mov dword [ebp + 0xc], eax
jne 0x40a51d
push 1
push esi
push esi
lea eax, [ebp - 0x34]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40a50e
cmp dword [ebp - 0x30], 0x8032
jne 0x40a502
mov ecx, dword [ebx + 0xe0]
call fcn.0040a951
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40a4db
push 0xff
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push 1
jmp 0x40a4d1
push dword [ebp + 8]
call fcn.004347fc
mov ebx, dword [ebx + 0xe0]
pop ecx
cmp ebx, esi
pop edi
je 0x40a540
lea ecx, [ebx + 8]
call fcn.0040a754
push ebx
call fcn.004347fc
pop ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x40a54a
xor eax, eax
jmp 0x40a56b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x14], esi
setge al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40a927
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
xor edi, edi
mov eax, dword [esp + 0xc]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a94c
call esi
call esi
inc edi
cmp edi, 0x64
jl 0x40a931
pop edi
xor eax, eax
pop esi
ret
Function at 0x40b548
Capabilities:
Get common file path

Disassembly:
mov eax, 0x464d27
call fcn.0043540c
sub esp, 0x45c
push ebx
push esi
lea eax, [ebp - 0x260]
push edi
xor ebx, ebx
push eax
mov esi, ecx
push 0x104
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x58]
lea ecx, [esi + 8]
push eax
mov dword [ebp - 0x10], ecx
call fcn.0040ba59
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x468]
push ecx
push ebx
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x58]
call fcn.0040a754
lea eax, [ebp - 0x468]
push ebx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], 0x46b648
mov dword [ebp - 0x1c], 0x46b640
call fcn.0040a6c7
mov edi, 0x46b63c
mov dword [ebp - 0x30], edi
cmp byte [esi + 0x28], bl
mov dword [ebp - 4], 1
je 0x40b636
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x30]
push eax
call fcn.0040ba59
push dword [eax + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x260]
push eax
call esi
lea ecx, [ebp - 0x58]
call fcn.0040a754
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0040bca7
push dword [eax + 0x10]
lea eax, [ebp - 0x260]
push eax
call esi
lea ecx, [ebp - 0x58]
call fcn.0040a754
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x20], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push ebx
push eax
mov ecx, esi
mov dword [esi + 0xc], 0x46b648
mov dword [esi + 0x14], 0x46b640
call fcn.0040b732
mov dword [esi], edi
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0040a754
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40f664
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov eax, dword [eax]
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f780
cmp byte [ebp + 0xc], bl
jne 0x40f718
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [esi + 1]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x40f780
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x40f776
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00435c30
mov eax, esp
push esi
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov word [eax], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 8]
call fcn.00434ff7
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00404e49
push dword [ebp + 0xc]
jmp 0x40f768
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [esi + 3]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x40f780
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x40f776
call fcn.00434ff7
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.00404e49
push dword [ebp + 0xc]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x40f782
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40fd98
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 1], bl
je 0x40fe07
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jb 0x40fdea
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x40fdea
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x40fdea
mov byte [ebp - 1], 1
jmp 0x40fe07
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x40fe07
cmp byte [ebp - 1], bl
jne 0x40fe07
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x40fdf1
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x41262b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412682
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x486778
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412679
mov byte [0x4887a4], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x414021
Capabilities:
Hide graphical window

Disassembly:
push dword [0x4887dc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41404d
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x4887dc]
call esi
push 0
push dword [0x4887d4]
call esi
pop esi
ret

Function at 0x41404e
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x2c]
push edi
push eax
push dword [0x4887dc]
call esi
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push eax
push ebx
call edi
push eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.004278b0
cmp dword [eax], 1
je 0x4140b8
cmp dword [eax + 4], ebx
je 0x41410d
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41410d
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0x46
push eax
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [0x4887dc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414ff2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ee
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
je 0x41517f
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push esi
call ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x150]
push 0xff
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
call esi
push 0x3ef
push dword [ebp + 8]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x41517f
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x41506a
lea eax, [ebp - 0x150]
push 0xff
push eax
push edi
call esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x41517f
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x150]
push eax
push esi
call fcn.00415918
push 1
push 0x47e178
push esi
mov edi, eax
call fcn.00415918
push esi
push dword [ebp - 8]
movzx ebx, ax
call dword [sym.imp.USER32.dll_ReleaseDC]
and dword [ebp + 8], 0
movzx esi, di
add esi, ebx
shr edi, 0x10
test esi, esi
mov dword [ebp - 0x14], edi
je 0x41517f
test edi, edi
je 0x41517f
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x20]
cmp eax, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
jge 0x415109
mov edi, esi
push 1
sub edi, eax
add edi, ebx
add esi, ebx
pop ebx
mov dword [ebp - 4], esi
mov dword [ebp + 8], ebx
jmp 0x41510f
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x41511f
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x41517f
mov esi, dword [sym.imp.USER32.dll_GetWindowPlacement]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x2c
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x34]
push ebx
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
sub eax, edi
push dword [ebp - 4]
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x2c
push eax
push dword [ebp - 8]
call esi
mov ecx, dword [ebp - 0x34]
push 1
push dword [ebp - 0xc]
lea eax, [edi + edi]
sub ecx, eax
push dword [ebp - 4]
push dword [ebp - 0x30]
push ecx
push dword [ebp - 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419ebc
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x465fb3
call fcn.0043540c
sub esp, 0xad4
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xade]
mov word [ebp - 0xae0], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xae0]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0xae0]
mov edi, 0x46b57c
mov esi, 0x46b574
mov dword [ebp - 0x68], edi
test eax, eax
mov dword [ebp - 0x48], esi
lea eax, [ebp - 0xae0]
jne 0x419f20
mov eax, 0x486618
lea ecx, [ebp - 0xf]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.004010c6
mov eax, str..mst
mov dword [ebp - 4], ebx
mov ecx, eax
mov dword [ebp - 0x3c], edi
test ecx, ecx
mov dword [ebp - 0x1c], esi
jne 0x419f47
mov eax, 0x486618
lea ecx, [ebp - 0xd]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004010c6
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x68]
push eax
mov byte [ebp - 4], 1
call fcn.004209bf
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00401306
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x419f80
mov eax, 0x46b598
lea ecx, [ebp - 0x2e0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x41a078
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x41a052
lea eax, [ebp - 0xae0]
mov dword [ebp - 0x3c], edi
test eax, eax
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0xae0]
jne 0x419fd0
mov eax, 0x486618
lea ecx, [ebp - 0xd]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004010c6
lea eax, [ebp - 0x2b4]
mov byte [ebp - 4], 3
test eax, eax
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x70], esi
lea eax, [ebp - 0x2b4]
jne 0x41a000
mov eax, 0x486618
lea ecx, [ebp - 0xe]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x90]
call fcn.004010c6
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 4
call fcn.004209bf
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.00401306
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x41a03f
mov eax, 0x46b598
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00401306
lea eax, [ebp - 0x2e0]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x419f9d
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, ebx
je 0x41a078
push dword [ebp - 0x14]
call eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00401306
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41fa09
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4669de
call fcn.0043540c
sub esp, 0x290
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x12]
mov ebx, 0x46b57c
mov esi, 0x46b574
push edi
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 1
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x24], esi
call fcn.00401af4
push dword [ebp + 0xc]
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push eax
call fcn.0041fbe3
mov eax, dword [eax + 8]
pop ecx
cmp eax, edi
pop ecx
jne 0x41fa66
mov eax, 0x46b598
push 0x20019
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.004139af
neg eax
sbb al, al
lea ecx, [ebp - 0x6c]
inc al
mov byte [ebp + 0xf], al
call fcn.00401306
cmp byte [ebp + 0xf], 0
je 0x41fb9b
mov word [ebp - 0x29c], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x29a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1c]
and dword [ebp + 0xc], 0
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0x47fe88
mov dword [ebp - 0x1c], 0x104
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41fafb
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.00401af4
mov dword [ebp - 0x18], 1
jmp 0x41fbb7
lea eax, [ebp - 0x29c]
mov edi, 0x486618
test eax, eax
lea eax, [ebp - 0x29c]
jne 0x41fb12
mov eax, edi
push eax
lea ecx, [ebp - 0x44]
call fcn.00401c3a
mov eax, 0x47fe84
mov dword [ebp - 0x6c], ebx
mov ecx, eax
mov dword [ebp - 0x4c], esi
test ecx, ecx
jne 0x41fb2e
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.004010c6
mov eax, 0x47e138
mov byte [ebp - 4], 3
mov ecx, eax
mov dword [ebp - 0x94], ebx
test ecx, ecx
mov dword [ebp - 0x74], esi
jne 0x41fb57
mov eax, edi
lea ecx, [ebp - 0x11]
push 0
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.004010c6
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x44]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 4
call fcn.00420c49
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 3
call fcn.00401306
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00401306
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x44]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.0040f3d4
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00401306
cmp dword [ebp - 0x10], 0
je 0x41fbd2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret