joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41eb30
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
push edi
mov esi, eax
push esi
push str.SrvKillProcess_dwProcessId:__d
call fcn.00404c20
add esp, 8
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x41eb73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SrvOpenProcess_error:__d
mov dword [ebx], eax
call fcn.00404c20
add esp, 8
xor eax, eax
pop edi
pop esi
pop ecx
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, eax
test edi, edi
jne 0x41eb9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SrvTerminateProcess_error:__d
mov dword [ebx], eax
call fcn.00404c20
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x41ebb0
Capabilities:
Query or enumerate registry value
Terminate process

Disassembly:
sub esp, 0x428
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x424], eax
push esi
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push str.szBkavDir
push str.SoftwareBkav
push reloc.OLEAUT32.dll_SysReAllocString
xor edi, edi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41eca3
push str.SystemAKBkavAKManager.exe
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.0043f083
mov ecx, dword [esp + 0x440]
add esp, 0xc
push ecx
push str._es__i
lea edx, [esp + 0x228]
push 0x104
push edx
call fcn.0043ed50
push 0xffffffffffffffff
lea edx, [esp + 0x234]
lea ecx, [esp + 0x2c]
call fcn.00405680
mov esi, eax
add esp, 0x14
test esi, esi
je 0x41eca3
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x41ec9a
cmp eax, 0x102
je 0x41ec9a
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0xc], edi
je 0x41ec91
push str.AFA_process_has_tray_icon_r_n
call fcn.00404c20
add esp, 4
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41eca3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x42c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0043e4c7
add esp, 0x428
ret 4
Function at 0x41eff0
Capabilities:
Delete directory

Disassembly:
push ecx
push esi
mov esi, eax
push esi
push str.Srv_RemoveDirectory:__s
call fcn.00404c20
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x41f02b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xc]
push eax
push str.Srv_RemoveDirectory_error:__d
mov dword [ecx], eax
call fcn.00404c20
add esp, 8
mov eax, esi
pop esi
pop ecx
ret 4

Function at 0x41f030
Capabilities:
Start service

Disassembly:
push ecx
push esi
push edi
push 2
push 0
push 0
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x41f063
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_error:__d
mov dword [ebx], eax
call fcn.00404c20
add esp, 8
xor eax, eax
pop edi
pop esi
pop ecx
ret
push edi
push str.szServiceName:__s
call fcn.00404c20
add esp, 8
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x41f0a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_error:__d
mov dword [ebx], eax
call fcn.00404c20
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ecx
ret
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x41f0de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService_error:__d
mov dword [ebx], eax
call fcn.00404c20
add esp, 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
xor eax, eax
pop edi
pop esi
pop ecx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x41f100
Capabilities:
Modify service

Disassembly:
push esi
push edi
push 2
push 0
push 0
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x41f133
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_error:__d
mov dword [ebx], eax
call fcn.00404c20
add esp, 8
xor eax, eax
pop edi
pop esi
ret 0xc
push edi
push str.szServiceName:__s
call fcn.00404c20
add esp, 8
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x41f178
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_error:__d
mov dword [ebx], eax
call fcn.00404c20
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
ret 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push ecx
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x41f1c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ChangeServiceConfig_error:__d
mov dword [ebx], eax
call fcn.00404c20
add esp, 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
xor eax, eax
pop edi
pop esi
ret 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
ret 0xc

Function at 0x41f1e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
mov edi, eax
test edi, edi
je 0x41f223
mov eax, dword [esp + 0x10]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f22b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_AFA_log_error:__d
mov dword [ebx], eax
call fcn.00404c20
add esp, 8
xor eax, eax
pop edi
pop esi
pop ecx
ret 8
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret 8
Function at 0x41f740
Capabilities:
Create pipe
Create thread

Disassembly:
sub esp, 0x20
push esi
push str.CSrvFunction::StartSrv__
mov esi, eax
call fcn.00404c20
xor eax, eax
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push 1
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x41f797
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.AFA_InitializeSecurityDescriptor_error:__d
call fcn.00404c20
add esp, 8
call esi
pop esi
add esp, 0x20
ret
push 0
push 0
push 1
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x41f7c9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.AFA_SetSecurityDescriptorDacl_error:__d
call fcn.00404c20
add esp, 8
call esi
pop esi
add esp, 0x20
ret
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 4]
push eax
push 0
push 0x2710
push 0x2710
push 0xa
push 0
push 0x80003
lea edx, [esp + 0x2c]
push str..pipe4f4v_function
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x41f832
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AFA_CreateNamedPipe_error:__d
call fcn.00404c20
add esp, 8
xor eax, eax
pop esi
add esp, 0x20
ret
push 0
push 0
push esi
push 0x41f630
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop esi
add esp, 0x20
ret

Function at 0x41f9b0
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, eax
push 0x208
lea edi, [esi + 0x884]
push 0
push edi
call fcn.004416b0
push 0x208
lea ebx, [esi + 0xaa0]
push 0
push ebx
call fcn.004416b0
push 0x208
lea ebp, [esi + 0x668]
push 0
push ebp
call fcn.004416b0
add esp, 0x24
add esi, 0x244
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41fa0b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.AntiFakeAVFileMapping_List
push esi
push 0x47903c
push 0x104
push edi
call fcn.0043ed50
push str.AntiFakeAVProgramName
push esi
push 0x47903c
push 0x104
push ebx
call fcn.0043ed50
push str.AntiFakeAVFileMapping_Queue
push esi
push 0x47903c
push 0x104
push ebp
call fcn.0043ed50
add esp, 0x3c
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41fa60
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [eax + 0x884]
lea edx, [eax + 0xaa0]
push esi
add eax, 0x668
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
xor ebx, ebx
mov esi, dword [esp + ebx*4 + 0x10]
push esi
call ebp
test eax, eax
jne 0x41fabc
push eax
push 0x80
push 2
push eax
push 1
push 0x40000000
push esi
call edi
cmp eax, 0xffffffff
je 0x41fabc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, 3
jl 0x41fa92
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4201a0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, eax
test edi, edi
je 0x420218
xor eax, eax
mov word [edi], ax
mov eax, dword [ecx + 0xcd4]
test eax, eax
je 0x4201bc
add eax, 0x2d4
push esi
push 0
push 0x80
push 3
push 0
push 0
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x420217
imul ebx, ebx, 0x20a
push 0
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0xc]
push edx
push 0x20a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 8]
shr eax, 1
xor ecx, ecx
push esi
mov word [edi + eax*2 - 2], cx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop ecx
ret
Function at 0x420660
Capabilities:
Get disk information

Disassembly:
sub esp, 0x318
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x314], eax
push ebp
mov ebp, dword [esp + 0x320]
push edi
push 0x100
xor edi, edi
lea eax, [esp + 0x18]
push edi
push eax
call fcn.004416b0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x80
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, edi
jne 0x4206ad
xor eax, eax
jmp 0x4207ca
inc eax
push ebx
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
jle 0x4207c4
push esi
lea esi, [esp + 0x1c]
mov eax, 4
lea edx, [esp + 0x1c]
sub esi, 2
sub eax, edx
mov dword [esp + 0x18], eax
jmp 0x4206e0
cmp word [esi + 2], 0
jne 0x420775
test ebx, ebx
jle 0x4206fa
cmp word [esi], 0x5c
jne 0x4206fa
xor eax, eax
mov word [esi], ax
push 0x104
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + edi + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x420775
lea eax, [esp + 0x11c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420720
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x120]
push ebp
push eax
call fcn.0043f6d2
add esp, 0xc
test eax, eax
jne 0x420767
lea eax, [esp + 0x11c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420750
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2], 0x5c
je 0x420785
mov edx, dword [esp + 0x18]
lea ecx, [ebx + 1]
mov dword [esp + 0x10], ecx
lea edi, [edx + esi]
inc ebx
add esi, 2
cmp ebx, dword [esp + 0x14]
jl 0x4206e0
jmp 0x4207c3
lea eax, [esp + 0x11c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420790
mov ecx, dword [esp + 0x10]
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 + 2]
push eax
mov eax, dword [esp + 0x334]
lea edx, [esp + ecx*2 + 0x20]
push edx
push 0x47903c
push eax
push ebp
call fcn.0043ed50
add esp, 0x14
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x31c]
pop edi
pop ebp
xor ecx, esp
call fcn.0043e4c7
add esp, 0x318
ret 8
Function at 0x420c40
Capabilities:
Create thread

Disassembly:
push esi
push str.Fw_InstallDriver
call fcn.00404c20
add esp, 4
call fcn.004207f0
test eax, eax
jne 0x420c68
push str.Install_Firewall_Driver_error
call fcn.00404c20
add esp, 4
xor eax, eax
pop esi
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0x496778
push 0x420bc0
push 0
push 0
call esi
push 0
push 0
push 0x496778
push 0x4229f0
push 0
push 0
call esi
push 0
push 0
push 0x496778
push 0x423170
push 0
push 0
call esi
push 0
push 0
push 0x496778
push 0x4231b0
push 0
push 0
call esi
push 0
push 0
push 0x496778
push 0x423b20
push 0
push 0
call esi
push 0
push 0
push 0x496778
push 0x423f70
push 0
push 0
call esi
push 0
push 0
push 0x496778
push 0x4231e0
push 0
push 0
call esi
push 0
push 0
push 0x496778
push 0x423210
push 0
push 0
call esi
push 0
push 0
push 0x496778
push 0x423240
push 0
push 0
call esi
push 0
push 0
push 0x496778
push 0x423270
push 0
push 0
call esi
push 0
push 0
push 0x496778
push 0x422ab0
push 0
push 0
call esi
push 0
push 0
push 0x496778
push 0x422ad0
push 0
push 0
call esi
mov eax, 1
pop esi
ret

Function at 0x420d70
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push str.bEnableFw_and__bValidFirewallEngine_is_TRUE
mov dword [0x49672c], eax
call fcn.00404c20
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 4
push 0
push 0
push 0x496778
push 0x4241b0
push 0
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x420dba
push eax
call edi
push 0
push 0
push 0
push 0x424250
push 0
push 0
call esi
test eax, eax
je 0x420dd2
push eax
call edi
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x420de0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [esp + 0x14]
push eax
push 0x496778
lea ecx, [esp + 0x20]
push ecx
push str.szBkavDir
push str.SoftwareBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x420e27
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push str.SystemFirewall
push 0x496778
push 0x47903c
push 0x104
push 0x496980
call fcn.0043ed50
mov eax, 0x496778
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420e50
sub eax, edx
sar eax, 1
mov esi, eax
js 0x420e7f
mov eax, 0x5c
jmp 0x420e70
cmp word [esi*2 + 0x496778], ax
je 0x420e7f
sub esi, 1
jns 0x420e70
test esi, esi
jle 0x420e1e
push 0x208
push 0
push 0x496b88
call fcn.004416b0
add esp, 0xc
push esi
push 0x496778
push 0x104
push 0x496b88
call fcn.0043e9ba
push str.BluPro
push 0x104
push 0x496b88
call fcn.0043f083
add esp, 0x1c
push 0x479958
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x420ee9
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x420f11
push 0x479974
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x420f11
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
neg eax
sbb eax, eax
and eax, dword [esp + 0x10]
push 0x114
push 0
push 0x4971a4
mov dword [0x4971a0], eax
call fcn.004416b0
add esp, 0xc
push 0x4971a4
mov dword [0x4971a4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
call fcn.004283a0
mov dword [0x4972bc], eax
call fcn.00423f90
mov ebx, eax
call fcn.004240f0
mov edi, eax
call fcn.00405e80
mov esi, eax
cmp esi, 1
jne 0x420f74
call fcn.00421000
mov dword [0x497540], 0
jmp 0x420f9f
cmp esi, 4
je 0x420fe3
cmp esi, 2
je 0x420fe3
test edi, edi
je 0x420fca
call fcn.00420c40
push esi
push str.Os_version_is__d
mov dword [0x497540], 1
call fcn.00404c20
add esp, 8
test edi, edi
je 0x420fca
test ebx, ebx
je 0x420fca
cmp dword [0x497540], 0
je 0x420fb9
call fcn.00409230
test eax, eax
jne 0x420fca
call fcn.00420d70
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push str.bEnableFw_is_FALSE
call fcn.00404c20
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x10
ret
pop edi
pop esi
mov dword [0x497540], 0
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x421f20
Capabilities:
List tcp connections and listeners

Disassembly:
sub esp, 0x82c
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x824], eax
push ebx
push ebp
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0xc0000000
push str..FwDrv0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x3c], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
mov dword [esp + 0x24], ebp
cmp ebp, 0xffffffff
jne 0x421f7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Open_device_error:__d
call fcn.00404c20
add esp, 8
jmp 0x422101
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x1c
push esi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov edi, eax
test edi, edi
je 0x4220fa
push 0
push 3
push 2
push 1
lea eax, [esp + 0x20]
push eax
push edi
mov dword [esp + 0x28], 0x1c
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
cmp eax, 0x7a
jne 0x421fdd
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x10]
push ecx
push 0
call ebx
push eax
call esi
mov edi, eax
test edi, edi
je 0x4220fa
xor esi, esi
push esi
push 3
push 2
push 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
test eax, eax
jne 0x4220eb
cmp dword [edi], esi
lea ebx, [esi + 1]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jle 0x4220a7
lea esi, [edi + 0x18]
cmp dword [esi - 0x14], 2
jne 0x422093
mov eax, dword [esi]
cmp eax, 4
jbe 0x422093
mov ebp, dword [esi - 0x10]
push eax
lea eax, [esp + 0x34]
call fcn.004069b0
add esp, 4
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push str.sqlservr.exe
push eax
call fcn.0043ec25
add esp, 8
test eax, eax
jne 0x422093
cmp ebp, 0x100007f
je 0x422093
cmp ebx, 1
jne 0x422073
movzx ecx, word [esi - 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov dword [esp + 0x18], edx
mov ebx, 2
jmp 0x422093
cmp ebx, 2
jne 0x422091
movzx eax, word [esi - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov dword [esp + 0x14], ecx
mov ebx, 3
jmp 0x422093
jg 0x4220a7
mov eax, dword [esp + 0x1c]
inc eax
add esi, 0x18
cmp eax, dword [edi]
mov dword [esp + 0x1c], eax
jl 0x422013
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 8
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x3c]
push edx
push 0x22e055
push ebp
mov dword [esp + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x4220fa
mov eax, dword [esp + 0x10]
push eax
push esi
push edi
call fcn.004416b0
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x834]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043e4c7
add esp, 0x82c
ret
Function at 0x422120
Capabilities:
List tcp connections and listeners

Disassembly:
sub esp, 0x81c
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x814], eax
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push ebp
push 3
push ebp
push 1
push 0xc0000000
push str..FwDrv0
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x42217f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Open_device_error:__d
call fcn.00404c20
add esp, 8
jmp 0x4222b3
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x1c
push ebp
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
mov esi, eax
cmp esi, ebp
je 0x4222a8
push ebp
push 3
push 2
push 1
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x28], 0x1c
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
cmp eax, 0x7a
jne 0x4221dc
push esi
push ebp
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x10]
push ecx
push ebp
call ebx
push eax
call edi
mov esi, eax
cmp esi, ebp
je 0x4222a8
push ebp
push 3
push 2
push 1
lea edx, [esp + 0x20]
push edx
push esi
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
test eax, eax
jne 0x422299
cmp dword [esi], ebp
jle 0x42226d
lea ebx, [esi + 0x18]
lea ecx, [ecx]
cmp dword [ebx - 0x14], 2
jne 0x42225d
mov eax, dword [ebx]
cmp eax, 4
jbe 0x42225d
push eax
lea eax, [esp + 0x24]
call fcn.004069b0
add esp, 4
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, eax
push str.mysqld.exe
push edi
call fcn.0043ec25
add esp, 8
test eax, eax
je 0x42224b
push str.mysqld_nt.exe
push edi
call fcn.0043ec25
add esp, 8
test eax, eax
jne 0x42225d
movzx ecx, word [ebx - 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov dword [esp + 0x18], edx
inc ebp
add ebx, 0x18
cmp ebp, dword [esi]
jl 0x422200
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ebp, ebp
push esi
push ebp
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x14]
push ebp
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push 4
lea ecx, [esp + 0x2c]
push ecx
push 0x22e059
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x4222a8
mov eax, dword [esp + 0x10]
push eax
push ebp
push esi
call fcn.004416b0
add esp, 0xc
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043e4c7
add esp, 0x81c
ret