joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006bfb0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d2ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x100ff230]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [0x1010711c]
xor ebx, ebx
mov dword [ebp - 0x30], eax
lea eax, [esi + 0x10]
mov dword [ebp - 0x34], eax
cmp dword [eax], ebx
je 0x1006c176
cmp dword [ebp + 8], ebx
je 0x1006c176
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x1006c176
cmp dword [esi + 0x14], 0x10
jb 0x1006c01e
mov esi, dword [esi]
mov eax, dword [ebp + 8]
push str.LdrGetProcedureAddress
mov dword [ebp - 0x5c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov dword [ebp - 0x58], eax
call esi
push str.NtAllocateVirtualMemory
push edi
mov dword [ebp - 0x54], eax
call esi
push str.LdrLoadDll
push edi
mov dword [ebp - 0x50], eax
call esi
push str.RtlInitAnsiString
push edi
mov dword [ebp - 0x4c], eax
call esi
push str.RtlAnsiStringToUnicodeString
push edi
mov dword [ebp - 0x48], eax
call esi
push str.RtlFreeUnicodeString
push edi
mov dword [ebp - 0x44], eax
call esi
push 0x40
mov dword [ebp - 0x40], eax
call fcn.10091bda
add esp, 4
mov esi, eax
mov dword [ebp - 0x3c], esi
push 0x40
push 0
push esi
call fcn.10093d00
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x5c]
add esp, 0xc
mov dword [ebp - 0x38], eax
call fcn.1006b750
mov ecx, eax
mov eax, dword [0x10107118]
test ecx, ecx
cmovne eax, esi
xor ebx, ebx
mov dword [0x10107118], eax
test ecx, ecx
mov eax, dword [ebp - 0x34]
setne bl
cmp dword [eax], 0
jbe 0x1006c176
test ebx, ebx
jne 0x1006c176
push ecx
lea ecx, [ebp - 0x10c]
call fcn.100045c0
mov edx, str.Load_RemoteDll_Version
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xfc]
call fcn.10006770
mov edx, 0x100ea1e0
mov ecx, eax
call fcn.10006770
mov edx, str._Error:
mov ecx, eax
call fcn.10006770
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.1001e810
call fcn.100037a0
mov esi, eax
lea ecx, [ebp - 0x10c]
lea eax, [ebp - 0x2c]
push eax
call fcn.100044d0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x1006c12e
mov eax, dword [eax]
sub esp, 8
mov ecx, esi
push eax
push 4
call fcn.10003ef0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x1006c16b
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006c161
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006c194
push ecx
push edx
call fcn.1009197a
add esp, 8
lea ecx, [ebp - 0x10c]
call fcn.10004400
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10091622
mov esp, ebp
pop ebp
ret
call fcn.1009d81f
int3
Function at 0x1006c1f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe0
mov eax, dword [0x100ff230]
xor eax, esp
mov dword [esp + 0xdc], eax
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.1006baf0
push ecx
lea ecx, [esp + 0xc]
call fcn.100045c0
mov edx, str._TID:
lea ecx, [esp + 0x18]
call fcn.10006770
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.1001e810
mov edx, 0x100e746c
mov ecx, eax
call fcn.10006770
movaps xmm0, xmmword [0x100eae30]
mov esi, eax
movups xmmword [esp + 0xbc], xmm0
mov dword [esp + 0xcc], 0x693d3c
xor ecx, ecx
nop word [eax + eax]
mov al, byte [esp + ecx + 0xbd]
xor al, byte [esp + 0xbc]
mov byte [esp + ecx + 0xd0], al
inc ecx
cmp ecx, 0x12
jb 0x1006c270
lea edx, [esp + 0xd0]
mov byte [esp + 0xe2], 0
mov ecx, esi
call fcn.10006770
mov edx, 0x100ea1e0
mov ecx, eax
call fcn.10006770
call fcn.100037a0
mov esi, eax
lea ecx, [esp + 8]
lea eax, [esp + 0xbc]
push eax
call fcn.100044d0
cmp dword [eax + 0x14], 0x10
jb 0x1006c2cd
mov eax, dword [eax]
sub esp, 8
mov ecx, esi
push eax
push 2
call fcn.10003ef0
mov ecx, dword [esp + 0xd0]
cmp ecx, 0x10
jb 0x1006c316
mov edx, dword [esp + 0xbc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006c30c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006c391
push ecx
push edx
call fcn.1009197a
add esp, 8
lea ecx, [esp + 8]
call fcn.10004400
mov eax, dword fs:[0x2c]
mov ecx, dword [0x101065c4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101079e8]
cmp eax, dword [ecx + 4]
jle 0x1006c370
push 0x101079e8
call fcn.10091b04
add esp, 4
cmp dword [0x101079e8], 0xffffffff
jne 0x1006c370
call fcn.10036780
push 0x100d5e80
call fcn.10091965
add esp, 4
push 0x101079e8
call fcn.10091aba
add esp, 4
push edi
mov ecx, 0x101079f0
call fcn.100369c0
mov ecx, dword [esp + 0xe4]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.10091622
mov esp, ebp
pop ebp
ret
call fcn.1009d81f
int3
Function at 0x10089810
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d40f1
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x100ff230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.nfapi::EventQueue_class_nfapi::NFEvent_.0
push 0x18
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10091630
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
lea esi, [edi + 0xc]
mov dword [ebp - 4], 0
push 0x20
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10091630
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x14]
mov byte [ebp - 4], 1
push 0x20
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10091630
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x1c]
mov byte [ebp - 4], 2
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10091630
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x24]
mov byte [ebp - 4], 3
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10091630
add esp, 0x14
mov dword [eax], eax
push 0
push 0
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
push 0
mov dword [esi], eax
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
mov dword [edi + 0x2c], 0xffffffff
call esi
push 0
push 0
mov dword [edi + 0x2c], eax
push 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
push 0
mov dword [edi + 0x44], 0xffffffff
call esi
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], 0xffffffff
push 0
push 0
push 1
push 0
call esi
lea ecx, [edi + 0x50]
mov dword [edi + 0x48], eax
xorps xmm0, xmm0
mov dword [edi + 0x34], 0
movups xmmword [ecx], xmm0
movq qword [ecx + 0x10], xmm0
call fcn.1008a040
mov dword [edi + 0x4c], 1
mov eax, edi
mov byte [edi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100899b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d40f1
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x100ff230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.nfapi::EventQueue_class_nfapi::NFEventOut_.0
push 0x18
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10091630
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
lea esi, [edi + 0xc]
mov dword [ebp - 4], 0
push 0x20
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10091630
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x14]
mov byte [ebp - 4], 1
push 0x20
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10091630
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x1c]
mov byte [ebp - 4], 2
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10091630
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x24]
mov byte [ebp - 4], 3
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10091630
add esp, 0x14
mov dword [eax], eax
push 0
push 0
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
push 0
mov dword [esi], eax
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
mov dword [edi + 0x2c], 0xffffffff
call esi
push 0
push 0
mov dword [edi + 0x2c], eax
push 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
push 0
mov dword [edi + 0x44], 0xffffffff
call esi
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], 0xffffffff
push 0
push 0
push 1
push 0
call esi
lea ecx, [edi + 0x50]
mov dword [edi + 0x48], eax
xorps xmm0, xmm0
mov dword [edi + 0x34], 0
movups xmmword [ecx], xmm0
movq qword [ecx + 0x10], xmm0
call fcn.1008a040
mov dword [edi + 0x4c], 1
mov eax, edi
mov byte [edi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1008b910
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
mov edi, ecx
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
test esi, esi
jg 0x1008b950
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x1008b947
mov esi, 1
jmp 0x1008b950
jle 0x1008b996
nop dword [eax]
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0x1008a700
push 0
push 0
call fcn.100a573b
add esp, 0x18
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1008b991
cmp eax, 0xffffffff
je 0x1008b991
mov edx, dword [edi + 8]
lea ecx, [edi + 4]
cmp edx, dword [ecx + 8]
je 0x1008b987
mov dword [edx], eax
add dword [ecx + 4], 4
jmp 0x1008b991
lea eax, [ebp + 0xc]
push eax
push edx
call fcn.10089340
sub esi, 1
jne 0x1008b950
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1008bc00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100ff08c]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [0x100ff088]
mov dword [ebp - 4], 0
test byte [esi + 0x12], 1
mov dword [ebp - 0x10], eax
je 0x1008bc2e
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 8], ecx
lea ebx, [edi + 0x16]
lea eax, [ebx + 0x10]
mov dword [ebp - 0xc], eax
cmp ecx, dword [0x101060a0]
jb 0x1008bc5f
ja 0x1008bc53
cmp eax, dword [0x1010609c]
jbe 0x1008bc5f
pop edi
pop ebx
mov eax, 0xfffffffc
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x10106038], cl
je 0x1008bdac
cmp dword [0x100ff094], 0xffffffff
je 0x1008bdac
mov eax, dword [0x10106094]
or eax, dword [0x10106098]
je 0x1008bdac
push 0x10105f1c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x10106094]
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], ebx
movups xmm0, xmmword [esi]
movups xmmword [ecx + 0x10], xmm0
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x20], eax
mov ax, word [esi + 0x14]
mov word [ecx + 0x24], ax
lea eax, [ecx + 0x26]
push eax
call fcn.10093720
mov eax, dword [0x100ff08c]
add esp, 0xc
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
push eax
push 0
push 8
lea eax, [ebp - 0xc]
push eax
push dword [0x100ff094]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1008bd2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1008bd2c
push 0x10105f1c
mov esi, 0xfffffffc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x14]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x1008bd51
push eax
push dword [0x100ff088]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1008bd74
push dword [0x100ff094]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0x10105f1c
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [0x100ff094]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1008bd5d
mov esi, dword [ebp - 4]
neg esi
push 0x10105f1c
sbb esi, esi
neg esi
dec esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
mov eax, 0xfffffffd
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1008bdc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100ff08c]
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x100ff088]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xc]
add eax, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
cmp ecx, dword [0x101060a0]
jb 0x1008be0b
ja 0x1008be01
cmp eax, dword [0x1010609c]
jbe 0x1008be0b
mov eax, 0xfffffffc
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x10106038], cl
je 0x1008bf23
cmp dword [0x100ff094], 0xffffffff
je 0x1008bf23
mov eax, dword [0x10106094]
or eax, dword [0x10106098]
je 0x1008bf23
push 0x10105f1c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0xc]
push esi
push dword [0x10106094]
call fcn.10093720
mov eax, dword [0x100ff08c]
add esp, 0xc
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
push eax
push 0
push 8
lea eax, [ebp - 0xc]
push eax
push dword [0x100ff094]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1008bea7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1008bea7
push 0x10105f1c
mov esi, 0xfffffffc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x14]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x1008becc
push eax
push dword [0x100ff088]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1008beed
push dword [0x100ff094]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0x10105f1c
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [0x100ff094]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1008bed8
mov esi, dword [ebp - 4]
neg esi
push 0x10105f1c
sbb esi, esi
neg esi
dec esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffd
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1008d310
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 2
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1008d356
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.DisableTaskOffload
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x1008d500
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100ff230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push eax
push str.SYSTEMCurrentControlSetServices_s
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.1008e080
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
push 3
push 0
lea eax, [ebp - 0x108]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1008d566
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10091622
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
je 0x1008d59a
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 4
push eax
push esi
lea eax, [ebp - 0x114]
push eax
push 0
push 0x100da348
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x1008d5b2
push 4
push esi
push 4
push 0
push 0x100da34c
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
test esi, esi
pop esi
sete al
xor ecx, ebp
call fcn.10091622
mov esp, ebp
pop ebp
ret
Function at 0x1008d5e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 3
push 0
push str.SYSTEMCurrentControlSetControlGroupOrderList
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1008d608
xor al, al
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
push esi
push edi
je 0x1008d697
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push edi
push 0
push eax
push 0
push 0x100da380
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1008d649
mov eax, dword [edi]
add eax, 4
push eax
call fcn.100a3f17
mov esi, dword [ebp + 0xc]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x1008d65a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edi
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x100da388
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
je 0x1008d6c8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi]
call fcn.1009e727
add esp, 4
mov dword [esi], 0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
mov edx, dword [esi]
cmp edx, 4
jbe 0x1008d6a7
shr edx, 2
dec edx
jmp 0x1008d6a9
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [eax], edx
push dword [esi]
push dword [ecx]
push 3
push 0
push str.PNP_TDI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1008d6e0
Capabilities:
Create service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x100ff230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor bl, bl
push edi
push eax
push 0x100da1e8
mov dword [ebp - 0x434], eax
xor edi, edi
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x43c], 0
push 0x104
push eax
call fcn.1008e0c0
test esi, esi
mov eax, esi
mov ecx, 0x100da1f0
cmove eax, dword [ebp - 0x434]
push eax
mov eax, 0x100da1f8
cmovne eax, ecx
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1008e0c0
add esp, 0x20
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x438], eax
test eax, eax
jne 0x1008d780
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10091622
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
lea ecx, [ebp - 0x43c]
push ecx
push 0x100da228
lea ecx, [ebp - 0x414]
push ecx
push 1
push 3
push 1
push 0xf01ff
lea ecx, [ebp - 0x20c]
push ecx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test byte [0x10105efc], 8
mov esi, eax
je 0x1008d7f1
test esi, esi
je 0x1008d7d0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
jmp 0x1008d8a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, 0x431
jne 0x1008d8a7
mov bl, 1
jmp 0x1008d8a7
test esi, esi
je 0x1008d823
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
jmp 0x1008d8a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x431
jne 0x1008d8a1
push 0x14
push dword [ebp - 0x434]
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x1008d898
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1008d86c
cmp dword [ebp - 0x42c], 4
jne 0x1008d86c
mov bl, 1
jmp 0x1008d884
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
movzx ebx, bl
mov edx, 1
cmovne ebx, edx
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
jmp 0x1008d8a7
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edi, eax
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x438]
call esi
push 0
push dword [ebp - 0x434]
call fcn.1008dcd0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
movzx eax, bl
xor ecx, ebp
pop esi
dec eax
pop ebx
call fcn.10091622
mov esp, ebp
pop ebp
ret
Function at 0x1008dbb0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x100ff230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.NDIS]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
movzx eax, byte [0x100da284]
mov byte [ebp - 8], al
mov eax, dword [str.tcpip]
mov dword [ebp - 0x14], eax
mov ax, word [0x100da28c]
push ecx
mov word [ebp - 0x10], ax
movzx eax, byte [0x100da28e]
push 0x100da298
mov byte [ebp - 0xe], al
lea eax, [ebp - 0x120]
push 0x104
push eax
mov dword [ebp - 0x1c], 0x5f504e50
mov dword [ebp - 0x18], 0x494454
call fcn.1008e080
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
push 3
push 0
lea eax, [ebp - 0x120]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1008dc4d
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10091622
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
push esi
je 0x1008dc8a
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0xc]
push 5
push eax
push 1
push 0
push 0x100da2c0
push dword [ebp - 0x124]
call esi
push 7
lea eax, [ebp - 0x14]
push eax
push 7
push 0
push str.DependOnService
push dword [ebp - 0x124]
call esi
jmp 0x1008dca5
push 8
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
push str.Group
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x124]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
test esi, esi
pop esi
sete al
xor ecx, ebp
call fcn.10091622
mov esp, ebp
pop ebp
ret