joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f050
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
lea edi, [eax + 0x24]
mov eax, ebx
call fcn.004061d0
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax + 8], esi
jle 0x42f0a2
lea esp, [esp]
test esi, esi
jle 0x42f07d
push 0x5c
mov eax, ebx
call fcn.0040b010
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + esi*4]
push eax
mov edi, ebx
call fcn.0040b120
mov ecx, dword [ebx]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp + 8]
inc esi
cmp esi, dword [edx + 8]
jl 0x42f070
pop edi
pop esi
pop ebp
ret 4
Function at 0x430500
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff2a0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x54c2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
jl 0x4306c5
cmp eax, 3
jg 0x4306c5
mov edi, dword [ebp + 8]
cmp dword [edi + 0xa0], ebx
je 0x43058f
mov eax, dword [edi + 0x9c]
mov ecx, dword [eax + 0x18]
not ecx
add dword [edi + 0xf0], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [edi + 0x88], ecx
mov dword [edi + 0x8c], eax
mov byte [edi + 0x90], 1
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x43058f
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [edi + 0xa0], ebx
cmp dword [edi + 0x98], ebx
je 0x430632
cmp byte [edi + 0x5c], bl
je 0x4305aa
cmp byte [edi + 0x7e], bl
je 0x4305aa
lea esi, [edi + 0x70]
jmp 0x4305b9
mov eax, dword [edi + 0x10]
cmp byte [eax + 0x2c], bl
je 0x4305b7
lea esi, [eax + 0x24]
jmp 0x4305b9
xor esi, esi
cmp byte [edi + 0x5b], bl
je 0x4305c8
cmp byte [edi + 0x7d], bl
je 0x4305c8
lea edx, [edi + 0x68]
jmp 0x4305ca
xor edx, edx
cmp byte [edi + 0x5a], bl
je 0x4305d9
cmp byte [edi + 0x7c], bl
je 0x4305d9
lea ecx, [edi + 0x60]
jmp 0x4305db
xor ecx, ecx
mov eax, dword [edi + 0x94]
push esi
push edx
push ecx
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, dword [edi + 0x94]
mov edx, dword [esi + 0x10]
mov dword [edi + 0x88], edx
mov eax, dword [esi + 0x14]
mov dword [edi + 0x8c], eax
mov byte [edi + 0x90], 1
call fcn.00424760
cmp eax, ebx
jne 0x4306e5
mov eax, dword [edi + 0x98]
cmp eax, ebx
je 0x430632
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x98], ebx
cmp byte [edi + 0x90], bl
jne 0x430649
mov esi, edi
call fcn.0042f2c0
cmp byte [edi + 0x90], bl
je 0x430661
mov eax, dword [edi + 0x88]
add dword [edi + 0xe8], eax
mov ecx, dword [edi + 0x8c]
adc dword [edi + 0xec], ecx
cmp byte [edi + 0x80], bl
je 0x430678
add dword [edi + 0xd8], 1
adc dword [edi + 0xdc], ebx
jmp 0x430685
add dword [edi + 0xe0], 1
adc dword [edi + 0xe4], ebx
cmp byte [edi + 0x59], bl
je 0x43069d
cmp byte [edi + 0x7f], bl
je 0x43069d
mov ecx, dword [edi + 0x78]
mov eax, dword [edi + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
movzx ecx, byte [edi + 0x5d]
mov eax, dword [edi + 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push eax
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x98]
cmp eax, ebx
je 0x4306e0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x98], ebx
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x432f40
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, eax
mov edi, edx
call fcn.00432f00
or eax, 0xffffffff
xor ecx, ecx
test esi, esi
je 0x432f6f
movzx edx, byte [ecx + edi]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x556a60]
inc ecx
cmp ecx, esi
jb 0x432f54
pop edi
not eax
pop esi
ret

Function at 0x432f80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd3c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x54c2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], vtable.CBenchBuffer.0
push 4
push 0x1000
xor esi, esi
push 0x500
mov dword [ebp - 4], esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
cmp ebx, esi
setne al
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x500
test al, al
jne 0x43300b
mov dword [ebp - 4], 0xffffffff
cmp ebx, esi
je 0x432ff7
push 0x8000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
lea ecx, [ecx]
mov byte [eax + ebx], al
inc eax
cmp eax, 0x100
jb 0x433010
or eax, 0xffffffff
lea ecx, [ebx + 1]
mov edx, 0x40
jmp 0x433030
movzx edi, byte [ecx - 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x556a60]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x556a60]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x556a60]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x556a60]
add ecx, 4
dec edx
jne 0x433030
not eax
cmp eax, 0x29058c73
jne 0x432fdf
mov eax, 0x1f123bb5
xor ecx, ecx
movzx edx, ax
imul edx, edx, 0x4650
shr eax, 0x10
add eax, edx
mov byte [ebx + ecx + 0x100], al
inc ecx
cmp ecx, 0x400
jb 0x4330a1
mov dword [ebp - 0x10], esi
xor edi, edi
or esi, 0xffffffff
xor eax, eax
test edi, edi
je 0x4330eb
lea ecx, [ecx]
movzx ecx, byte [ebx + eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x556a60]
inc eax
cmp eax, edi
jb 0x4330d0
push 0x556a60
push edi
mov edx, ebx
or ecx, 0xffffffff
call dword [0x553c48]
not eax
not esi
cmp esi, eax
jne 0x433149
inc edi
cmp edi, 0x20
jb 0x4330c4
mov eax, dword [ebp - 0x10]
inc eax
inc ebx
mov dword [ebp - 0x10], eax
cmp eax, 0x4e0
jb 0x4330c2
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x433135
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x433165
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4380b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff0a0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x54c2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [ebx]
mov edi, dword [ebp + 8]
mov byte [edi], al
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov edx, dword [ebx + 8]
lea eax, [ebx + 0xc]
push eax
lea ecx, [edi + 0xc]
mov dword [edi + 8], edx
call fcn.00406fd0
xor ecx, ecx
lea eax, [edi + 0x18]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], eax
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 4
lea ecx, [ebx + 0x18]
mov byte [ebp - 4], 1
push ecx
mov dword [eax], vtable.CObjectVector_struct_CArcExtInfo_.0
call fcn.00444cf0
xor eax, eax
mov byte [ebp - 4], 2
lea esi, [edi + 0x2c]
push eax
mov dword [esi], vtable.CBuffer_unsigned_char_.0
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.004e0a60
xor ecx, ecx
mov dword [esi + 8], ecx
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0x30]
add esp, 4
cmp eax, ecx
jbe 0x43816d
mov edi, eax
call fcn.004030f0
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x34]
mov ecx, dword [esi + 8]
push edx
push eax
push ecx
call fcn.004e0a70
mov edi, dword [ebp + 8]
add esp, 0xc
mov dl, byte [ebx + 0x38]
mov byte [edi + 0x38], dl
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 4
Function at 0x438580
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fdd88
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x54c2c0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0xc], ecx
lea edx, [esp + 0xc]
push edx
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x30], ecx
mov byte [edi], cl
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
test esi, esi
je 0x43860d
movzx eax, word [esp + 0xc]
add eax, 0xfffffffe
cmp eax, 0x3e
ja case.0x4385e8.8
movzx ecx, byte [eax + 0x4386a4]
jmp dword [ecx*4 + 0x43869c]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov ax, word [esp + 0xc]
cmp ax, 0xb
jne 0x43863c
cmp word [esp + 0x14], 0
setne cl
mov byte [edi], cl
movzx eax, ax
add eax, 0xfffffffe
cmp eax, 0x3e
ja case.0x438635.8
movzx ecx, byte [eax + 0x4386ec]
jmp dword [ecx*4 + 0x4386e4]
test ax, ax
je 0x438623
movzx eax, ax
add eax, 0xfffffffe
cmp eax, 0x3e
ja case.0x438653.8
movzx edx, byte [eax + 0x438734]
jmp dword [edx*4 + 0x43872c]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, 0x80004005
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43b600
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, dword [esi + 8]
test eax, eax
je 0x43b642
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
nop
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + eax*4 - 4]
mov edi, dword [edx]
push 0
push edi
call ebx
test eax, eax
je 0x43b629
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 8]
mov eax, dword [esi]
mov edx, dword [eax + 4]
dec ecx
push 1
push ecx
mov ecx, esi
call edx
mov eax, dword [esi + 8]
test eax, eax
jne 0x43b610
pop edi
pop ebx
ret
Function at 0x43c0e0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
push esi
push edi
mov dword [ebp - 4], edx
cmp dword [ebx + 0x30], edx
jle 0x43c15b
mov eax, dword [ebx + 0x34]
jmp 0x43c103
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov edi, dword [ebp + 0x10]
mov ecx, dword [esi + 0x20]
add eax, 4
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x24]
inc edx
cmp edi, eax
jb 0x43c132
ja 0x43c120
cmp dword [ebp + 0xc], ecx
jb 0x43c132
sub dword [ebp + 0xc], ecx
sbb edi, eax
mov dword [ebp + 0x10], edi
cmp edx, dword [ebx + 0x30]
jl 0x43c100
mov dword [ebp - 4], edx
jmp 0x43c15e
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov dword [ebp - 4], edx
mov edx, dword [ebp + 0xc]
push edi
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jne 0x43c1d5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edi
jmp 0x43c15e
mov edi, dword [ebp + 0x10]
cmp edx, dword [ebx + 0x30]
jge 0x43c1b7
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x30]
mov edi, dword [eax + edx*4 - 4]
mov eax, dword [edi + 4]
test eax, eax
je 0x43c183
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 4], 0
mov edi, dword [edi + 8]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x43c19a
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x28]
mov edx, dword [eax + 4]
dec ecx
push 1
push ecx
lea ecx, [ebx + 0x28]
call edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x30]
jl 0x43c163
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], edx
mov dword [ebx + 8], 0
mov dword [ebx + 0x24], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x444100
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4feeea
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x54c2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [edi], 0xffffffff
xor ebx, ebx
mov eax, 4
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], eax
mov dword [edi + 4], vtable.CObjectVector_struct_CProperty_.0
mov dword [ebp - 4], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], eax
mov dword [edi + 0x18], vtable.CObjectVector_struct_CUpdateArchiveCommand_.0
mov al, 1
mov byte [ebp - 4], al
mov byte [edi + 0x2c], al
lea eax, [edi + 0x30]
push eax
call fcn.0042b730
mov byte [ebp - 4], 2
lea esi, [edi + 0x8c]
mov byte [edi + 0x88], bl
call fcn.00406150
mov byte [ebp - 4], 3
lea esi, [edi + 0x9c]
mov word [edi + 0x98], bx
call fcn.00406150
mov byte [ebp - 4], 4
lea esi, [edi + 0xac]
mov word [edi + 0xa8], bx
mov byte [edi + 0xaa], bl
call fcn.00406150
lea esi, [edi + 0xb8]
mov byte [ebp - 4], 5
call fcn.00406150
mov dword [edi + 0xc8], ebx
mov dword [edi + 0xcc], ebx
mov dword [edi + 0xd0], ebx
mov dword [edi + 0xd4], 8
mov dword [edi + 0xc4], vtable.CRecordVector_unsigned_long_long_unsigned___int64__.0
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 4
Function at 0x4443a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fcfc8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x54c2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 6
mov eax, dword [esi + 0xcc]
push eax
xor ebx, ebx
push ebx
lea ecx, [esi + 0xc4]
mov dword [esi + 0xc4], vtable.CBaseRecordVector.0
call dword [0x515848]
mov eax, dword [esi + 0xd0]
push eax
call fcn.004e0a60
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov eax, dword [esi + 0xb8]
push eax
call fcn.004e0a60
mov eax, dword [esi + 0xac]
push eax
call fcn.004e0a60
mov eax, dword [esi + 0x9c]
push eax
call fcn.004e0a60
mov eax, dword [esi + 0x8c]
push eax
call fcn.004e0a60
mov eax, dword [esi + 0x7c]
push eax
call fcn.004e0a60
mov eax, dword [esi + 0x70]
push eax
call fcn.004e0a60
mov eax, dword [esi + 0x60]
push eax
call fcn.004e0a60
mov eax, dword [esi + 0x54]
push eax
call fcn.004e0a60
mov eax, dword [esi + 0x48]
push eax
call fcn.004e0a60
mov eax, dword [esi + 0x3c]
push eax
call fcn.004e0a60
mov eax, dword [esi + 0x30]
push eax
call fcn.004e0a60
lea edi, [esi + 0x18]
add esp, 0x30
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CObjectVector_struct_CUpdateArchiveCommand_.0
mov byte [ebp - 4], 7
mov ecx, dword [edi + 8]
push ecx
push ebx
mov ecx, edi
call dword [0x518c70]
mov byte [ebp - 4], bl
mov edx, dword [edi + 8]
push edx
push ebx
mov ecx, edi
mov dword [edi], vtable.CBaseRecordVector.0
call dword [0x515848]
mov eax, dword [edi + 0xc]
push eax
call fcn.004e0a60
add esp, 4
add esi, 4
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [ebp + 8], esi
mov dword [esi], vtable.CObjectVector_struct_CProperty_.0
mov dword [ebp - 4], 8
mov eax, dword [esi + 8]
push eax
push ebx
mov ecx, esi
call dword [0x518c64]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 8]
push ecx
push ebx
mov ecx, esi
mov dword [esi], vtable.CBaseRecordVector.0
call dword [0x515848]
mov edx, dword [esi + 0xc]
push edx
call fcn.004e0a60
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
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 0x448e50
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esi + 8]
push edi
cmp eax, 0x105
jg 0x448ebd
cmp eax, 0x106
je 0x448ebd
xor ecx, ecx
mov eax, 0x106
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e0918
add esp, 4
cmp dword [esi + 8], 0
mov edi, eax
jle 0x448eab
xor eax, eax
cmp dword [esi + 4], eax
jle 0x448ea0
nop
mov ecx, dword [esi]
mov dx, word [ecx + eax*2]
mov word [edi + eax*2], dx
inc eax
cmp eax, dword [esi + 4]
jl 0x448e90
mov eax, dword [esi]
push eax
call fcn.004e0a60
add esp, 4
mov ecx, dword [esi + 4]
xor edx, edx
mov dword [esi], edi
mov word [edi + ecx*2], dx
mov dword [esi + 8], 0x106
mov eax, dword [esi]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, dword [esi]
xor ecx, ecx
cmp word [edi], cx
je 0x448ee0
mov edx, edi
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x448ed6
xor edx, edx
mov word [edi + ecx*2], dx
dec eax
mov dword [esi + 4], ecx
mov ecx, 0x103
cmp ecx, eax
sbb eax, eax
inc eax
pop edi
ret
Function at 0x4492b0
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4492c0
xor al, al
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
ret

