joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e01c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, ecx
push edi
mov edi, 1
cmp dword [esi + 4], 0
jne 0x4e020b
push 0
push 0
push 0
push 0
call eax
mov dword [esi + 4], eax
test eax, eax
jne 0x4e0206
call ebx
test eax, eax
mov ecx, edi
cmovne ecx, eax
test ecx, ecx
je 0x4e0206
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp dword [esi + 8], 0
jne 0x4e022f
push 0
push 0
push 0
push 0
call eax
mov dword [esi + 8], eax
test eax, eax
jne 0x4e022f
call ebx
test eax, eax
mov ecx, edi
cmovne ecx, eax
test ecx, ecx
jne 0x4e01fd
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x4e023e
call ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x4e024d
call ebx
cmp dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
je 0x4e0260
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x4e0170
push 0
push 0
call fcn.0050c00d
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
je 0x4e028a
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call ebx
test eax, eax
cmovne edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e1730
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push dword [ebp + 8]
push edx
push 0
push 0
call fcn.0050c00d
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x4e175a
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x4e5200
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi], 0
je 0x4e522f
mov esi, dword [edi + 4]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4e5221
mov al, 1
jmp 0x4e522d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
sete al
mov byte [edi], al
mov esi, dword [ebp + 0x10]
cmp dword [esi + 8], 0x105
jg 0x4e5247
push 0x105
mov ecx, esi
call fcn.004b8ac0
push dword [esi]
push 0
push 0x54c090
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edx, dword [esi]
xor ecx, ecx
mov ebx, eax
cmp byte [edx], cl
je 0x4e526a
inc ecx
cmp byte [edx + ecx], 0
jne 0x4e5263
mov byte [edx + ecx], 0
mov dword [esi + 4], ecx
test ebx, ebx
je 0x4e5281
push esi
lea ecx, [edi + 4]
call fcn.004e5290
mov byte [edi], 1
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x4e56c0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x18]
call fcn.004fcc7d
push dword [esi + 0x20]
call fcn.004fcc7d
mov eax, dword [esi + 0x10]
add esp, 8
cmp eax, 0xffffffff
je 0x4e56f6
cmp byte [esi + 0x14], 0
jne 0x4e56f6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4e56f6
mov dword [esi + 0x10], 0xffffffff
cmp byte [esi], 0
je 0x4e572d
push edi
mov edi, dword [esi + 4]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4e571e
pop edi
push dword [esi + 4]
mov al, 1
mov byte [esi], al
call fcn.004fcc7d
add esp, 4
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
pop edi
sete al
mov byte [esi], al
push dword [esi + 4]
call fcn.004fcc7d
add esp, 4
pop esi
ret
Function at 0x4e5740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53433d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x566090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x1c]
mov ebx, dword [ebp + 0xc]
cmp ecx, 0x100000
jae 0x4e57c0
mov eax, 0x100000
mov esi, ebx
sub eax, ecx
cmp eax, ebx
cmovb esi, eax
mov eax, dword [edi + 0x18]
push esi
push dword [ebp + 8]
add eax, ecx
push eax
call fcn.004fe5a0
mov edx, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [edi + 0x38]
push 0x56b380
push esi
call dword [0x56b16c]
add dword [edi + 0x1c], esi
sub ebx, esi
mov dword [edi + 0x38], eax
mov eax, dword [ebp + 8]
add eax, esi
add dword [edi + 0x30], esi
adc dword [edi + 0x34], 0
jmp 0x4e57c3
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x4e57e3
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [edi + 0x2c], 0
jne 0x4e58a1
lea ecx, [ebp - 0x20]
call fcn.004b8a60
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.004e51b0
test al, al
jne 0x4e5829
push dword [ebp - 0x20]
call fcn.004fcc7d
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x20]
lea eax, [edi + 0x20]
push eax
push ecx
push esi
mov ecx, edi
call fcn.004e5200
test eax, eax
jne 0x4e5840
push esi
jmp 0x4e580b
mov eax, dword [edi + 0x20]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
je 0x4e5866
cmp byte [edi + 0x14], 0
jne 0x4e5866
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4e583d
mov dword [edi + 0x10], 0xffffffff
push 0
push 0x80
push 2
push 0
push 1
push 0x120116
push dword [ebp + 0xc]
mov byte [edi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x10], eax
cmp eax, 0xffffffff
je 0x4e583d
push esi
mov byte [edi + 0x2c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004fcc7d
add esp, 4
xor eax, eax
mov esi, ebx
mov ebx, dword [ebp + 8]
mov ecx, 0x400000
mov dword [ebp + 0xc], eax
cmp esi, 0x400000
mov dword [ebp - 0x10], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push ebx
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
add edx, ecx
mov dword [ebp + 0xc], edx
test eax, eax
je 0x4e5813
test ecx, ecx
je 0x4e58f5
add ebx, ecx
sub esi, ecx
mov ecx, 0x400000
jne 0x4e58b0
mov ecx, dword [edi + 0x38]
push 0x56b380
push edx
mov edx, dword [ebp + 8]
call dword [0x56b16c]
mov dword [edi + 0x38], eax
mov eax, dword [ebp + 0xc]
add dword [edi + 0x30], eax
adc dword [edi + 0x34], 0
cmp eax, dword [ebp - 0x14]
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x515447
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005150f8

Function at 0x515452
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00515282

Function at 0x51e605
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0051e282
Function at 0x4059b0
Capabilities:
Delete file

Disassembly:
sub esp, 0x78
mov eax, dword [0x4399d0]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push 0x43d598
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4325b0
push 0x43ae10
call fcn.0040e153
mov esi, eax
add esp, 8
test esi, esi
je 0x405abd
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0xc]
cmp ax, 0xc
movzx eax, ax
jb 0x405a45
sub eax, 0xc
jne 0x405a1a
mov eax, 0xc
movzx ecx, word [esp + 0x10]
movzx edx, word [esp + 0xe]
push ecx
movzx ecx, word [esp + 0xa]
push edx
movzx edx, word [esp + 0x12]
push eax
movzx eax, word [esp + 0x10]
push eax
push ecx
push edx
push str._.2d__.2d__2d__.2d:_.2d:_.2d_PM
lea eax, [esp + 0x30]
push eax
jmp 0x405a6e
movzx ecx, word [esp + 0x10]
movzx edx, word [esp + 0xe]
push ecx
movzx ecx, word [esp + 8]
push edx
movzx edx, word [esp + 0xe]
push eax
movzx eax, word [esp + 0x16]
push ecx
push edx
push eax
push str._.2d__.2d__2d__.2d:_.2d:_.2d_AM
lea ecx, [esp + 0x30]
push ecx
call fcn.0040e1bd
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x18]
push edx
push eax
push str._n__d___s_
push esi
call fcn.0040e57a
push 2
push 0
push esi
call fcn.0040ddc3
push esi
call fcn.0040e50c
push esi
mov edi, eax
call fcn.0040df04
add esp, 0x24
cmp edi, 0x19000
pop edi
jle 0x405abd
push 0x43ae10
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x43d598
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x78]
pop esi
xor ecx, esp
call fcn.0040c71a
add esp, 0x78
ret

