joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004828
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x1001fa0
call fcn.01005a90
mov edi, 0x94
mov eax, edi
call fcn.01005000
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x1001024]
mov ecx, dword [esi + 0x10]
mov dword [0x100b758], ecx
mov eax, dword [esi + 4]
mov dword [0x100b764], eax
mov edx, dword [esi + 8]
mov dword [0x100b768], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x100b75c], esi
cmp ecx, 2
je 0x1004888
or esi, 0x8000
mov dword [0x100b75c], esi
shl eax, 8
add eax, edx
mov dword [0x100b760], eax
xor esi, esi
push esi
mov edi, dword [fcn.01001040]
call edi
cmp word [eax], 0x5a4d
jne 0x10048c3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10048c3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10048db
cmp eax, 0x20b
je 0x10048c8
mov dword [ebp - 0x1c], esi
jmp 0x10048ef
cmp dword [ecx + 0x84], 0xe
jbe 0x10048c3
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x10048e9
cmp dword [ecx + 0x74], 0xe
jbe 0x10048c3
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.01005a3c
pop ecx
test eax, eax
jne 0x100491b
cmp dword [0x100b748], 1
jne 0x1004908
call fcn.01005250
push 0x1c
call fcn.01005087
push 0xff
call fcn.01004b66
pop ecx
pop ecx
mov dword [ebp - 4], esi
call fcn.01005877
test eax, eax
jge 0x100492f
push 0x1b
call fcn.01004803
pop ecx
call dword [0x1001048]
mov dword [0x100cd34], eax
call fcn.01005751
mov dword [0x100b740], eax
call fcn.010056af
test eax, eax
jge 0x1004955
push 8
call fcn.01004803
pop ecx
call fcn.01005463
test eax, eax
jge 0x1004966
push 9
call fcn.01004803
pop ecx
call fcn.01004b96
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x1004979
push eax
call fcn.01004803
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [0x1001044]
call fcn.010053fa
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x100499a
movzx eax, word [ebp - 0x34]
jmp 0x100499d
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.01004215
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x10049bb
push edi
call fcn.01004ca5
call fcn.01004cc7
jmp 0x10049ed
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.01005ac9
ret
Function at 0x66e03a3d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
imul eax, eax, 8
add eax, dword [ebp - 0x20]
add eax, 0x78
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x18]
cmp eax, edx
jb 0x66e03ab0
jmp 0x66e03af9
mov eax, 1
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
jmp 0x66e03a94
mov eax, dword [ebp - 0xc]
imul eax, eax, 4
add eax, dword [ebp - 0x18]
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov ecx, eax
call fcn.66e039d1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp eax, edx
jne 0x66e03aa3
mov eax, dword [ebp - 0xc]
imul eax, eax, 2
add eax, dword [ebp - 0x10]
movzx eax, word [eax]
movzx eax, ax
imul eax, eax, 4
add eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
leave
ret 8
mov eax, 0
leave
ret 8

Function at 0x66e05cf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x66f76e7a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x66fe31a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push 0
call fcn.66f5cc7f
mov dword [esp + 0x20], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [esp + 0x28]
mov byte [esp + 0x20], 6
test eax, eax
jne 0x66e05d99
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x66f8b7b8
push eax
lea ecx, [esp + 0x10]
call fcn.66f2b4d2
push 0x66fca88c
lea eax, [esp + 0x10]
mov dword [esp + 0x10], vtable.std::runtime_error.0
push eax
call fcn.66f2a2ab
push eax
push esi
call fcn.66f5d1ee
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 4
Function at 0x66e05dc0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x66f86d58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x66fe31a0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x66fe31a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x40]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.66e02450
push dword [esp + 0x54]
lea eax, [esp + 0x28]
push dword [esp + 0x54]
push eax
call fcn.66e07260
add esp, 0x24
cmp dword [eax + 0x14], 0x10
mov dword [esp + 0x30], 0
jb 0x66e05e3a
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.66f2b4d2
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x66e05e63
push dword [esp + 0xc]
call fcn.66e13cbe
add esp, 4
mov ecx, dword [esp + 0x38]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.66f2a29c
add esp, 0x2c
ret 0xc

Function at 0x66e062a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x66f76f21
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x66fe31a0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi], vtable.CRegisteredProducts.0
cmp byte [edi + 0x30], 0
mov dword [esp + 0x18], 2
je 0x66e062e2
call fcn.66e08ab0
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [edi + 0x28]
mov byte [esp + 0x18], 1
call fcn.66f529e0
lea ecx, [edi + 0x24]
mov byte [esp + 0x18], 0
call fcn.66f52e50
mov dword [edi + 0x24], vtable.FNPNS::UTC::CSyncObj.0
lea ecx, [edi + 4]
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x1c], 0xffffffff
push dword [eax]
lea eax, [esp + 0x14]
push eax
call fcn.66e07800
push dword [edi + 4]
call fcn.66e13cbe
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x66e08ab0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x66f77050
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x66fe31a0]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov eax, dword [0x66fe31a0]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov edi, ecx
push 0
push str.Activation_Service_Users
lea ecx, [esp + 0x38]
call fcn.66f53500
mov eax, dword [edi + 4]
lea esi, [edi + 4]
mov dword [esp + 0x7c], 0
mov ecx, dword [eax]
cmp ecx, eax
je 0x66e08b66
cmp dword [ecx + 0x2c], 0
jne 0x66e08b1d
push ecx
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.66e078c0
mov ecx, dword [eax]
jmp 0x66e08b62
cmp byte [ecx + 0xd], 0
jne 0x66e08b62
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
jne 0x66e08b42
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0xd], 0
jne 0x66e08b62
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0xd], 0
je 0x66e08b36
jmp 0x66e08b62
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x66e08b60
jmp 0x66e08b50
cmp ecx, dword [eax + 8]
jne 0x66e08b60
mov ecx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x66e08b50
mov ecx, eax
cmp ecx, dword [esi]
jne 0x66e08b06
push 0x10
push str.encoding_UTF_8_
lea ecx, [esp + 0x48]
call fcn.66e02560
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], 0x66f8ba6c
mov dword [esp + 0x20], 0x66f8ba74
mov dword [esp + 0x28], 0x66f8ba78
call dword [0x66f8ba6c]
push eax
lea ecx, [esp + 0x34]
call fcn.66f55920
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], vtable.XMLSTLNames_myInfo.0
mov dword [esp + 0x38], eax
push dword [esp + 0x1c]
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 1
call fcn.66e04bc0
lea ecx, [esp + 0x30]
call fcn.66f53ee0
mov ecx, dword [esp + 0x10]
lea esi, [edi + 0x28]
mov eax, dword [esp + 0xc]
push 0
mov byte [esp + 0x80], 0
mov dword [ecx], eax
mov ecx, esi
call fcn.66f52c00
push esi
lea ecx, [esp + 0x34]
call fcn.66f55440
lea ecx, [esp + 0x30]
mov dword [esp + 0x7c], 0xffffffff
call fcn.66f53770
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.66f2a29c
add esp, 0x74
ret

Function at 0x66e09890
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x66f770eb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x66fe31a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push dword [esp + 0x1c]
lea ecx, [esi + 4]
mov dword [esi], vtable.CDriverConfig.0
call fcn.66e13410
push dword [esp + 0x20]
lea ecx, [esi + 0x18]
mov dword [esp + 0x18], 0
call fcn.66e13410
mov al, byte [esp + 0x24]
mov byte [esi + 0x2c], al
mov al, byte [esp + 0x28]
mov byte [esi + 0x2d], al
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x30], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x14
Function at 0x66e0a820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x66f77381
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x66fe31a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x34]
mov dword [esp + 8], 0
call fcn.66e13130
push eax
lea ecx, [esp + 0x10]
call fcn.66e13340
lea eax, [esi + 4]
mov dword [esp + 0x28], 1
mov esi, dword [esp + 0x30]
push eax
lea eax, [esp + 0x10]
push eax
push esi
call fcn.66e13570
add esp, 0xc
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x28], 0
call fcn.66e134c0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4

Function at 0x66e0a8b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x66f77381
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x66fe31a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x18]
mov dword [esp + 8], 0
call fcn.66e13130
push eax
lea ecx, [esp + 0x10]
call fcn.66e13340
push 0x5c
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 1
call fcn.66e13a40
push eax
call fcn.66e0e680
add esp, 8
test al, al
je 0x66e0a951
lea eax, [esi + 4]
mov esi, dword [esp + 0x30]
push eax
lea eax, [esp + 0x10]
push eax
push esi
call fcn.66e13570
add esp, 0xc
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x28], 0
call fcn.66e134c0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call fcn.66e13340
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x28], 0
call fcn.66e134c0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4
Function at 0x66e0b280
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x66f77478
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x66fe31a0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x10]
call fcn.66e13490
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x40], 0
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov esi, eax
mov ecx, esi
call fcn.66e13a90
add eax, 0xa
cmp eax, 0x104
jbe 0x66e0b2e0
mov ecx, esi
call fcn.66e13a90
add eax, 0xa
jmp 0x66e0b2e5
mov eax, 0x104
push eax
lea ecx, [esp + 0x14]
call fcn.66e13800
push eax
push 0
push 0x66f8bcb0
mov ecx, esi
call fcn.66e13a40
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0x10]
test eax, eax
jne 0x66e0b319
call fcn.66e138e0
xor bl, bl
jmp 0x66e0b43a
call fcn.66e138e0
mov ecx, dword [edi + 0x20]
mov esi, dword [ecx + 0x6c]
test esi, esi
je 0x66e0b369
push ecx
lea ecx, [esp + 0x14]
call fcn.66e13a40
push eax
push 0x66f8bca8
push esi
push 0
push dword [0x66feb500]
call fcn.66e0e6b0
add esp, 0x18
test al, al
jne 0x66e0b3eb
push 0
push 0x25a03eb
mov ecx, 0x66feb0e0
call fcn.66e09730
mov bl, al
jmp 0x66e0b43a
mov eax, dword [ecx]
lea edx, [esp + 0x24]
push edx
call dword [eax + 0x20]
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 1
call fcn.66e13a40
push eax
lea ecx, [esp + 0x2c]
call fcn.66e13a40
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x66e0b3a0
push eax
push 0x26303eb
jmp 0x66e0b3c1
mov eax, dword [edi + 0x20]
lea ecx, [esp + 0x10]
mov esi, dword [eax]
call fcn.66e13a40
mov ecx, dword [edi + 0x20]
push eax
mov eax, dword [esi]
call eax
test al, al
jne 0x66e0b3dd
push 0
push 0x26803ea
mov ecx, 0x66feb0e0
call fcn.66e09730
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 0
mov bl, al
call fcn.66e134c0
jmp 0x66e0b43a
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 0
call fcn.66e134c0
mov ecx, dword [edi + 0x20]
lea edx, [esp + 0x24]
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, eax
mov byte [esp + 0x40], 2
call fcn.66e13a40
push eax
lea ecx, [esp + 0x14]
call fcn.66e13a40
push eax
mov ecx, edi
call fcn.66e0bd30
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 0
mov bl, al
call fcn.66e134c0
test bl, bl
jne 0x66e0b43a
lea ecx, [esp + 0x10]
call fcn.66e13a40
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call fcn.66e134c0
mov al, bl
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret
Function at 0x66e0b460
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x66f780c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x66fe31a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.66e13a90
test eax, eax
je 0x66e0b50c
push esi
lea ecx, [esp + 0x10]
call fcn.66e13340
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0
call fcn.66e138a0
push 0x5c
push eax
call fcn.66f2b747
mov esi, eax
add esp, 8
test esi, esi
je 0x66e0b4fb
cmp byte [esi], 0
je 0x66e0b4fb
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x66e0b4d0
push esi
call fcn.66f2b896
mov esi, eax
add esp, 4
mov al, byte [esi]
cmp al, 0x5c
jne 0x66e0b4f7
push 0
lea ecx, [esp + 0x10]
mov byte [esi], 0
call fcn.66e13a40
push eax
call edi
mov byte [esi], 0x5c
jmp 0x66e0b4d0
test al, al
jne 0x66e0b4d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.66e134c0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 4

