joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101a3d5
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x10d8
call fcn.01009184
mov eax, dword [0x101e08c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x10b4], eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x648]
push eax
push 0x2713
push dword [0x101e0a4]
call edi
lea eax, [ebp - 0x10d8]
push eax
push 0xa68
lea eax, [ebp - 0x10b0]
push eax
push 1
push dword [esi]
push 0
call sub.WINSTA.dll_WinStationQueryInformationW
test al, al
je 0x101a610
cmp dword [ebp - 0xb50], 0
jne 0x101a49f
push ebx
lea eax, [ebp - 0x43c]
push eax
push 0x9cbe
push dword [0x101e0a4]
call edi
push dword [esi]
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x230]
push 0x105
push eax
call fcn.0100196b
add esp, 0x10
push 0x30
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x10b4]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x101a610
cmp dword [esi + 0x84], 4
jne 0x101a4c9
cmp dword [ebp - 0xb50], 1
je 0x101a4ba
cmp dword [ebp - 0xb50], 3
jne 0x101a4c9
push ebx
lea eax, [ebp - 0x43c]
push eax
push 0x9cbf
jmp 0x101a459
lea ecx, [ebp - 0x10d4]
call fcn.010194d5
push dword [ebp - 0x10b4]
lea ecx, [ebp - 0x10d4]
call fcn.0101992a
cmp eax, 1
jne 0x101a605
push 0
push 0x101a021
push dword [ebp - 0x10b4]
push 0xd6
push dword [0x101e0a4]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [ebp - 0x10b8], eax
test eax, eax
je 0x101a52b
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x10b8]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x384
mov dword [ebp - 0x10c0], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10c4]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x10c4], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push dword [ebp - 0x10c8]
lea eax, [ebp - 0x24]
push dword [ebp - 0x10cc]
push dword [esi]
push eax
push 0
call sub.WINSTA.dll_WinStationShadow
cmp dword [ebp - 0x10b8], 0
movzx eax, al
mov dword [ebp - 0x10bc], eax
je 0x101a5a2
push dword [ebp - 0x10b8]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [ebp - 0x10bc], 0
jne 0x101a5f9
push ebx
lea eax, [ebp - 0x43c]
push eax
push 0x9cbd
push dword [0x101e0a4]
call edi
push dword [esi]
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x230]
push 0x105
push eax
call fcn.0100196b
add esp, 0x10
push 0x30
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x10b4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x10c0]
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [ebp - 0x10d4]
call fcn.01019592
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001679
leave
ret 8
Function at 0x101acfc
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
xor esi, esi
inc esi
lea eax, [ebp - 8]
push eax
xor edi, edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 8], esi
mov dword [ebp - 4], eax
jle 0x101ad5c
mov eax, dword [eax + 4]
cmp word [eax], 0x2f
jne 0x101ad5c
add eax, 2
push eax
call dword [sym.imp.msvcrt.dll__wtol]
mov edi, eax
cmp edi, 7
pop ecx
jl 0x101ad5c
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push eax
push 4
push 0xdd7
push ebx
mov dword [ebp - 0xc], edi
call sub.ntdll.dll_WinSqmAddToStream
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x101ad93
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
leave
ret 0xc
Function at 0x21716db
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x2171704
mov esi, dword [esp + 0xc]
imul eax, eax, 3
movzx ecx, byte [esi]
xor eax, ecx
sub edx, edx
mov ecx, 0xfb
inc esi
div ecx
mov eax, edx
dec edi
jne 0x21716ed
pop edi
pop esi
ret 0xc

