joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ba260
Capabilities:
Create directory
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52434b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x144
mov eax, dword [0x588eb0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
lea eax, [ebp - 0x120]
push eax
push 0
push 0
push 0x23
push 0
mov dword [ebp - 0x154], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x4ba3c9
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x138], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ba2f0
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x138]
call fcn.004a4bf0
push str.HTTPDebuggerPro
lea ecx, [ebp - 0x138]
mov dword [ebp - 4], 0
call fcn.004a47a0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x150], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x140], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x124]
cmp edx, 0x10
jb 0x4ba385
mov ecx, dword [ebp - 0x138]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4ba37b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ba409
push edx
push ecx
call fcn.004fbca6
add esp, 8
cmp dword [ebp - 0x13c], 0x10
lea ecx, [ebp - 0x150]
push 0
cmovae ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
movups xmm0, xmmword [ebp - 0x150]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x140]
movq qword [esi + 0x10], xmm0
jmp 0x4ba3e8
push 0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 0xf
push 0x572bc3
mov byte [esi], 0
call fcn.004a4bf0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fbc95
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.00501cb1
int3
Function at 0x4bb360
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5244f0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4c
mov eax, dword [0x588eb0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004ba260
push str.CertSSL_
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004a47a0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push str.HTTP_DEBUGGER_CA_for_DEBUG_ONLY_2.cer
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004a47a0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4bb450
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bb446
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bb4f5
push edx
push ecx
call fcn.004fbca6
add esp, 8
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp edx, 0x10
jb 0x4bb492
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bb488
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bb4fa
push edx
push ecx
call fcn.004fbca6
add esp, 8
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov edx, dword [ebp - 0x30]
mov esi, eax
cmp edx, 0x10
jb 0x4bb4d6
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bb4cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bb4ff
push edx
push ecx
call fcn.004fbca6
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fbc95
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00501cb1
call fcn.00501cb1
call fcn.00501cb1
int3
Function at 0x4c3cf0
Capabilities:
Create service
Delete service
Modify service
Persist via windows service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x588eb0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
call fcn.0050c630
cmp dword [eax], 1
jne 0x4c3d5d
call fcn.004a5150
mov ecx, eax
call fcn.004a5b00
call fcn.004a51b0
mov ecx, eax
call fcn.004a5f90
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x574974
push eax
mov dword [esp + 0x1c], 0x4c3c40
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
call fcn.0050c630
cmp dword [eax], 2
jne 0x4c3f37
test esi, esi
je 0x4c3f37
push str._install
push esi
call fcn.004fde80
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 8
mov edi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x4c3e54
sub esp, 0x18
mov ecx, esp
push 0x11
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.Install___Service
mov byte [ecx], 0
call fcn.004a4bf0
push ecx
call fcn.004be830
push str.HttpDebuggerSdk
call fcn.004cd610
add esp, 4
lea eax, [esp + 0x30]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xf003f
push 0
push 0
call edi
mov dword [esp + 0xc], eax
test eax, eax
je 0x4c3e54
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push 0x574974
push 0x574974
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
je 0x4c3e48
lea eax, [esp + 0x10]
mov dword [esp + 0x10], str.HTTPDebuggerPro_Windows_Service
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
je 0x4c3e45
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call ebx
push dword [esp + 0xc]
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push str._remove
push esi
call fcn.004fde80
add esp, 8
test eax, eax
je 0x4c3ee3
sub esp, 0x18
mov ecx, esp
push 0x13
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.Uninstall___Service
mov byte [ecx], 0
call fcn.004a4bf0
push ecx
call fcn.004be830
push 0xf003f
push 0
push 0
call edi
mov dword [esp + 0xc], eax
test eax, eax
je 0x4c3ed6
push 0xf01ff
push 0x574974
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4c3ed0
lea eax, [esp + 0x14]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call ebx
push dword [esp + 0xc]
call ebx
push str.HttpDebuggerSdk
call fcn.004cd760
add esp, 4
push str._run
push esi
call fcn.004fde80
add esp, 8
test eax, eax
je 0x4c3f37
call fcn.004a5150
mov ecx, eax
call fcn.004a5b00
call fcn.004a51b0
mov ecx, eax
call fcn.004a5f90
push ecx
mov dword [0x589840], 1
call fcn.004c4ec0
push 0x36ee80
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004c5570
mov dword [0x589840], 0
mov ecx, dword [esp + 0x13c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004fbc95
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c7210
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [esp + 8], ecx
mov ecx, ebx
push edi
mov eax, dword [ebx]
call dword [eax + 4]
mov edx, dword [ebx]
xor esi, esi
mov ecx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
call dword [edx + 0x14]
test eax, eax
jle 0x4c737e
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 0x18]
mov esi, eax
test esi, esi
je 0x4c7366
mov eax, dword [esi]
mov ecx, esi
push 0
push 0
push 0
call dword [eax + 8]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
mov edi, eax
push edi
call fcn.004fc235
mov edx, dword [esi]
add esp, 4
mov ecx, esi
mov dword [esp + 0x14], eax
push edi
mov edi, eax
push edi
call dword [edx + 0xc]
mov edx, eax
mov ecx, 1
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], edx
lock xadd dword [eax + 0x194], ecx
inc ecx
mov dword [esp + 0x14], ecx
test edx, edx
je 0x4c7350
cmp dword [esp + 0x1c], 0x258
jne 0x4c7301
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
push 0x3e8
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.004fc840
mov ecx, dword [esp + 0xc]
push dword [ecx + 0x1bc]
push dword [ecx + 0x1b8]
push edx
push eax
call fcn.00522ed0
push edx
push eax
push dword [esp + 0x18]
mov eax, dword [ebp + 0x14]
push edi
push dword [esp + 0x24]
push dword [eax + 0x10]
call fcn.004c4680
jmp 0x4c7350
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
push 0x3e8
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.004fc840
mov ecx, dword [esp + 0xc]
push dword [ecx + 0x1bc]
push dword [ecx + 0x1b8]
push edx
push eax
call fcn.00522ed0
push edx
push eax
push dword [esp + 0x18]
mov eax, dword [ebp + 0x14]
push edi
push dword [esp + 0x24]
push dword [eax + 0xf8]
call fcn.004c4820
push edi
call fcn.004fc23e
mov eax, dword [esi]
add esp, 4
mov ecx, esi
push 0
push 0
push 0
call dword [eax + 8]
mov esi, dword [esp + 0x18]
mov ecx, ebx
mov eax, dword [ebx]
inc esi
mov dword [esp + 0x18], esi
call dword [eax + 0x14]
cmp esi, eax
jl 0x4c7243
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004d3880
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c8bb0
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x588eb0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x1000
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push ecx
mov edx, 2
call fcn.004cac50
add esp, 4
test al, al
je 0x4c8bfe
push str.drvWin8
jmp 0x4c8c19
push ecx
mov edx, 1
call fcn.004cac50
add esp, 4
test al, al
je 0x4c8d3f
push str.drvWin7
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x110]
push eax
call esi
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.drivers
lea eax, [ebp - 0x218]
push eax
call esi
push str.HttpDebuggerSdk
lea eax, [ebp - 0x218]
push eax
call esi
push str..sys
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
push str.HttpDebuggerSdk
call fcn.004cd760
add esp, 4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 0
push eax
mov dword [ebp - 0x21c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x4c8cfa
cmp dword [ebp - 0x21c], 0
je 0x4c8cfa
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
test eax, eax
je 0x4c8d1e
push str.HttpDebuggerSdk64.sys
lea eax, [ebp - 0x110]
push eax
call esi
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
jmp 0x4c8d1e
push str.HttpDebuggerSdk32.sys
lea eax, [ebp - 0x110]
push eax
call esi
push 0
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push str.HttpDebuggerSdk
call fcn.004cd610
add esp, 4
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fbc95
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004fbc95
mov esp, ebp
pop ebp
ret
Function at 0x4cd0c0
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 [0x588eb0]
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.004cdc10
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 0x4cd126
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fbc95
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
je 0x4cd15a
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 4
push eax
push esi
lea eax, [ebp - 0x114]
push eax
push 0
push 0x52b980
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x4cd172
push 4
push esi
push 4
push 0
push 0x52b980
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.004fbc95
mov esp, ebp
pop ebp
ret

Function at 0x4cd1a0
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 0x4cd1c8
xor al, al
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
push esi
push edi
je 0x4cd257
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 0x4cd209
mov eax, dword [edi]
add eax, 4
push eax
call fcn.0050c636
mov esi, dword [ebp + 0xc]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x4cd21a
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 0x4cd288
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi]
call fcn.0050c010
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 0x4cd267
shr edx, 2
dec edx
jmp 0x4cd269
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 0x4cd2a0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov bl, byte [ebp + 8]
push esi
test bl, bl
je 0x4cd2bc
test byte [0x58acb4], 1
jne 0x4cd2bc
mov bh, 1
jmp 0x4cd2be
xor bh, bh
lea eax, [ebp - 4]
push eax
push 3
push 0
push str.SYSTEMCurrentControlSetServicesTcpip6Parameters
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4cd33e
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.DisabledComponents
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4cd30b
cmp dword [ebp - 8], eax
je 0x4cd30b
mov ecx, dword [ebp + 8]
jmp 0x4cd30d
xor ecx, ecx
mov eax, ecx
and ecx, 0xfffffff7
or eax, 8
test bh, bh
push 4
cmovne ecx, eax
lea eax, [ebp + 8]
push eax
push 4
push 0
push str.DisabledComponents
push dword [ebp - 4]
mov dword [ebp + 8], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x4cd352
test byte [0x58acb4], 2
jne 0x4cd352
mov esi, 1
jmp 0x4cd354
xor esi, esi
lea eax, [ebp + 8]
push eax
push 2
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4cd394
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 4
push 0
push str.DisableTaskOffload
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cd3a0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x588eb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push ebx
push str..CtrlSM
push 0x52b95c
push 0x104
push eax
xor esi, esi
call fcn.004cdc10
add esp, 0x14
lea eax, [ebp - 0x20c]
push esi
push 0x40000000
push 3
push esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4cd437
nop dword [eax]
inc esi
mov ecx, esi
sub ecx, 1
jne 0x4cd437
push ebx
call fcn.004cd640
add esp, 4
lea eax, [ebp - 0x20c]
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4cd400
push 0x98
lea eax, [ebp - 0x2a4]
push 0
push eax
call fcn.004ffc00
add esp, 0xc
mov dword [ebp - 0x2a8], 0x9c
lea eax, [ebp - 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x2a4], 6
jb 0x4cd480
jne 0x4cd5aa
cmp dword [ebp - 0x2a0], 1
ja 0x4cd5aa
cmp edi, 0xffffffff
je 0x4cd4c2
push 0
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x2ac], 0
push eax
push 4
lea eax, [ebp - 0x2ac]
push eax
push 0
push 0
push 0x22019c
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4cd4c2
cmp dword [ebp - 0x2b0], 0
ja 0x4cd5aa
push str.nisdrv
push str.SYSTEMCurrentControlSetServices_s
lea eax, [ebp - 0x108]
mov dword [ebp - 0x2b0], 0
push 0x104
push eax
call fcn.004cdc10
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x2ac]
add esp, 0x10
push eax
push 1
push 0
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4cd5bd
push dword [ebp - 0x2ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push str.SYSTEMCurrentControlSetServices_s
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004cdc10
add esp, 0x10
lea eax, [ebp - 0x2ac]
push eax
push 3
push 0
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4cd5aa
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x2b4], 4
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x2b8]
push eax
push 0
push 0x52b980
push dword [ebp - 0x2ac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x2ac]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4cd5aa
cmp dword [ebp - 0x2b0], esi
jne 0x4cd5aa
push esi
push ebx
call fcn.004cd860
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fbc95
mov esp, ebp
pop ebp
ret
push str.360netmon
call fcn.004cd7e0
add esp, 4
test al, al
jne 0x4cd51d
push str.symnets
call fcn.004cd7e0
add esp, 4
test al, al
jne 0x4cd51d
lea eax, [ebp - 0x2b0]
push eax
push ebx
push 0
call fcn.004cd0c0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004fbc95
mov esp, ebp
pop ebp
ret
Function at 0x4cd640
Capabilities:
Create service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x588eb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x52b908
push 0x104
push eax
call fcn.004cdc50
push edi
push str.system32drivers_S.sys
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.004cdc50
add esp, 0x20
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x4cd6b1
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fbc95
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0
push 0
push 0x52b940
lea eax, [ebp - 0x414]
push eax
push 1
push 1
push 1
push 0xf01ff
lea eax, [ebp - 0x20c]
push eax
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
mov dword [ebp - 0x418], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4cd6f9
push 0
push 0
push esi
jmp 0x4cd712
push 0x10
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
xor esi, esi
mov dword [ebp - 0x418], eax
test eax, eax
je 0x4cd731
push esi
push esi
push eax
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push dword [ebp - 0x418]
test eax, eax
mov ecx, 1
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmovne esi, ecx
call eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
push edi
call fcn.004cd860
mov ecx, dword [ebp - 4]
lea eax, [esi - 1]
add esp, 8
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.004fbc95
mov esp, ebp
pop ebp
ret

Function at 0x4cd760
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
push ebx
call fcn.004cd860
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
xor esi, esi
test edi, edi
je 0x4cd7b8
push 0x10000
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x4cd7b1
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
call fcn.004cd2a0
add esp, 4
test al, al
mov eax, 0xfffffffb
je 0x4cd7ce
lea eax, [esi - 1]
pop edi
pop esi
pop ebx
pop ebp
ret