joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b5fa
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004099e7
mov dword [ebp - 0x14], eax
cmp dword [0x41d00c], edi
jne 0x40b6eb
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40b678
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40b7cb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40b7cb
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b7cb
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x41d00c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x41d010], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x41d014], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41d01c], eax
test eax, eax
je 0x40b6e8
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41d018], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40b710
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40b703
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40b725
push 4
pop eax
jmp 0x40b7cd
cmp dword [ebp - 0x14], edi
je 0x40b725
push dword [0x41d00c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40b70a
mov eax, dword [0x41d018]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40b783
cmp dword [0x41d01c], esi
je 0x40b783
push eax
call ebx
push dword [0x41d01c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40b783
test eax, eax
je 0x40b783
call ecx
test eax, eax
je 0x40b778
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40b778
test byte [ebp - 8], 1
jne 0x40b783
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40b7b3
mov eax, dword [0x41d010]
cmp eax, esi
je 0x40b7b0
push eax
call ebx
test eax, eax
je 0x40b7b0
call eax
mov edi, eax
test edi, edi
je 0x40b7b0
mov eax, dword [0x41d014]
cmp eax, esi
je 0x40b7b0
push eax
call ebx
test eax, eax
je 0x40b7b0
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x41d00c]
call ebx
test eax, eax
je 0x40b7cb
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40b7cd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b7dc
leave
ret
Function at 0x1000251b
Capabilities:
Get graphical window text

Disassembly:
xor eax, eax
push eax
push eax
cmp dword [0x10015eb8], 0
je 0x10002537
call fcn.10004ba3
push str._ShowProperties
call fcn.1000265f
push 0
push 0
push 0
call sub.USER32.DLL_FindWindowA
push eax
call sub.USER32.DLL_GetWindow
mov dword [esp], eax
cmp dword [esp], 0
je 0x100025f0
mov eax, dword [0x10016c08]
push eax
push eax
push pe_nt_image_headers32
call fcn.10006300
lea eax, [esp + 8]
push eax
call fcn.1000f500
push 0x7f
mov eax, dword [esp + 8]
push eax
push dword [esp + 8]
call sub.USER32.DLL_GetWindowTextA
mov eax, dword [0x10016c08]
push eax
push eax
push 0x12
push 0
push dword [esp + 0x14]
call fcn.10006340
inc dword [0x10016c08]
mov edx, str.Plugin_Properties:
pop ecx
mov dword [0x10016c08], ecx
add ecx, dword [0x10014a0c]
call fcn.1000f5b0
je 0x100025da
mov eax, dword [esp]
mov dword [0x10015ed4], eax
push dword [esp + 0xc]
call fcn.10004c2d
jmp 0x100025f0
push 2
push dword [esp + 4]
call sub.USER32.DLL_GetWindow
mov dword [esp], eax
jmp 0x10002554
mov eax, 1
jmp 0x100025f9
push dword [esp + 4]
call fcn.1000f580
add esp, 8
ret

Function at 0x10002606
Capabilities:
Hide graphical window

Disassembly:
push ebp
cmp dword [0x10015eb8], 0
je 0x1000261f
call fcn.10004ba3
push str._ShowWindow
call fcn.1000265f
push dword [esp + 8]
call fcn.10003cf7
and eax, eax
je 0x1000265b
cmp dword [esp + 0xc], 0
je 0x10002648
push 5
mov ebp, dword [0x10015f04]
push dword [ebp + 0xc]
call sub.USER32.DLL_ShowWindow
jmp 0x1000265b
push 0
mov ebp, dword [0x10015f04]
push dword [ebp + 0xc]
call sub.USER32.DLL_ShowWindow
xor eax, eax
pop ebp
ret
Function at 0x10009a02
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x10016c50]
call fcn.1000ed99
mov edi, eax
test edi, edi
je 0x10009a64
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x10009a2b
push dword [esp + 0xc]
push edi
call eax
jmp 0x10009a64
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.1000f6e0
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.1000f760
pop esi
pop ebx
pop edi
ret 8

Function at 0x1000b4b4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0x94
push ebx
push esi
push edi
push dword [0x10016c54]
call fcn.1000ee82
xor edi, edi
cmp dword [0x100168d0], edi
mov ebx, eax
jne 0x1000b57a
call fcn.1000bfe1
mov esi, 0x98
push esi
push edi
push 0x10016838
call sub.MSVCRT.dll_memset
mov dword [0x1001683c], esi
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x38]
inc esi
push eax
mov dword [0x10016838], 0x13
mov dword [0x10016848], 0x1000aea8
mov dword [0x1001684c], 0x1000ae86
mov dword [0x100168a0], 0x1000aee6
mov dword [0x100168a4], 0x1000af0b
mov dword [0x10016844], 0x1000aec3
mov dword [0x10016830], esi
mov dword [ebp - 0x38], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000b574
cmp dword [ebp - 0x28], esi
je 0x1000b56e
cmp dword [ebp - 0x28], 2
jne 0x1000b574
cmp dword [ebp - 0x34], 5
jb 0x1000b56e
jne 0x1000b574
cmp dword [ebp - 0x30], edi
jne 0x1000b574
mov dword [0x10016830], edi
mov dword [0x100168d0], esi
mov eax, dword [ebp + 0x7c]
push edi
push dword [0x10015eac]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [ebx]
push dword [ebp + 0x74]
push dword [ebp + 0x70]
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
push eax
push edi
push str.BUTTON
push edi
call dword [sym.imp.USER32.DLL_CreateWindowExA]
cmp eax, edi
mov dword [ebp + 0x74], eax
je 0x1000b611
push dword [ebp + 0x64]
push dword [0x10016c50]
call fcn.1000ed35
mov ebx, dword [ebp + 0x78]
cmp ebx, edi
mov esi, eax
mov dword [esi + 0x10], ebx
je 0x1000b5df
push ebx
call fcn.1000df8b
test eax, eax
je 0x1000b5df
push edi
push edi
push ebx
call fcn.1000e06d
mov dword [esi + 0x18], eax
jmp 0x1000b5e2
mov dword [esi + 0x18], edi
push 0x1000b1f1
push 0xfffffffffffffffc
push dword [ebp + 0x74]
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
call dword [sym.imp.USER32.DLL_SetWindowLongA]
push 0x10016838
push dword [ebp + 0x74]
mov dword [0x10016834], eax
push esi
push dword [ebp + 0x64]
call fcn.1000b8e1
mov dword [ebp + 0x74], eax
mov eax, dword [ebp + 0x74]
pop edi
pop esi
pop ebx
add ebp, 0x5c
leave
ret 0x1c
Function at 0x1000b98f
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [ebp + 8]
or eax, 0x4000
push eax
push 0x160
lea eax, [ebp - 0x264]
push eax
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHELL32.DLL_SHGetFileInfoA]
leave
ret 4
Function at 0x1000be45
Capabilities:
Create thread