Function at 0x405c10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405c29
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405c64
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405c60
lea ebx, [ebx]
cmp esi, eax
jae 0x405c64
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405c50
cmp esi, eax
jb 0x405c6a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x405ef0
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x12c]
sub esp, 0x12c
push 0xfffffffffffffffe
push 0x436b98
push 0x40e810
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4399d0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x128], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x1c], edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], edi
cmp esi, 0xffffffff
je 0x405f93
push 0x128
push edi
lea eax, [ebp]
push eax
call fcn.0040c6a0
add esp, 0xc
mov dword [ebp], 0x128
lea ecx, [ebp]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x405f93
mov edx, dword [ebp + 8]
cmp edx, dword [ebp + 0x134]
jne 0x405f85
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x405f93
lea ecx, [ebp]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x405f72
mov dword [ebp - 4], 0xfffffffe
call fcn.00405fca
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x128]
xor ecx, ebp
call fcn.0040c71a
add ebp, 0x12c
mov esp, ebp
pop ebp
ret

Function at 0x405fe0
Capabilities:
Get process image filename
Terminate process

Disassembly:
sub esp, 0x610
mov eax, dword [0x4399d0]
xor eax, esp
mov dword [esp + 0x60c], eax
push ebx
mov ebx, dword [esp + 0x618]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
push edi
xor edi, edi
cmp dword [esp + 0x62c], edi
je 0x40605f
push ebx
call fcn.00405ef0
add esp, 4
mov edi, eax
push edi
push 0
push 0x1fffff
call ebp
mov esi, eax
test esi, esi
je 0x40605f
push 0x400
lea eax, [esp + 0x220]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
jne 0x40604f
push str.GetProcessImageFileName_Error
call fcn.00405dd0
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0
push 0x1fffff
call ebp
mov esi, eax
test esi, esi
je 0x4060bb
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x11c]
push edx
push 0
push esi
mov dword [esp + 0x20], 0x104
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameA]
test eax, eax
jne 0x4060b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str._tError:__d_n
push eax
call fcn.0040e1bd
lea ecx, [esp + 0x20]
push ecx
call fcn.00405dd0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x628]
push edx
lea eax, [esp + 0x11c]
push eax
push ebx
lea ecx, [esp + 0x228]
push ecx
push edi
lea edx, [esp + 0x28]
push str.Parent_PID:_d__Parent_Process:__S__Child_PID:_d__Child_Process:_S__Port_No:_d
push edx
call fcn.0040e1bd
lea eax, [esp + 0x30]
push eax
call fcn.00405dd0
mov ecx, dword [esp + 0x63c]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c71a
add esp, 0x610
ret
Function at 0x406a20
Capabilities:
List udp connections and listeners

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
push 0
push edi
push 2
push 0
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], 0
call sub.IPHLPAPI.DLL_GetExtendedUdpTable
test eax, eax
jne 0x406a5a
push str.No_error_n
call fcn.0040e99c
add esp, 4
xor eax, eax
pop edi
pop ecx
ret
cmp eax, 0x7a
jne 0x406aac
mov edx, dword [esp + 4]
push esi
push edx
call fcn.0040ebcf
mov esi, eax
add esp, 4
test esi, esi
jne 0x406a77
pop esi
pop edi
pop ecx
ret
push ebx
push 0
push edi
push 2
push 0
lea eax, [esp + 0x1c]
push eax
push esi
call sub.IPHLPAPI.DLL_GetExtendedUdpTable
mov ecx, dword [esi]
push ecx
push str.pUdpTable__dwNumEntries_:__d_n
mov ebx, eax
call fcn.0040e99c
mov edx, dword [esp + 0x28]
push edx
push edi
push esi
call fcn.00406980
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
pop edi
pop ecx
ret

