joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ce1b4ba
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
je 0x7ce1b62b
push dword [ebp + 8]
call fcn.7ce1be9e
test eax, eax
jne 0x7ce1b62b
push 0x7ce4d2b8
lea ecx, [ebp - 0x7c]
call fcn.7ce198e7
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x280]
push eax
call fcn.7ce235a3
push edi
lea eax, [ebp - 0xc]
push edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x7ce1b52b
mov esi, 0x800300fc
jmp 0x7ce1b62b
mov ebx, dword [sym.imp.ntdll.dll_wcslen]
lea eax, [ebp - 0x27c]
push eax
call ebx
pop ecx
movzx ecx, word [ebp - 0xc]
shr ecx, 1
lea esi, [eax + ecx + 1]
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.7ce2956c
mov dword [ebp + 0xc], esp
push esi
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x27c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_wcscat]
pop ecx
pop ecx
mov eax, dword fs:[0x18]
push dword [ebp - 8]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 0xc]
push eax
mov dword [ebp - 8], eax
call ebx
shl eax, 1
pop ecx
mov word [ebp - 0xc], ax
lea eax, [esi + esi]
lea ecx, [ebp - 0xc]
push 0x40
mov word [ebp - 0xa], ax
mov dword [ebp - 0x34], ecx
pop eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x3c], 0x18
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 4]
push ecx
push edi
push edi
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call fcn.7ce1c35f
mov esi, eax
cmp esi, edi
jl 0x7ce1b62b
push edi
push edi
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push edi
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 8]
push dword [ebp - 4]
push eax
call dword [sym.imp.ntdll.dll_NtCreateFile]
cmp dword [ebp + 8], edi
mov ebx, eax
je 0x7ce1b616
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xc0000033
je 0x7ce1b626
cmp ebx, 0xc0000034
je 0x7ce1b62b
mov esi, 0x80030001
lea esp, [ebp - 0x28c]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x7ce1b63a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push 4
lea eax, [ebp - 0x30]
push 0x28
push eax
lea eax, [ebp - 8]
push eax
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jge 0x7ce1b666
push eax
call fcn.7ce1a27b
mov esi, eax
jmp 0x7ce1b66f
test byte [ebp - 0xf], 0x10
jne 0x7ce1b66f
push 1
pop esi
mov eax, esi
pop esi
leave
ret 4
Function at 0x7ce1b676
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
or dword [ebp - 4], 0xffffffff
xor ebx, ebx
push edi
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
mov esi, ecx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
xor edi, edi
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x7ce1b6a9
mov ebx, 0x800300fc
jmp 0x7ce1b770
mov eax, dword [ebp - 0x10]
test byte [ebp + 0x10], 2
mov dword [ebp - 8], eax
je 0x7ce1b6cc
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.7ce1bd20
mov ebx, eax
test ebx, ebx
jl 0x7ce1b770
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x7ce1b6dd
mov eax, 0x1000
test dword [esi + 0x48], eax
je 0x7ce1b6dd
mov edi, eax
lea eax, [ebp - 4]
or edi, 0x40
push eax
mov eax, dword [ebp + 0x10]
push dword [ebp + 0xc]
and al, 0xfd
push eax
push edi
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.7ce1c499
mov ebx, eax
xor edi, edi
cmp ebx, edi
jl 0x7ce1b770
push dword [ebp + 8]
call fcn.7ce1ca18
push 4
mov word [esi + 0x4c], ax
push dword [ebp + 0x10]
lea eax, [ebp - 4]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.7ce1b7a5
mov ebx, eax
cmp ebx, edi
jl 0x7ce1b770
test byte [esi + 0xa4], 0x40
je 0x7ce1b770
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 0x7ce1be20
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0xc4], eax
jne 0x7ce1b770
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x7ce1b760
call esi
mov ebx, eax
jmp 0x7ce1b770
call esi
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
cmp dword [ebp - 8], 0
je 0x7ce1b78d
mov eax, dword fs:[0x18]
push dword [ebp - 8]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 4], 0xffffffff
je 0x7ce1b79c
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc
Function at 0x7ce1bc37
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, 0x212
push edi
mov edi, ecx
push ebx
call sym.ole32.dll_CoTaskMemAlloc
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
je 0x7ce1bca5
push 9
push ebx
lea eax, [ebp - 0xc]
push esi
push eax
push dword [edi + 0x5c]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jge 0x7ce1bc89
cmp eax, 0x80000005
jne 0x7ce1bc7c
mov edi, 0x80010135
jmp 0x7ce1bd0d
push eax
call fcn.7ce1a27b
mov edi, eax
jmp 0x7ce1bd0d
mov eax, dword [esi]
test eax, eax
jne 0x7ce1bc96
mov edi, 0x800300fb
jmp 0x7ce1bd0d
add eax, 6
push eax
call sym.ole32.dll_CoTaskMemAlloc
mov ebx, eax
test ebx, ebx
jne 0x7ce1bcac
mov edi, 0x80030008
jmp 0x7ce1bd0d
mov ax, word [edi + 0x4c]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
je 0x7ce1bcd1
mov ax, word [edi + 0x4c]
and word [ebx + 4], 0
mov word [ebx], ax
mov word [ebx + 2], 0x3a
push 2
jmp 0x7ce1bcdd
and word [ebx + 2], 0
mov word [ebx], 0x5c
push 1
mov ecx, dword [esi]
pop eax
mov edx, ecx
add esi, 4
lea edi, [ebx + eax*2]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov ecx, dword [ecx]
shr ecx, 1
add ecx, eax
mov eax, dword [ebp + 8]
and word [ebx + ecx*2], 0
mov dword [eax], ebx
test esi, esi
je 0x7ce1bd17
push esi
call sym.ole32.dll_CoTaskMemFree
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x7ce1beaf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
or dword [ebp - 4], 0xffffffff
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call fcn.7ce2365e
push eax
lea ecx, [ebp - 0x228]
call fcn.7ce235a3
call fcn.7ce2359d
push eax
lea ecx, [ebp - 0x42c]
call fcn.7ce235a3
cmp dword [ebx + 0x64], 0xffffffff
jne 0x7ce1c056
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0x48]
cmp edi, esi
jne 0x7ce1bf06
test al, 3
je 0x7ce1bf06
or ah, 0x10
lea ecx, [ebp - 4]
push ecx
push edi
push 1
push eax
lea eax, [ebp - 0x228]
mov ecx, ebx
push eax
call fcn.7ce1c463
cmp eax, 0x80030002
mov dword [ebp - 8], eax
jne 0x7ce1bf38
cmp edi, esi
jne 0x7ce1bf38
test byte [ebx + 0x48], 3
jne 0x7ce1bf38
mov dword [ebp - 8], esi
jmp 0x7ce1c056
mov ecx, dword [ebx + 0xa4]
and ecx, 0x40
test cl, cl
jne 0x7ce1bf8f
cmp eax, 0x80030020
jne 0x7ce1bf8f
lea eax, [ebp - 4]
mov ecx, ebx
push eax
push esi
push 4
lea eax, [ebp - 0x42c]
push 0x42
push eax
call fcn.7ce1c463
cmp eax, esi
jl 0x7ce1bf74
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
mov ecx, ebx
push eax
push edi
push 1
lea eax, [ebp - 0x228]
push dword [ebx + 0x48]
push eax
call fcn.7ce1c463
mov dword [ebp - 8], eax
cmp dword [ebp - 8], esi
jl 0x7ce1c056
test byte [ebx + 0x48], 3
je 0x7ce1bfe2
test byte [ebx + 0xa4], 2
je 0x7ce1bfc3
lea eax, [ebx + 0xa8]
push eax
push esi
push esi
push dword [ebp - 4]
call fcn.7ce233ef
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x7ce1c056
test byte [ebx + 0xa4], 0x20
je 0x7ce1bfe2
lea eax, [ebx + 0xc8]
push eax
push dword [ebp - 4]
call fcn.7ce23397
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x7ce1c056
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x24]
push 0x18
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x7ce1c025
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x7ce1c014
call esi
jmp 0x7ce1c020
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 8], eax
jmp 0x7ce1c056
cmp word [ebp - 0x24], si
je 0x7ce1c034
mov dword [ebp - 8], 0x800300fb
jmp 0x7ce1c056
lea edi, [ebx + 0x70]
lea esi, [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x6c], eax
mov ax, word [ebp - 0x22]
movsd dword es:[edi], dword [esi]
mov word [ebx + 0x68], ax
mov eax, dword [ebp - 4]
or dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x64], eax
movsd dword es:[edi], dword [esi]
cmp dword [ebp - 4], 0xffffffff
je 0x7ce1c065
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x7ce1c06f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
mov ax, word [ebx + 0x68]
xor edx, edx
mov word [ebp - 0x1e], ax
mov eax, dword [ebx + 0x6c]
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x70]
mov esi, eax
lea edi, [ebp - 0x18]
mov word [ebp - 0x20], dx
push 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
pop ecx
mov edi, 0x7cd84458
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
setne al
dec eax
push edx
push edx
and al, 0xf0
push edx
add eax, 0x18
push dword [ebx + 0x64]
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x7ce1c0e2
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ebp - 0x20]
push esi
push eax
push dword [ebx + 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x7ce1c101
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x7ce1c0f2
call esi
jmp 0x7ce1c0fe
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x7ce1caa9
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
push esi
mov eax, 0x800
push edi
mov dword [ebx], ecx
mov dword [ebp - 4], ecx
mov edi, eax
mov dword [edx], ecx
push eax
call fcn.7cd8702d
mov esi, eax
pop ecx
test esi, esi
je 0x7ce1cb17
lea eax, [edi - 2]
push 0x16
push eax
lea eax, [ebp - 0xc]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
mov dword [ebp + 0xc], eax
jge 0x7ce1cafb
push esi
call fcn.7cd8701a
xor esi, esi
pop ecx
add edi, edi
xor eax, eax
cmp dword [ebp + 0x14], eax
je 0x7ce1cb20
cmp dword [ebp + 0xc], 0x80000005
je 0x7ce1cb14
cmp dword [ebp + 0xc], 0xc0000023
jne 0x7ce1cb20
push edi
jmp 0x7ce1cac9
mov dword [ebp - 4], 0x80030008
jmp 0x7ce1cb53
cmp dword [ebp + 0xc], eax
jl 0x7ce1cb48
cmp dword [ebp - 8], eax
jne 0x7ce1cb3c
push esi
call fcn.7cd8701a
mov eax, dword [ebp + 0x10]
and dword [ebx], 0
pop ecx
and dword [eax], 0
jmp 0x7ce1cb53
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
mov dword [ebx], esi
mov dword [ecx], eax
jmp 0x7ce1cb53
push dword [ebp + 0xc]
call fcn.7ce1a27b
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x7ce1d271
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ebx
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x10], ebx
cmp eax, ebx
je 0x7ce1d294
push eax
call sym.ole32.dll_CoTaskMemFree
mov dword [esi + 0x18], ebx
push 1
push dword [esi + 0x14]
push 5
push 1
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
je 0x7ce1d2d3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
jmp 0x7ce1d3d5
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
shl eax, 2
push eax
call fcn.7cd8702d
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x7ce1d3d5
xor edi, edi
cmp dword [ebp - 0x18], ebx
jbe 0x7ce1d353
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
push dword [ebp - 4]
push edi
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jne 0x7ce1d34d
push 6
push 0x7cd825dc
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x7ce1d34d
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push dword [ebp - 4]
call fcn.7ce1d464
cmp eax, ebx
jl 0x7ce1d34d
push dword [ebp - 0x14]
mov ecx, esi
call fcn.7ce1d3ea
mov dword [ebp - 0x14], ebx
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x7ce1d2f5
mov edi, dword [esi + 0x1c]
cmp edi, ebx
je 0x7ce1d375
push dword [edi]
inc dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_wcslen]
mov edi, dword [edi + 4]
pop ecx
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x10], eax
jmp 0x7ce1d356
mov eax, dword [ebp - 0xc]
lea edi, [eax*4 + 4]
mov eax, dword [ebp - 0x10]
lea eax, [edi + eax*4]
push eax
call sym.ole32.dll_CoTaskMemAlloc
lea ebx, [eax + edi]
mov edi, dword [esi + 0x1c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
test edi, edi
je 0x7ce1d3c0
push dword [edi]
push ebx
call dword [sym.imp.ntdll.dll_wcscpy]
mov eax, dword [ebp - 0xc]
add dword [ebp - 0xc], 4
pop ecx
pop ecx
mov dword [eax], ebx
push ebx
call dword [sym.imp.ntdll.dll_wcslen]
mov edi, dword [edi + 4]
pop ecx
lea ebx, [ebx + eax*2 + 2]
jmp 0x7ce1d397
mov eax, dword [ebp - 0xc]
mov ecx, esi
and dword [eax], 0
call fcn.7ce1d437
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov dword [esi + 0x18], eax
cmp dword [ebp - 4], ebx
je 0x7ce1d3e3
push dword [ebp - 4]
call fcn.7cd8701a
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x7ce1d464
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 8]
push edi
xor ebx, ebx
push eax
push 0xf003f
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
push dword [ecx + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x7ce1d4e9
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea eax, [ebp + 8]
push ebx
push eax
mov edi, 0x7cd825ec
push ebx
push edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x7ce1d4b7
cmp dword [ebp + 8], 1
je 0x7ce1d4be
mov ebx, 0x80004005
jmp 0x7ce1d519
push dword [ebp - 0xc]
call sym.ole32.dll_CoTaskMemAlloc
test eax, eax
mov dword [ebp - 4], eax
jne 0x7ce1d4d4
mov ebx, 0x80030008
jmp 0x7ce1d519
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp + 8]
push eax
push 0
push edi
push dword [ebp - 8]
call esi
test eax, eax
je 0x7ce1d50d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x7ce1d4fb
call esi
mov ebx, eax
jmp 0x7ce1d519
call esi
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
jmp 0x7ce1d519
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
and dword [ebp - 4], 0
mov dword [eax], ecx
cmp dword [ebp - 4], 0
je 0x7ce1d527
push dword [ebp - 4]
call sym.ole32.dll_CoTaskMemFree
cmp dword [ebp - 8], 0
je 0x7ce1d536
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 8