Disassembly:
push ecx
push esi
xor esi, esi
cmp dword [0x10016b84], esi
jne 0x1000bf12
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebp
push edi
xor edi, edi
inc edi
push 0x10016c58
mov dword [0x10016b84], edi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x4b0
push eax
push 8
push dword [0x10015ea8]
mov dword [0x10016918], eax
mov dword [0x1001691c], 0x1f4
call ebp
push dword [0x1001691c]
mov dword [0x10016908], eax
push 8
push dword [0x10015ea8]
call ebp
push 0x100168e8
mov dword [0x1001690c], eax
mov dword [0x10016914], esi
mov dword [0x10016910], edi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push esi
push edi
push esi
call ebx
push esi
push esi
push edi
push esi
mov dword [0x100168e4], eax
call ebx
cmp dword [0x100168e4], esi
mov dword [0x100168e0], eax
je 0x1000bf09
cmp eax, esi
je 0x1000bf09
lea eax, [esp + 0x10]
push eax
push esi
push esi
push 0x1000bc69
push esi
push esi
mov dword [0x10016904], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10016900], eax
jmp 0x1000bf0f
mov dword [0x10016904], edi
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x1000ec1a
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push esi
or esi, 0xffffffff
test eax, eax
push edi
mov edi, esi
je 0x1000ed2b
cmp byte [eax], 0
je 0x1000ed2b
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp eax, 2
lea ecx, [ebp + eax - 0x109]
je 0x1000ec74
cmp eax, 3
jne 0x1000ecb1
cmp byte [ebp - 0x107], 0x3a
jne 0x1000ecb1
cmp eax, 2
jne 0x1000ec95
lea eax, [ebp - 0x108]
push 0x10010040
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x1000ed2b
jmp 0x1000ed25
mov byte [ecx], 0
dec ecx
cmp byte [ecx], 0x5c
je 0x1000ecad
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x1000ecfd
test byte [ebp - 0x248], 0x10
je 0x1000ece0
push 0xfffffffffffffffe
pop edi
or esi, 0xffffffff
jmp 0x1000ecf4
mov ecx, dword [ebp - 0x228]
mov esi, dword [ebp - 0x22c]
xor edi, edi
xor edx, edx
or edi, ecx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1000ed2b
cmp byte [ebp - 0x108], 0x5c
jne 0x1000ed2b
cmp byte [ebp - 0x107], 0x5c
jne 0x1000ed2b
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000ed2b
test al, 0x10
je 0x1000ed2b
push 0xfffffffffffffffe
or esi, 0xffffffff
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4
Function at 0x10ee370
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 0x10ee38e
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 0x1117074
push ecx
mov edi, eax
call fcn.01102198
mov esi, eax
add esp, 8
test esi, esi
jne 0x10ee3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0110202e
push esi
call fcn.01101fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x10f1850
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 0x10f18ae
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 0x111c720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x10f18ba
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.011021e1
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 0x10f18ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x111c720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x10f192a
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.01103082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x10f1957
mov word [eax], si
add eax, 2
push eax
call fcn.01103030
add esp, 4
jmp 0x10f1959
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 0x10f18ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x10f18b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x10f1ff0
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 0x10f2080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x10f20c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x1117458
push ecx
call fcn.011021e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.011021e1
add esp, 0x10
jmp 0x10f20d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0110220b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.01101dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.010f2050
mov eax, dword [0x111c728]
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 0x10f213b
push esi
call fcn.010f1fb0
add esp, 4
mov dword [0x111c728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x10f214c
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.010f1ff0
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 0x10f5440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x10f54b7
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 0x10f548e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10f5471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x10f547e
add edx, ecx
cmp ebx, edx
jb 0x10f548a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10f5467
xor ecx, ecx
jmp 0x10f54a2
test eax, eax
jne 0x10f5492
xor ecx, ecx
jmp 0x10f54a2
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.010f53c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x10f58f0
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 0x10f5921
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 0x10f5946
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 0x10f596e
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 0x10f5993
push ecx
push esi
call fcn.010f54c0
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 0x10f6c00
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 0x10f6c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x10f6c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x10f6c38
add edx, eax
cmp ebx, edx
jb 0x10f6c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x10f6c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x10f6c50
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 0x10f6c70
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 0x10f6cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10f6c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x10f6ca8
add edx, ecx
cmp ebx, edx
jb 0x10f6cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10f6c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x10f6f60
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.01103145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x10f6ffb
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 0x10f6fdd
lea eax, [esp + 0x18]
push eax
jmp 0x10f6fe2
push 0x111c720
call fcn.01102fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x10f6fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x10f6f40
push 4
push ecx
push eax
call fcn.0110343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x10f7310
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.01103145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x10f73ab
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 0x10f738d
lea eax, [esp + 0x18]
push eax
jmp 0x10f7392
push 0x111c720
call fcn.01102fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x10f7360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x10f6f40
push 4
push ecx
push eax
call fcn.0110343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x10f8f20
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 0x10f8fd7
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 0x10f8fcf
push ebx
push edi
push 0x111c770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x10f8fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x111c770
push esi
call ebx
test eax, eax
je 0x10f8fae
mov ebp, 3
cmp dword [0x111c774], ebp
jne 0x10f8faa
push 0x3e8
call edi
push 0x111c770
push esi
call ebx
test eax, eax
jne 0x10f8f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x10f8fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x10f8fbb
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