Function at 0x2171afa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 4], 0x8007000e
push esi
push edi
mov esi, ecx
xor edi, edi
test eax, eax
je 0x2171bd8
lea ecx, [ebp - 8]
push ecx
push 0x20019
push edi
push eax
push dword [0x218c5ac]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x2171b6a
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0xc], 0x50
push eax
push ecx
push edi
push edi
push str.AppId
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x2171b74
mov eax, 0x80004015
jmp 0x2171cbf
lea ecx, [ebp - 0x3c]
call fcn.0217f9ec
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x3c]
push eax
call fcn.0217fb90
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x8c]
add eax, 0x1c
push eax
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push ecx
call fcn.0217f86f
mov edi, eax
lea ecx, [ebp - 0x3c]
call fcn.0217fa0f
test edi, edi
jne 0x2171bc9
lea ecx, [ebp - 0x3c]
call fcn.0217fa0e
mov eax, 0x80004015
jmp 0x2171cbf
xor ebx, ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp + 8], ebx
call fcn.0217fa0e
jmp 0x2171bdb
mov ebx, dword [ebp + 0xc]
push esi
mov edi, 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0x18]
test ebx, ebx
je 0x2171bfc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax*2 + 2]
push dword [ebp + 0x18]
call fcn.021718a3
push dword [ebp + 0x10]
mov dword [ebp - 8], eax
call fcn.02171cc8
push dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
call fcn.021718a3
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [0x218cb30]
add ecx, edi
add ecx, dword [ebp - 8]
mov edi, 0
add ecx, 0x34
push ecx
push 0
push eax
call dword [0x218cb34]
test eax, eax
je 0x2171c5e
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
push dword [esi + 0x18]
mov ecx, eax
call fcn.021719ad
mov edi, eax
test edi, edi
je 0x2171cb5
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.0217174b
push 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push dword [eax]
add eax, 4
push eax
call fcn.021716db
mov ebx, eax
push edi
push ebx
lea ecx, [esi + 0x24]
call fcn.02171acd
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp + 0x28]
cmp dword [ebp - 4], 1
mov byte [eax + ebx], 1
mov eax, 0
adc eax, 0xffffffff
mov dword [ecx], edi
mov edx, dword [edi + 0xc]
and eax, 0x401e7
mov dword [ecx + 4], edx
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x2172eb6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
lea eax, [ebp - 4]
push esi
push edi
lea edi, [ecx + 0x218]
mov esi, ecx
push eax
push 0x20019
push 0
lea ecx, [esi + 8]
push ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [edi], eax
test eax, eax
jne 0x2173112
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x2172f0e
lea eax, [ebp - 8]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 8], 0x50
push eax
push ecx
push str.AutoConvertTo
push dword [ebp - 4]
call fcn.02174393
mov dword [edi], ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x2172f33
lea eax, [ebp - 8]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 8], 0x50
push eax
push ecx
push str.TreatAs
push dword [ebp - 4]
call fcn.02174393
mov dword [edi], ebx
lea ebx, [esi + 0x480]
lea eax, [esi + 0x484]
push eax
push dword [ebx]
push str.LocalServer32
push dword [ebp - 4]
call fcn.02174393
mov dword [edi], eax
test eax, eax
jne 0x2172f64
mov dword [esi + 0x4ac], 1
jmp 0x21730ae
cmp eax, 0xea
jne 0x2172fde
mov eax, dword [ebx]
mov ecx, eax
sub ecx, esi
cmp ecx, 0x228
je 0x2172f88
push eax
push 0
push dword [0x218cb30]
call dword [0x218cb38]
push dword [esi + 0x484]
push 0
push dword [0x218cb30]
call dword [0x218cb34]
mov ecx, eax
mov dword [ebx], eax
test ecx, ecx
jne 0x2172fae
mov eax, 8
jmp 0x2173112
lea eax, [esi + 0x484]
push eax
push ecx
push str.LocalServer32
push dword [ebp - 4]
call fcn.02174393
mov dword [edi], eax
test eax, eax
je 0x2172fcf
mov dword [esi + 0x220], eax
mov dword [esi + 0x4ac], 1
jmp 0x21730ae
cmp eax, 2
je 0x2172fee
cmp eax, 0xa1
jne 0x21730a8
lea eax, [esi + 0x484]
push eax
push dword [ebx]
push str.LocalServer
push dword [ebp - 4]
call fcn.02174393
mov dword [edi], eax
test eax, eax
jne 0x2173020
mov eax, 1
mov dword [esi + 0x4b0], eax
mov dword [esi + 0x4ac], eax
jmp 0x21730ae
cmp eax, 0xea
jne 0x217309c
mov eax, dword [ebx]
mov ecx, eax
sub ecx, esi
cmp ecx, 0x228
je 0x2173044
push eax
push 0
push dword [0x218cb30]
call dword [0x218cb38]
push dword [esi + 0x484]
push 0
push dword [0x218cb30]
call dword [0x218cb34]
mov ecx, eax
mov dword [ebx], eax
test ecx, ecx
jne 0x2173068
mov eax, dword [edi]
mov dword [esi + 0x220], eax
lea eax, [esi + 0x484]
push eax
push ecx
push str.LocalServer
push dword [ebp - 4]
call fcn.02174393
mov dword [edi], eax
test eax, eax
je 0x2173089
mov dword [esi + 0x220], eax
mov eax, 1
mov dword [esi + 0x4b0], eax
mov dword [esi + 0x4ac], eax
jmp 0x21730ae
cmp eax, 2
je 0x21730ae
cmp eax, 0xa1
je 0x21730ae
mov dword [esi + 0x220], eax
lea ebx, [esi + 0x48c]
lea eax, [esi + 0x488]
push eax
lea edx, [ebp - 0xc]
push dword [ebx]
push edx
push 0
push str.AppID
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2173103
push 0x30
lea edi, [esi + 0x4b4]
call fcn.02171697
add esp, 4
mov ecx, eax
test ecx, ecx
je 0x21730f4
call fcn.0217f9ec
mov dword [edi], eax
jmp 0x21730fa
mov dword [edi], 0
push dword [ebx]
mov ecx, dword [edi]
call fcn.0217fb90
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x220]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x2174393
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
lea eax, [ebp - 8]
push esi
push edi
push eax
xor esi, esi
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x2174483
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
push edi
lea eax, [ebp - 0xc]
push ebx
push eax
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x217447a
cmp word [ebx], 0x22
mov ecx, ebx
jne 0x217441b
lea eax, [ebx + 2]
cmp word [eax], si
je 0x217440c
mov dx, word [eax]
cmp dx, 0x22
je 0x217440c
mov word [ecx], dx
add eax, 2
add ecx, 2
cmp word [eax], 0
jne 0x21743f4
mov word [ecx], 0
add ecx, 2
sub ecx, ebx
and cl, 0xfe
mov dword [edi], ecx
cmp word [ebx], 0
mov esi, ebx
je 0x2174441
lea eax, [ebp - 0xe]
push eax
push 1
push esi
push 1
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
test byte [ebp - 0xe], 8
je 0x2174441
add esi, 2
cmp word [esi], 0
jne 0x2174423
xor eax, eax
cmp word [esi], ax
jne 0x2174451
mov dword [ebp - 4], 2
mov dword [edi], eax
cmp dword [ebp - 0xc], 2
jne 0x217447a
push ebx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x104
lea eax, [ebp - 0x214]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [edi], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x2175a29
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x44], 0
je 0x2175a50
mov eax, dword [0x218c85c]
cmp dword [eax + 0x30], 0
jne 0x2175a50
mov eax, 0x80070005
jmp 0x2175ad1
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [edx + 0x1c]
jne 0x2175a5c
xor edi, edi
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x2175a6d
mov dword [ebp - 4], 0xc0002712
push eax
jmp 0x2175a7c
mov eax, dword [0x218c85c]
mov dword [ebp - 4], 0xc0002713
push dword [eax + 0x3c]
push edx
call fcn.02175db1
mov ebx, eax
test ebx, ebx
jge 0x2175acf
push 0x4e
lea eax, [ebp - 0x58]
push eax
push dword [esi + 0x20]
call fcn.02173cff
lea ecx, [ebp - 0x58]
push str.DCOM
push 0
mov dword [ebp - 8], ecx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x2175acf
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push edi
push dword [ebp - 4]
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x2175db1
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ecx, dword [esp + 0xc]
mov ebp, esp
sub esp, 0x2c
test ecx, ecx
push esi
push edi
je 0x2175ec0
mov edx, dword [ebp + 8]
xor eax, eax
test edx, edx
jne 0x2175e7b
mov byte [ebp - 0x12], al
mov byte [ebp - 0x11], al
mov byte [ebp - 0x10], al
mov byte [ebp - 0xf], al
mov byte [ebp - 0xe], al
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
lea edx, [ebp - 4]
push eax
lea esi, [ebp - 0x18]
mov byte [ebp - 0x14], 1
mov byte [ebp - 0x13], 1
mov byte [ebp - 0xd], 1
push edx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x2175ec0
xor edi, edi
cmp dword [ebp - 0x18], edi
je 0x2175e77
cmp dword [ebp - 4], edi
je 0x2175e77
mov esi, 0x80070005
mov eax, dword [ebp - 4]
cmp word [eax + 4], di
jbe 0x2175e6a
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x2175e6a
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x2175e5a
test byte [eax + 4], 1
je 0x2175e5a
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
add eax, 8
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x2175e68
inc edi
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 4]
cmp ecx, edi
ja 0x2175e25
jmp 0x2175e6a
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
jmp 0x2175ec5
xor eax, eax
jmp 0x2175ec5
xor esi, esi
lea eax, [ebp - 4]
push eax
lea edi, [ebp - 0x18]
push edi
lea eax, [ebp - 8]
push eax
lea edi, [ebp - 0x2c]
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], 0x14
mov dword [ebp - 0x2c], 1
push 0x218c598
mov dword [ebp - 0x28], esi
push 1
push dword [edx + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
je 0x2175ec0
mov eax, 0
cmp dword [ebp - 4], esi
jne 0x2175ec5
mov eax, 0x80070005
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x21770ec
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov eax, dword [ecx + 4]
push edi
cmp dword [ecx + 8], eax
mov esi, ecx
jne 0x217717e
shl eax, 4
push eax
call fcn.02171697
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x21771f0
xor eax, eax
cmp dword [esi + 4], eax
jbe 0x217713c
xor edx, edx
mov ecx, dword [ebp - 4]
mov edi, dword [esi]
inc eax
add edi, edx
add edx, 8
mov ebx, dword [edi]
mov edi, dword [edi + 4]
mov dword [ecx], ebx
mov dword [ecx + 4], edi
add ecx, 8
cmp dword [esi + 4], eax
ja 0x2177122
mov edi, dword [esi + 4]
lea eax, [edi*2]
cmp eax, edi
jbe 0x217716c
mov eax, dword [ebp - 4]
lea ebx, [eax + edi*8]
inc edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx], eax
add ebx, 8
mov dword [ebx - 4], 0
mov eax, dword [esi + 4]
add eax, eax
cmp eax, edi
ja 0x2177150
push dword [esi]
call fcn.02171305
add esp, 4
mov eax, dword [ebp - 4]
shl dword [esi + 4], 1
mov dword [esi], eax
push 0x1c
xor ebx, ebx
call fcn.02171697
add esp, 4
mov edi, eax
mov eax, 0
test edi, edi
je 0x21771cf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
mov dword [edi + 8], 4
mov ax, word [ebp + 8]
mov dword [edi + 0xc], ebx
dec ax
mov dword [edi + 0x10], ebx
mov word [edi + 0x14], ax
xor ax, ax
mov ah, byte [edi + 0x19]
mov al, byte [ebp + 0x10]
mov word [edi + 0x18], ax
mov eax, edi
add dword [edi], 0x57e40
test eax, eax
je 0x21771f0
mov edi, dword [esi + 0xc]
mov ebx, dword [esi + 4]
cmp edi, ebx
jae 0x21771f0
mov edx, dword [esi]
lea ecx, [edx + edi*8 + 4]
cmp dword [ecx], 0
je 0x21771fb
add ecx, 8
inc edi
cmp edi, ebx
jb 0x21771e3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
inc dword [edx + edi*8]
lea edx, [edi + 1]
mov ecx, dword [esi]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 4], edx
mov dword [ecx + edi*8 + 4], eax
mov ecx, dword [esi]
mov ecx, dword [ecx + edi*8]
mov edi, dword [ebp - 4]
mov dword [ebx], ecx
mov dword [ebx + 4], edi
mov dword [esi + 0xc], edx
inc dword [esi + 8]
jmp 0x21771f2