Function at 0x4492d0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fec40
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x54c2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [eax + 0x20]
shr ecx, 4
add eax, 0x28
push eax
test cl, 1
je 0x44934f
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.004217b0
push eax
mov byte [ebp - 4], 1
call fcn.004493b0
mov ecx, dword [ebp - 0x18]
push ecx
mov bl, al
call fcn.004e0a60
mov edx, dword [ebp + 8]
push edx
call fcn.004e0a60
add esp, 0x18
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
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.004217b0
mov esi, dword [eax]
add esp, 0xc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x449379
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov edx, dword [ebp - 0x18]
push edx
call fcn.004e0a60
mov eax, dword [ebp + 8]
push eax
call fcn.004e0a60
add esp, 8
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
Function at 0x4493b0
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x501f68
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x54c2c0]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x54c2c0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea esi, [esp + 0x6c]
mov dword [esp + 0x30], edi
call fcn.00406150
push 0x5c
lea eax, [esp + 0x28]
push edi
push eax
mov dword [esp + 0x9c], 0
call fcn.0042ea70
add esp, 0xc
push 0x2a
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x9c], 1
call fcn.0042ea70
add esp, 0xc
mov dword [esp + 0x14], 0xffffffff
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], 3
call fcn.00406fd0
mov byte [esp + 0x90], 5
mov eax, dword [esp + 0x38]
push eax
call fcn.004e0a60
add esp, 4
mov esi, 0x2e
cmp dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x14]
je 0x44947c
push ecx
lea ecx, [esp + 0x48]
call fcn.00449d50
jmp 0x449489
mov ebx, dword [esp + 0x18]
lea edi, [esp + 0x44]
call fcn.00449c80
test al, al
je 0x449519
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x6c]
shr edx, 4
test dl, 1
je 0x4494be
mov eax, dword [esp + 0x70]
test eax, eax
je 0x4494be
cmp word [edi], si
jne 0x4494be
cmp eax, 1
je 0x449465
cmp word [edi + 2], si
jne 0x4494be
cmp eax, 2
je 0x449465
lea eax, [esp + 0x44]
push eax
sub esp, 0xc
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.00406fd0
call fcn.004492d0
add esp, 0x10
test al, al
jne 0x449465
mov eax, dword [esp + 0x18]
push eax
call fcn.004e0a60
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, 0xffffffff
je 0x4494ff
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004e0a60
add esp, 4
push edi
call fcn.004e0a60
add esp, 4
xor al, al
jmp 0x449591
mov edx, dword [esp + 0x18]
push edx
call fcn.004e0a60
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, 0xffffffff
je 0x449536
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x30]
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x449567
mov eax, dword [esp + 0x24]
push eax
call fcn.004e0a60
mov ecx, dword [esp + 0x70]
add esp, 4
push ecx
call fcn.004e0a60
add esp, 4
xor al, al
jmp 0x449591
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, dword [esp + 0x24]
test eax, eax
push edx
setne bl
call fcn.004e0a60
mov eax, dword [esp + 0x70]
add esp, 4
push eax
call fcn.004e0a60
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004e0a00
mov esp, ebp
pop ebp
ret