joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4236b9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00419558
xor ebx, ebx
cmp dword [0x43cc00], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42378e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4236f9
xor eax, eax
jmp 0x423852
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x432498
push edi
call esi
cmp eax, ebx
je 0x4236f2
push eax
call fcn.004194f5
mov dword [esp], 0x432488
push edi
mov dword [0x43cc00], eax
call esi
push eax
call fcn.004194f5
mov dword [esp], 0x432474
push edi
mov dword [0x43cc04], eax
call esi
push eax
call fcn.004194f5
mov dword [0x43cc08], eax
lea eax, [ebp - 8]
push eax
call fcn.00415f5e
test eax, eax
pop ecx
pop ecx
je 0x42375c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041a0af
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42378e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004194f5
cmp eax, ebx
pop ecx
mov dword [0x43cc10], eax
je 0x42378e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004194f5
pop ecx
mov dword [0x43cc0c], eax
mov eax, dword [0x43cc0c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x423807
cmp dword [0x43cc10], esi
je 0x423807
push eax
call fcn.00419561
pop ecx
call eax
cmp eax, ebx
je 0x4237d4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x43cc10]
call fcn.00419561
pop ecx
call eax
test eax, eax
je 0x4237d4
test byte [ebp - 0x18], 1
jne 0x423807
lea eax, [ebp - 0xc]
push eax
call fcn.00415f95
test eax, eax
pop ecx
je 0x4237ef
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041a0af
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4237fe
or dword [ebp + 0x10], 0x200000
jmp 0x423838
or dword [ebp + 0x10], 0x40000
jmp 0x423838
mov eax, dword [0x43cc04]
cmp eax, esi
je 0x423838
push eax
call fcn.00419561
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x423838
mov eax, dword [0x43cc08]
cmp eax, esi
je 0x423838
push dword [ebp - 4]
push eax
call fcn.00419561
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x43cc00]
call fcn.00419561
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42ab54
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x438c04]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042aae9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00416380
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42aba3
cmp dword [ebp - 0x1c], 5
jb 0x42abbb
jmp 0x42abb7
cmp dword [ebp - 0x10], 1
jne 0x42abbb
cmp dword [ebp - 0x1c], 4
ja 0x42abb7
jne 0x42abbb
cmp dword [ebp - 0x18], 0
jbe 0x42abbb
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x432670
call fcn.0042a9da
test eax, eax
jge 0x42abdc
mov byte [0x43a380], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00414d9d
add ebp, 0x78
leave
ret
Function at 0x100024d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015c08
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10020008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 8]
mov dword [edi], vtable.ICompleteFileSystemSearchController.0
mov dword [ebp - 0x14], eax
mov dword [eax + 0x24], 0
mov dword [ebp - 4], 2
lea ebx, [edi + 0x48]
push 0
mov dword [edi], vtable.CHFSPlusCompleteFileSystemSearchController.0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [ebp - 0x14], ebx
push 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.100064a0
mov dword [ebx], eax
mov byte [ebp - 4], 5
lea esi, [edi + 0x50]
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.IDirecotryTreeBuilder.0
mov byte [ebp - 4], 6
mov dword [esi], vtable.DetourDirectoryTree.0
mov dword [esi + 4], 0
add esi, 8
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10006b50
mov dword [esi], eax
mov byte [ebp - 4], 0xa
lea esi, [edi + 0x64]
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10006530
mov dword [esi], eax
mov byte [ebp - 4], 0xd
lea esi, [edi + 0x6c]
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10006530
mov dword [esi], eax
mov byte [ebp - 4], 0x10
lea esi, [edi + 0x84]
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10006b50
mov dword [esi], eax
mov byte [ebp - 4], 0x13
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [ebx]
mov dword [ecx + 4], ecx
mov dword [ebx + 4], 0
cmp eax, dword [ebx]
je 0x10002656
mov esi, dword [eax]
push 0xc
push eax
call fcn.100140f0
add esp, 8
mov eax, esi
cmp esi, dword [ebx]
jne 0x10002643
lea ecx, [edi + 0x64]
call fcn.10005e00
lea ecx, [edi + 0x6c]
call fcn.10005e00
mov dword [edi + 0x60], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000c590
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, ecx
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
test edx, edx
jne 0x1000c5b0
lea eax, [ecx + 5]
mov edx, 0x50074
mov esp, ebp
pop ebp
ret
movzx eax, byte [edx + 1]
mov cl, byte [edx]
mov byte [edx], al
mov byte [edx + 1], cl
movzx eax, byte [edx + 5]
mov cl, byte [edx + 2]
mov byte [edx + 2], al
movzx eax, byte [edx + 4]
mov byte [edx + 5], cl
mov cl, byte [edx + 3]
mov byte [edx + 3], al
mov byte [edx + 4], cl
movzx eax, byte [edx + 9]
mov cl, byte [edx + 6]
mov byte [edx + 6], al
movzx eax, byte [edx + 8]
mov byte [edx + 9], cl
mov cl, byte [edx + 7]
mov byte [edx + 7], al
mov byte [edx + 8], cl
movzx eax, byte [edx + 0xd]
mov cl, byte [edx + 0xa]
mov byte [edx + 0xa], al
movzx eax, byte [edx + 0xc]
mov byte [edx + 0xd], cl
mov cl, byte [edx + 0xb]
mov byte [edx + 0xb], al
mov byte [edx + 0xc], cl
movzx eax, byte [edx + 0x11]
mov cl, byte [edx + 0xe]
mov byte [edx + 0xe], al
movzx eax, byte [edx + 0x10]
mov byte [edx + 0x11], cl
mov cl, byte [edx + 0xf]
mov byte [edx + 0xf], al
mov byte [edx + 0x10], cl
movzx eax, byte [edx + 0x13]
mov cl, byte [edx + 0x12]
mov byte [edx + 0x12], al
mov byte [edx + 0x13], cl
movzx eax, byte [edx + 0x15]
mov cl, byte [edx + 0x14]
mov byte [edx + 0x14], al
mov byte [edx + 0x15], cl
movzx eax, byte [edx + 0x19]
mov cl, byte [edx + 0x16]
mov byte [edx + 0x16], al
movzx eax, byte [edx + 0x18]
mov byte [edx + 0x19], cl
mov cl, byte [edx + 0x17]
mov byte [edx + 0x17], al
mov byte [edx + 0x18], cl
movzx eax, byte [edx + 0x1d]
mov cl, byte [edx + 0x1a]
mov byte [edx + 0x1a], al
movzx eax, byte [edx + 0x1c]
mov byte [edx + 0x1d], cl
mov cl, byte [edx + 0x1b]
mov byte [edx + 0x1b], al
mov byte [edx + 0x1c], cl
movzx eax, byte [edx + 0x23]
mov cl, byte [edx + 0x20]
mov byte [edx + 0x20], al
movzx eax, byte [edx + 0x22]
mov byte [edx + 0x23], cl
mov cl, byte [edx + 0x21]
mov byte [edx + 0x21], al
mov byte [edx + 0x22], cl
movzx eax, byte [edx + 0x29]
mov cl, byte [edx + 0x26]
mov byte [edx + 0x26], al
movzx eax, byte [edx + 0x28]
mov byte [edx + 0x29], cl
mov cl, byte [edx + 0x27]
mov byte [edx + 0x27], al
mov eax, dword [ebp - 8]
mov byte [edx + 0x28], cl
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10014e70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100170e8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10020008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xc
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], 0
mov dword [esi], vtable.CPartitionVirtualVolumeDevice.0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], 0x200
mov dword [esi + 0x34], eax
test ecx, ecx
je 0x10014f08
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [esi + 0x24], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x409951
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a344]
jne 0x40995b
repz ret
jmp fcn.0040e47c

Function at 0x4126ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c272
and dword [ebp - 0x14], 0
cmp dword [0x43a2cc], 0
mov dword [ebp - 0x18], eax
jne 0x41275f
push 0x403754
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412807
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403748
push ebx
call edi
test eax, eax
je 0x412807
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403738
push ebx
mov dword [0x43a2cc], eax
call edi
push eax
call esi
push 0x403724
push ebx
mov dword [0x43a2d0], eax
call edi
push eax
call esi
push 0x403708
push ebx
mov dword [0x43a2d4], eax
call edi
push eax
call esi
mov dword [0x43a2dc], eax
test eax, eax
je 0x41275f
push 0x4036f0
push ebx
call edi
push eax
call esi
mov dword [0x43a2d8], eax
mov eax, dword [0x43a2d8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4127b8
cmp dword [0x43a2dc], ecx
je 0x4127b8
push eax
call esi
push dword [0x43a2dc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4127b8
test ebx, ebx
je 0x4127b8
call edi
test eax, eax
je 0x4127af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4127af
test byte [ebp - 8], 1
jne 0x4127b8
or dword [ebp + 0x10], 0x200000
jmp 0x4127eb
mov eax, dword [0x43a2d0]
cmp eax, dword [ebp - 0x18]
je 0x4127eb
push eax
call esi
test eax, eax
je 0x4127eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4127eb
mov eax, dword [0x43a2d4]
cmp eax, dword [ebp - 0x18]
je 0x4127eb
push eax
call esi
test eax, eax
je 0x4127eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43a2cc]
call esi
test eax, eax
je 0x412807
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412809
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409951
leave
ret
Function at 0x414660
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.00413c80
cmp dword [0x7da424], 0x37
jne 0x4146e3
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x403f58
call edi
push 0
lea eax, [esp + 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40401c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
push 0x404048
call edi
push 0
lea edx, [esp + 0xc08]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
pop edi
mov eax, dword [0x7db008]
mov edx, dword [0x7d7484]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0xef9370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xef938e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xf22074
push ecx
mov edi, eax
call fcn.00f0d198
mov esi, eax
add esp, 8
test esi, esi
jne 0xef93cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00f0d02e
push esi
call fcn.00f0cfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xefc850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xefc8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xf27720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xefc8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00f0d1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xefc8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xf27720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xefc92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00f0e082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xefc957
mov word [eax], si
add eax, 2
push eax
call fcn.00f0e030
add esp, 4
jmp 0xefc959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xefc8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xefc8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xefcff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xefd080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xefd0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xf22458
push ecx
call fcn.00f0d1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00f0d1e1
add esp, 0x10
jmp 0xefd0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00f0d20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00f0cdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00efd050
mov eax, dword [0xf27728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xefd13b
push esi
call fcn.00efcfb0
add esp, 4
mov dword [0xf27728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xefd14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00efcff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xf00440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xf004b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xf0048e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xf00471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xf0047e
add edx, ecx
cmp ebx, edx
jb 0xf0048a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xf00467
xor ecx, ecx
jmp 0xf004a2
test eax, eax
jne 0xf00492
xor ecx, ecx
jmp 0xf004a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00f003c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xf008f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xf00921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xf00946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xf0096e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xf00993
push ecx
push esi
call fcn.00f004c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0xf01c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0xf01c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xf01c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xf01c38
add edx, eax
cmp ebx, edx
jb 0xf01c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xf01c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xf01c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0xf01c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xf01cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xf01c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xf01ca8
add edx, ecx
cmp ebx, edx
jb 0xf01cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xf01c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xf01f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00f0e145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xf01ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0xf01fdd
lea eax, [esp + 0x18]
push eax
jmp 0xf01fe2
push 0xf27720
call fcn.00f0dfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xf01fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xf01f40
push 4
push ecx
push eax
call fcn.00f0e43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xf02310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00f0e145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xf023ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0xf0238d
lea eax, [esp + 0x18]
push eax
jmp 0xf02392
push 0xf27720
call fcn.00f0dfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xf02360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xf01f40
push 4
push ecx
push eax
call fcn.00f0e43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xf03f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0xf03fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0xf03fcf
push ebx
push edi
push 0xf27770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xf03fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xf27770
push esi
call ebx
test eax, eax
je 0xf03fae
mov ebp, 3
cmp dword [0xf27774], ebp
jne 0xf03faa
push 0x3e8
call edi
push 0xf27770
push esi
call ebx
test eax, eax
jne 0xf03f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xf03fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xf03fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret