joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ce08a81
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x7ce08abe
lea eax, [ebp - 0xc]
push esi
push eax
mov edi, 0x200
lea eax, [ebp - 0x218]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x7ce08ad1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7ce3959e
mov ebx, eax
jmp 0x7ce08c02
cmp dword [ebp - 0xc], edi
je 0x7ce08ae0
mov ebx, 0x800300fb
jmp 0x7ce08c02
lea ecx, [ebp - 0x218]
call fcn.7cd93e8a
mov ebx, eax
cmp ebx, esi
jl 0x7ce08c02
call sym.ole32.dll_CoFreeAllLibraries
lea eax, [ebp - 4]
push esi
push eax
call fcn.7ce38e8d
mov ebx, eax
cmp ebx, esi
jl 0x7ce08c02
push dword [ebp - 4]
push 0x64
call fcn.7cd861f9
cmp eax, esi
je 0x7ce08b2d
push dword [ebp - 4]
mov ecx, eax
call fcn.7cd8f800
mov esi, eax
mov dword [ebp - 8], esi
jmp 0x7ce08b30
mov dword [ebp - 8], esi
test esi, esi
jne 0x7ce08b3e
mov ebx, 0x80030008
jmp 0x7ce08bf9
push 0
push 0
mov ecx, esi
call fcn.7ce0d06b
mov ebx, eax
test ebx, ebx
jl 0x7ce08bf3
push dword [ebp + 8]
mov ecx, esi
call fcn.7ce0c1fe
mov ebx, eax
test ebx, ebx
jl 0x7ce08bf3
lea eax, [ebp - 0x14]
push eax
push 1
push 0x40
push esi
call fcn.7cd90614
mov ebx, eax
test ebx, ebx
jl 0x7ce08bf3
lea eax, [ebp - 0x10]
push eax
push 0x40
push esi
call fcn.7cd94648
mov ebx, eax
test ebx, ebx
jl 0x7ce08be8
mov eax, dword [ebp - 0x1e8]
mov cl, byte [ebp - 0x1fa]
shl eax, cl
mov ecx, dword [esi]
lea ebx, [ebp - 0x218]
xor edx, edx
add eax, edi
lea edi, [ebp - 0xc]
push edi
mov edi, 0x80
push edi
push ebx
push edx
push eax
push esi
call dword [ecx + 0xc]
mov ebx, eax
test ebx, ebx
jl 0x7ce08bdd
mov ebx, dword [ebp - 0xc]
lea esi, [ebp - 0x1c8]
sub ebx, edi
mov edi, dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
neg ebx
sbb ebx, ebx
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
and ebx, 0x8003001e
push dword [ebp - 0x10]
push 0x40
push esi
call fcn.7cd94d04
push dword [ebp - 0x14]
push 0x40
push esi
call fcn.7cd90ead
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 8
Function at 0x7ce08ef7
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
mov ebx, dword [ebp + 0x14]
push esi
cmp ebx, 4
push edi
je 0x7ce08f61
xor edi, edi
cmp ebx, edi
je 0x7ce08f63
cmp ebx, 5
je 0x7ce08f63
lea eax, [ebp - 4]
mov esi, 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, edi
jne 0x7ce08f53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x7ce08f49
push eax
call fcn.7ce3959e
jmp 0x7ce08fdd
mov ebx, 0x800300fc
jmp 0x7ce0909d
cmp eax, esi
jbe 0x7ce08f63
mov ebx, 0x80030003
jmp 0x7ce0909d
xor edi, edi
mov eax, ebx
sub eax, edi
je 0x7ce08fe4
sub eax, 3
je 0x7ce08fc4
dec eax
je 0x7ce08f76
dec eax
je 0x7ce08fe4
jmp 0x7ce08f7b
cmp dword [ebp + 0xc], edi
je 0x7ce08f85
mov ebx, 0x80030057
jmp 0x7ce0909d
push dword [ebp + 8]
call fcn.7ce1b34d
mov ebx, eax
cmp ebx, edi
jl 0x7ce08f98
push 3
pop eax
jmp 0x7ce08fa6
cmp ebx, 0x80030001
jne 0x7ce0909d
xor eax, eax
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.7ce08ef7
jmp 0x7ce08fdd
push dword [ebp + 0x28]
lea eax, [ebp - 0x20c]
push dword [ebp + 0x24]
push dword [ebp + 0xc]
push edi
push dword [ebp + 0x10]
push eax
call fcn.7ce1a6c3
mov ebx, eax
jmp 0x7ce0909d
cmp dword [ebp + 0xc], edi
mov dword [ebp + 0x14], edi
je 0x7ce0901d
test byte [ebp + 0x19], 1
je 0x7ce08ff5
mov dword [ebp + 8], edi
mov eax, dword [ebp + 0x1c]
cmp eax, edi
je 0x7ce09001
mov eax, dword [eax + 4]
jmp 0x7ce09006
mov eax, 0x200
lea ecx, [ebp + 0x14]
push ecx
push dword [ebp + 0x18]
push eax
push edi
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.7ce08458
jmp 0x7ce09037
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x18]
push dword [ebp + 0x18]
push eax
push edi
push edi
push dword [ebp + 0x10]
push edi
push edi
push dword [ebp + 8]
call fcn.7ce08678
mov ebx, eax
cmp ebx, edi
jl 0x7ce0909d
mov edi, dword [ebp + 0x24]
push 0x10
pop ecx
mov esi, 0x7cd761e8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x7ce09082
push dword [ebp + 0x28]
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx]
mov ebx, eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp + 0xc], 0
je 0x7ce0909d
test ebx, ebx
jge 0x7ce0909d
cmp dword [ebp + 8], 0
je 0x7ce0909d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x7ce0909d
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x7ce0909d
cmp dword [ebp + 0xc], 0
jne 0x7ce0909d
mov ecx, dword [ebp + 0x18]
mov dword [eax + 4], ecx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0x24
Function at 0x7ce0931d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
je 0x7ce0936c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x7ce09360
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x7ce093c7
mov edi, 0x800300fc
jmp 0x7ce093cf
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x7ce093a7
mov word [eax], di
jmp 0x7ce093a7
lea eax, [ebp - 0x20c]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x7ce093a7
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x7ce093a7
lea eax, [ebp - 0x20c]
push 0x7cd75ac0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
push 0x7cd81bbc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x7ce093cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7ce3959e
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x7ce093d7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 6
xor esi, esi
pop ecx
mov eax, 0xdededede
lea edi, [ebp - 0x2c]
cmp ebx, esi
rep stosd dword es:[edi], eax
jne 0x7ce09406
cmp ebx, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x14]
je 0x7ce09408
mov eax, ebx
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x2c]
push 0x18
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x7ce0946f
cmp ebx, esi
je 0x7ce09490
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, eax
cmp esi, 0x3e5
jne 0x7ce09450
lea eax, [ebp + 0xc]
push 1
push eax
push ebx
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x7ce09450
call edi
mov esi, eax
test esi, esi
je 0x7ce0946f
cmp esi, 0x26
je 0x7ce0946f
test esi, esi
jle 0x7ce09469
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
test eax, eax
jl 0x7ce09478
lea eax, [ebp - 0x2c]
push eax
call fcn.7cd93e3c
cmp eax, 0x80030104
je 0x7ce09486
cmp eax, 0x800300fb
jne 0x7ce09489
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
push 1
pop eax
jmp 0x7ce09478
Function at 0x7ce09505
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
lea eax, [ebp - 0x110]
push 0x40
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call sym.ole32.dll_StringFromGUID2
test eax, eax
jne 0x7ce09540
mov dword [ebp - 4], 0x8000ffff
jmp 0x7ce09626
lea eax, [ebp - 0x90]
push 0x7cd814a4
push eax
call sub.ntdll.dll_wcscpy
pop ecx
lea eax, [ebp - 0x110]
pop ecx
push eax
lea eax, [ebp - 0x90]
push eax
call sub.ntdll.dll_wcscat
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov esi, 0x7cd71a80
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x20006
push ebx
push esi
lea eax, [ebp - 0x90]
push ebx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x7ce0961f
push dword [ebp + 0xc]
call sub.ntdll.dll_wcslen
pop ecx
lea eax, [eax + eax + 2]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0xc]
push 1
push ebx
push esi
push dword [ebp - 0xc]
call edi
cmp eax, ebx
jne 0x7ce0961f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x20006
push ebx
push esi
push ebx
push 0x7cd7262c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x7ce0961f
push dword [ebp + 0x10]
call sub.ntdll.dll_wcslen
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push ebx
push esi
push dword [ebp - 8]
call edi
cmp eax, ebx
jne 0x7ce0961f
push dword [ebp + 0x14]
call sub.ntdll.dll_wcslen
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push ebx
push 0x7cd726dc
push dword [ebp - 8]
call edi
cmp eax, ebx
je 0x7ce09626
mov dword [ebp - 4], 0x80040151
cmp dword [ebp - 0xc], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x7ce09636
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 8], ebx
je 0x7ce09640
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x7ce0964a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
lea eax, [ebp - 0x94]
push 0x40
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call sym.ole32.dll_StringFromGUID2
mov edi, eax
cmp edi, ebx
jne 0x7ce09684
mov dword [ebp - 4], 0x8000ffff
jmp 0x7ce097e7
lea eax, [ebp - 0xc]
inc edi
push eax
push 3
push ebx
mov dword [ebp - 0x14], edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x7ce096ab
mov dword [ebp - 4], 0x80040152
jmp 0x7ce097e7
lea eax, [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
mov dword [ebp + 8], ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
call esi
cmp eax, ebx
je 0x7ce09701
lea edi, [edi + edi + 2]
mov dword [ebp + 8], 2
push edi
mov dword [ebp + 0x10], edi
call fcn.7cd8702d
mov esi, eax
pop ecx
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x7ce0972a
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x7ce09787
cmp dword [ebp - 0x10], 7
je 0x7ce09713
mov dword [ebp - 4], 0x80040153
jmp 0x7ce097e7
mov eax, dword [ebp + 8]
lea edi, [eax + edi*2]
push edi
mov dword [ebp + 0x10], edi
call fcn.7cd8702d
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jne 0x7ce09736
mov dword [ebp - 4], 0x80030008
jmp 0x7ce097e7
mov ecx, edi
mov edi, dword [ebp - 8]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push dword [ebp - 8]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
call esi
cmp eax, ebx
je 0x7ce09784
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x7ce09773
call esi
jmp 0x7ce0977f
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x7ce097e7
mov esi, dword [ebp - 8]
cmp word [esi], bx
je 0x7ce097b1
lea eax, [ebp - 0x94]
push eax
push esi
call sub.ntdll.dll_wcscmp
pop ecx
test eax, eax
pop ecx
je 0x7ce097ac
cmp word [esi], bx
je 0x7ce097a8
inc esi
inc esi
jmp 0x7ce0979f
inc esi
inc esi
jmp 0x7ce09787
cmp word [esi], bx
jne 0x7ce097e7
lea eax, [ebp - 0x94]
push eax
push esi
call sub.ntdll.dll_wcscpy
pop ecx
mov eax, dword [ebp - 0x14]
pop ecx
push dword [ebp + 0x10]
mov word [esi + eax*2], bx
push dword [ebp - 8]
push 7
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x7ce097e7
mov dword [ebp - 4], 0x80040151
cmp dword [ebp - 0xc], ebx
je 0x7ce097f5
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
je 0x7ce09803
push dword [ebp - 8]
call fcn.7cd8701a
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x7ce0b7d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
cmp dword [esi + 0x1c], eax
je 0x7ce0b7fe
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
mov ebx, dword [eax + 8]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.7ce0b6a3
test byte [ebp + 0x10], 1
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
jne 0x7ce0b86a
test bl, 0x80
jne 0x7ce0b86a
test bh, 1
je 0x7ce0b86a
xor ebx, ebx
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
push ebx
push 0x80000000
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
jne 0x7ce0b861
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x7ce0b8a9
call esi
jmp 0x7ce0b923
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x7ce0b86c
xor ebx, ebx
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
jne 0x7ce0b92d
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x7ce0b8a3
cmp eax, 0x50
jne 0x7ce0b923
test byte [ebp + 0x10], 2
jne 0x7ce0b8b3
mov eax, 0x80030050
jmp 0x7ce0b987
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateLocallyUniqueId]
test eax, eax
je 0x7ce0b921
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x18]
push 0x7cd81bbc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x7ce0b921
lea eax, [ebp - 0x224]
push 0x105
push eax
push dword [ebp + 8]
call sub.ntdll.dll_wcsncpy
add esp, 0xc
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push 0
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
jne 0x7ce0b92b
call ebx
cmp eax, 0xb7
je 0x7ce0b8b3
cmp eax, 0x50
jne 0x7ce0b923
jmp 0x7ce0b8b3
call ebx
push eax
call fcn.7ce3959e
jmp 0x7ce0b987
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x7ce0b945
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0b947
xor eax, eax
test byte [eax + 0xd], 2
je 0x7ce0b985
lea eax, [ebp + 8]
push eax
push dword [esi + 0x24]
call fcn.7ce0cdd7
cmp eax, ebx
jl 0x7ce0b987
test word [ebp + 8], 0x1ff
jne 0x7ce0b985
cmp dword [esi + 0x1c], ebx
je 0x7ce0b97d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0b97f
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [eax + 0x20], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x7ce0bf3c
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
xor eax, eax
test byte [ebp + 0xc], 4
mov esi, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
je 0x7ce0bf5e
mov eax, 0x2000
push dword [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 1
push eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [esi + 0x58]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ecx, 0xc0000000
and eax, ecx
cmp eax, ecx
jne 0x7ce0bf94
mov eax, 0x8007000e
jmp 0x7ce0bfc0
cmp dword [esi + 0x1c], edi
je 0x7ce0bfac
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0bfae
xor eax, eax
or dword [eax + 0x2c], 1
mov eax, dword [ebp - 4]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x60], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x7ce0bfc6
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x58], edi
je 0x7ce0c0a2
mov eax, dword [esi + 0x5c]
cmp eax, edi
je 0x7ce0bff8
cmp dword [ebp + 8], edi
je 0x7ce0bfec
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0x5c], edi
mov eax, dword [esi + 0x58]
cmp eax, edi
je 0x7ce0c009
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x58], edi
cmp dword [esi + 0x1c], edi
je 0x7ce0c021
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov ecx, dword [eax]
add ecx, dword [esi + 0x1c]
jmp 0x7ce0c023
xor ecx, ecx
call fcn.7ce0ce66
cmp eax, 1
jne 0x7ce0c0a2
cmp dword [esi + 0x1c], edi
je 0x7ce0c045
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0c047
xor eax, eax
test byte [eax + 8], 0x80
je 0x7ce0c0a2
cmp dword [esi + 0x1c], edi
je 0x7ce0c065
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0c067
xor eax, eax
test byte [eax + 0x2c], 8
je 0x7ce0c0a2
cmp dword [esi + 0x1c], edi
je 0x7ce0c085
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0c087
xor eax, eax
push edi
mov ecx, esi
push dword [eax + 0x24]
call fcn.7ce0c4ed
and eax, edx
cmp eax, 0xffffffff
je 0x7ce0c0a2
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x7ce0c30a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x14], 0
push ebx
push esi
push edi
mov ebx, ecx
jne 0x7ce0c326
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x7ce0c3a7
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push esi
push edi
mov ecx, ebx
call fcn.7ce0cf14
test eax, eax
jne 0x7ce0c369
and dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0xc], edi
push dword [ebp + 0x18]
mov dword [ebp - 8], esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x7ce0c38f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x7ce0c38f
jmp 0x7ce0c381
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x7ce0c38f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7ce3959e
jmp 0x7ce0c3a9
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
test eax, eax
jbe 0x7ce0c3a7
xor ecx, ecx
add edi, eax
adc esi, ecx
mov ecx, ebx
push esi
push edi
call fcn.7ce0cec7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x7ce0c3b0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test ebx, ebx
ja 0x7ce0c3d9
jb 0x7ce0c3cf
cmp edi, 0x7fffffff
jae 0x7ce0c3d9
push edi
mov ecx, esi
call fcn.7ce0cfea
jmp 0x7ce0c3e2
push 1
mov ecx, esi
call fcn.7ce0bfc6
cmp dword [esi + 0x1c], 0
je 0x7ce0c3fb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0c3fd
xor eax, eax
mov dword [eax + 0x24], edi
cmp dword [esi + 0x1c], 0
je 0x7ce0c419
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0c41b
xor eax, eax
or dword [eax + 0x2c], 8
mov ecx, esi
call fcn.7ce0cf90
test eax, eax
jne 0x7ce0c4e4
and dword [ebp + 0xc], eax
mov ecx, dword [esi + 4]
lea eax, [esi + 4]
lea edx, [ebp - 0xc]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x7ce0c4e6
cmp dword [ebp - 0xc], edi
jne 0x7ce0c456
cmp dword [ebp - 8], ebx
jne 0x7ce0c459
jmp 0x7ce0c4e4
cmp dword [ebp - 8], ebx
ja 0x7ce0c49e
jb 0x7ce0c462
cmp dword [ebp - 0xc], edi
jae 0x7ce0c49e
cmp dword [esi + 0x1c], 0
je 0x7ce0c47b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
jmp 0x7ce0c47d
xor eax, eax
test byte [eax + 0xa], 8
jne 0x7ce0c49e
lea eax, [ebp - 4]
sub edi, 1
push eax
lea eax, [ebp + 0xc]
sbb ebx, 0
push 1
push eax
push ebx
push edi
mov ecx, esi
call fcn.7cd892f6
jmp 0x7ce0c4e0
push ebx
push edi
mov ecx, esi
call fcn.7ce0c4ed
cmp eax, 0xffffffff
jne 0x7ce0c4be
test edx, edx
jne 0x7ce0c4be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7ce3959e
jmp 0x7ce0c4e6
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x7ce0c4e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7ce3959e
cmp eax, 0x800704c8
jne 0x7ce0c4e0
xor eax, eax
test eax, eax
jl 0x7ce0c4e6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x7ce0c9f5
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
call fcn.7ce08c0b
test al, 0xc0
je 0x7ce0ca05
xor eax, eax
jmp 0x7ce0ca27
xor eax, eax
cmp dword [esi + 0x1c], eax
je 0x7ce0ca1d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x1c]
add eax, 0x70
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret 4
Function at 0x7ce0d56b
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
lea ecx, [edi + 0x64]
test ecx, ecx
je 0x7ce0d58c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
sub ecx, dword [eax]
jmp 0x7ce0d58e
xor ecx, ecx
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x7ce0d5d3
call fcn.7cd857f7
push eax
push 0x10
call fcn.7cd861f9
test eax, eax
je 0x7ce0d5bb
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 1
mov ecx, eax
jmp 0x7ce0d5bd
xor ecx, ecx
test ecx, ecx
jne 0x7ce0d5cb
mov eax, 0x80030008
jmp 0x7ce0d654
mov eax, dword fs:[0x18]
jmp 0x7ce0d5d9
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
sub ecx, dword [eax]
mov eax, dword [ebp + 0x10]
test edi, edi
mov dword [esi + 0x40], ecx
mov dword [esi + 0x34], eax
je 0x7ce0d600
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
sub edi, dword [eax]
mov eax, edi
jmp 0x7ce0d602
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x2c], eax
test ecx, ecx
je 0x7ce0d61c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
sub ecx, dword [eax]
jmp 0x7ce0d61e
xor ecx, ecx
test ecx, ecx
mov dword [esi + 0x30], ecx
je 0x7ce0d638
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esi + 0x30]
jmp 0x7ce0d63a
xor eax, eax
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esi + 0x3c], 1
mov dword [esi + 0x38], 0x54535845
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x10