joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dad60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e0de
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x559540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov word [esi + 4], 0x100
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x14]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [esi], vtable.ProtocolFilters::POP3Filter.0
mov dword [esi + 0xc], eax
call fcn.004c5cc0
push 1
push 1
push 0x12c
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.004e32c0
mov ecx, dword [esi + 8]
lea eax, [esi + 0x44]
push eax
mov byte [ebp - 4], 2
call fcn.004d1340
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x2c], eax
mov eax, esi
mov byte [esi + 5], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4db8d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e0de
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x559540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov word [esi + 4], 0x100
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x14]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [esi], vtable.ProtocolFilters::SMTPFilter.0
mov dword [esi + 0xc], eax
call fcn.004c5cc0
push 1
push 1
push 0x190
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.004e32c0
mov ecx, dword [esi + 8]
lea eax, [esi + 0x44]
push eax
mov byte [ebp - 4], 2
call fcn.004d1340
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x2c], eax
mov eax, esi
mov byte [esi + 5], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4df5a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e0de
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x559540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov word [esi + 4], 0x100
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x14]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [esi], vtable.ProtocolFilters::NNTPFilter.0
mov dword [esi + 0xc], eax
call fcn.004c5cc0
push 1
push 1
push 0x384
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.004e32c0
mov ecx, dword [esi + 8]
lea eax, [esi + 0x44]
push eax
mov byte [ebp - 4], 2
call fcn.004d1340
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x2c], eax
mov eax, esi
mov byte [esi + 5], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4e1aa0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e7c9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x559540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov word [edi + 4], 0x100
mov esi, dword [ebp + 0xc]
lea ecx, [edi + 8]
mov eax, esi
mov dword [ebp - 4], 0
shr eax, 3
and al, 1
mov dword [edi], vtable.ProtocolFilters::XMPPFilter.0
movzx eax, al
push eax
push 0x44c
call fcn.004e1b60
mov eax, esi
mov byte [ebp - 4], 1
shr eax, 2
lea ecx, [edi + 0x30]
and al, 1
movzx eax, al
push eax
push 0x44d
call fcn.004e1b60
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x64]
mov byte [ebp - 4], 2
mov byte [edi + 0x58], 1
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], esi
call fcn.004cf9d0
lea ecx, [edi + 0xa0]
mov byte [ebp - 4], 3
call fcn.004cf9d0
mov byte [edi + 5], 0
mov eax, edi
mov byte [edi + 0xdc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4e1c10
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e86f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x559540]
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.ProtocolFilters::XMPPFilter.0
lea ecx, [edi + 0xa0]
mov dword [ebp - 4], 3
call fcn.004cf9f0
lea ecx, [edi + 0x64]
mov byte [ebp - 4], 2
call fcn.004cf9f0
lea esi, [edi + 0x30]
mov dword [ebp - 0x14], esi
mov ecx, dword [esi]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x4e1c76
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esi + 0x20], 0x10
jb 0x4e1c87
push dword [esi + 0xc]
call fcn.004eb50e
add esp, 4
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], 0
mov byte [esi + 0xc], 0
lea esi, [edi + 8]
mov dword [ebp - 0x14], esi
mov ecx, dword [esi]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x4e1caf
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esi + 0x20], 0x10
jb 0x4e1cc0
push dword [esi + 0xc]
call fcn.004eb50e
add esp, 4
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], 0
mov byte [esi + 0xc], 0
mov dword [edi], vtable.ProtocolFilters::IFilterBase.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 0x4e25c0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx ecx, si
shr esi, 0x10
test edi, edi
jne 0x4e25dc
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4e26dd
jmp 0x4e25f0
mov edx, 0x15b0
cmp ebx, edx
cmovb edx, ebx
sub ebx, edx
mov dword [ebp + 0x10], ebx
cmp edx, 0x10
jl 0x4e26a2
mov ebx, edx
shr ebx, 4
mov eax, ebx
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [edi]
add ecx, eax
movzx eax, byte [edi + 1]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 2]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 3]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 4]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 5]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 6]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 7]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 8]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 9]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xa]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xb]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xc]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xd]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xe]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xf]
add esi, ecx
add edi, 0x10
add ecx, eax
add esi, ecx
dec ebx
jne 0x4e2616
mov ebx, dword [ebp + 0x10]
test edx, edx
je 0x4e26b1
movzx eax, byte [edi]
inc edi
add ecx, eax
add esi, ecx
dec edx
jne 0x4e26a6
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul edx, edx, 0xffff000f
add esi, edx
test ebx, ebx
jne 0x4e25f0
shl esi, 0x10
pop ebx
or esi, ecx
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4e26f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4e26fc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004e2710
Function at 0x4e6130
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ed4c
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x559540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
mov dword [edi], vtable.nfapi::EventQueue_class_nfapi::NFEvent_.0
lea ecx, [edi + 4]
push 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.004e67e0
mov dword [edi + 4], eax
lea ecx, [edi + 0xc]
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.004e67b0
mov dword [edi + 0xc], eax
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 1
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.004e67b0
mov dword [edi + 0x14], eax
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 2
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
call fcn.004d6ef0
mov dword [edi + 0x1c], eax
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 3
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
call fcn.004d6ef0
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
mov dword [edi + 0x24], eax
push 0
mov dword [edi + 0x2c], 0xffffffff
call esi
push 0
push 0
mov dword [edi + 0x2c], eax
push 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
push 0
mov dword [edi + 0x40], 0xffffffff
call esi
push 0
push 0
push 1
mov dword [edi + 0x40], eax
push 0
mov dword [edi + 0x44], 0xffffffff
call esi
lea ecx, [edi + 0x48]
mov dword [edi + 0x44], eax
xorps xmm0, xmm0
mov dword [edi + 0x30], 0
movdqu xmmword [ecx], xmm0
movq qword [ecx + 0x10], xmm0
call fcn.004c83f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e6280
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ed4c
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x559540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
mov dword [edi], vtable.nfapi::EventQueue_class_nfapi::NFEventOut_.0
lea ecx, [edi + 4]
push 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.004e67e0
mov dword [edi + 4], eax
lea ecx, [edi + 0xc]
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.004e67b0
mov dword [edi + 0xc], eax
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 1
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.004e67b0
mov dword [edi + 0x14], eax
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 2
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
call fcn.004d6ef0
mov dword [edi + 0x1c], eax
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 3
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
call fcn.004d6ef0
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
mov dword [edi + 0x24], eax
push 0
mov dword [edi + 0x2c], 0xffffffff
call esi
push 0
push 0
mov dword [edi + 0x2c], eax
push 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
push 0
mov dword [edi + 0x40], 0xffffffff
call esi
push 0
push 0
push 1
mov dword [edi + 0x40], eax
push 0
mov dword [edi + 0x44], 0xffffffff
call esi
lea ecx, [edi + 0x48]
mov dword [edi + 0x44], eax
xorps xmm0, xmm0
mov dword [edi + 0x30], 0
movdqu xmmword [ecx], xmm0
movq qword [ecx + 0x10], xmm0
call fcn.004c83f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e8b40
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], esi
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
test ebx, ebx
jg 0x4e8b81
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x1c]
mov eax, 1
test ebx, ebx
cmove ebx, eax
test ebx, ebx
jle 0x4e8c0a
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push 0x4e69b0
push 0
push 0
call fcn.004eefa8
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
je 0x4e8c02
cmp edi, 0xffffffff
je 0x4e8c02
mov eax, dword [esi + 8]
lea ecx, [ebp - 4]
cmp ecx, eax
jae 0x4e8be3
mov ecx, dword [esi + 4]
lea edx, [ebp - 4]
cmp ecx, edx
ja 0x4e8be3
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 0xc]
jne 0x4e8bd2
push 1
lea ecx, [esi + 4]
call fcn.004ceb40
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4e8bfb
mov eax, dword [esi + 4]
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x4e8bfb
cmp eax, dword [esi + 0xc]
jne 0x4e8bf2
push 1
lea ecx, [esi + 4]
call fcn.004ceb40
mov eax, dword [esi + 8]
test eax, eax
je 0x4e8bfb
mov dword [eax], edi
add dword [esi + 8], 4
mov esi, dword [ebp - 8]
dec ebx
jne 0x4e8b82
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4e8d90
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4e8e2a
push esi
lea eax, [ebp - 0x18]
push eax
push 0x20
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4e8e26
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4e8e1b
mov eax, dword [ebp - 0x20]
push 0
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4e8e21
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call esi
push edi
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret
Function at 0x4e9670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x55952c]
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x559528]
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 [0x5647f8]
jb 0x4e96bb
ja 0x4e96b1
cmp eax, dword [0x5647f4]
jbe 0x4e96bb
mov eax, 0xfffffffc
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x559534], 0xffffffff
jne 0x4e96ce
mov eax, 0xfffffffd
pop esi
mov esp, ebp
pop ebp
ret
push 0x5646bc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0xc]
push esi
push dword [0x5647ec]
call fcn.004ef340
mov eax, dword [0x55952c]
add esp, 0xc
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
movdqu xmmword [ebp - 0x28], xmm0
push eax
push 0
push 8
lea eax, [ebp - 0xc]
push eax
push dword [0x559534]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4e9742
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4e9742
push 0x5646bc
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 0x4e9767
push eax
push dword [0x559528]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4e9788
push dword [0x559534]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0x5646bc
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 [0x559534]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4e9773
mov esi, dword [ebp - 4]
neg esi
push 0x5646bc
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