Function at 0x406ab0
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
sub esp, 0x810
mov eax, dword [0x4399d0]
xor eax, esp
mov dword [esp + 0x80c], eax
push 0x441b10
lea eax, [esp + 0x410]
push str._sSoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push eax
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0
call fcn.0040e1bd
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x410]
push edx
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x406b89
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push str.ProxyServer
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x406b4f
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.0040c71a
add esp, 0x810
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0x3a
push eax
mov byte [esp + edx + 0x14], 0
call fcn.0040e720
add esp, 8
test eax, eax
je 0x406b89
lea ecx, [esp]
push ecx
inc eax
push 0x4325b4
push eax
call fcn.0040ed03
add esp, 0xc
mov ecx, dword [esp + 0x80c]
mov eax, dword [esp]
xor ecx, esp
call fcn.0040c71a
add esp, 0x810
ret

Function at 0x406bb0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x43c6ac]
test eax, eax
je 0x406bc0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x43cdb4]
test eax, eax
je 0x406bd2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
ret
Function at 0x406c60
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
sub esp, 0x204
mov eax, dword [0x4399d0]
xor eax, esp
mov dword [esp + 0x200], eax
push 0x200
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406ca4
mov eax, 1
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0040c71a
add esp, 0x204
ret
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x406cd3
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0040c71a
add esp, 0x204
ret
push edi
push 0
push 0
push 0x432b13
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 1
push 2
push 0x110
push 0xf01ff
push str.NPAV_Lan_Monitor
push 0x4396bc
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x406d5d
push ebx
push 0xf003f
push 0x4396bc
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x406d40
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call ebx
push esi
call ebx
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0040c71a
add esp, 0x204
ret
test edi, edi
je 0x406d91
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0040c71a
add esp, 0x204
ret
mov ecx, dword [esp + 0x208]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0040c71a
add esp, 0x204
ret

Function at 0x406db0
Capabilities:
Delete service
Stop service

Disassembly:
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x406dcb
lea eax, [edi + 1]
pop edi
ret
push esi
push 0xf01ff
push 0x4396bc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x406e14
push 0x43c6b4
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
xor eax, eax
pop edi
ret
pop esi
mov eax, 1
pop edi
ret
Function at 0x406ee0
Capabilities:
Check if file exists
Create directory
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push esi
push 0
push str.Common_AppData
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
push 0x80000002
mov dword [esp + 0x1c], 0x104
mov byte [esi], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov eax, esi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x406f11
mov ecx, dword [str.Net_ProtectorLanMon]
mov dword [eax], ecx
mov edx, dword [0x432b20]
mov dword [eax + 4], edx
mov ecx, dword [0x432b24]
mov dword [eax + 8], ecx
mov edx, dword [0x432b28]
mov dword [eax + 0xc], edx
mov ecx, dword [0x432b2c]
mov dword [eax + 0x10], ecx
mov dx, word [0x432b30]
push esi
mov word [eax + 0x14], dx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x406f79
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x406f79
mov eax, dword [str.c:zv]
mov dword [esi], eax
mov cx, word [0x432b18]
mov word [esi + 4], cx
pop esi
pop ecx
ret

