joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44046a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00478e18
call fcn.00424bbe
cmp dword [eax + 0x14], 0
jne 0x440487
mov ecx, esi
pop esi
jmp fcn.0043ff6f
pop esi
ret

Function at 0x443b61
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00474876
call fcn.00424bbe
cmp dword [eax + 0x14], 0
jne 0x443b7e
mov ecx, esi
pop esi
jmp fcn.00443534
pop esi
ret

Function at 0x47c77b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x47c795
call fcn.0042518d
mov esi, dword [eax + 0xc]
push dword [0x58bc70]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x47c7b3
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x47c7ab
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x47c7e0
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x47c7ad
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0047c6a9
mov esi, eax
jmp 0x47c7d2

Function at 0x4f89ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4f89c4
mov edi, dword [esi + 0xc]
jmp 0x4f8a04
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4f89dd
call fcn.0041fdf5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f89f2
call fcn.0041fdf5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4f8a04
call fcn.0041fdf5
call fcn.0042518d
cmp dword [eax + 0x3c], 0
je 0x4f8a19
push edi
mov ecx, ebx
call fcn.004f77e8
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004f88c6
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4f8a37
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4f8a43
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x512fd6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x586dc4]
jne 0x512fe0
repz ret
jmp fcn.0051c9ec
Function at 0x527ff8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x586dc4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0051c3e6
and dword [ebp - 0x14], 0
cmp dword [0x58e6f0], 0
mov dword [ebp - 0x18], eax
jne 0x5280ab
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x528153
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x528153
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x564f3c
push ebx
mov dword [0x58e6f0], eax
call edi
push eax
call esi
push 0x564f28
push ebx
mov dword [0x58e6f4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x58e6f8], eax
call edi
push eax
call esi
mov dword [0x58e700], eax
test eax, eax
je 0x5280ab
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x58e6fc], eax
mov eax, dword [0x58e6fc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x528104
cmp dword [0x58e700], ecx
je 0x528104
push eax
call esi
push dword [0x58e700]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x528104
test ebx, ebx
je 0x528104
call edi
test eax, eax
je 0x5280fb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5280fb
test byte [ebp - 8], 1
jne 0x528104
or dword [ebp + 0x10], 0x200000
jmp 0x528137
mov eax, dword [0x58e6f4]
cmp eax, dword [ebp - 0x18]
je 0x528137
push eax
call esi
test eax, eax
je 0x528137
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x528137
mov eax, dword [0x58e6f8]
cmp eax, dword [ebp - 0x18]
je 0x528137
push eax
call esi
test eax, eax
je 0x528137
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x58e6f0]
call esi
test eax, eax
je 0x528153
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x528155
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00512fd6
leave
ret
Function at 0x1000df50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, edx
push edi
mov edi, ecx
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebp - 8], ebx
and ecx, 3
je 0x1000e008
mov edx, 4
sub edx, ecx
cmp edx, eax
cmova edx, eax
xor eax, eax
test edx, edx
je 0x1000e001
cmp edx, 0x40
jb 0x1000dff0
movaps xmm1, xmmword [0x10109bf0]
lea ecx, [edi + 0x20]
movaps xmm2, xmmword [0x10109c60]
mov esi, edx
and esi, 0xffffffc0
nop
movups xmm0, xmmword [ecx - 0x20]
add eax, 0x40
lea ecx, [ecx + 0x40]
psubb xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [ecx - 0x60], xmm0
movups xmm0, xmmword [ecx - 0x50]
psubb xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [ecx - 0x50], xmm0
movups xmm0, xmmword [ecx - 0x40]
psubb xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [ecx - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x30]
psubb xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [ecx - 0x30], xmm0
cmp eax, esi
jb 0x1000dfa0
cmp eax, edx
jae 0x1000e001
nop word [eax + eax]
mov cl, byte [edi + eax]
sub cl, 0x54
xor cl, 0xa5
mov byte [edi + eax], cl
inc eax
cmp eax, edx
jb 0x1000dff0
sub ebx, edx
add edi, eax
mov dword [ebp - 8], ebx
mov eax, ebx
xor esi, esi
shr eax, 2
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000e142
cmp eax, 8
jb 0x1000e0f3
movaps xmm3, xmmword [0x10109a50]
mov ecx, eax
movaps xmm4, xmmword [0x10109b30]
and ecx, 0xfffffff8
movaps xmm5, xmmword [0x10109be0]
movaps xmm6, xmmword [0x10109cd0]
movaps xmm7, xmmword [0x10109a30]
nop dword [eax + eax]
movups xmm2, xmmword [edi + esi*4]
movaps xmm1, xmm2
movaps xmm0, xmm2
psubd xmm1, xmm5
psubd xmm0, xmm3
andps xmm1, xmm6
andps xmm0, xmm4
orps xmm1, xmm0
movaps xmm0, xmm2
psubd xmm2, xmmword [0x10109b50]
psubd xmm0, xmm7
andps xmm0, xmmword [0x10109a40]
andps xmm2, xmmword [0x10109b60]
orps xmm1, xmm0
orps xmm1, xmm2
xorps xmm1, xmmword [0x10109c60]
movups xmmword [edi + esi*4], xmm1
movups xmm2, xmmword [edi + esi*4 + 0x10]
movaps xmm1, xmm2
movaps xmm0, xmm2
psubd xmm1, xmm5
psubd xmm0, xmm3
andps xmm1, xmm6
andps xmm0, xmm4
orps xmm1, xmm0
movaps xmm0, xmm2
psubd xmm2, xmmword [0x10109b50]
psubd xmm0, xmm7
andps xmm0, xmmword [0x10109a40]
andps xmm2, xmmword [0x10109b60]
orps xmm1, xmm0
orps xmm1, xmm2
xorps xmm1, xmmword [0x10109c60]
movups xmmword [edi + esi*4 + 0x10], xmm1
add esi, 8
cmp esi, ecx
jb 0x1000e050
cmp esi, eax
jae 0x1000e142
mov ebx, dword [ebp - 0x10]
nop word [eax + eax]
mov ecx, dword [edi + esi*4]
lea edx, [ecx - 0x5400]
and edx, 0xff00
lea eax, [ecx - 0x54000000]
and eax, 0xff000000
or edx, eax
lea eax, [ecx - 0x54]
movzx eax, al
or edx, eax
lea eax, [ecx - 0x540000]
and eax, 0xff0000
or edx, eax
xor edx, 0xa5a5a5a5
mov dword [edi + esi*4], edx
inc esi
cmp esi, ebx
jb 0x1000e100
mov ebx, dword [ebp - 8]
lea edx, [edi + esi*4]
mov ecx, 0
and ebx, 3
jbe 0x1000e15f
nop
mov al, byte [edx + ecx]
sub al, 0x54
xor al, 0xa5
mov byte [edx + ecx], al
inc ecx
cmp ecx, ebx
jb 0x1000e150
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000e170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
mov eax, edi
mov dword [ebp - 8], esi
mov ebx, esi
mov dword [ebp - 4], ebx
and eax, 3
je 0x1000e231
mov edx, 4
sub edx, eax
cmp edx, esi
cmova edx, esi
xor eax, eax
test edx, edx
je 0x1000e228
cmp edx, 0x40
jb 0x1000e217
movaps xmm2, xmmword [0x10109c60]
lea ecx, [edi + 0x20]
movaps xmm3, xmmword [0x10109bf0]
mov ebx, edx
and ebx, 0xffffffc0
movups xmm0, xmmword [ecx - 0x20]
lea ecx, [ecx + 0x40]
add eax, 0x40
movaps xmm1, xmm2
xorps xmm1, xmm0
paddb xmm1, xmm3
movups xmmword [ecx - 0x60], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [ecx - 0x50]
xorps xmm1, xmm0
paddb xmm1, xmm3
movups xmmword [ecx - 0x50], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [ecx - 0x40]
xorps xmm1, xmm0
paddb xmm1, xmm3
movups xmmword [ecx - 0x40], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [ecx - 0x30]
xorps xmm1, xmm0
paddb xmm1, xmm3
movups xmmword [ecx - 0x30], xmm1
cmp eax, ebx
jb 0x1000e1c1
cmp eax, edx
jae 0x1000e228
mov cl, byte [edi + eax]
xor cl, 0xa5
add cl, 0x54
mov byte [edi + eax], cl
inc eax
cmp eax, edx
jb 0x1000e217
mov ebx, esi
sub ebx, edx
add edi, eax
mov dword [ebp - 4], ebx
mov eax, ebx
xor esi, esi
shr eax, 2
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000e372
cmp eax, 8
jb 0x1000e320
movaps xmm3, xmmword [0x10109c60]
mov ecx, eax
movaps xmm4, xmmword [0x10109be0]
and ecx, 0xfffffff8
movaps xmm5, xmmword [0x10109cd0]
movaps xmm6, xmmword [0x10109a50]
movaps xmm7, xmmword [0x10109b30]
movups xmm0, xmmword [edi + esi*4]
movaps xmm2, xmm3
movaps xmm1, xmm6
xorps xmm2, xmm0
movaps xmm0, xmm4
paddd xmm0, xmm2
paddd xmm1, xmm2
andps xmm0, xmm5
andps xmm1, xmm7
orps xmm1, xmm0
movaps xmm0, xmmword [0x10109b50]
paddd xmm0, xmm2
andps xmm0, xmmword [0x10109b60]
orps xmm1, xmm0
movaps xmm0, xmmword [0x10109a30]
paddd xmm0, xmm2
movaps xmm2, xmm6
andps xmm0, xmmword [0x10109a40]
orps xmm1, xmm0
movaps xmm0, xmm4
movups xmmword [edi + esi*4], xmm1
movups xmm1, xmmword [edi + esi*4 + 0x10]
xorps xmm1, xmm3
paddd xmm0, xmm1
paddd xmm2, xmm1
andps xmm0, xmm5
andps xmm2, xmm7
orps xmm2, xmm0
movaps xmm0, xmmword [0x10109b50]
paddd xmm0, xmm1
andps xmm0, xmmword [0x10109b60]
orps xmm2, xmm0
movaps xmm0, xmmword [0x10109a30]
paddd xmm0, xmm1
andps xmm0, xmmword [0x10109a40]
orps xmm2, xmm0
movups xmmword [edi + esi*4 + 0x10], xmm2
add esi, 8
cmp esi, ecx
jb 0x1000e274
cmp esi, eax
jae 0x1000e372
mov ebx, dword [ebp - 0x10]
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [edi + esi*4]
xor ecx, 0xa5a5a5a5
lea edx, [ecx + 0x54000000]
and edx, 0xff000000
lea eax, [ecx + 0x5400]
and eax, 0xff00
or edx, eax
lea eax, [ecx + 0x540000]
and eax, 0xff0000
or edx, eax
lea eax, [ecx + 0x54]
movzx eax, al
or edx, eax
mov dword [edi + esi*4], edx
inc esi
cmp esi, ebx
jb 0x1000e330
mov ebx, dword [ebp - 4]
lea edx, [edi + esi*4]
mov ecx, 0
and ebx, 3
jbe 0x1000e38f
nop
mov al, byte [edx + ecx]
xor al, 0xa5
add al, 0x54
mov byte [edx + ecx], al
inc ecx
cmp ecx, ebx
jb 0x1000e380
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001a210
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
cmp edx, 0xffffffff
jne 0x1001a22c
cmp ecx, 0xffffffff
je 0x1001a255
mov eax, dword [edi]
push 0
push ecx
push edx
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x100f5330]
mov ecx, edi
call esi
cmp eax, 0xffffffff
jne 0x1001a255
cmp edx, eax
jne 0x1001a255
or eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 0x10]
lea eax, [esp + 0xc]
push 0
push eax
push dword [ebp + 0x14]
push ebx
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001a275
or esi, 0xffffffff
jmp 0x1001a27e
mov esi, dword [esp + 0xc]
cmp esi, 0xffffffff
jne 0x1001a2a5
call fcn.1004ed90
cmp eax, 0x13
jne 0x1001a2c3
push dword [edi + 0x2c]
mov ecx, dword [edi + 0x14]
mov edx, ebx
push dword [edi + 0x28]
push dword [ebp + 0x14]
call fcn.1004fb20
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x1001a2c3
add dword [edi + 0x28], esi
adc dword [edi + 0x2c], 0
cmp dword [edi + 0x18], 0
je 0x1001a2c3
mov edx, esi
mov ecx, ebx
call fcn.1000df50
or ecx, 0xffffffff
cmp esi, eax
cmovne esi, ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001a2d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov edx, dword [ebp + 8]
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
cmp edx, 0xffffffff
jne 0x1001a2ee
cmp ecx, 0xffffffff
je 0x1001a310
mov eax, dword [edi]
push 0
push ecx
push edx
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x100f5330]
mov ecx, edi
call esi
cmp eax, 0xffffffff
jne 0x1001a310
cmp edx, eax
je 0x1001a3ce
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0xc], 0
test ebx, ebx
jne 0x1001a33d
push dword [edi + 0x2c]
mov ecx, dword [edi + 0x14]
push dword [edi + 0x28]
call fcn.1004f7c0
add esp, 8
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edi + 0x18], 0
je 0x1001a3da
cmp dword [edi + 0x40], 0
jne 0x1001a361
push 0x10000
call fcn.100c3c54
add esp, 4
mov dword [edi + 0x40], eax
test eax, eax
je 0x1001a3ce
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov ecx, 0x10000
mov esi, ebx
cmp ebx, ecx
cmovae esi, ecx
push esi
push eax
push dword [edi + 0x40]
call fcn.100c0760
mov ecx, dword [edi + 0x40]
add esp, 0xc
mov edx, esi
call fcn.1000e170
cmp esi, eax
jne 0x1001a3ce
push 0
lea eax, [esp + 0x18]
push eax
push esi
push dword [edi + 0x40]
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001a3ce
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x1001a3ce
mov ecx, dword [esp + 0xc]
add ecx, eax
mov dword [esp + 0xc], ecx
cmp eax, esi
jne 0x1001a404
mov eax, dword [esp + 0x10]
add eax, esi
mov dword [esp + 0x10], eax
sub ebx, esi
je 0x1001a404
jmp 0x1001a368
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push dword [ebp + 0x10]
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1001a400
or ecx, 0xffffffff
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x14]
cmp ecx, 0xffffffff
je 0x1001a410
add dword [edi + 0x28], ecx
adc dword [edi + 0x2c], 0
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1001a4b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [ecx + 0x14]
xorps xmm0, xmm0
movlpd qword [esp + 8], xmm0
test eax, eax
je 0x1001a4f2
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp], eax
cmp eax, 0xffffffff
jne 0x1001a4ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001a519
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x1001a519
push 0
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.1004f930
add esp, 0xc
test eax, eax
jne 0x1001a519
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
or edx, eax
mov esp, ebp
pop ebp
ret
Function at 0x1001a860
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, dword [ecx + 4]
test edi, edi
je 0x1001a91b
mov edx, dword [ebp + 8]
push esi
or esi, 0xffffffff
test edx, edx
je 0x1001a90e
cmp dword [ebp + 0xc], 0x20
jne 0x1001a90e
cmp dword [edx], 0x4957494e
jne 0x1001a90e
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
push ebx
push 0
push 0x80
push 3
push 0
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 0xc]
push 3
mov dword [ebp - 0x18], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 0x14]
push 0x100
mov dword [ebp - 8], ecx
mov ecx, dword [edx + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 0x1c]
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
call dword [0x1011d098]
mov ebx, eax
test ebx, ebx
je 0x1001a903
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [0x1011d08c]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
or esi, 0xffffffff
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
mov ecx, 0xb
call fcn.1004f020
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x1001aa50
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x14], 0
je 0x1001aa5f
xor al, al
pop ebp
ret 4
push esi
mov esi, dword [ecx + 4]
test esi, esi
je 0x1001aa82
mov ecx, dword [ebp + 8]
call fcn.1004f360
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1001aa82
mov al, 1
pop esi
pop ebp
ret 4
xor al, al
pop esi
pop ebp
ret 4
Function at 0x1001ab60
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x1011d1c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
jne 0x1001ab95
pop edi
mov eax, 0x1b62
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be435
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 4], 0
jne 0x1001abb2
pop edi
mov eax, 0x232e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be435
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx]
push esi
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x100f5330]
mov ecx, ebx
call esi
test dword [ebp + 0x10], 0x200
mov edx, dword [ebx + 4]
mov dword [ebp - 0x24c], edx
je 0x1001ac51
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x1001ac40
mov eax, dword [ecx]
test eax, eax
je 0x1001ac40
cmp eax, 1
je 0x1001ac0a
mov eax, dword [ecx + 4]
add eax, 8
add ecx, eax
mov eax, dword [ecx]
test eax, eax
jne 0x1001abe3
push 4
push edi
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
jmp 0x1001ac97
mov ecx, dword [ebx + 4]
lea edx, [ebp - 0x248]
sub esp, 8
call fcn.100191a0
add esp, 8
test al, al
jne 0x1001ac3a
pop esi
pop edi
mov eax, 0x1388
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be435
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ebp - 0x248]
push 4
push edi
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
jmp 0x1001ac97
push edi
push edx
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1001ac64
xor esi, esi
jmp 0x1001ac92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1001ac92
test byte [ebp + 0x10], 1
je 0x1001ac92
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
test esi, esi
sete al
test al, al
je 0x1001acf8
mov esi, dword [ebx + 4]
cmp edi, esi
je 0x1001ace3
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001aca7
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x24c], eax
add eax, eax
push eax
push esi
call fcn.100c43a9
add esp, 8
test eax, eax
je 0x1001ace3
mov edx, dword [ebp - 0x24c]
mov ecx, eax
push edi
mov dword [ebx + 4], eax
call fcn.100539f0
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be435
mov esp, ebp
pop ebp
ret 0xc
call fcn.1004ed90
mov ecx, eax
call fcn.1001c610
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.100be435
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001ae10
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x1011d1c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x100f5330]
mov ecx, edi
call esi
mov eax, dword [edi + 4]
test eax, eax
je 0x1001ae4c
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [edi]
mov esi, dword [eax + 0x5c]
mov ecx, esi
call dword [0x100f5330]
mov ecx, edi
call esi
mov ecx, dword [ebp + 8]
mov bl, al
test ecx, 0x200
je 0x1001aeee
mov ecx, dword [edi + 8]
mov esi, dword [edi + 4]
test ecx, ecx
je 0x1001aeca
mov eax, dword [ecx]
test eax, eax
je 0x1001aeca
nop
cmp eax, 1
je 0x1001ae95
mov eax, dword [ecx + 4]
add eax, 8
add ecx, eax
mov eax, dword [ecx]
test eax, eax
jne 0x1001ae80
jmp 0x1001aeca
sub esp, 8
lea edx, [ebp - 0x248]
mov ecx, esi
call fcn.100191a0
add esp, 8
test al, al
jne 0x1001aec4
pop edi
pop esi
mov eax, 0x1388
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be435
mov esp, ebp
pop ebp
ret 4
lea esi, [ebp - 0x248]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1001af04
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be435
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
push ecx
mov esi, dword [eax + 0x50]
mov ecx, esi
call dword [0x100f5330]
mov ecx, edi
call esi
test eax, eax
je 0x1001aed9
call fcn.1004ed90
mov ecx, eax
call fcn.1001c610
cmp eax, 0x2332
je 0x1001aed9
cmp eax, 0x2333
je 0x1001aed9
test bl, bl
mov ecx, 0x2337
pop edi
cmovne eax, ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100be435
mov esp, ebp
pop ebp
ret 4

Function at 0x1001c220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1011d1c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x244
mov edi, ecx
call fcn.100c3c54
mov esi, eax
add esp, 4
mov dword [edi + 4], esi
test esi, esi
je 0x1001c317
push esi
push 0x122
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1001c305
cmp eax, 0x122
ja 0x1001c305
lea eax, [ebp - 0x20c]
push eax
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1001c305
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001c292
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
cmp ecx, 0x122
jae 0x1001c2d3
push eax
push 0x122
push esi
call fcn.100d1467
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be435
mov esp, ebp
pop ebp
ret 4
push 0x121
push eax
push 0x122
push esi
call fcn.100d1599
add esp, 0x10
xor eax, eax
mov word [esi + 0x242], ax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be435
mov esp, ebp
pop ebp
ret 4
push dword [edi + 4]
call fcn.100c3c60
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100be435
mov esp, ebp
pop ebp
ret 4