Function at 0x4e9880
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x5646a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x559534], 0xffffffff
je 0x4e98ff
cmp dword [0x559538], 0xffffffff
jne 0x4e98ff
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e98ff
push dword [0x559528]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [0x564588], eax
call esi
push dword [0x559524]
call esi
push dword [0x559520]
call esi
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x4ea340
push 0
push 0
call fcn.004eefa8
add esp, 0x18
test eax, eax
jne 0x4e9914
push dword [0x559524]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [0x559538], 0xffffffff
push 0x5646a4
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [0x559520]
mov dword [0x559538], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x5646a4
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ea790
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 [0x559540]
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.004f0f7b
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
push 3
push 0
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4ea7f6
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
je 0x4ea82a
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 4
push eax
push esi
lea eax, [ebp - 0x114]
push eax
push 0
push 0x514dec
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x4ea842
push 4
push esi
push 4
push 0
push 0x514dec
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]
xor eax, eax
test esi, esi
pop esi
sete al
xor ecx, ebp
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret

Function at 0x4ea870
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.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4ea898
xor al, al
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
push esi
push edi
je 0x4ea927
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push edi
push 0
push eax
push 0
push str.PNP_TDI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4ea8d9
mov eax, dword [edi]
add eax, 4
push eax
call fcn.004eb8f0
mov esi, dword [ebp + 0xc]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x4ea8ea
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 str.PNP_TDI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
je 0x4ea958
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi]
call fcn.004eb8b8
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 0x4ea937
shr edx, 2
dec edx
jmp 0x4ea939
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]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ea970
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.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4ea998
xor al, al
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp byte [ebp + 8], al
push esi
setne al
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]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret

Function at 0x4ea9e0
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.SYSTEMCurrentControlSetServicesTcpip6Parameters
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4eaa08
xor al, al
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x8e
cmp byte [ebp + 8], al
push esi
cmovne eax, ecx
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.DisabledComponents
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret

Function at 0x4eab20
Capabilities:
Create service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
push esi
push str.system32drivers_s.sys
push 0x104
push eax
xor bl, bl
call fcn.004f0f7b
add esp, 0x10
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4eab7e
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push str.PNP_TDI
lea eax, [ebp - 0x108]
push eax
push 1
push 1
push 1
push 0xf01ff
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x10c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10c]
test ecx, ecx
je 0x4eabd6
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
jmp 0x4eac05
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x10c], eax
test eax, eax
je 0x4eac12
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
movzx ebx, bl
mov edx, 1
cmovne ebx, edx
push dword [ebp - 0x10c]
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
push esi
call fcn.004eac40
mov ecx, dword [ebp - 4]
add esp, 8
xor eax, eax
test bl, bl
setne al
xor ecx, ebp
pop edi
pop esi
dec eax
pop ebx
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret