joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f3d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fec7b
mov eax, dword fs:[0]
push eax
sub esp, 0x548
mov eax, dword [0x546204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0xd8
mov dword [ebp - 0x544], eax
lea eax, [ebp - 0xf0]
push 0
push eax
mov byte [ebp - 0x531], 0
call fcn.00470310
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x6c
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x53c], eax
cmp eax, 0x6c
jae 0x41f4f1
xor esi, esi
test eax, eax
je 0x41f4f1
nop
push 0x410
lea eax, [ebp - 0x500]
push 0
push eax
call fcn.00470310
mov eax, dword [0x50f6c8]
add esp, 0xc
mov dword [ebp - 0x18], eax
movzx eax, word [0x50f6cc]
mov word [ebp - 0x14], ax
movzx eax, word [ebp + esi*2 - 0xf0]
add esi, 4
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x500]
push 0x207
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x538], esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x41f4e5
lea esi, [ebp - 0x500]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41f4b1
sub esi, ecx
mov eax, edi
sar esi, 1
cmp dword [edi + 0x14], 8
jb 0x41f4ca
mov eax, dword [edi]
push esi
lea ecx, [ebp - 0x500]
push ecx
push eax
call fcn.004a698a
add esp, 0xc
test eax, eax
je 0x41f512
mov esi, dword [ebp - 0x538]
cmp esi, dword [ebp - 0x53c]
jb 0x41f450
mov al, byte [ebp - 0x531]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00445caa
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x520], 0
mov word [ebp - 0x530], ax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x51c], 7
cmp eax, esi
jb 0x41f632
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [edi + 0x14], 8
jb 0x41f54d
mov edi, dword [edi]
push ecx
lea eax, [edi + esi*2]
push eax
lea ecx, [ebp - 0x530]
call fcn.00421350
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f570
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
push 0
lea ecx, [ebp - 0x530]
call fcn.00421570
mov esi, dword [ebp - 0x544]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x554], xmm0
movups xmmword [ebp - 0x518], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x518]
movq qword [ebp - 0x540], xmm0
movq qword [ebp - 0x508], xmm0
cmp esi, eax
je 0x41f615
mov ecx, esi
call fcn.00420f60
movups xmm0, xmmword [ebp - 0x554]
xor eax, eax
mov dword [ebp - 0x508], 0
mov dword [ebp - 0x504], 7
movups xmmword [esi], xmm0
mov word [ebp - 0x518], ax
movq xmm0, qword [ebp - 0x540]
movq qword [esi + 0x10], xmm0
lea ecx, [ebp - 0x518]
call fcn.00417600
lea ecx, [ebp - 0x530]
call fcn.00417600
mov al, 1
jmp 0x41f4f7
call fcn.004210e0
int3
Function at 0x41f640
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fecd1
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x546204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x470], esi
mov dword [ebp - 0x470], edi
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
push 0x410
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x420]
push eax
call fcn.00470310
add esp, 0xc
test edi, edi
je 0x41f858
cmp edi, 4
je 0x41f858
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x41f747
push 0x207
lea eax, [ebp - 0x420]
push eax
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x41f764
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f700
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.00421350
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x438]
mov ecx, esi
push eax
call fcn.0041e170
lea ecx, [ebp - 0x438]
call fcn.00417600
jmp 0x41f87d
push dword [ebp - 0x470]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x41f809
push 0x207
lea eax, [ebp - 0x420]
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x41f802
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x468]
call fcn.0041e1b0
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.0041f3d0
add esp, 8
mov byte [ebp - 0x469], al
lea ecx, [ebp - 0x468]
call fcn.00417600
cmp byte [ebp - 0x469], 0
je 0x41f7f7
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x438]
call fcn.0041e3f0
lea ecx, [ebp - 0x450]
call fcn.00417600
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x438]
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x438]
mov dword [esi + 0x14], 0
xor eax, eax
movups xmmword [esi], xmm0
mov word [ebp - 0x438], ax
movq xmm0, qword [ebp - 0x428]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
call fcn.00417600
jmp 0x41f87d
movups xmm0, xmmword [ebp - 0x438]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x428]
movq qword [esi + 0x10], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00445caa
mov esp, ebp
pop ebp
ret
Function at 0x4202d0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fed98
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x546204]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42034b
test al, 0x10
je 0x42034b
push esi
mov edi, 1
call fcn.0042e300
add esp, 4
test eax, eax
jne 0x42036e
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x42036e
push esi
test edi, edi
jne 0x420366
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x42036e
push esi
push 0x50f4d4
call fcn.00422ab0
add esp, 8
jmp 0x42036e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x42031c
push esi
push 0x50f4d4
call fcn.00422ab0
add esp, 8
jmp 0x42036e
call fcn.0042e300
add esp, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4203ef
push esi
lea ecx, [ebp - 0x10]
call fcn.00406990
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov edi, dword [esi + 4]
cmp dword [esi + 8], edi
je 0x4203ae
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00406ed0
add eax, 0x10
add esp, 4
mov dword [edi], eax
add dword [esi + 4], 4
jmp 0x4203ba
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
push edi
call fcn.0041dc00
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4203dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420b80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4feeb0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x546204]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x14], edi
call fcn.00407340
mov ecx, eax
test ecx, ecx
je 0x420c74
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.00406da0
test al, al
jne 0x420be9
push 0x39
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
lea ecx, [ebp - 0x10]
call fcn.004088f0
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.0041e430
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x420c34
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push str.SmartChat.exe
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove edi, ecx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x420c42
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x420c61
mov ecx, dword [esi]
push esi
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
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403aa0
int3
Function at 0x422670
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 0x4226d4
cmp dword [edi + 0xc], 0
push ebx
lea ebx, [edi + 0xc]
jl 0x4226c6
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4226c6
push edx
call fcn.00406ed0
add esp, 4
mov dword [ebp + 8], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x4226bf
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 0x4226d3
push dword [ecx - 0xc]
push ecx
mov ecx, esi
call fcn.004088f0
mov eax, dword [esi]
pop ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42273a
mov eax, dword [esi]
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
cmp dword [eax - 0xc], 0
je 0x42273a
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 0x422721
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 0x42273a
jg 0x422732
cmp dword [ebp - 8], 0x40000000
jbe 0x42273a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4252a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff4eb
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x546204]
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]
mov dword [ebp - 0x828], ebx
cmp word [0x54bd08], 0
jne 0x4253da
push 0x20219
push str.SOFTWARESmartChat
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x824]
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
call fcn.00419320
mov edi, dword [ebp - 0x824]
test eax, eax
jne 0x4253cf
lea eax, [ebp - 0x814]
mov dword [ebp - 0x814], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x818]
push eax
push 0
push 0x50a9f0
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4253cf
mov eax, dword [ebp - 0x818]
cmp eax, 1
je 0x42536c
cmp eax, 2
jne 0x4253cf
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x425389
test al, 1
jne 0x4253cf
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x425392
jmp 0x4253cf
xor eax, eax
mov word [ebp - 0x810], ax
mov ecx, 0x54bd08
lea esi, [ebp - 0x810]
mov edx, 0x3ff
sub esi, ecx
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x4253c2
movzx eax, word [esi + ecx]
test ax, ax
je 0x4253c2
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4253a4
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x4253da
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x54bd08
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x42542b
mov ecx, 0x54bd08
mov esi, str.noset
mov edx, 0x3ff
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x42541e
movzx eax, word [esi + ecx]
test ax, ax
je 0x42541e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x425400
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
call fcn.00417270
mov ecx, eax
test ecx, ecx
je 0x42549a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x54bd08
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00406da0
test al, al
jne 0x42547c
mov ecx, 0x54bd08
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425460
sub ecx, edx
sar ecx, 1
push ecx
push 0x54bd08
mov ecx, ebx
call fcn.004088f0
mov eax, ebx
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.00445caa
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403aa0
int3
Function at 0x42c660
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500400
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x546204]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00417270
mov ecx, eax
test ecx, ecx
je 0x42c741
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 0x510398
push eax
mov dword [ebp - 4], 0
call fcn.00407280
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], 0x42c760
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.0041d180
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 0x42c72d
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.00403aa0
int3
Function at 0x42e300
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.00445cc0
mov eax, dword [0x546204]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x42e330
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445caa
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.00470310
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.004a25fc
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.00445caa
mov esp, ebp
pop ebp
ret
Function at 0x42e3c0
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 [0x546204]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x42e5d3
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e5d3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e3f3
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x42e5d3
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.00470310
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00470310
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 0x42e474
test al, 1
je 0x42e474
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 0x42e5b9
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x42e5ad
nop dword [eax]
test byte [ebp - 0x664], 0x10
je 0x42e528
cmp word [ebp - 0x638], 0x2e
jne 0x42e4e7
mov ax, word [ebp - 0x636]
test ax, ax
je 0x42e592
cmp ax, 0x2e
jne 0x42e4e7
cmp word [ebp - 0x634], 0
je 0x42e592
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00470310
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.0042e3c0
add esp, 4
jmp 0x42e590
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00470310
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 0x42e57f
test al, 1
je 0x42e57f
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 0x42e4b0
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.00445caa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00445caa
mov esp, ebp
pop ebp
ret
Function at 0x42e5f0
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 0x42e648
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e648
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x42e628
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42e648
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42e643
test al, 0x10
je 0x42e643
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x42e648
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x42e940
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 0x42e96f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_failed__error_d
call fcn.00422ab0
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e967
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x42e995
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42e952
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x42e9b0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5006c6
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x546204]
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 0x42e9ec
xor eax, eax
jmp 0x42ebf2
cmp word [ebx], 0
je 0x42e9e5
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e9f7
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x42e9e5
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00470310
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x50f4d0
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42ea52
test al, 1
je 0x42ea52
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.0042baf0
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x42eba2
cmp dword [ebp - 0x424], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x42eb01
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x42eb01
cmp word [ebp - 0x858], 0x2e
jne 0x42eb01
mov ax, word [ebp - 0x856]
test ax, ax
je 0x42eadc
cmp ax, 0x2e
jne 0x42eb01
cmp word [ebp - 0x854], 0
jne 0x42eb01
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x42ec0e
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x42eb94
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x884]
call fcn.0041eb00
cmp dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
je 0x42eb3c
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x42eb3c
mov esi, dword [ebp - 0x888]
push esi
call fcn.0042e9b0
jmp 0x42eb48
mov esi, dword [ebp - 0x888]
push esi
call fcn.0042e940
mov eax, dword [ebp - 0x428]
add esp, 4
test eax, eax
jne 0x42eb59
xor edi, edi
jmp 0x42eb78
cmp dword [ebp - 0x424], 0
jne 0x42eb66
xor edi, edi
jmp 0x42eb78
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 0x42eb94
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x42ea99
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x42ebc8
cmp eax, 0xffffffff
je 0x42ebc8
push eax
call esi
mov dword [ebp - 0x428], 0
push ebx
call fcn.0042e300
mov eax, dword [ebp - 0x428]
add esp, 4
mov dword [ebp - 0x424], 0
test eax, eax
je 0x42ebed
cmp eax, 0xffffffff
je 0x42ebed
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.00445caa
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
jmp 0x42ebc8