joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10060e20
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10139b6b
mov eax, dword fs:[0]
push eax
mov eax, 0x264c
call fcn.101242d0
mov eax, dword [0x1019d008]
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 esi, ecx
push 0x2000
xor ebx, ebx
lea eax, [ebp - 0x2218]
push ebx
push eax
call fcn.10105570
add esp, 0xc
mov eax, 0x22
mov word [ebp - 0x2218], ax
test esi, esi
je 0x10061034
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x10061034
push esi
call edi
cmp eax, 0xffa
jge 0x10061034
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x2218]
push eax
call esi
push 0x1016142c
lea eax, [ebp - 0x2218]
push eax
call esi
push str.Shell32.dll
lea ecx, [ebp - 0x2658]
call fcn.10007b90
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2658]
push eax
call fcn.10069f30
mov ecx, eax
call fcn.10069ff0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2658]
call fcn.10004ab0
test esi, esi
je 0x10061034
push 0x10164694
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x263c], eax
test eax, eax
je 0x10061034
lea ecx, [ebp - 0x2638]
call fcn.10060aa0
xor edi, edi
lea esi, [ebp - 0x2638]
nop dword [eax]
cmp word [esi], 0
je 0x10060f54
push 1
push 0
lea eax, [ebp - 0x2218]
push eax
push esi
push str.open
push 0
call dword [ebp - 0x263c]
cmp eax, 0x20
ja 0x10060f62
inc edi
add esi, 0x210
cmp edi, 2
jl 0x10060f30
jmp 0x10060f84
imul ebx, edi, 0x210
cmp dword [ebp + ebx - 0x2430], 0
mov ebx, dword [ebp + ebx - 0x242c]
jne 0x10060f7c
add ebx, 0x10
test ebx, ebx
jne 0x10061030
mov edi, dword [ebp - 0x263c]
lea eax, [ebp - 0x2218]
push 1
push 0
push 0
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x1006102b
mov dword [ebp - 0x2640], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x263c], str._programfiles_Internet_Exploreriexplore.exe
nop
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10105570
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x103
push eax
push dword [ebp + esi*4 - 0x2640]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10061021
push 1
push 0
lea eax, [ebp - 0x2218]
push eax
lea eax, [ebp - 0x218]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x1006102b
inc esi
cmp esi, 2
jb 0x10060fc0
mov eax, ebx
jmp 0x10061036
mov ebx, 0x10
mov eax, ebx
jmp 0x10061036
xor eax, eax
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.10103789
mov esp, ebp
pop ebp
ret
Function at 0x10062810
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10139e40
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1019d008]
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 edi, ecx
call fcn.10004f90
test al, al
je 0x1006284d
xor al, al
jmp 0x100629f9
mov ecx, edi
call fcn.100622c0
test al, al
je 0x1006285f
mov al, 1
jmp 0x100629f9
push 0
mov ecx, edi
call fcn.10006030
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x100628ae
lea ecx, [ebp - 0x28]
call fcn.10005020
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.10074f30
test al, al
je 0x1006289f
push 0
lea ecx, [ebp - 0x28]
call fcn.10006030
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ab0
mov ecx, edi
call fcn.100622c0
test al, al
jne 0x10062858
mov ecx, edi
call fcn.10004a70
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x1006299e
mov ecx, edi
call fcn.10004ba0
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x100628e2
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x10062905
mov eax, ebx
cmp ecx, 8
jb 0x100628fb
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x1006298e
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.1000ea50
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10004f90
test al, al
jne 0x1006297f
lea ecx, [ebp - 0x28]
call fcn.100620b0
test al, al
jne 0x1006297f
push 0
lea ecx, [ebp - 0x28]
call fcn.10006030
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1006297f
lea ecx, [ebp - 0x40]
call fcn.10005020
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.10074f30
test al, al
je 0x10062973
push 0
lea ecx, [ebp - 0x40]
call fcn.10006030
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10004ab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ab0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x100628d6
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.100620b0
test al, al
jne 0x100629f2
push 0
mov ecx, edi
call fcn.10006030
push eax
call ebx
test eax, eax
jne 0x100629f2
lea ecx, [ebp - 0x40]
call fcn.10005020
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.10074f30
test al, al
je 0x100629e3
push 0
lea ecx, [ebp - 0x40]
call fcn.10006030
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004ab0
mov ecx, edi
call fcn.100622c0
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.10103789
mov esp, ebp
pop ebp
ret
Function at 0x100633a0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10130948
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1019d008]
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 esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x100633db
xor al, al
jmp 0x10063462
add eax, 0x20
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.1000b700
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x1006344f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edi, [esi + 4]
push 1
push edi
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x10062f80
push 0
push 0
call fcn.10113a21
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x1006347e
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x10063447
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.10063110
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1000b730
mov al, bl
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.10103789
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x10063496
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x10063436
mov bl, 1
jmp 0x10063451

