joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101da90
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword fs:[0x18]
push ebx
push esi
xor ebx, ebx
push 0x6a
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
mov byte [ebp - 1], bl
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
cmp eax, ebx
jne 0x101dad1
mov esi, 0xc0000017
jmp 0x101dbfa
test byte [ebp + 0xc], 1
push edi
je 0x101daef
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0101da02
mov esi, eax
cmp esi, ebx
jge 0x101dc41
push ebx
push 0x18
lea eax, [ebp - 0x34]
push eax
push 7
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp esi, ebx
jl 0x101dbe3
mov dword [ebp + 0xc], ebx
cmp dword [ebp - 0x34], ebx
jbe 0x101dbde
push ebx
push dword [ebp + 0xc]
push 0x101ebec
push 0x35
push dword [ebp - 0x14]
call sub.msvcrt.dll_swprintf_s
add esp, 0x14
cmp dword [ebp - 8], ebx
je 0x101db48
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [ebp - 8], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
call fcn.0101df64
test eax, eax
jl 0x101dbca
mov eax, dword [ebp - 8]
cmp dword [eax], 1
jne 0x101dbca
mov dword [ebp - 0x1c], ebx
cmp dword [eax + 4], ebx
jbe 0x101dbca
add eax, 0x48
push 4
pop ecx
mov edi, 0x1007bc0
lea esi, [eax + 8]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x101db90
cmp byte [ebp - 1], bl
jne 0x101dba5
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ecx
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add eax, 0x90
cmp edx, dword [ecx + 4]
jb 0x101db6b
jmp 0x101dbca
lea eax, [ebp - 0x18]
push eax
call fcn.0101e404
test eax, eax
jl 0x101dc38
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.0101de4c
test eax, eax
jl 0x101dc38
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x34]
jb 0x101db14
cmp byte [ebp - 1], bl
jne 0x101dc3f
mov esi, 0xc0000452
push dword [ebp - 0x14]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
cmp dword [ebp - 8], ebx
je 0x101dc15
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x18], ebx
je 0x101dc30
push dword [ebp - 0x18]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov esi, 0xc0000451
jmp 0x101dbe3
xor esi, esi
cmp dword [ebp + 8], ebx
jne 0x101dc49
mov dword [ebp - 0xc], ebx
push dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0x101ebec
push 0x35
push edi
call sub.msvcrt.dll_swprintf_s
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov dword [eax], edi
jmp 0x101dbf9
Function at 0x101dd00
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
push edi
push dword [ebp + 0xc]
mov dword [eax], ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [ebp + 0x10], ebx
je 0x101dd4e
lea eax, [ebp - 4]
push eax
push 0x20019
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0101dc88
mov edi, eax
cmp edi, ebx
jl 0x101de13
jmp 0x101dd54
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQueryValueKey]
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov edi, eax
cmp edi, 0xc0000023
je 0x101dd88
cmp edi, ebx
jl 0x101de12
mov edi, 0xc0000001
jmp 0x101de12
mov eax, dword fs:[0x18]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
mov ebx, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
call ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x101ddf3
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0xc]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov edi, eax
test edi, edi
jl 0x101de12
mov esi, dword [ebp - 8]
mov eax, dword [esi + 4]
cmp eax, dword [ebp + 0x14]
je 0x101ddd2
mov edi, 0xc0000024
jmp 0x101de12
sub dword [ebp + 0xc], 0xc
mov eax, dword fs:[0x18]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
xor edi, edi
push edi
push dword [eax + 0x18]
call ebx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp eax, edi
jne 0x101ddfa
mov edi, 0xc000009a
jmp 0x101de12
push dword [ebp + 0xc]
add esi, 0xc
push esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add esp, 0xc
mov dword [ecx], eax
pop esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
je 0x101de22
push eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 8], 0
je 0x101de3f
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop ebx
leave
ret 0x18
Function at 0x101e53b
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x1021360]
mov ebx, 0x1021360
cmp eax, ebx
je 0x101e56f
test dword [eax + 0x1c], 0x20000000
je 0x101e56f
push 0x1007c10
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009101
push 1
push 0x615
push 0x1007c7c
lea ecx, [ebp - 0x38]
call fcn.0100c063
or dword [ebp - 4], 0xffffffff
xor esi, esi
xor eax, eax
lea edi, [ebp - 8]
mov dword [ebp - 0xc], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], esi
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x101e5a2
mov dword [eax], esi
cmp dword [ebp + 8], esi
je 0x101e5ae
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x101e5c3
mov dword [ebp - 0x38], 0x80070057
mov eax, 0x61d
mov word [ebp - 0x32], ax
jmp 0x101e6bc
or dword [eax], 0xffffffff
push esi
push 0x2200000
push 3
push esi
push 7
push 0x80
push dword [ebp + 8]
mov ecx, 0x61d
mov dword [ebp - 0x38], esi
mov word [ebp - 0x34], cx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], esi
je 0x101e60d
cmp eax, 0xffffffff
je 0x101e5fc
cmp eax, esi
jne 0x101e60d
mov dword [ebp - 0x38], 1
mov eax, 0x62f
jmp 0x101e6b8
cmp eax, 0xffffffff
je 0x101e616
cmp eax, esi
jne 0x101e65c
call fcn.0100d43e
mov dword [ebp - 0x38], eax
mov eax, 0x632
mov word [ebp - 0x32], ax
mov eax, dword [0x1021360]
cmp eax, ebx
je 0x101e6bc
test dword [eax + 0x1c], 0x2000000
je 0x101e6bc
push dword [ebp - 0x38]
push dword [ebp + 8]
push 0x1007c6c
push 0x1007c10
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01007e84
jmp 0x101e6bc
mov eax, 0x632
mov word [ebp - 0x34], ax
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
push 0x23
stosd dword es:[edi], eax
push 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x38], esi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ecx, eax
call fcn.0100d4a1
cmp eax, esi
mov dword [ebp - 0x38], eax
jge 0x101e69c
mov eax, 0x636
jmp 0x101e5ba
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x101e6b0
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov dword [ebp - 0x38], esi
mov eax, 0x63e
mov word [ebp - 0x34], ax
cmp dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x38]
je 0x101e6d3
cmp dword [ebp - 4], esi
je 0x101e6d3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x38]
call fcn.0100c22a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x101e707
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1021360]
cmp eax, 0x1021360
je 0x101e736
test dword [eax + 0x1c], 0x20000000
je 0x101e736
push 0x1007c10
push 0x43
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009101
push ebx
push esi
push edi
push 1
push 0x939
push 0x1007c94
lea ecx, [ebp - 0x2c]
call fcn.0100c063
xor ebx, ebx
xor eax, eax
push 9
pop ecx
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 4]
or esi, 0xffffffff
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
mov eax, 0x93f
cmp dword [ebp + 8], ebx
jne 0x101e780
mov dword [ebp - 0x2c], 0x80070057
mov word [ebp - 0x26], ax
jmp 0x101e875
push ebx
push 0x2200000
push 3
push ebx
push 7
push 0x180
push dword [ebp + 8]
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x28], ax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x101e7ab
cmp esi, ebx
jne 0x101e7f8
call fcn.0100d43e
mov dword [ebp - 0x2c], eax
mov eax, 0x948
mov word [ebp - 0x26], ax
mov eax, dword [0x1021360]
cmp eax, 0x1021360
je 0x101e875
test dword [eax + 0x1c], 0x2000000
je 0x101e875
push dword [ebp - 0x2c]
push dword [ebp + 8]
push 0x1007c6c
push 0x1007c10
push 0x44
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01007e84
jmp 0x101e875
push 0xa
pop ecx
mov eax, 0x948
mov word [ebp - 0x28], ax
xor eax, eax
push 4
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
push 0x28
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ecx, eax
call fcn.0100d4a1
mov dword [ebp - 0x2c], eax
cmp eax, ebx
mov eax, 0x94c
jl 0x101e777
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 0xc]
or eax, 0x80
push 4
mov dword [ebp - 0x34], eax
push 0x28
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov ecx, eax
call fcn.0100d4a1
mov dword [ebp - 0x2c], eax
cmp eax, ebx
mov eax, 0x952
jl 0x101e777
mov word [ebp - 0x28], ax
mov edi, dword [ebp - 0x2c]
cmp esi, 0xffffffff
je 0x101e888
cmp esi, ebx
je 0x101e888
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.0100c22a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x101e972
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x1021360]
mov esi, 0x1021360
mov edi, 0x1007c10
cmp eax, esi
je 0x101e9a7
test dword [eax + 0x1c], 0x20000000
je 0x101e9a7
push edi
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009101
push 1
push 0x519
push 0x1007cc4
lea ecx, [ebp - 0x28]
call fcn.0100c063
or dword [ebp - 4], 0xffffffff
mov eax, dword [0x1021360]
mov ebx, dword [ebp + 8]
cmp eax, esi
je 0x101e9e3
test dword [eax + 0x1c], 0x10000000
je 0x101e9e3
push ebx
push edi
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01007e17
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call esi
test eax, eax
je 0x101e9ff
and dword [ebp - 0x28], 0
mov eax, 0x521
mov word [ebp - 0x24], ax
jmp 0x101ea55
lea eax, [ebp - 4]
push eax
push ebx
call fcn.0101e89e
mov dword [ebp - 0x28], eax
test eax, eax
mov eax, 0x527
jge 0x101ea1b
mov word [ebp - 0x22], ax
jmp 0x101ea46
push ebx
mov word [ebp - 0x24], ax
call esi
test eax, eax
jne 0x101ea35
call fcn.0100d43e
mov dword [ebp - 0x28], eax
mov eax, 0x52c
jmp 0x101ea15
and dword [ebp - 0x28], 0
or dword [ebp - 4], 0xffffffff
mov eax, 0x52c
mov word [ebp - 0x24], ax
cmp dword [ebp - 4], 0xffffffff
je 0x101ea55
push dword [ebp - 4]
push ebx
call fcn.0101e707
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0100c22a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0xaf8370
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 0xaf838e
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 0xb21074
push ecx
mov edi, eax
call fcn.00b0c198
mov esi, eax
add esp, 8
test esi, esi
jne 0xaf83cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00b0c02e
push esi
call fcn.00b0bfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xafb850
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 0xafb8ae
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 0xb26720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xafb8ba
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.00b0c1e1
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 0xafb8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xb26720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xafb92a
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.00b0d082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xafb957
mov word [eax], si
add eax, 2
push eax
call fcn.00b0d030
add esp, 4
jmp 0xafb959
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 0xafb8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xafb8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xafc0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xb21458
push ecx
call fcn.00b0c1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00b0c1e1
add esp, 0x10
jmp 0xafc0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00b0c20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00b0bdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00afc050
mov eax, dword [0xb26728]
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 0xafc13b
push esi
call fcn.00afbfb0
add esp, 4
mov dword [0xb26728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xafc14c
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.00afbff0
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 0xaff440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xaff4b7
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 0xaff48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xaff471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xaff47e
add edx, ecx
cmp ebx, edx
jb 0xaff48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xaff467
xor ecx, ecx
jmp 0xaff4a2
test eax, eax
jne 0xaff492
xor ecx, ecx
jmp 0xaff4a2
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.00aff3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xaff8f0
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 0xaff921
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 0xaff946
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 0xaff96e
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 0xaff993
push ecx
push esi
call fcn.00aff4c0
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 0xb00c00
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 0xb00c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xb00c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xb00c38
add edx, eax
cmp ebx, edx
jb 0xb00c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xb00c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xb00c50
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 0xb00c70
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 0xb00cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xb00c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xb00ca8
add edx, ecx
cmp ebx, edx
jb 0xb00cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xb00c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xb00f60
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.00b0d145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xb00ffb
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 0xb00fdd
lea eax, [esp + 0x18]
push eax
jmp 0xb00fe2
push 0xb26720
call fcn.00b0cfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xb00fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xb00f40
push 4
push ecx
push eax
call fcn.00b0d43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xb01310
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.00b0d145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xb013ab
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 0xb0138d
lea eax, [esp + 0x18]
push eax
jmp 0xb01392
push 0xb26720
call fcn.00b0cfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xb01360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xb00f40
push 4
push ecx
push eax
call fcn.00b0d43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xb02f20
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 0xb02fd7
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 0xb02fcf
push ebx
push edi
push 0xb26770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xb02fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xb26770
push esi
call ebx
test eax, eax
je 0xb02fae
mov ebp, 3
cmp dword [0xb26774], ebp
jne 0xb02faa
push 0x3e8
call edi
push 0xb26770
push esi
call ebx
test eax, eax
jne 0xb02f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xb02fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xb02fbb
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