Function at 0x406f80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x4399d0]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
push 0x43cfb8
lea eax, [esp + 8]
push str._sImpProtect.db
push eax
call fcn.0040e1bd
lea ecx, [esp + 0x10]
push 0x432b8c
push ecx
call fcn.0040e153
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40700c
push ebx
push edi
push 0
push 2
push esi
call fcn.0040ddc3
push esi
call fcn.0040e50c
push 0
push 0
push esi
mov ebx, eax
call fcn.0040ddc3
push ebx
call fcn.0040ebcf
mov edi, eax
add esp, 0x20
test edi, edi
je 0x406ff1
mov byte [edi], 0
push esi
push 1
push ebx
push edi
call fcn.0040f04a
push edi
call fcn.00431112
push esi
call fcn.0040df04
add esp, 0x18
pop edi
pop ebx
mov ecx, dword [esp + 0x404]
pop esi
xor ecx, esp
call fcn.0040c71a
add esp, 0x404
ret
Function at 0x407030
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc04
mov eax, dword [0x4399d0]
xor eax, esp
mov dword [esp + 0xc00], eax
push 0x400
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp]
push 0x5c
push ecx
call fcn.0040e720
add esp, 8
test eax, eax
je 0x407092
mov byte [eax], 0
lea eax, [esp]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x407070
mov edx, dword [str.HotExt.ini]
mov ecx, dword [0x432c94]
mov dword [eax], edx
mov edx, dword [0x432c98]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
xor eax, eax
jmp 0x4070a0
mov cl, byte [eax + 0x43cfb8]
mov byte [esp + eax + 0x800], cl
inc eax
test cl, cl
jne 0x4070a0
lea eax, [esp + 0x800]
push 0x5c
push eax
call fcn.0040e720
add esp, 8
test eax, eax
je 0x4070cb
mov byte [eax], 0
push ebx
push ebp
lea ecx, [esp + 0x808]
push ecx
lea edx, [esp + 0x40c]
push str._sLanMonUser.ini
push edx
call fcn.0040e1bd
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0xc
lea eax, [esp + 0x408]
push eax
push 0
push str.BlockRW
push str.AutoRun
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 8]
push ecx
push 0x200
push 0x43ed50
push str.NPAV
push str.VirExt
push str.Extensions
mov dword [0x43f764], eax
call ebx
push str.NPAV
push 0x43ed50
call fcn.0042dde8
add esp, 8
test eax, eax
jne 0x407195
lea edx, [esp + 8]
push edx
push 0x200
push 0x43ed50
push str.NPAV
push str.HotExt
push str.Extensions
call ebx
push str.NPAV
push 0x43ed50
call fcn.0042dde8
add esp, 8
test eax, eax
jne 0x407195
push esi
push edi
mov ecx, 8
mov esi, str..EXE_.DLL_.LNK_.INF_.PIF_.BAT_.CMD
mov edi, 0x43ed50
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
lea eax, [esp + 0x408]
push eax
push 1
push str.ExtensionType
push str.Extensions
call ebp
mov dword [0x43f768], eax
test eax, eax
jl 0x4071b9
cmp eax, 3
jle 0x4071c0
xor eax, eax
mov dword [0x43f768], eax
sub eax, 0
je 0x407207
sub eax, 2
jne 0x407275
lea ecx, [esp + 0x408]
push ecx
push 0x200
push 0x43cdb8
push str.NPAVLANMON
push str.CustomExtensions
push str.Extensions
call ebx
push str.NPAVLANMON
push 0x43cdb8
call fcn.0042dde8
add esp, 8
test eax, eax
jne 0x407275
lea edx, [esp + 8]
push edx
push 0x200
push 0x43cdb8
push str.NPAVLANMONHOT
push str.HotExt
push str.Extensions
call ebx
push str.NPAVLANMONHOT
push 0x43cdb8
call fcn.0042dde8
add esp, 8
test eax, eax
jne 0x407275
mov ecx, dword [0x432bd4]
mov eax, dword [str..EXE_.DLL_.LNK_.INF]
mov edx, dword [0x432bd8]
mov dword [0x43cdbc], ecx
mov ecx, dword [0x432be0]
mov dword [0x43cdb8], eax
mov eax, dword [0x432bdc]
mov dword [0x43cdc8], ecx
mov dword [0x43cdc4], eax
mov dword [0x43cdc0], edx
lea edx, [esp + 0x408]
push edx
push 0x1388
push 0x43d5b8
push str.NPAV
push str.Files
push str.ProtectedFiles
call ebx
push str.c:zvlanmon.ini
push 0x43d5b8
push str.Files
push str.ProtectedFiles
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0xc08]
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c71a
add esp, 0xc04
ret