joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10029cc
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
and dword [esi + 0x14], 0
cmp dword [ebp + 8], 0
je 0x10029e3
mov eax, dword [esi + 0xc]
jmp 0x10029e5
xor eax, eax
push esi
push 0x101047a
push eax
movzx eax, word [esi + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
cmp dword [esi + 8], eax
pop esi
setne al
pop ebp
ret 4

Function at 0x1005e41
Capabilities:
Get token privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
sub eax, ebx
mov dword [ebp - 4], ebx
je 0x1005e6d
dec eax
jne 0x1005e85
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
jmp 0x1005e82
lea eax, [ebp - 4]
push eax
push 1
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], ebx
jne 0x1005e94
mov eax, 0x80041003
jmp 0x1005f38
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push 3
push dword [ebp - 4]
call edi
push dword [ebp + 8]
call fcn.010028e5
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x1005ec8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80041006
jmp 0x1005f36
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push esi
push 3
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1005ef2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.010028f5
pop ecx
mov eax, 0x80041003
jmp 0x1005f36
xor ecx, ecx
cmp dword [esi], ebx
jbe 0x1005f06
lea eax, [esi + 0xc]
or dword [eax], 2
inc ecx
add eax, 0xc
cmp ecx, dword [esi]
jb 0x1005efb
push ebx
push ebx
push ebx
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push esi
mov edi, eax
call fcn.010028f5
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
neg eax
sbb eax, eax
and eax, 0x7ffbeffd
add eax, 0x80041003
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100fdea
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push esi
push 0x444
mov esi, ecx
call fcn.01010506
xor ecx, ecx
cmp ax, 1
sete cl
mov eax, ecx
mov dword [esi + 0x38], eax
mov ecx, esi
mov dword [0x101dba0], eax
pop esi
jmp fcn.0100dc06

Function at 0x100fe19
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push esi
push 0x445
mov esi, ecx
call fcn.01010506
xor ecx, ecx
cmp ax, 1
sete cl
mov dword [esi + 0x3c], ecx
mov ecx, esi
pop esi
jmp fcn.0100dc06

Function at 0x10101c8
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [esi + 0xc], 0
pop esi
ret

Function at 0x10101ca
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [esi + 0xc], 0
pop esi
ret
Function at 0x10139a1
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1018718
call fcn.01013ce4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x101ef14
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1013758
cmp eax, esi
jne 0x101374b
xor esi, esi
inc esi
mov ebx, esi
jmp 0x101375b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1013732
xor esi, esi
inc esi
mov eax, dword [0x101ef10]
cmp eax, esi
jne 0x101376e
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x101379d
mov eax, dword [0x101ef10]
test eax, eax
jne 0x1013797
mov dword [0x101ef10], esi
push 0x1001304
push 0x10012f8
call fcn.01013697
pop ecx
pop ecx
test eax, eax
je 0x101379d
jmp 0x10138c5
mov dword [0x101ebd8], esi
mov eax, dword [0x101ef10]
cmp eax, esi
jne 0x10137c1
push 0x10012f4
push 0x10012e4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x101ef10], 2
test ebx, ebx
jne 0x10137cd
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x101ef20], 0
je 0x10137f1
push 0x101ef20
call fcn.01013c59
pop ecx
test eax, eax
je 0x10137f1
push 0
push 2
push 0
call dword [0x101ef20]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x101384d
test al, al
je 0x101380b
cmp dword [ebp - 0x1c], 0
jne 0x101384d
mov al, byte [esi]
test al, al
je 0x101381b
cmp al, 0x20
ja 0x101381b
inc esi
mov dword [ebp - 0x20], esi
jmp 0x101380b
test byte [ebp - 0x3c], 1
je 0x1013827
movzx eax, word [ebp - 0x38]
jmp 0x101382a
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x101ebd4], eax
cmp dword [0x101ebc8], 0
jne 0x10138a1
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x101385c
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x101386f
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x10137f8
cmp dword [0x101ebd8], 0
jne 0x10138b0
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101ebd4]
jmp 0x10138d1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01013d29
ret
call fcn.01013e29
jmp 0x10136f8

Function at 0x101418f
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x101a118]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10141d6
cmp dword [ebp - 0x108], 2
jne 0x10141d6
cmp dword [ebp - 0x114], 5
jb 0x10141d6
xor eax, eax
inc eax
jmp 0x10141d8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010139bb
leave
ret
Function at 0x100160a
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x18
push 0x1002b60
call fcn.01001a24
xor edi, edi
mov dword [ebp - 0x24], edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call fcn.0100224d
test eax, eax
jne 0x100163d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x10016f6
call fcn.010022c6
test eax, eax
jne 0x1001652
mov dword [ebp - 0x1c], 5
jmp 0x10016f6
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, edi
jne 0x1001668
mov dword [ebp - 0x1c], 0x57
jmp 0x10016f6
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp dword [ebp - 0x20], 2
jl 0x100165c
lea eax, [ebp - 0x24]
push eax
push 0x1001188
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
cmp eax, 1
jne 0x100165c
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x24]
dec eax
dec eax
je 0x10016bc
dec eax
dec eax
jne 0x10016a9
cmp dword [ebp - 0x20], 3
je 0x10016b2
mov dword [ebp - 0x1c], 0x57
jmp 0x10016ef
push dword [esi + 8]
call fcn.010015b3
jmp 0x10016ec
cmp dword [ebp - 0x20], 5
jne 0x10016a9
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.01001555
jmp 0x10016ec
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.01001f4e
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10022c6
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x1002330
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1002327
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.01001d8c
leave
ret
Function at 0x1002705
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100400c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, esi
jae 0x10028e5
test eax, eax
jne 0x1002752
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10028e8
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x10028e5
lea ecx, [ebp - 0x210]
cmp eax, ecx
je 0x10028e5
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x210]
cmp ax, 0x41
jb 0x1002785
cmp ax, 0x5a
jbe 0x100278e
lea ecx, [eax - 0x61]
cmp cx, 0x19
ja 0x10027b2
cmp word [ebp - 0x20e], 0x3a
jne 0x10027b2
cmp word [ebp - 0x20c], 0x5c
jne 0x10028e5
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x214], ecx
push 0x5c
pop edi
cmp ax, di
jne 0x10027f4
cmp word [ebp - 0x20e], di
jne 0x10027f4
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
test eax, eax
je 0x10028e5
add eax, 2
push edi
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
mov dword [ebp - 0x214], eax
test eax, eax
je 0x10028e5
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100281e
and al, 0x10
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xfffffef5
add eax, 0x10b
jmp 0x10028e8
mov esi, dword [ebp - 0x218]
lea eax, [ebp - 0x210]
cmp esi, eax
jne 0x1002832
mov esi, eax
jmp 0x1002835
add esi, 0xfffffffe
cmp esi, dword [ebp - 0x214]
je 0x10028e5
cmp word [esi], di
jne 0x10028e5
cmp esi, dword [ebp - 0x214]
jbe 0x10028e5
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x210]
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10028e5
movzx ebx, word [edi + 2]
xor eax, eax
mov word [edi + 2], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [edi + 2], bx
cmp eax, 0xffffffff
jne 0x10028ad
mov esi, edi
cmp edi, dword [ebp - 0x214]
ja 0x1002856
cmp esi, dword [ebp - 0x214]
jbe 0x10028e5
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
jmp 0x10028ce
test al, 0x10
jne 0x100289b
mov eax, 0x10b
jmp 0x10028e8
cmp word [esi + 2], bx
je 0x10028e1
push 0x5c
pop eax
push esi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
push ebx
lea eax, [ebp - 0x210]
push eax
call edi
test eax, eax
jne 0x10028b8
jmp 0x1002747
xor eax, eax
jmp 0x10028e8
push 0x7b
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001d8c
leave
ret 4
Function at 0xad8370
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 0xad838e
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 0xb01074
push ecx
mov edi, eax
call fcn.00aec198
mov esi, eax
add esp, 8
test esi, esi
jne 0xad83cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00aec02e
push esi
call fcn.00aebfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xadb850
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 0xadb8ae
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 0xb06720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xadb8ba
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.00aec1e1
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 0xadb8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xb06720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xadb92a
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.00aed082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xadb957
mov word [eax], si
add eax, 2
push eax
call fcn.00aed030
add esp, 4
jmp 0xadb959
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 0xadb8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xadb8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xadc0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xb01458
push ecx
call fcn.00aec1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00aec1e1
add esp, 0x10
jmp 0xadc0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00aec20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00aebdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00adc050
mov eax, dword [0xb06728]
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 0xadc13b
push esi
call fcn.00adbfb0
add esp, 4
mov dword [0xb06728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xadc14c
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.00adbff0
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 0xadf440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xadf4b7
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 0xadf48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xadf471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xadf47e
add edx, ecx
cmp ebx, edx
jb 0xadf48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xadf467
xor ecx, ecx
jmp 0xadf4a2
test eax, eax
jne 0xadf492
xor ecx, ecx
jmp 0xadf4a2
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.00adf3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xadf8f0
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 0xadf921
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 0xadf946
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 0xadf96e
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 0xadf993
push ecx
push esi
call fcn.00adf4c0
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 0xae0c00
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 0xae0c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xae0c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xae0c38
add edx, eax
cmp ebx, edx
jb 0xae0c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xae0c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xae0c50
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 0xae0c70
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 0xae0cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xae0c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xae0ca8
add edx, ecx
cmp ebx, edx
jb 0xae0cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xae0c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xae0f60
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.00aed145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xae0ffb
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 0xae0fdd
lea eax, [esp + 0x18]
push eax
jmp 0xae0fe2
push 0xb06720
call fcn.00aecfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xae0fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xae0f40
push 4
push ecx
push eax
call fcn.00aed43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xae1310
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.00aed145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xae13ab
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 0xae138d
lea eax, [esp + 0x18]
push eax
jmp 0xae1392
push 0xb06720
call fcn.00aecfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xae1360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xae0f40
push 4
push ecx
push eax
call fcn.00aed43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xae2f20
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 0xae2fd7
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 0xae2fcf
push ebx
push edi
push 0xb06770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xae2fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xb06770
push esi
call ebx
test eax, eax
je 0xae2fae
mov ebp, 3
cmp dword [0xb06774], ebp
jne 0xae2faa
push 0x3e8
call edi
push 0xb06770
push esi
call ebx
test eax, eax
jne 0xae2f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xae2fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xae2fbb
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