Function at 0x66e0b520
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x66f774e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66fe31a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
mov ecx, esi
call fcn.66e13a90
test eax, eax
je 0x66e0b5e9
push esi
lea ecx, [esp + 0x18]
call fcn.66e13340
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.66e138a0
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.66e13a90
lea esi, [edi + eax]
cmp esi, edi
je 0x66e0b5d8
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ecx]
cmp byte [esi], 0x5c
jne 0x66e0b5c2
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0x80
push edi
mov ebx, eax
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x66e0b5c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 1
ja 0x66e0b5d4
push esi
push edi
call fcn.66f2b7f9
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x66e0b590
jmp 0x66e0b5d8
push ebx
push edi
call ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.66e134c0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x66e0b950
Capabilities:
Check if file exists
Delete file
Get number of processors
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x66f774e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66fe31a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, ecx
mov ecx, dword [ebp + 0x20]
lea edx, [esp + 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.66e13a90
push 0
test eax, eax
jne 0x66e0b9b1
push 0x1d5ffff
mov ecx, 0x66feb0e0
call fcn.66e09730
jmp 0x66e0ba62
mov ecx, ebp
call fcn.66e0ab60
push 0x80
lea ecx, [esp + 0x18]
call fcn.66e13a40
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x66e0b9e9
lea ecx, [esp + 0x14]
call fcn.66e13a40
push eax
call edi
test eax, eax
jne 0x66e0ba52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x66e0b9fe
cmp eax, 3
jbe 0x66e0ba52
cmp eax, 0xf
je 0x66e0ba52
push 0x80
lea ecx, [esp + 0x18]
xor esi, esi
call fcn.66e13a40
push eax
call ebx
lea ecx, [esp + 0x14]
call fcn.66e13a40
push eax
call edi
test eax, eax
jne 0x66e0ba52
mov eax, esi
inc esi
cmp eax, 0xa
ja 0x66e0ba8d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x80
lea ecx, [esp + 0x18]
call fcn.66e13a40
push eax
call ebx
lea ecx, [esp + 0x14]
call fcn.66e13a40
push eax
call edi
test eax, eax
je 0x66e0ba21
mov ecx, dword [ebp + 0x20]
mov eax, dword [ecx]
call dword [eax + 0x18]
push eax
mov ecx, ebp
call fcn.66e0b520
mov bl, 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.66e134c0
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ecx, ebp
call fcn.66e0b600
push 0
push 0x1fa03e9
mov ecx, 0x66feb0e0
call fcn.66e09730
mov bl, al
jmp 0x66e0ba64
Function at 0x66e0bd30
Capabilities:
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
push 0x66f775bb
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x66fe31a0]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
push edi
mov eax, dword [0x66fe31a0]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov eax, dword [0x66fe20c4]
mov ebx, dword [esp + 0x238]
mov esi, dword [esp + 0x23c]
cmp eax, 1
jne 0x66e0be6b
lea ecx, [esp + 0x10]
call fcn.66e0c6c0
push 0x104
lea eax, [esp + 0x124]
mov dword [esp + 0x234], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x120]
push 0x5c
push eax
call fcn.66e0e680
add esp, 8
test al, al
jne 0x66e0bde3
lea edi, [esp + 0x120]
dec edi
jmp 0x66e0bdd0
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x66e0bdd0
mov ax, word [0x66f8af3c]
mov word [edi], ax
lea ecx, [esp + 0x120]
dec ecx
jmp 0x66e0bdf0
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x66e0bdf0
mov eax, dword [str.WININIT.INI]
mov dword [ecx], eax
mov eax, dword [0x66f8bcb8]
mov dword [ecx + 4], eax
mov eax, dword [0x66f8bcbc]
mov dword [ecx + 8], eax
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x14]
call fcn.66e0cd30
push str.rename
lea ecx, [esp + 0x14]
call fcn.66e0ca70
test eax, eax
je 0x66e0be53
mov ecx, eax
push ebx
test esi, esi
jne 0x66e0be42
push 0x66f8bcc8
jmp 0x66e0be43
push esi
call fcn.66e0c990
push 0
lea ecx, [esp + 0x14]
call fcn.66e0cea0
lea ecx, [esp + 0x10]
mov dword [esp + 0x230], 0xffffffff
call fcn.66e0c7d0
mov al, 1
jmp 0x66e0be8f
cmp eax, 2
jne 0x66e0be7e
push 5
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov al, 1
jmp 0x66e0be8f
push 0
push 0x2a3ffff
mov ecx, 0x66feb0e0
call fcn.66e09730
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.66f2a29c
add esp, 0x224
ret 8

Function at 0x66e0c250
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x208
mov eax, dword [0x66fe31a0]
xor eax, esp
mov dword [esp + 0x204], eax
push esi
mov esi, dword [esp + 0x210]
push edi
mov edi, ecx
cmp esi, 0xffffffff
je 0x66e0c2d7
push 0
push 0
push dword [esp + 0x220]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x66e0c2d7
push 0x100
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push 0
push eax
call fcn.66f2b130
add esp, 0xc
lea eax, [esp + 8]
push 0
push eax
push 0x200
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x66e0c2d7
cmp dword [esp + 8], 2
jbe 0x66e0c2d7
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.66e0c590
jmp 0x66e0c2d9
xor al, al
mov ecx, dword [esp + 0x20c]
pop edi
pop esi
xor ecx, esp
call fcn.66f2a29c
add esp, 0x208
ret 8