Function at 0x2177af0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x218cf20
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0x2f9c
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x218cf18], eax
test eax, eax
jne 0x2177b1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x2177b54
push 0
mov eax, dword [0x218c298]
push 0
push eax
call sub.RPCRT4.dll_RpcServerRegisterIf
test eax, eax
jne 0x2177b54
push 0
mov eax, dword [0x218c2cc]
push 0
push eax
call sub.RPCRT4.dll_RpcServerRegisterIf
test eax, eax
jne 0x2177b54
push 0x217a56e
call sub.RPCRT4.dll_I_RpcServerRegisterForwardFunction
test eax, eax
jne 0x2177b54
jmp fcn.02178da6
ret
Function at 0x2177b5c
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [eax + 0x1d4c0]
mov ecx, dword [0x218c314]
mov dword [ebp - 8], eax
call fcn.02171922
mov ecx, dword [0x218c334]
call fcn.021721d7
mov dword [ebp - 0x18], eax
cmp edx, esi
mov dword [ebp - 0x14], edx
jne 0x2177ba1
cmp dword [ebp - 0x18], esi
je 0x2177bd6
mov ecx, dword [0x218c314]
call fcn.0217c8f1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov ecx, dword [0x218c334]
call fcn.0217ca41
test eax, eax
je 0x2177bc9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov ecx, dword [0x218c314]
call fcn.02171000
jmp 0x2177be1
mov ecx, dword [0x218c314]
call fcn.02171900
lea eax, [ebp - 4]
mov ecx, dword [0x218c324]
push eax
call fcn.021715ba
test eax, eax
je 0x2177c48
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
jns 0x2177c3e
mov ecx, dword [0x218c318]
call fcn.0217101d
lea eax, [ebp - 8]
mov ecx, dword [0x218c324]
push eax
call fcn.02171709
test eax, eax
je 0x2177c29
lea ecx, [eax - 0x20]
test ecx, ecx
je 0x2177c07
push 1
mov eax, dword [ecx]
call dword [eax]
jmp 0x2177c07
mov ecx, dword [0x218c318]
call fcn.02171000
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
jmp 0x2177c48
mov eax, dword [ebp - 4]
sub eax, edi
jns 0x2177c48
mov edi, dword [ebp - 4]
xor ebx, ebx
lea eax, [ebp - 4]
push eax
mov ecx, dword [0x218c33c]
call fcn.021715ba
test eax, eax
je 0x2177c95
mov eax, dword [ebp - 8]
mov ecx, dword [0x218cb68]
add ecx, 0xc
mov dword [ebp - 0x10], eax
imul ecx, ecx, 0x2710
add ecx, eax
cmp dword [0x218cb68], esi
je 0x2177c90
mov eax, ecx
sub eax, dword [ebp - 4]
js 0x2177c90
mov eax, ecx
sub eax, edi
jns 0x2177c95
mov edi, ecx
mov dword [ebp - 0x10], ecx
jmp 0x2177c95
mov ebx, 1
lea eax, [ebp - 4]
mov ecx, dword [0x218c32c]
push eax
call fcn.021715ba
test eax, eax
je 0x2177ce0
mov eax, dword [0x218cb68]
imul eax, eax, 0x2710
sub eax, dword [ebp - 8]
add eax, dword [ebp - 4]
jns 0x2177cc2
mov ebx, 1
jmp 0x2177ce0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [0x218cb68]
imul eax, eax, 0x4e20
add eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
sub eax, edi
jns 0x2177ce0
mov edi, dword [ebp - 0x10]
test ebx, ebx
je 0x2177d1a
push 0x218cb68
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push 0x21773ea
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x2177d0f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x2177d1a
push 0x218cb68
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add edi, 0x3e8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub edi, eax
cmp edi, 0xafc80
ja 0x2177b6d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x2177b6d
Function at 0x2177d8c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov byte [ebp - 7], 1
xor ebx, ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
push 1
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 8], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
cmp dword [0x218cb40], ebx
je 0x2177e21
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0xc]
push ebx
push ebx
push ebx
push ebx
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp dword [ebp - 4], ebx
je 0x2177e21
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
lea esi, [eax + 0x10]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x2177e18
push 2
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
push dword [ebp - 4]
push 0xfff3ffff
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor esi, esi
lea ecx, [ebp - 0x24]
push esi
push dword [ebp - 0x10]
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea ecx, [ebp - 0x24]
push str.ScmCreatedEvent
push esi
lea edx, [ebp - 0x30]
push 1
mov dword [ebp - 0x2c], ecx
push edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], 0xc
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x2177e62
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x2177e6f
push str.Could_not_create_ScmCreatedEvent_n
call sub.ntdll.dll_DbgPrint
add esp, 4
call sub.RPCRT4.dll_RpcMgmtEnableIdleCleanup
cmp dword [ebp - 0x10], 0
je 0x2177e83
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x21789ce
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
lea eax, [ebp - 4]
push edi
mov esi, ecx
xor edi, edi
push eax
push 0x20019
mov dword [esi + 0x30], edi
push edi
mov dword [esi + 0x38], edi
push str.SOFTWAREMicrosoftOLE
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x2178ab0
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x2c]
push eax
lea edx, [ebp - 8]
mov dword [ebp - 0xc], 0x10
push ecx
push edx
push edi
push str.EnableDCOM
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2178a43
cmp dword [ebp - 8], 1
jne 0x2178a43
cmp word [ebp - 0x2c], 0x79
je 0x2178a3c
cmp word [ebp - 0x2c], 0x59
jne 0x2178a43
mov dword [esi + 0x30], 1
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x2c]
push eax
lea edx, [ebp - 8]
push ecx
push edx
push 0
push str.EnableDCOMHTTP
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2178a7e
cmp dword [ebp - 8], 1
jne 0x2178a7e
cmp word [ebp - 0x2c], 0x79
je 0x2178a77
cmp word [ebp - 0x2c], 0x59
jne 0x2178a7e
mov dword [esi + 0x34], 1
add esi, 0x3c
xor edi, edi
mov eax, dword [esi]
test eax, eax
je 0x2178a99
push eax
push edi
push dword [0x218cb30]
call dword [0x218cb38]
mov dword [esi], edi
push esi
push str.DefaultLaunchPermission
push dword [ebp - 4]
call fcn.02178ab6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret