joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490630
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 0xc], eax
push esi
mov dword [ebp - 0x21c], 1
mov eax, dword [ebp + 0x14]
push eax
call fcn.0059e330
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.0059e330
add esp, 4
lea edx, [esi + eax + 1]
cmp edx, 0x208
jb 0x49067b
xor eax, eax
jmp 0x490792
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.00491030
add esp, 8
push 0x5f97f0
lea edx, [ebp - 0x218]
push edx
call fcn.00491050
add esp, 8
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.00491050
add esp, 8
mov dword [ebp - 0x220], 0xf003f
call fcn.0047aef0
movzx edx, al
test edx, edx
je 0x4906dc
mov eax, dword [ebp - 0x220]
or eax, 0x100
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 0x220]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x490753
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x490735
mov dword [ebp - 0x21c], 0
jmp 0x490747
mov ecx, dword [ebp - 4]
push ecx
call fcn.004902f0
add esp, 4
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x49075d
mov dword [ebp - 0x21c], 0
cmp dword [ebp - 0x21c], 1
jne 0x49078c
cmp dword [ebp + 8], 0
je 0x49078c
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00490c70
add esp, 0x18
mov eax, dword [ebp - 0x21c]
pop esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret
Function at 0x4907b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de2e2
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x38], 1
lea ecx, [ebp - 0x34]
call fcn.00490d90
mov byte [ebp - 4], 3
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x34]
call fcn.00490e40
push 0x5f97f4
lea ecx, [ebp - 0x34]
call fcn.00490e10
lea ecx, [ebp + 0x30]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00490de0
mov dword [ebp - 0x3c], 0xf003f
call fcn.0047aef0
movzx edx, al
test edx, edx
je 0x490835
mov eax, dword [ebp - 0x3c]
or eax, 0x100
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x3c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.0040f680
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4908aa
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
lea ecx, [ebp + 0x4c]
call fcn.0040f680
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x49088f
mov dword [ebp - 0x38], 0
jmp 0x49089e
mov edx, dword [ebp - 0x14]
push edx
call fcn.004902f0
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4908b1
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00490dc0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x14]
call fcn.00490dc0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x30]
call fcn.00490dc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x4c]
call fcn.00490dc0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret
Function at 0x490910
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de312
mov eax, dword fs:[0]
push eax
sub esp, 0x384
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], 0x20019
call fcn.0047aef0
movzx eax, al
test eax, eax
je 0x490961
mov ecx, dword [ebp - 0x1c]
or ecx, 0x100
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x490adb
mov al, byte [0x5f96e3]
mov byte [ebp - 0x24c], al
push 0x103
push 0
lea ecx, [ebp - 0x24b]
push ecx
call fcn.0059e3c0
add esp, 0xc
mov dword [ebp - 0x2c], 0x104
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x370], 0x104
lea edx, [ebp - 0x364]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x140]
push ecx
lea edx, [ebp - 0x368]
push edx
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x144]
push eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x490ad2
cmp dword [ebp - 0x144], 0
je 0x490ac6
mov dword [ebp - 0x374], 0
jmp 0x490a40
mov ecx, dword [ebp - 0x374]
add ecx, 1
mov dword [ebp - 0x374], ecx
mov edx, dword [ebp - 0x374]
cmp edx, dword [ebp - 0x144]
jae 0x490ac6
mov dword [ebp - 0x28], 0x104
lea eax, [ebp - 0x364]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x35c]
push edx
mov eax, dword [ebp - 0x374]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x490ac1
lea edx, [ebp - 0x35c]
push edx
lea ecx, [ebp - 0x390]
call fcn.00409ec0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x390]
push eax
mov ecx, dword [ebp + 8]
call fcn.004553b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x390]
call fcn.00409d00
jmp 0x490a31
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x490ad9
mov dword [ebp - 0x14], 0
jmp 0x490ae2
mov dword [ebp - 0x14], 0
xor edx, edx
jne 0x490942
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret
Function at 0x491610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de40e
mov eax, dword fs:[0]
push eax
sub esp, 0xc5c
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 0x3c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc68], ecx
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x28]
call fcn.004924b0
mov dword [ebp - 4], 0
push reloc.WSOCK32.dll_closesocket
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.00490910
add esp, 0xc
test eax, eax
je 0x4917a5
mov dword [ebp - 0x30], 0x20019
call fcn.0047aef0
movzx ecx, al
test ecx, ecx
je 0x49168e
mov edx, dword [ebp - 0x30]
or edx, 0x100
mov dword [ebp - 0x30], edx
lea ecx, [ebp - 0x28]
call fcn.00492810
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], 0
jmp 0x4916ab
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x2c]
jae 0x4917a5
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
mov edx, dword [ebp - 0x34]
push edx
lea ecx, [ebp - 0x28]
call fcn.00455380
mov ecx, eax
call fcn.00409d20
push eax
push 0x5f9a7c
push 0x400
lea eax, [ebp - 0x43c]
push eax
call fcn.005a0885
add esp, 0x14
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x30]
push edx
push 0
lea eax, [ebp - 0x43c]
push eax
push reloc.WSOCK32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4917a0
mov dword [ebp - 0x440], 0x400
lea ecx, [ebp - 0x440]
push ecx
lea edx, [ebp - 0xc44]
push edx
lea eax, [ebp - 0x444]
push eax
push 0
push str.AutoConfigURL
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x491796
lea edx, [ebp - 0xc44]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc68]
call fcn.00491290
movzx ecx, al
test ecx, ecx
jne 0x491792
lea edx, [ebp - 0xc44]
push edx
lea ecx, [ebp - 0xc60]
call fcn.00492400
mov byte [ebp - 4], 1
lea eax, [ebp - 0xc60]
push eax
mov ecx, dword [ebp + 8]
call fcn.00492830
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc60]
call fcn.00490dc0
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4916a2
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xc61], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00455190
mov al, byte [ebp - 0xc61]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret 4
Function at 0x491e90
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de4e6
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x66e8b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0xc
push 0x18
push 0
lea eax, [ebp - 0x40]
push eax
call fcn.0059e3c0
add esp, 0xc
push 0xc
push 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.0059e3c0
add esp, 0xc
lea ecx, [ebp - 0x5c]
call fcn.004924b0
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 1
push 0x5f9ae8
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x491f28
jmp 0x49200b
push 0
mov edx, dword [ebp - 0x6c]
movzx eax, word [edx + 0x220]
push eax
mov ecx, dword [ebp - 0x6c]
add ecx, 8
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x491f54
jmp 0x49200b
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x234]
push ecx
push 0x5f9b00
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x491f83
jmp 0x49200b
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x6c]
call fcn.00491300
movzx ecx, al
test ecx, ecx
je 0x49200b
mov dword [ebp - 0x60], 0
jmp 0x491fa8
mov edx, dword [ebp - 0x60]
add edx, 1
mov dword [ebp - 0x60], edx
lea ecx, [ebp - 0x5c]
call fcn.00492810
cmp dword [ebp - 0x60], eax
jae 0x49200b
mov eax, dword [ebp - 0x60]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00455380
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x64], esp
push eax
call fcn.00492440
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x6c]
call fcn.00492090
mov byte [ebp - 0x71], al
movzx ecx, byte [ebp - 0x71]
test ecx, ecx
je 0x492009
mov edx, dword [ebp - 0x60]
push edx
lea ecx, [ebp - 0x5c]
call fcn.00455380
push eax
mov ecx, dword [ebp + 8]
call fcn.00492830
mov ecx, dword [ebp + 8]
call fcn.00492810
cmp eax, 3
jb 0x492009
jmp 0x49200b
jmp 0x491f9f
cmp dword [ebp - 0x20], 0
je 0x49201b
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x1c], 0
je 0x49202b
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x14], 0
je 0x49203b
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x44], 0
je 0x49204b
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x28], 0
je 0x49205b
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0x65], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00492620
mov al, byte [ebp - 0x65]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x494070
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x20]
push edx
movzx eax, word [ebp + 0x18]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
movzx edx, word [ebp + 8]
push edx
movzx eax, word [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x4993f0
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov byte [eax], 0
push 0x248
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0x248
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.IPHLPAPI.DLL_GetNetworkParams
cmp eax, 0x6f
jne 0x499442
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0xc]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.IPHLPAPI.DLL_GetNetworkParams
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x499467
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or eax, 0xffffffff
jmp 0x4994cf
mov edx, dword [ebp - 4]
push edx
call fcn.0059e330
add esp, 4
mov esi, eax
mov eax, dword [ebp - 4]
add eax, 0x84
push eax
call fcn.0059e330
add esp, 4
lea ecx, [esi + eax + 2]
cmp ecx, 0x100
jbe 0x4994a1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or eax, 0xffffffff
jmp 0x4994cf
mov eax, dword [ebp - 4]
add eax, 0x84
push eax
mov ecx, dword [ebp - 4]
push ecx
push str._s._s
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4d30d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x130], ecx
lea ecx, [ebp - 0x14]
call fcn.00482890
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00482930
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4d313b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x124], edx
lea ecx, [ebp - 0x14]
call fcn.004828c0
mov eax, dword [ebp - 0x124]
jmp 0x4d31cc
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x120]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4d31a1
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004d30d0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4d3198
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x128], edx
lea ecx, [ebp - 0x14]
call fcn.004828c0
mov eax, dword [ebp - 0x128]
jmp 0x4d31cc
mov dword [ebp - 4], 0x100
jmp 0x4d3142
lea ecx, [ebp - 0x14]
call fcn.004828e0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x130]
call fcn.0048fac0
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x14]
call fcn.004828c0
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret 4
Function at 0x4d3890
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x4d3899
xor ecx, ecx
jne 0x4d3899
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x4d38ba
mov eax, 0xd
jmp 0x4d390f
xor eax, eax
jne 0x4d38a1
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 1
jne 0x4d38cb
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 8
Function at 0x4ddad0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0xc44], ecx
mov dword [ebp - 0xb2c], 0x604bf3
mov dword [ebp - 0x80c], 0x800
mov dword [ebp - 0x814], 0
push 0x104
lea eax, [ebp - 0xc38]
push eax
push 0x9c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x104
lea ecx, [ebp - 0xb28]
push ecx
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [ebp - 0xb28]
push edx
call fcn.0059e330
add esp, 4
mov esi, eax
lea eax, [ebp - 0xc38]
push eax
call fcn.0059e330
add esp, 4
lea ecx, [esi + eax + 1]
cmp ecx, 0x208
jb 0x4ddb7b
mov eax, 1
jmp 0x4ddcaf
lea edx, [ebp - 0xb28]
push edx
lea eax, [ebp - 0xa20]
push eax
call fcn.005a0650
add esp, 8
push str.:
lea ecx, [ebp - 0xa20]
push ecx
call fcn.005a0660
add esp, 8
lea edx, [ebp - 0xc38]
push edx
lea eax, [ebp - 0xa20]
push eax
call fcn.005a0660
add esp, 8
mov dword [ebp - 0xc40], 0xf003f
call fcn.0047aef0
movzx ecx, al
test ecx, ecx
je 0x4ddbe3
mov edx, dword [ebp - 0xc40]
or edx, 0x100
mov dword [ebp - 0xc40], edx
lea eax, [ebp - 0xc3c]
push eax
lea ecx, [ebp - 0x810]
push ecx
push 0
mov edx, dword [ebp - 0xc40]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0xa20]
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4ddc9f
lea ecx, [ebp - 0x80c]
push ecx
lea edx, [ebp - 0x808]
push edx
lea eax, [ebp - 0x818]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x810]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4ddc81
mov eax, dword [ebp - 0xb2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov ecx, dword [ebp - 0xb2c]
push ecx
push 1
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x810]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4ddc81
mov dword [ebp - 0x814], 1
mov ecx, dword [ebp - 0x810]
push ecx
call fcn.004902f0
add esp, 4
mov edx, dword [ebp - 0x810]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ddca9
mov dword [ebp - 0x814], 1
mov eax, dword [ebp - 0x814]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret 4
Function at 0x4e9190
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x4d0], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x4d0]
call fcn.004e9400
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x4e9243
push 0x60572c
lea ecx, [ebp - 0x494]
call fcn.00409ec0
push str.IntelAMTUNS
lea ecx, [ebp - 0x4b0]
call fcn.00409ec0
push str.SOFTWAREIntel
lea ecx, [ebp - 0x4cc]
call fcn.00409ec0
lea edx, [ebp - 0x494]
push edx
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0x4cc]
push ecx
lea ecx, [ebp - 0x78]
call fcn.0040b100
lea ecx, [ebp - 0x4cc]
call fcn.00409d00
lea ecx, [ebp - 0x4b0]
call fcn.00409d00
lea ecx, [ebp - 0x494]
call fcn.00409d00
lea ecx, [ebp - 0x78]
call fcn.0040b180
lea ecx, [ebp - 0x78]
call fcn.00484910
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4e92b1
push 0x400
lea edx, [ebp - 0x478]
push edx
push 0xd80a
call fcn.004e9380
add esp, 0xc
test eax, eax
jne 0x4e9291
push str.Could_not_open_Service_Manager
push 0x400
lea eax, [ebp - 0x478]
push eax
call fcn.004e9350
add esp, 0xc
push 0
push 0x6090a0
lea ecx, [ebp - 0x478]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x4e933c
push 0xf01ff
push 0x6090a0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x609098
push str.Intel_R__Management_and_Security_Application_User_Notification_Service
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov dword [ebp - 0x18], str.Intel_R__Management_and_Security_Application_User_Notification_Service___Updates_the_Windows_Event_Log_with_notifications_of_pre_defined_events_received_from_the_local_Intel_R__Management_and_Security_Application_Device.
lea edx, [ebp - 0x18]
push edx
push 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x10]
push ecx
push 3
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.004e3980
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret 8
Function at 0x4eaa40
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x114], 0x100
lea eax, [ebp + 0x10]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0xff
push 0x100
lea eax, [ebp - 0x108]
push eax
call fcn.005a85c2
add esp, 0x14
mov dword [ebp - 0x110], 0
mov byte [ebp - 9], 0
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x160], 0
jne 0x4eaabf
lea eax, [ebp - 0x108]
push eax
call fcn.005a86c7
add esp, 4
mov ecx, dword [ebp + 8]
add ecx, 0x40
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4eab00
push 0
lea edx, [ebp - 0x10c]
push edx
push 0
push 1
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret

Function at 0x4eab30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x30], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x30], 0
jne 0x4eab5a
xor eax, eax
jmp 0x4eab8c
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x4eb6f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4eab89
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret