joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a424
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x462c05
call fcn.004341ac
sub esp, 0x47c
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
call fcn.0040a650
test al, al
je 0x40a457
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x40a5f9
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x487]
mov byte [ebp - 0x488], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x488]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.0040a678
push 1
lea eax, [ebp + 0xb]
pop edi
lea ecx, [ebp - 0x60]
push edi
push eax
lea eax, [ebp - 0x488]
push eax
call fcn.00401a6d
lea eax, [ebp - 0x60]
lea ecx, [esi + 0x90]
push eax
mov dword [ebp - 4], ebx
call fcn.00409658
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00401306
lea eax, [ebp + 0xf]
push edi
push eax
lea ecx, [ebp - 0x88]
push dword [ebp + 0xc]
call fcn.00401a6d
lea eax, [ebp - 0x88]
lea ecx, [esi + 0xb8]
push eax
mov dword [ebp - 4], edi
call fcn.00409658
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00401306
push 0x2c
call fcn.004342c0
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
mov dword [ebp - 4], 2
je 0x40a520
lea ecx, [esi + 0x90]
call fcn.00408f28
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push 4
push esi
push eax
call fcn.0040a609
jmp 0x40a522
xor eax, eax
mov dword [esi + 0xe0], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push ebx
push esi
push 0x40a3ce
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 4
mov dword [ebp + 8], eax
call fcn.004342c0
pop ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
push 0xff
push 0xffffffffffffffff
push ebx
mov dword [eax], ecx
push eax
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x40a5ab
push edi
push ebx
push ebx
lea eax, [ebp - 0x38]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40a59e
cmp dword [ebp - 0x34], 0x8032
jne 0x40a592
mov ecx, dword [esi + 0xe0]
call fcn.0040aa8a
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40a56c
push 0xff
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x14]
jmp 0x40a55e
push dword [ebp - 0x14]
call fcn.004338ba
mov esi, dword [esi + 0xe0]
pop ecx
cmp esi, ebx
pop edi
je 0x40a5ce
lea ecx, [esi + 8]
call fcn.0040a7d4
push esi
call fcn.004338ba
pop ecx
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40a5d8
xor eax, eax
jmp 0x40a5f9
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x18], ebx
setge al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40aa1c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x10]
test ebx, ebx
jne 0x40aa35
xor esi, esi
jmp 0x40aa62
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004349d0
xor eax, eax
mov esi, esp
push eax
push eax
and byte [esi], 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40aa80
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x40aa27
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b6aa
Capabilities:
Get common file path

Disassembly:
mov eax, 0x462d9f
call fcn.004341ac
sub esp, 0x27c
push ebx
push esi
lea eax, [ebp - 0x184]
push edi
xor ebx, ebx
push eax
mov esi, ecx
push 0x104
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x80]
lea ecx, [esi + 8]
push eax
mov dword [ebp - 0x10], ecx
call fcn.0040bd73
mov edi, eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.0040bb95
mov edi, dword [edi + 4]
lea eax, [ebp - 0x288]
push eax
push ebx
lea eax, [ebp - 0x184]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], bl
call fcn.0040a7d4
lea eax, [ebp - 0x288]
push ebx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], 0x469608
mov dword [ebp - 0x1c], 0x469600
call fcn.0040b8c3
mov edi, 0x4695fc
mov dword [ebp - 0x30], edi
cmp byte [esi + 0x28], bl
mov dword [ebp - 4], 2
je 0x40b7c7
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x30]
push eax
call fcn.0040bd73
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040bb95
push dword [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x184]
push eax
call esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0040a7d4
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0040bfc1
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 4
call fcn.0040bb95
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
lea eax, [ebp - 0x184]
push eax
call esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0040a7d4
lea eax, [ebp - 0x184]
lea ecx, [ebp - 0x30]
push eax
call fcn.0040bd2e
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push ebx
push eax
mov ecx, esi
mov dword [esi + 0xc], 0x469608
mov dword [esi + 0x14], 0x469600
call fcn.0040b992
mov dword [esi], edi
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0040a7d4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40f98a
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 edi, eax
cmp edi, 0xffffffff
je 0x40fa9f
cmp byte [ebp + 0xc], bl
jne 0x40fa0a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [edi + 1]
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x40fa9f
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push edi
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 0x40fa95
call fcn.00434610
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.00403dd8
push dword [ebp + 0xc]
jmp 0x40fa87
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [edi + 3]
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x40fa9f
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push edi
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 0x40fa95
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp + 8], eax
add eax, 3
and al, 0xfc
call fcn.004349d0
mov edi, esp
push ebx
push ebx
push dword [ebp + 8]
mov byte [edi], bl
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
call fcn.00434610
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push edi
call fcn.00403dd8
push dword [ebp + 0xc]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x40faa1
push ebx
call esi
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 0x410177
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 0x4101e6
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 0x4101c9
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x4101c9
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x4101c9
mov byte [ebp - 1], 1
jmp 0x4101e6
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x4101e6
cmp byte [ebp - 1], bl
jne 0x4101e6
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x4101d0
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 0x4129e3
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 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412a3a
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x483a14
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412a31
mov byte [0x484a44], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x414054
Capabilities:
Hide graphical window

Disassembly:
push dword [0x484a7c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x414080
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x484a7c]
call esi
push 0
push dword [0x484a74]
call esi
pop esi
ret

Function at 0x414081
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 [0x484a7c]
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.004271df
cmp dword [eax], 1
je 0x4140eb
cmp dword [eax + 4], ebx
je 0x414140
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x414140
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 [0x484a7c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414fed
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
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 0x415174
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push esi
call ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextA]
call esi
push 0x3ef
push dword [ebp + 8]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x415174
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x41505f
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push edi
call esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x415174
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xd0]
push eax
push esi
call fcn.004158f8
push 1
push 0x47bd30
push esi
mov edi, eax
call fcn.004158f8
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 0x415174
test edi, edi
je 0x415174
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 0x4150fe
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 0x415104
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x415114
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x415174
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 0x41706a
Capabilities:
Check os version

Disassembly:
mov eax, 0x463b7d
call fcn.004341ac
sub esp, 0x180
push ebx
lea eax, [ebp - 0x18c]
push esi
mov dword [ebp - 0x14], ecx
push eax
mov dword [ebp - 0x18c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x188], 5
jne 0x4171e7
push 2
pop esi
cmp dword [ebp - 0x184], esi
jne 0x4171e7
cmp byte [ebp - 0xf2], 1
je 0x4171e7
push 0x47be9c
push dword [ebp + 8]
call fcn.00434b50
pop ecx
pop ecx
test eax, eax
push 1
je 0x417282
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp + 8]
call fcn.00402dbc
xor ebx, ebx
mov dword [ebp - 4], esi
cmp dword [ebp - 0x94], ebx
je 0x4171d8
mov al, byte [ebp + 0xb]
push edi
mov byte [ebp - 0x28], al
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xa0]
push eax
push 0x2c
mov byte [ebp - 4], 3
call fcn.00415a72
lea eax, [ebp - 0xd]
push ebx
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0x469580
mov dword [ebp - 0x30], 0x469578
call fcn.00402c39
xor edi, edi
mov byte [ebp - 4], 4
xor esi, esi
cmp dword [ebp - 0x24], ebx
je 0x4171bf
mov eax, dword [ebp - 0x20]
push 0x28
sub eax, dword [ebp - 0x24]
pop ecx
cdq
idiv ecx
cmp edi, eax
jae 0x4171bf
lea eax, [ebp - 0x15]
push 1
push eax
push str.dotnetfxsp1.exe
lea ecx, [ebp - 0xf0]
call fcn.00402dbc
push eax
mov eax, dword [ebp - 0x24]
add eax, esi
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00421a2f
add esp, 0xc
push ebx
lea ecx, [ebp - 0x50]
push ebx
push ecx
mov ecx, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 6
call fcn.0041d04e
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 5
call fcn.004020a2
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 4
call fcn.004020a2
inc edi
add esi, 0x28
jmp 0x417143
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.004020a2
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00407332
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
jmp 0x41727b
xor esi, esi
lea eax, [ebp - 0xd]
push esi
push eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], 0x469580
mov dword [ebp - 0x58], 0x469578
call fcn.00402c39
push 0x47be9c
mov dword [ebp - 4], esi
push dword [ebp + 8]
call fcn.00434b50
pop ecx
test eax, eax
pop ecx
jne 0x417274
lea eax, [ebp + 0xb]
push 1
push eax
push str.dotnetfxsp1.exe
lea ecx, [ebp - 0x50]
call fcn.00402dbc
mov ecx, dword [ebp - 0x14]
push esi
lea eax, [ebp - 0x78]
push 1
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 1
call fcn.0041d04e
mov ebx, eax
lea ecx, [ebp - 0x50]
neg ebx
sbb bl, bl
and byte [ebp - 4], 0
inc bl
call fcn.004020a2
test bl, bl
je 0x417274
mov ecx, dword [ebp - 0x14]
call fcn.0041fda7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.004020a2
xor eax, eax
jmp 0x417283
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.004020a2
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x419b19
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x464093
call fcn.004341ac
sub esp, 0x5c0
and byte [ebp - 0x5cc], 0
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5cb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x5cc]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0xf]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x64]
call fcn.00401a6d
and dword [ebp - 4], 0
mov eax, str..mst
mov ecx, eax
mov dword [ebp - 0x3c], 0x46953c
test ecx, ecx
mov dword [ebp - 0x1c], 0x469534
jne 0x419b8d
mov eax, 0x483918
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004010c6
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.00420186
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00401306
or edi, 0xffffffff
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x1cc]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.00401c5e
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, edi
je 0x419c89
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x419c67
lea eax, [ebp - 0xd]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401a6d
lea eax, [ebp - 0xe]
push 1
push eax
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00401a6d
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 4
call fcn.00420186
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00401306
lea ecx, [ebp - 0x3c]
call fcn.00401c5e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00401306
lea eax, [ebp - 0x1cc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x419be5
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x419c89
push esi
call eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], edi
call fcn.00401306
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41f23d
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x464b22
call fcn.004341ac
sub esp, 0x18c
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, 0x46953c
mov esi, 0x469534
push edi
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x4c], esi
call fcn.00401aef
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
call fcn.0041f444
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00401c5e
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push ecx
push 0x20019
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x41f2c6
lea ecx, [ebp - 0x10]
call fcn.0040d832
mov ecx, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
sete byte [ebp + 0xf]
call fcn.00401306
cmp byte [ebp + 0xf], 0
je 0x41f3fc
and byte [ebp - 0x198], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x197]
and dword [ebp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x104
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0x47d62c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41f346
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.00401aef
mov dword [ebp - 0x18], 1
jmp 0x41f418
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x44]
call fcn.00401a6d
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 4
call fcn.00409658
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401306
mov eax, 0x47d628
mov dword [ebp - 0x44], ebx
mov ecx, eax
mov dword [ebp - 0x24], esi
test ecx, ecx
mov edi, 0x483918
jne 0x41f38f
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.004010c6
mov eax, 0x47d624
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x94], ebx
test ecx, ecx
mov dword [ebp - 0x74], esi
jne 0x41f3b8
mov eax, edi
lea ecx, [ebp - 0x11]
push 0
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.004010c6
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 6
call fcn.00420410
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.00401306
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401306
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x6c]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.0040f6c9
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00401306
cmp dword [ebp - 0x10], 0
je 0x41f433
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