Function at 0x7ce21b85
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x10], edi
je 0x7ce21c53
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x2a0]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
cmp ebx, edi
je 0x7ce21c53
cmp ebx, 0x105
ja 0x7ce21c53
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push dword [ebp - 8]
lea eax, [ebp + ebx*2 - 0x2a0]
push dword [ebp - 4]
push 0x7cd82748
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esi + 0x74]
push 0xffffffffffffffff
push 0x4000080
push 1
push eax
push edi
lea eax, [ebp - 0x2a0]
push 0xc0010000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x7ce21c53
push edi
push 0x200000
push edi
push 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 8], eax
je 0x7ce21c53
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
cmp dword [esi + 0xc], edi
jne 0x7ce21c69
mov ecx, esi
call fcn.7ce21b49
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7ce23025
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov edi, ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x210]
call fcn.7ce235a3
mov eax, dword [edi + 0x38]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp dword [edi + 0x34], 0xffffffff
jne 0x7ce2305c
mov esi, 0x80030102
jmp 0x7ce230f5
mov eax, dword [ebp - 0x210]
lea eax, [eax + eax + 0xe]
mov dword [ebp - 4], eax
add eax, 3
and al, 0xfc
call fcn.7ce2956c
mov al, byte [ebp + 0xc]
mov esi, esp
mov ebx, dword [sym.imp.ntdll.dll_wcscpy]
and dword [esi + 4], 0
mov byte [esi], al
mov eax, dword [ebp - 0x210]
add eax, eax
mov dword [esi + 8], eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 0xc]
push eax
call ebx
pop ecx
lea eax, [ebp - 0xc]
pop ecx
push 0xa
push dword [ebp - 4]
push esi
push eax
push dword [edi + 0x34]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jge 0x7ce230c1
push eax
call fcn.7ce1a27b
mov esi, eax
test esi, esi
jl 0x7ce230f5
push dword [edi + 8]
call sym.ole32.dll_CoTaskMemFree
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
call sym.ole32.dll_CoTaskMemAlloc
test eax, eax
mov dword [edi + 8], eax
jne 0x7ce230eb
mov esi, 0x80030008
jmp 0x7ce230f5
push dword [ebp + 8]
push eax
call ebx
pop ecx
xor esi, esi
pop ecx
mov edi, dword [edi + 0x38]
push edi
mov eax, dword [edi]
call dword [eax + 0x10]
lea esp, [ebp - 0x21c]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x7ce2312b
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push edi
push 0xd
lea eax, [ebp - 1]
push 1
push eax
lea eax, [ebp - 0xc]
push eax
xor edi, edi
push dword [esi]
mov byte [ebp - 1], 1
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jge 0x7ce2315e
push eax
call fcn.7ce1a27b
mov edi, eax
jmp 0x7ce23169
push dword [esi]
call dword [sym.imp.ntdll.dll_NtClose]
or dword [esi], 0xffffffff
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x7ce2558f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
test byte [esi + 8], 4
je 0x7ce2564b
mov eax, dword [esi + 0x20]
add eax, 4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ebx, eax
test ebx, ebx
jl 0x7ce2564b
xor eax, eax
push 0x14
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push 8
push eax
lea eax, [ebp - 0x10]
xor ecx, ecx
push eax
mov eax, dword [esi + 4]
mov dword [ebp - 8], ecx
push dword [eax + 0x34]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jge 0x7ce255ea
push eax
call fcn.7ce1a27b
jmp 0x7ce25649
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.ntdll.dll_NtClose]
push dword [eax + 0x34]
call edi
mov eax, dword [esi + 4]
push 1
or dword [eax + 0x34], 0xffffffff
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x20]
push dword [eax + 8]
call fcn.7ce23025
mov ebx, eax
mov eax, dword [esi + 0x20]
test ebx, ebx
jge 0x7ce25626
push dword [eax + 0x34]
call edi
mov eax, dword [esi + 0x20]
or dword [eax + 0x34], 0xffffffff
jmp 0x7ce2564b
mov ecx, dword [esi + 4]
mov eax, dword [eax + 0x34]
mov dword [ecx + 0x34], eax
mov eax, dword [esi + 0x20]
or dword [eax + 0x34], 0xffffffff
and dword [esi + 8], 0xfffffffb
cmp dword [ebp + 8], 1
jne 0x7ce2564b
push 1
mov ecx, esi
call fcn.7ce25654
mov ebx, eax
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 4

Function at 0x7ce29599
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
call fcn.7cd9766f
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x10], 0
mov byte [0x7ce50ea4], bl
jne 0x7ce295eb
mov eax, dword [0x7ce51044]
test eax, eax
je 0x7ce295da
mov esi, dword [0x7ce51040]
sub esi, 4
cmp esi, eax
jb 0x7ce295da
mov eax, dword [esi]
test eax, eax
je 0x7ce295cf
call eax
sub esi, 4
cmp esi, dword [0x7ce51044]
jae 0x7ce295c7
push 0x7cd71a00
push 0x7cd719fc
call fcn.7cd97655
pop ecx
pop ecx
push 0x7cd71a08
push 0x7cd71a04
call fcn.7cd97655
pop ecx
test ebx, ebx
pop ecx
je 0x7ce29607
call fcn.7cd9764c
jmp 0x7ce29611
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x7ce29ce6
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x7ce29d6a
push edi
mov edi, 0xff
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea eax, [ebp - 0x104]
push edi
push eax
push 0
push dword [ebp - 4]
call esi
test eax, eax
jne 0x7ce29d45
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 4]
call fcn.7ce29ce6
test eax, eax
jne 0x7ce29d45
lea eax, [ebp - 0x104]
push edi
push eax
push 0
push dword [ebp - 4]
jmp 0x7ce29d1d
cmp eax, 0x103
je 0x7ce29d53
cmp eax, 0x3f2
jne 0x7ce29d5f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
xor eax, eax
leave
ret 8