Function at 0x100637e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x10063818
mov edx, dword [esp + 4]
test edx, edx
je 0x10063818
cmp dword [eax], 0xffffffff
je 0x10063818
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10063818
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x10063820
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x1006385a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1006385a
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1006385a
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1006385a
cmp edi, dword [esi]
jne 0x1006385a
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc
Function at 0x100638d0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x1019d008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x10063933
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10063933
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1006390e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10063933
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10103789
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.10103789
add esp, 8
ret 4

Function at 0x10063a00
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x10063aae
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.10063950
test al, al
je 0x10063aae
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.10063950
test al, al
je 0x10063aae
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x10063a84
cmp dword [esp + 0x14], edi
jne 0x10063a84
mov eax, dword [esi]
test eax, eax
jne 0x10063a71
xor bl, bl
jmp 0x10063a84
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10063a6d
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.10063950
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10063c30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013a0a6
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x1019d008]
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 esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x654]
mov ebx, dword [ebp + 0xc]
call fcn.10005020
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x63c]
push 0x101a3090
mov dword [ebp - 0x63c], 0
call fcn.1000b700
mov byte [ebp - 4], 1
mov ecx, 0x101a3094
call fcn.10004f90
test al, al
jne 0x10063cd9
mov ecx, 0x101a3094
call fcn.10004ba0
lea ecx, [ebp - 0x654]
cmp ecx, eax
je 0x10063d9d
mov ecx, 0x101a3094
call fcn.10004ba0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x10063cd0
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x10063d92
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.10105570
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x10063e30
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x638]
push eax
call fcn.10105570
add esp, 0xc
lea eax, [ebp - 0x638]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x10063d7b
test eax, eax
je 0x10063d7b
add eax, eax
cmp eax, 0x412
jae 0x10063e73
xor ecx, ecx
mov word [ebp + eax - 0x638], cx
lea eax, [ebp - 0x638]
push eax
call fcn.10005260
add esp, 4
push eax
lea eax, [ebp - 0x638]
jmp 0x10063d91
lea eax, [ebp - 0x220]
push eax
call fcn.10005260
add esp, 4
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x654]
call fcn.10004c10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x63c]
call fcn.1000b730
push ebx
push edi
lea eax, [ebp - 0x654]
mov ecx, esi
push eax
call fcn.10063bc0
test al, al
je 0x10063dc4
mov bl, 1
jmp 0x10063e41
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.10105570
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x10063e3f
xor eax, eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x220]
push eax
call fcn.10005260
add esp, 4
lea ecx, [ebp - 0x654]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.10004c10
push ebx
push edi
lea eax, [ebp - 0x654]
mov ecx, esi
push eax
call fcn.10063bc0
mov bl, al
jmp 0x10063e41
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x63c]
call fcn.1000b730
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x654]
call fcn.10004ab0
mov al, bl
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.10103789
mov esp, ebp
pop ebp
ret 8
call fcn.10103e09
int3
Function at 0x10069230
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10188730
push 0x10105290
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x1019d008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.100121e0
mov ecx, edi
call fcn.10069350
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x100692c3
test bl, bl
jne 0x10069332
cmp edi, 0x1a
jne 0x10069332
mov ecx, esi
call fcn.100121e0
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.10105570
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x430]
push eax
call fcn.10005260
add esp, 4
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.10004c10
mov ecx, esi
call fcn.10004f90
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10103789
mov esp, ebp
pop ebp
ret
Function at 0x1006b200
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013aeab
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x1019d008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x1006b239
call fcn.1006b3a0
cmp byte [0x101a2498], 0
jne 0x1006b24c
mov eax, reloc.gdiplus.dll_Ordinal_1
jmp 0x1006b37c
mov eax, dword [esi]
test eax, eax
jne 0x1006b2cc
push 8
call fcn.101037ad
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.101037ad
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call fcn.10105570
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1006b2bb
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x1006b36b
call fcn.1005e980
test al, al
jne 0x1006b306
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.1005eec0
test al, al
je 0x1006b36b
mov ecx, dword [esi]
add ecx, 4
call fcn.1005e4d0
call fcn.1005e980
test al, al
je 0x1006b36b
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.10007b90
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.10069f30
mov ecx, eax
call fcn.10069ff0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.10004ab0
test edi, edi
je 0x1006b36b
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006b36b
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x1006b36b
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x1006b37a
mov dword [eax], reloc.gdiplus.dll_Ordinal_1
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10103789
mov esp, ebp
pop ebp
ret 4
Function at 0x1006d960
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013b41f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1019d008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + 4]
push eax
lea ecx, [eax + 0x94]
call fcn.1006e0a0
mov esi, dword [edi + 4]
add esp, 4
sub esi, 0x94
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.10004ab0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10004ab0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10004ab0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10004ab0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10004ab0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10004ab0
mov eax, dword [ebp + 8]
add dword [edi + 4], 0xffffff6c
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x1006e670
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013b60f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1019d008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.10004ab0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10004ab0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10004ab0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10004ab0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10004ab0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10004ab0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1006f950
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013b7af
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1019d008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.10004fe0
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.10004fe0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.10004fe0
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.10004fe0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.10004fe0
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.10004fe0
mov dword [ebp - 4], 0xffffffff
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 0x10074a30
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10130f08
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1019d008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x10074a67
xor al, al
jmp 0x10074aca
and esi, 0xffffb1af
push esi
call fcn.10006030
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10074a82
mov al, 1
jmp 0x10074aca
lea ecx, [ebp - 0x28]
call fcn.10005020
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.10074f30
test al, al
je 0x10074ab7
push esi
lea ecx, [ebp - 0x28]
call fcn.10006030
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10074ab7
mov bl, 1
jmp 0x10074ab9
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ab0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10103789
mov esp, ebp
pop ebp
ret

Function at 0x10074af0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10130f08
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1019d008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.10006030
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10074b6e
lea ecx, [ebp - 0x28]
call fcn.10005020
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.10074f30
test al, al
je 0x10074b5d
lea ecx, [ebp - 0x28]
call fcn.10006030
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ab0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10103789
mov esp, ebp
pop ebp
ret
Function at 0x10074b90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013c3a0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1019d008]
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 esi, ecx
call fcn.10006030
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x10074bd6
mov al, 1
jmp 0x10074ccb
mov ecx, esi
call fcn.10006030
push eax
lea ecx, [ebp - 0x28]
call fcn.10007b90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10074af0
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ab0
cmp ebx, 0xffffffff
jne 0x10074c15
xor al, al
jmp 0x10074ccb
mov ecx, esi
call fcn.10006030
push eax
lea ecx, [ebp - 0x28]
call fcn.10007b90
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.10074a30
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ab0
test bl, bl
je 0x10074c0e
mov ecx, esi
call fcn.10006030
push eax
call edi
test eax, eax
jne 0x10074bcf
lea ecx, [ebp - 0x28]
call fcn.10005020
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.10074f30
test al, al
je 0x10074c8d
lea ecx, [ebp - 0x28]
call fcn.10006030
push eax
call edi
test eax, eax
je 0x10074c8d
mov bl, 1
jmp 0x10074cba
mov ecx, esi
call fcn.10006030
push eax
lea ecx, [ebp - 0x44]
call fcn.10007b90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.10074a30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.10004ab0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ab0
mov al, bl
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.10103789
mov esp, ebp
pop ebp
ret