joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [edi + 0x88]
test esi, esi
je 0x100100e0
mov dword [ebx], esi
mov eax, dword [esi + 0xc]
mov dword [edi + 0x88], eax
mov edx, dword [esi + 8]
mov dword [esi + 0xc], 0
movzx ecx, word [edi + 0x8c]
push ecx
push 0
push edx
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 4], ebp
mov dword [esi + 0x14], edx
inc dword [edi + 0x78]
pop esi
pop ebp
xor eax, eax
pop ebx
ret
movzx eax, word [edi + 0x8c]
add eax, 0x28
push 0
push eax
call fcn.1000e280
mov esi, eax
add esp, 8
mov dword [ebx], esi
test esi, esi
jne 0x10010128
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x98]
push esi
cdq
dec ecx
push ecx
push edx
push eax
call fcn.10059ae0
push edx
push eax
mov eax, dword [edi + 0x3c]
mov edx, ebp
call fcn.10001910
add esp, 8
lea eax, [esi + 7]
pop esi
pop ebp
pop ebx
ret
lea edx, [esi + 0x28]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x10]
mov eax, 0x40
mov word [esi + 0x18], ax
mov dword [esi + 0x10], edi
mov ecx, 1
mov word [esi + 0x1a], cx
mov dword [esi + 4], ebp
mov dword [esi + 0x14], edx
inc dword [edi + 0x78]
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x10012b30
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
test ebp, ebp
jne 0x10012b43
pop esi
xor eax, eax
pop ebp
pop ecx
ret
push ebx
push 0
push 8
call fcn.1000e2b0
mov ebx, eax
add esp, 8
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x10012b5f
pop ebx
pop esi
pop ebp
pop ecx
ret
test byte [esp + 0x18], 1
mov eax, dword [ebp]
mov dword [ebx], eax
jne 0x10012b7d
mov ecx, dword [ebp]
mov eax, 1
cmp ecx, eax
jle 0x10012b7d
add eax, eax
cmp eax, ecx
jl 0x10012b77
lea eax, [eax + eax*2]
add eax, eax
push edi
add eax, eax
add eax, eax
push 0
push eax
call fcn.1000e2b0
mov edi, eax
add esp, 8
mov dword [ebx + 4], edi
test edi, edi
jne 0x10012bac
mov edx, ebx
mov ecx, esi
call fcn.10001ed0
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
pop ecx
ret
mov ecx, dword [esp + 0x18]
mov ebp, dword [ebp + 4]
xor ebx, ebx
cmp dword [ecx], ebx
jle 0x10012c1d
lea esp, [esp]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp]
push edx
push eax
push esi
call fcn.10019dd0
mov dword [edi], eax
mov eax, dword [ebp + 4]
push eax
push esi
call fcn.1000e430
mov dword [edi + 4], eax
mov ecx, dword [ebp + 8]
push ecx
push esi
call fcn.1000e430
mov dword [edi + 8], eax
mov dl, byte [ebp + 0xc]
and dword [edi + 0x10], 0xfffffffe
mov eax, dword [edi + 0x10]
mov byte [edi + 0xc], dl
mov ecx, dword [ebp + 0x10]
xor ecx, eax
and ecx, 2
xor ecx, eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x10], ecx
mov edx, dword [ebp + 0x14]
mov dword [edi + 0x14], edx
inc ebx
add esp, 0x1c
add edi, 0x18
add ebp, 0x18
cmp ebx, dword [eax]
jl 0x10012bc0
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret
Function at 0x100026b0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x100c3579
call fcn.10071035
push ebx
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push edi
nop dword [eax]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push eax
push 0x1f6
push 0
call dword [sym.imp.NETAPI32.dll_NetShareEnum]
mov ebx, eax
test ebx, ebx
je 0x1000271d
cmp ebx, 0xea
jne 0x10002757
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
cmp eax, 1
jb 0x1000275a
test esi, esi
je 0x1000276c
mov edi, 1
cmp eax, edi
jb 0x1000275a
cmp dword [esi + 4], 0
jge 0x1000274f
push str.admin_
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1000278e
mov eax, dword [ebp - 8]
inc edi
add esi, 0x28
cmp edi, eax
jbe 0x10002735
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1000276c
push esi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov dword [ebp - 0x14], 0
cmp ebx, 0xea
je 0x100026f0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000279c
push eax
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006efdc
mov esp, ebp
pop ebp
ret

Function at 0x100027c0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x100c3579
call fcn.10071035
push 4
lea eax, [ebp - 8]
mov dword [esi], 0
push eax
push 4
push str.AutoShareWks
push str.SYSTEMCurrentControlSet_servicesLanmanServerParameters
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0
push str.admin_
push 0
call dword [sym.imp.NETAPI32.dll_NetShareDel]
test eax, eax
jne 0x10002831
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 2
mov dword [esi], 2
xor ecx, ebp
pop esi
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4
Function at 0x10002850
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x100c3579
call fcn.10071035
push str.AutoShareWks
push str.SYSTEMCurrentControlSet_servicesLanmanServerParameters
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi], 0
mov dword [ebp - 8], 0
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
lea eax, [ebp - 8]
mov dword [ebp - 0x28], str.ADMIN_
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], connect
push eax
push 2
push 0
mov dword [ebp - 0x20], str.Remote_Admin
mov dword [ebp - 0x1c], 0x7f
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.NETAPI32.dll_NetShareAdd]
test eax, eax
jne 0x100028f4
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 2
mov dword [esi], 3
xor ecx, ebp
pop esi
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4
Function at 0x100030f0
Capabilities:
Enumerate network shares
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x100c3579
call fcn.10071035
push ebx
push esi
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
push edi
nop dword [eax + eax]
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x428]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x434]
push eax
push 0x1f6
push 0
call dword [sym.imp.NETAPI32.dll_NetShareEnum]
mov ebx, eax
test ebx, ebx
je 0x1000317d
cmp ebx, 0xea
jne 0x1000326d
mov ecx, dword [ebp - 0x428]
mov esi, dword [ebp - 0x434]
cmp ecx, 1
jb 0x10003273
test esi, esi
je 0x10003288
mov edi, 1
cmp ecx, edi
jb 0x10003273
nop word [eax + eax]
cmp dword [esi + 4], 0
jge 0x10003261
mov eax, dword [esi]
cmp word [eax + 2], 0x24
jne 0x10003261
cmp word [eax + 4], 0
jne 0x10003261
push dword [esi + 0x18]
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x1000325b
xor eax, eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
mov eax, dword [esi]
mov ax, word [eax]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xa], 0x3a
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1000325b
push 0x20a
lea eax, [ebp - 0x424]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x218]
push 0x105
push eax
push 0
push 0
push 0
push 0x105
lea eax, [ebp - 0x424]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x100032aa
mov ecx, dword [ebp - 0x428]
inc edi
add esi, 0x28
cmp edi, ecx
jbe 0x100031b0
mov esi, dword [ebp - 0x434]
test esi, esi
je 0x10003288
push esi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov dword [ebp - 0x434], 0
cmp ebx, 0xea
je 0x10003140
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x100032bb
push eax
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006efdc
mov esp, ebp
pop ebp
ret
Function at 0x100032e0
Capabilities:
Get disk information
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x100c3579
push edi
mov dword [ebp - 0x1c], esi
call fcn.10071035
mov dword [esi], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
mov edi, 1
test ebx, ebx
je 0x10003384
lea ecx, [edi + 0x23]
xor eax, eax
mov edi, dword [sym.imp.NETAPI32.dll_NetShareDel]
lea esi, [ecx - 0x23]
nop word [eax + eax]
test bl, 1
je 0x10003374
add al, 0x41
mov dword [ebp - 0xa], 0x24
cbw
push 0
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
push 0
call edi
mov ecx, dword [ebp - 0x14]
test eax, eax
mov eax, dword [ebp - 0x18]
movzx ecx, cl
cmove ecx, esi
mov dword [ebp - 0x14], ecx
mov ecx, 0x24
inc eax
shr ebx, 1
mov dword [ebp - 0x18], eax
jne 0x10003340
mov esi, dword [ebp - 0x1c]
mov edi, 1
push 4
lea ecx, [ebp - 0x10]
push ecx
push 4
push str.AutoShareServer
push str.SYSTEMCurrentControlSet_servicesLanmanServerParameters
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp byte [ebp - 0x14], 0
je 0x100033bc
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
mov dword [esi], 2
xor ecx, ebp
pop esi
pop ebx
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4
Function at 0x100033e0
Capabilities:
Delete registry value
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, 0x100c3579
call fcn.10071035
push str.AutoShareServer
push str.SYSTEMCurrentControlSet_servicesLanmanServerParameters
xor esi, esi
mov dword [edi], 0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
je 0x100034b4
lea ecx, [esi + 0x24]
lea edx, [esi + 0x3a]
test bl, 1
je 0x100034af
lea eax, [esi + 0x41]
mov dword [ebp - 0xa], 0x24
movzx eax, ax
mov word [ebp - 0xc], ax
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0xe], ax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x12], 0x5c003a
push eax
push 2
push 0
mov dword [ebp - 0x34], connect
mov dword [ebp - 0x30], str.Default_Share
mov dword [ebp - 0x2c], 0x7f
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.NETAPI32.dll_NetShareAdd]
test eax, eax
jne 0x100034cc
lea ecx, [eax + 0x24]
lea edx, [eax + 0x3a]
inc esi
shr ebx, 1
jne 0x10003436
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 2
mov dword [edi], 3
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4
Function at 0x100064f0
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007216b
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x100c3579
call fcn.10071035
push pe_nt_image_headers32
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
push 0
push eax
mov dword [ebp - 0x138], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea ecx, [ebp - 0x130]
call fcn.100487b0
cmp dword [ebp - 0x12c], 6
lea edx, [ebp - 0x14]
mov eax, str.SharedAccess
mov esi, str.MpsSvc
cmovb esi, eax
mov ecx, esi
call fcn.1000cdf0
test al, al
je 0x100066fa
cmp dword [ebp - 0x14], 4
je 0x100065ae
mov edx, 2
mov ecx, esi
call fcn.1000cf50
test eax, eax
je 0x100066fa
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x12c], 6
jb 0x100066b0
lea ecx, [ebp - 0x13c]
call fcn.10048550
mov dword [ebp - 4], 0
lea eax, [ebp - 0x134]
push eax
push 0x1008b894
push 0x17
push 0
push 0x1008b914
mov dword [ebp - 0x134], 0
mov bl, 1
mov dword [ebp - 0x14], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0x134]
test ecx, ecx
je 0x10006698
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
push ecx
call dword [eax + 0x1c]
xor ecx, ecx
movzx ebx, bl
test eax, eax
mov eax, dword [ebp - 0x14]
cmovs ebx, ecx
test al, 4
je 0x10006641
mov eax, dword [ebp - 0x134]
push 0xffffffffffffffff
push 4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
xor edx, edx
movzx ebx, bl
test eax, eax
mov eax, dword [ebp - 0x14]
cmovs ebx, edx
test al, 2
je 0x10006662
mov eax, dword [ebp - 0x134]
push 0xffffffffffffffff
push 2
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
xor edx, edx
movzx ebx, bl
test eax, eax
mov eax, dword [ebp - 0x14]
cmovs ebx, edx
test al, 1
je 0x1000667c
mov eax, dword [ebp - 0x134]
push 0xffffffffffffffff
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jns 0x1000667c
xor bl, bl
mov ecx, dword [ebp - 0x134]
test ecx, ecx
je 0x1000669a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x134], 0
jmp 0x1000669a
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.10048630
mov al, bl
jmp 0x100066fc
lea eax, [ebp - 0x138]
push eax
call fcn.10006280
test al, al
je 0x100066ea
mov ecx, dword [ebp - 0x138]
test ecx, ecx
je 0x100066fa
mov eax, dword [ecx]
push 0xffffffffffffffff
push ecx
call dword [eax + 0x24]
test eax, eax
js 0x100066ea
mov ecx, dword [ebp - 0x138]
test ecx, ecx
je 0x100066e6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov al, 1
jmp 0x100066fc
mov ecx, dword [ebp - 0x138]
test ecx, ecx
je 0x100066fa
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret
Function at 0x10006850
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100721db
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x100c3579
call fcn.10071035
push pe_nt_image_headers32
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
push 0
push eax
mov dword [ebp - 0x138], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea ecx, [ebp - 0x130]
call fcn.100487b0
cmp dword [ebp - 0x12c], 6
lea edx, [ebp - 0x14]
mov eax, str.SharedAccess
mov esi, str.MpsSvc
cmovb esi, eax
mov ecx, esi
call fcn.1000cdf0
test al, al
je 0x10006a5a
cmp dword [ebp - 0x14], 4
je 0x1000690e
mov edx, 2
mov ecx, esi
call fcn.1000cf50
test eax, eax
je 0x10006a5a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x12c], 6
jb 0x10006a10
lea ecx, [ebp - 0x13c]
call fcn.10048550
mov dword [ebp - 4], 0
lea eax, [ebp - 0x134]
push eax
push 0x1008b894
push 0x17
push 0
push 0x1008b914
mov dword [ebp - 0x134], 0
mov bl, 1
mov dword [ebp - 0x14], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0x134]
test ecx, ecx
je 0x100069f8
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
push ecx
call dword [eax + 0x1c]
xor ecx, ecx
movzx ebx, bl
test eax, eax
mov eax, dword [ebp - 0x14]
cmovs ebx, ecx
test al, 4
je 0x100069a1
mov eax, dword [ebp - 0x134]
push 0
push 4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
xor edx, edx
movzx ebx, bl
test eax, eax
mov eax, dword [ebp - 0x14]
cmovs ebx, edx
test al, 2
je 0x100069c2
mov eax, dword [ebp - 0x134]
push 0
push 2
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
xor edx, edx
movzx ebx, bl
test eax, eax
mov eax, dword [ebp - 0x14]
cmovs ebx, edx
test al, 1
je 0x100069dc
mov eax, dword [ebp - 0x134]
push 0
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jns 0x100069dc
xor bl, bl
mov ecx, dword [ebp - 0x134]
test ecx, ecx
je 0x100069fa
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x134], 0
jmp 0x100069fa
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.10048630
mov al, bl
jmp 0x10006a5c
lea eax, [ebp - 0x138]
push eax
call fcn.10006280
test al, al
je 0x10006a4a
mov ecx, dword [ebp - 0x138]
test ecx, ecx
je 0x10006a5a
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x24]
test eax, eax
js 0x10006a4a
mov ecx, dword [ebp - 0x138]
test ecx, ecx
je 0x10006a46
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov al, 1
jmp 0x10006a5c
mov ecx, dword [ebp - 0x138]
test ecx, ecx
je 0x10006a5a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret
Function at 0x10007d50
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007240b
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, 0x100c3579
call fcn.10071035
push pe_nt_image_headers32
lea eax, [ebp - 0x128]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
lea ecx, [ebp - 0x12c]
call fcn.100487b0
xor eax, eax
lea ecx, [ebp - 0x138]
cmp dword [ebp - 0x128], 5
setne al
mov dword [esi], eax
call fcn.10048550
mov dword [ebp - 4], 0
cmp dword [esi], 0
je 0x10007e54
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0
push eax
push 0x1008b894
push 1
push 0
push 0x1008b914
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0x130]
test eax, eax
jns 0x10007e46
test ecx, ecx
je 0x10007e13
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.10048630
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4
test ecx, ecx
je 0x10007eb3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov bl, 1
jmp 0x10007e15
lea edx, [ebp - 0x134]
mov dword [ebp - 0x134], 0
mov ecx, str.SharedAccess
call fcn.1000cdf0
test al, al
je 0x10007e13
cmp dword [ebp - 0x134], 4
jne 0x10007e13
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0
push eax
call fcn.10007c50
test al, al
je 0x10007e13
mov ecx, dword [ebp - 0x130]
test ecx, ecx
je 0x10007eb3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x130], 0
mov bl, 1
jmp 0x10007e15
Function at 0x10008840
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov ecx, 0x100c3579
call fcn.10071035
test edi, edi
je 0x100089d7
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
push str.system
push edi
call ebx
add esp, 8
test eax, eax
je 0x100089d7
push str.c:windows_system32.exe
push edi
call ebx
add esp, 8
test eax, eax
je 0x100089d7
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x20c], eax
test eax, eax
je 0x100089d7
push esi
lea esi, [eax + 1]
xor bl, bl
push esi
call fcn.1006f76b
push esi
mov esi, eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
push esi
push dword [ebp - 0x20c]
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x100089b9
lea eax, [ebp - 0x208]
mov dword [ebp - 0x20c], 0
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x208], 0
push eax
push 0x1008d8c8
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x100089b9
mov edi, dword [ebp - 0x20c]
test edi, edi
je 0x100089b9
cmp dword [ebp - 0x208], 0
je 0x100089b9
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movzx eax, word [edi + 2]
push eax
movzx eax, word [edi]
push eax
lea eax, [ebp - 0x204]
push str.StringFileInfo_04X_04XOriginalFilename
push eax
call fcn.10007550
add esp, 0x1c
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x100089b9
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x100089b9
cmp dword [ebp - 0x208], 0
jbe 0x100089b9
push str.sqlservr.exe
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
movzx ebx, bl
test eax, eax
mov ecx, 1
cmove ebx, ecx
push esi
call fcn.1006f766
add esp, 4
mov al, bl
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop ebx
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4