joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002bc90
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f3b40
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x101341c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push esi
push edi
push str.delet_key:__s___s
call fcn.10022d40
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x10], 0
or eax, 0x1000b
push ecx
push eax
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x1002bd44
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.1001d140
mov ecx, eax
test ecx, ecx
je 0x1002bdb0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
push esi
push edi
lea eax, [ebp + 0x14]
mov dword [ebp - 4], ebx
push str.delet_key:__s___s_ok
push eax
call fcn.10007280
mov esi, dword [ebp + 0x14]
push esi
push 0x101032a0
call fcn.10022d40
add esp, 0x18
jmp 0x1002bd83
call fcn.1001d140
mov ecx, eax
test ecx, ecx
je 0x1002bdba
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
push ebx
push esi
push edi
lea eax, [ebp + 0x14]
mov dword [ebp - 4], 1
push str.delet_key:__s___s__d
push eax
call fcn.10007280
mov esi, dword [ebp + 0x14]
push esi
push 0x101032a0
call fcn.10022d40
add esp, 0x1c
or eax, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002bd9e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10003ad0
push 0x80004005
call fcn.10003ad0
int3

Function at 0x1002cea0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push dword [ebp + 0x18]
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002cf07
mov edx, dword [ebp + 0x14]
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002ced5
sub eax, esi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002cf70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f3cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x101341c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.1001d140
mov ecx, eax
test ecx, ecx
je 0x1002d051
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push edi
push str.nProgress_d_n
push eax
mov dword [ebp - 4], 0
call fcn.10007280
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp edi, 0x64
mov dword [ebp - 0x20], vtable.mf_bind_t_1_class_CUninstaller__class_CUninstaller___void__int_.0
mov eax, 0x63
mov dword [ebp - 0x1c], 0x1002d070
cmovl eax, edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
call fcn.1001d440
add esp, 4
mov dword [ebp - 0x20], vtable.mf_bind_t_1_class_CUninstaller__class_CUninstaller___void__int_.0
mov dword [ebp - 0x1c], 0
add esi, 0xfffffff0
mov dword [ebp - 0x18], 0
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002d03d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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
push 0x80004005
call fcn.10003ad0
int3
Function at 0x1002e900
Capabilities:
Delete registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x4f8
mov eax, dword [0x101341c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.1002cc60
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x100
push eax
push str.7D0018B7_A788_9AEF_194C_BF625648C610
push str.CLSID
push SysReAllocString
call fcn.1002bc90
push 0x258
lea eax, [ebp - 0x4b8]
push 0
push eax
call fcn.10070b50
push 0x256
lea eax, [ebp - 0x25e]
push 0
push eax
call fcn.10070b50
add esp, 0x28
lea esi, [ebp - 0x260]
mov edx, str.0Uninstaller
mov cl, byte [edx]
lea edx, [edx + 1]
movzx eax, cl
lea esi, [esi + 2]
mov word [esi - 2], ax
test cl, cl
jne 0x1002e982
xor edi, edi
nop word [eax + eax]
mov edx, dword [edi + 0x10102f3c]
lea esi, [ebp - 0x4b8]
nop dword [eax]
mov cl, byte [edx]
lea edx, [edx + 1]
movzx eax, cl
lea esi, [esi + 2]
mov word [esi - 2], ax
test cl, cl
jne 0x1002e9b0
cmp dword [0x10134038], 0
je 0x1002eaab
push str.GetNativeSystemInfo
push 0x1010243c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
test eax, eax
je 0x1002eaa1
xorps xmm0, xmm0
mov dword [ebp - 0x4d0], 0
lea ecx, [ebp - 0x4f0]
movaps xmmword [ebp - 0x4f0], xmm0
push ecx
movaps xmmword [ebp - 0x4e0], xmm0
call eax
mov ax, word [ebp - 0x4f0]
cmp ax, 9
je 0x1002ea97
cmp ax, 6
je 0x1002ea97
cmp ax, 0xc
je 0x1002ea97
push str.IsWow64Process2
push 0x10102888
mov dword [ebp - 0x4c0], 0
mov dword [ebp - 0x4bc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
mov esi, eax
test esi, esi
je 0x1002ea8e
lea eax, [ebp - 0x4bc]
push eax
lea eax, [ebp - 0x4c0]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x1002ea8e
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0x4bc], cx
sete al
mov dword [0x1013a604], eax
jmp 0x1002eaa1
xor eax, eax
mov dword [0x1013a604], eax
jmp 0x1002eaa1
mov dword [0x1013a604], 1
mov dword [0x10134038], 0
mov eax, dword [0x1013a604]
neg eax
sbb eax, eax
and eax, 0x100
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x4b8]
push eax
push SysReAllocString
call fcn.1002bc90
add edi, 4
add esp, 0x10
cmp edi, 0xc
jb 0x1002e9a0
call fcn.1002cc60
test al, al
mov dword [ebp - 0x4bc], 0
lea eax, [ebp - 0x4bc]
push eax
je 0x1002eb02
push 0x1010b
jmp 0x1002eb07
push 0x1000b
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002eb3b
push str.7D0018B7_A788_9AEF_194C_BF625648C610
push eax
push dword [ebp - 0x4bc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
push dword [ebp - 0x4bc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100464aa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x1002ec90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x101341c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.1002cc60
test al, al
je 0x1002ed50
push 0xf013f
push str.Uninstaller_Shell_Extension
push 0
push str.CLSID7D0018B7_A788_9AEF_194C_BF625648C610
push SysReAllocString
call fcn.1002cea0
add esp, 0x14
lea eax, [ebp - 0x260]
push 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push str.CLSID7D0018B7_A788_9AEF_194C_BF625648C610InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002ee45
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x25c]
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x1002ed10
push str.UninstallerShell64.dll
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x25c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002ed40
jmp 0x1002edeb
push 0xf003f
push str.Uninstaller_Shell_Extension
push 0
push str.CLSID7D0018B7_A788_9AEF_194C_BF625648C610
push SysReAllocString
call fcn.1002cea0
add esp, 0x14
mov dword [ebp - 0x260], 0
lea eax, [ebp - 0x260]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.CLSID7D0018B7_A788_9AEF_194C_BF625648C610InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002ee45
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x25c]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x1002edb1
push str.UninstallerShell.dll
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x25c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002ede0
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x25c]
push eax
push 1
push 0
push 0
push dword [ebp - 0x260]
call esi
push 0x14
push str.Apartment
push 1
push 0
push str.ThreadingModel
push dword [ebp - 0x260]
call esi
push dword [ebp - 0x260]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100464aa
mov esp, ebp
pop ebp
ret
push eax
push str.reg_shell_ex_err:__d
call fcn.10022d40
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop esi
call fcn.100464aa
mov esp, ebp
pop ebp
ret
Function at 0x1002f2f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.100464c0
mov eax, dword [0x101341c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2004]
push edi
mov edi, dword [ebp + 0xc]
push 0x2000
push 0
push eax
call fcn.10070b50
add esp, 0xc
lea eax, [ebp - 0x200c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x1002f397
cmp eax, 0x1fff
ja 0x1002f397
lea ecx, [ebp - 0x2004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1002f397
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2008]
push eax
push 0x100fd860
lea eax, [ebp - 0x2004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1002f397
mov eax, dword [ebp - 0x2008]
movzx eax, word [eax + 0xa]
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100464aa
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.100464aa
mov esp, ebp
pop ebp
ret 8

Function at 0x1002f710
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x101341c4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10070b50
add esp, 0xc
mov dword [ebp - 0x210], 1
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x1002f797
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1002f7c5
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002f7a0
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x20e], 0x5c
je 0x1002f7c5
mov dword [ebp + ecx*2 - 0x20c], 0x5c
push 0x103
push str.Internet_ExplorerIEXPLORE.EXE
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1009f569
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x210]
add esp, 0x10
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.1002f2f0
cmp dword [ebp - 0x210], 7
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.100464aa
mov esp, ebp
pop ebp
ret 4
Function at 0x1002f820
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x101341c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x101340e0]
test ecx, ecx
js 0x1002f854
xor eax, eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100464aa
mov esp, ebp
pop ebp
ret 4
push 0x118
xorps xmm0, xmm0
mov dword [0x101340e0], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x124], 0
push 0
push eax
movups xmmword [ebp - 0x144], xmm0
movups xmmword [ebp - 0x134], xmm0
call fcn.10070b50
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1002f8c5
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1002f91b
push str.GetNativeSystemInfo
push 0x1010243c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002f91b
lea ecx, [ebp - 0x144]
push ecx
call eax
mov ax, word [ebp - 0x144]
cmp ax, 9
je 0x1002f8fc
cmp ax, 6
jne 0x1002f91b
mov dword [0x101340e0], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100464aa
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.100464aa
mov esp, ebp
pop ebp
ret 4

Function at 0x1002fb20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x101341c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 5
jne 0x1002fbcf
cmp dword [eax + 0xc], 1
jb 0x1002fbcf
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10070b50
add esp, 0xc
mov dword [ebp - 0x214], 1
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push str.CSDVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1002fbcf
lea eax, [ebp - 0x20c]
push str.Service_Pack_2
push eax
call fcn.100999bc
add esp, 8
test eax, eax
js 0x1002fbcf
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100464aa
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.100464aa
mov esp, ebp
pop ebp
ret 4
Function at 0x10030220
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.100464c0
mov eax, dword [0x101341c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10030250
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100464aa
mov esp, ebp
pop ebp
ret
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.10070b50
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.1009a73d
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.100464aa
mov esp, ebp
pop ebp
ret
Function at 0x100302e0
Capabilities:
Check if file exists
Delete directory
Delete file
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 [0x101341c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x100304f3
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100304f3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030313
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x100304f3
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.10070b50
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10070b50
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call ebx
push str..
lea eax, [ebp - 0x414]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10030394
test al, 1
je 0x10030394
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 0x100304d9
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x100304cd
nop dword [eax]
test byte [ebp - 0x664], 0x10
je 0x10030448
cmp word [ebp - 0x638], 0x2e
jne 0x10030407
mov ax, word [ebp - 0x636]
test ax, ax
je 0x100304b2
cmp ax, 0x2e
jne 0x10030407
cmp word [ebp - 0x634], 0
je 0x100304b2
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10070b50
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.100302e0
add esp, 4
jmp 0x100304b0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10070b50
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 0x1003049f
test al, 1
je 0x1003049f
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 0x100303d0
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.100464aa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.100464aa
mov esp, ebp
pop ebp
ret
Function at 0x10030510
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 0x10030568
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10030568
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10030548
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10030568
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10030563
test al, 0x10
je 0x10030563
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10030568
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x10030860
Capabilities:
Check if file exists
Delete file
Move file
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
je 0x1003088f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_failed__error_d
call fcn.10022d40
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10030887
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x100308b5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10030872
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10030d00
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x101341c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x10030dc1
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.10070b50
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x10030dab
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.10070b50
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x10103fc8
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 0x10030dc1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100464aa
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.10070b50
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.100040f0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.1008bdde
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x10030e21
cmp eax, 0x207
ja 0x10030e21
jne 0x10030e28
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10030e31
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.100464aa
mov esp, ebp
pop ebp
ret