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

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x1005ce10]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push eax
mov esi, ecx
call fcn.10035820
lea ebx, [esi + 0x48]
push ebx
call fcn.10029d17
add esp, 0x10
test al, al
je 0x10028897
push ebx
call fcn.10029d63
pop ecx
test al, al
jne 0x1002893e
mov ecx, esi
call fcn.100286ce
push dword [esi + 0xa0]
lea eax, [esi + 0x80]
push eax
lea eax, [esi + 0x64]
push eax
mov ecx, esi
call fcn.1002867a
push ebx
call fcn.10029f14
pop ecx
test al, al
je 0x10028944
jmp 0x10028940
cmp dword [esi + 0x78], 0
jne 0x100288ff
push 0x104
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1002895b
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.drivers
lea eax, [ebp - 0x64]
push eax
call edi
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.100285c5
cmp dword [eax + 0x18], 8
jb 0x100288dc
mov eax, dword [eax + 4]
jmp 0x100288df
add eax, 4
push eax
lea eax, [ebp - 0x64]
push eax
call edi
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.10002a1b
lea eax, [ebp - 0x64]
push eax
lea ecx, [esi + 0x64]
call fcn.10002941
pop edi
push dword [esi + 0xa4]
lea eax, [esi + 0x80]
push dword [esi + 0xa0]
push dword [esi + 0x9c]
push dword [esi + 0xc]
push eax
lea eax, [esi + 0x64]
push eax
push ebx
call fcn.10029dd3
add esp, 0x1c
test al, al
je 0x1002895b
mov ecx, esi
call fcn.100286ce
push ebx
call fcn.10029f14
pop ecx
test al, al
je 0x1002895b
mov al, 1
mov byte [esi + 5], 1
mov ecx, dword [ebp + 0x1a4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10032bd7
add ebp, 0x1a8
leave
ret
xor al, al
jmp 0x10028944
Function at 0x100289db
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov byte [ebp - 1], bl
cmp dword [esi + 0x14], ebx
je 0x10028a9e
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x10028a9e
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x10028a9e
mov dword [ecx], ebx
mov dword [eax], ebx
cmp dword [esi + 0x18], 8
push edi
mov dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
lea edi, [esi + 4]
jb 0x10028a25
mov eax, dword [edi]
jmp 0x10028a27
mov eax, edi
lea ecx, [ebp + 8]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp eax, ebx
jbe 0x10028a9d
push eax
call fcn.1003237c
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10028a9d
cmp dword [esi + 0x18], 8
jb 0x10028a4e
mov edi, dword [edi]
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10028a94
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x100547f4
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10028a94
cmp dword [ebp - 8], ebx
jbe 0x10028a90
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov byte [ebp - 1], 1
push dword [ebp - 0x10]
call fcn.100333a9
pop ecx
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret
Function at 0x10028c35
Capabilities:
Create thread
Get common file path
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x1005ce10]
xor eax, ebp
mov dword [ebp + 0x198], eax
push esi
push edi
mov edi, dword [ebp + 0x1a8]
xor eax, eax
push 0x206
mov word [ebp - 0x70], ax
xor esi, esi
lea eax, [ebp - 0x6e]
push esi
push eax
call fcn.10035820
add esp, 0xc
push 0x102
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [ebp + 0x1a4]
sub eax, esi
je 0x10028ca5
dec eax
je 0x10028c9e
xor al, al
jmp 0x10028d72
push str.drivers_fastfat.sys
jmp 0x10028caa
push str.drivers_ntfs.sys
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push ebx
push 0xa8
push esi
push 0x1005f450
call fcn.10035820
push 0x6c
push esi
push edi
call fcn.10035820
mov eax, 0x1005f4f8
mov dword [0x1005f4fc], eax
mov dword [0x1005f4f8], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1002a8e7
mov ebx, eax
add esp, 0x24
cmp ebx, esi
jne 0x10028cfb
xor al, al
jmp 0x10028d71
lea eax, [ebp - 0x80]
push eax
push esi
push ebx
push 0x10028aa5
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x7c], eax
cmp eax, esi
je 0x10028d5b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10028d48
mov ecx, 0x1005f488
mov eax, dword [ecx]
cmp eax, esi
je 0x10028d31
sub eax, ebx
mov dword [ecx], eax
add ecx, 4
cmp ecx, 0x1005f4f8
jl 0x10028d27
push 0x1b
pop ecx
mov esi, 0x1005f488
rep movsd dword es:[edi], dword [esi]
jmp 0x10028d52
push esi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x78]
push dword [ebp - 0x74]
push ebx
call fcn.1002a8c8
add esp, 0xc
call fcn.1002a43e
mov al, 1
pop ebx
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop esi
call fcn.10032bd7
add ebp, 0x19c
leave
ret

Function at 0x10028ed7
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor eax, eax
and dword [ebp - 0xc], eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea edi, [ebp - 8]
push 0x11
stosd dword es:[edi], eax
pop edi
cmp dword [0x1005f274], eax
je 0x10028f01
push dword [ebp + 8]
call fcn.1002ac0f
pop ecx
jmp 0x10028f3b
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], esi
call fcn.1001fdbb
mov ecx, eax
call fcn.10022f58
test al, al
je 0x10028f33
mov eax, dword [ebp - 8]
cmp eax, 0xc000003e
jne 0x10028f3a
push esi
call dword [sym.imp.ntdll.dll_NtDeleteKey]
pop esi
test eax, eax
jge 0x10028f45
mov dword [0x1005f278], edi
pop edi
leave
ret
Function at 0x10028f48
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 8], eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
cmp dword [0x1005f274], eax
je 0x10028f76
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002ac61
pop ecx
pop ecx
jmp 0x10028fb8
mov edi, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push 0x10
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edi
call fcn.1001fdbb
mov ecx, eax
call fcn.10022f58
test al, al
je 0x10028faf
mov eax, dword [ebp - 4]
cmp eax, 0xc000003e
jne 0x10028fb7
push edi
push esi
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
pop esi
pop edi
test eax, eax
jge 0x10028fc7
mov dword [0x1005f278], 0x10
leave
ret

Function at 0x10028fc9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor eax, eax
and dword [ebp - 8], eax
push 6
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
cmp dword [0x1005f274], eax
je 0x10029005
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002ace2
add esp, 0x18
jmp 0x1002906b
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x20]
push eax
push 0x13
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call fcn.1001fdbb
mov ecx, eax
call fcn.10022f58
test al, al
je 0x10029057
mov eax, dword [ebp - 4]
cmp eax, 0xc000003e
jne 0x10029069
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push edi
push esi
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
pop esi
pop ebx
pop edi
test eax, eax
jge 0x1002907a
mov dword [0x1005f278], 0x13
leave
ret
Function at 0x1002907c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor eax, eax
and dword [ebp - 8], eax
push 6
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
cmp dword [0x1005f274], eax
je 0x100290b8
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002ad8c
add esp, 0x18
jmp 0x1002911e
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x20]
push eax
push 0xf
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call fcn.1001fdbb
mov ecx, eax
call fcn.10022f58
test al, al
je 0x1002910a
mov eax, dword [ebp - 4]
cmp eax, 0xc000003e
jne 0x1002911c
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push edi
push esi
call dword [sym.imp.ntdll.dll_NtSetValueKey]
pop esi
pop ebx
pop edi
test eax, eax
jge 0x1002912d
mov dword [0x1005f278], 0xf
leave
ret

Function at 0x1002912f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor eax, eax
and dword [ebp - 8], eax
push 6
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
cmp dword [0x1005f274], eax
je 0x1002916b
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002ae32
add esp, 0x18
jmp 0x100291d1
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x20]
push eax
push 0xd
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call fcn.1001fdbb
mov ecx, eax
call fcn.10022f58
test al, al
je 0x100291bd
mov eax, dword [ebp - 4]
cmp eax, 0xc000003e
jne 0x100291cf
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push edi
push esi
call dword [sym.imp.ntdll.dll_NtEnumerateKey]
pop esi
pop ebx
pop edi
test eax, eax
jge 0x100291e0
mov dword [0x1005f278], 0xd
leave
ret
Function at 0x100291e2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor eax, eax
and dword [ebp - 8], eax
push 6
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
cmp dword [0x1005f274], eax
je 0x1002921e
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002aebf
add esp, 0x18
jmp 0x10029284
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x20]
push eax
push 0xe
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call fcn.1001fdbb
mov ecx, eax
call fcn.10022f58
test al, al
je 0x10029270
mov eax, dword [ebp - 4]
cmp eax, 0xc000003e
jne 0x10029282
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push edi
push esi
call dword [sym.imp.ntdll.dll_NtEnumerateValueKey]
pop esi
pop ebx
pop edi
test eax, eax
jge 0x10029293
mov dword [0x1005f278], 0xe
leave
ret

Function at 0x10029494
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor eax, eax
and dword [ebp - 8], eax
push 9
pop ecx
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
cmp dword [0x1005f274], eax
je 0x100294f2
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002b1c6
add esp, 0x24
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jge 0x100294ed
mov dword [0x1005f278], 6
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 6
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ebx
call fcn.1001fdbb
mov ecx, eax
call fcn.10022f58
test al, al
jne 0x100294dc
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push ebx
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ntdll.dll_NtReadFile]
jmp 0x100294ed
Function at 0x10029567
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor eax, eax
and dword [ebp - 8], eax
push 9
pop ecx
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
cmp dword [0x1005f274], eax
je 0x100295c5
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002b2ab
add esp, 0x24
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jge 0x100295c0
mov dword [0x1005f278], 7
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 7
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ebx
call fcn.1001fdbb
mov ecx, eax
call fcn.10022f58
test al, al
jne 0x100295af
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push edi
push esi
call dword [sym.imp.ntdll.dll_NtWriteFile]
jmp 0x100295c0

Function at 0x1002963a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 8], eax
lea edi, [ebp - 4]
push 4
stosd dword es:[edi], eax
pop edi
cmp dword [0x1005f274], eax
je 0x10029668
push dword [ebp + 8]
call fcn.1002b390
pop ecx
jmp 0x100296ba
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push edi
add esi, 8
mov dword [ebp - 0x10], ecx
call fcn.1001fdbb
mov ecx, eax
call fcn.10022f58
test al, al
je 0x100296a6
mov eax, dword [ebp - 4]
cmp eax, 0xc0000368
jne 0x100296ba
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x100296b5
xor eax, eax
jmp 0x100296c4
mov eax, 0xc0000001
test eax, eax
jge 0x100296c4
mov dword [0x1005f278], edi
pop edi
pop esi
leave
ret
Function at 0x100296c8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 8], eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
cmp dword [0x1005f274], eax
je 0x10029703
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002b403
add esp, 0x14
jmp 0x1002975b
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x14
lea eax, [ebp - 0x1c]
push eax
push 8
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
call fcn.1001fdbb
mov ecx, eax
call fcn.10022f58
test al, al
jne 0x10029756
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push edi
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
jmp 0x10029759
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
test eax, eax
jge 0x1002976a
mov dword [0x1005f278], 8
leave
ret

Function at 0x1002976c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 8], eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
cmp dword [0x1005f274], eax
je 0x100297a7
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002b4aa
add esp, 0x14
jmp 0x100297ff
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x14
lea eax, [ebp - 0x1c]
push eax
push 9
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
call fcn.1001fdbb
mov ecx, eax
call fcn.10022f58
test al, al
jne 0x100297fa
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push edi
push esi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
jmp 0x100297fd
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
test eax, eax
jge 0x1002980e
mov dword [0x1005f278], 9
leave
ret
Function at 0x10029810
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
push 0x2c
xor esi, esi
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.10035820
xor eax, eax
add esp, 0xc
lea edi, [ebp - 4]
stosd dword es:[edi], eax
mov dword [ebp - 8], esi
cmp dword [0x1005f274], esi
je 0x10029868
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002b551
add esp, 0x2c
jmp 0x100298f4
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x18], eax
mov al, byte [ebp + 0x28]
mov byte [ebp - 0x14], al
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x10], eax
mov al, byte [ebp + 0x30]
push ebx
mov ebx, dword [ebp + 0x10]
mov byte [ebp - 0xc], al
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x2c
lea eax, [ebp - 0x34]
push eax
push 0xa
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], ebx
call fcn.1001fdbb
mov ecx, eax
call fcn.10022f58
test al, al
jne 0x100298f0
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push edi
push esi
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
jmp 0x100298f3
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
test eax, eax
jge 0x10029904
mov dword [0x1005f278], 0xa
leave
ret

Function at 0x10029a90
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 8], eax
lea edi, [ebp - 4]
push 5
stosd dword es:[edi], eax
pop edi
cmp dword [0x1005f274], eax
je 0x10029abe
push dword [ebp + 8]
call fcn.1002b7a0
pop ecx
jmp 0x10029b11
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push edi
add esi, 8
mov dword [ebp - 0x10], ecx
call fcn.1001fdbb
mov ecx, eax
call fcn.10022f58
test al, al
je 0x10029afd
mov eax, dword [ebp - 4]
cmp eax, 0xc0000368
jne 0x10029b11
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x10029b0c
xor eax, eax
jmp 0x10029b1b
mov eax, 0xc0000001
test eax, eax
jge 0x10029b1b
mov dword [0x1005f278], edi
pop edi
pop esi
leave
ret
Function at 0x10029d63
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push 0xf003f
push 0
push 0
mov byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x10029dcd
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x10029d91
mov eax, dword [eax + 4]
jmp 0x10029d94
add eax, 4
push esi
push edi
push 4
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x10029dc8
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10029dc5
cmp dword [ebp - 0x1c], 4
jne 0x10029dc5
mov byte [ebp - 1], 1
push esi
call edi
push ebx
call edi
pop edi
pop esi
mov al, byte [ebp - 1]
pop ebx
leave
ret

Function at 0x10029dd3
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.10029d17
pop ecx
test al, al
je 0x10029deb
xor al, al
jmp 0x10029e05
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x10029e08
xor al, al
pop edi
pop esi
leave
ret
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 8
jb 0x10029e16
mov eax, dword [eax + 4]
jmp 0x10029e19
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
push ebx
jb 0x10029e2b
mov ebx, dword [eax + 4]
jmp 0x10029e2e
lea ebx, [eax + 4]
mov edx, dword [esi + 0x18]
lea eax, [esi + 4]
cmp edx, 8
jb 0x10029e3d
mov ecx, dword [eax]
jmp 0x10029e3f
mov ecx, eax
cmp edx, 8
jb 0x10029e46
mov eax, dword [eax]
push edi
push edi
push 0x10054508
push edi
push dword [ebp - 4]
push ebx
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp eax, edi
jne 0x10029e7f
xor bl, bl
push dword [ebp - 8]
call esi
mov al, bl
pop ebx
jmp 0x10029e04
push eax
call esi
mov bl, 1
jmp 0x10029e75