joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b76d4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00401c14
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x140
mov eax, dword [0x4d6700]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x38], eax
mov eax, ebx
call fcn.00403614
mov dword [ebp - 0x30], eax
mov eax, esi
call fcn.00403614
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x4b7777
mov eax, dword [0x4d6700]
mov eax, dword [eax]
call fcn.0047d568
push 0x64
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 4], 0x103
jne 0x4b7769
mov eax, dword [0x4d6700]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
je 0x4b7730
cmp dword [ebp - 4], 0
jne 0x4b7773
mov al, 1
jmp 0x4b7779
xor eax, eax
jmp 0x4b7779
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c2f5c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c2fcd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4d62c4]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x4c2fb7
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.004c2f48
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4c0e98]
call fcn.004c3e30
mov dword [0x4d632c], eax
mov eax, dword [ebp - 4]
call fcn.004c2db8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2fd4
lea eax, [ebp - 8]
call fcn.00404ff0
ret

Function at 0x4c3074
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push esi
mov esi, 0x4008
test cl, cl
je 0x4c308a
or esi, 2
test dl, dl
je 0x4c3093
or esi, 0
jmp 0x4c3096
or esi, 1
push esi
push 0x160
lea edx, [ebp - 0x160]
push edx
push 0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [ebp - 0x15c]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c3cb8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.004035f4
xor eax, eax
push ebp
push 0x4c3e14
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
mov edx, dword [ebx]
mov eax, dword [0x4c0c80]
call fcn.00416c64
test eax, eax
jl 0x4c3d1f
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
call fcn.004c3054
and eax, 0x7f
mov eax, dword [eax*4 + 0x4d62c4]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov esi, eax
jmp 0x4c3d86
mov eax, dword [ebx]
call fcn.00403444
test eax, eax
jle 0x4c3d86
mov eax, dword [ebx]
call fcn.00403444
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x3a
jne 0x4c3d46
mov eax, ebx
mov edx, 0x4c3e2c
call fcn.00403450
mov eax, dword [ebx]
call fcn.00403444
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
call fcn.00404448
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x1c]
call fcn.004c2f48
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x4c3dd1
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x20]
mov eax, dword [0x4d63dc]
call fcn.004054ec
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
xor ecx, ecx
pop eax
call fcn.00409d38
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004031d4
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x407040]
call fcn.0040d474
call fcn.00402a08
mov eax, dword [ebp - 0xc]
call fcn.004c3c30
mov ebx, eax
test edi, edi
je 0x4c3de6
mov eax, edi
call fcn.004021f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3e1b
lea eax, [ebp - 0x20]
call fcn.00403114
lea eax, [ebp - 0x1c]
call fcn.00404ff0
lea eax, [ebp - 0x18]
call fcn.00403114
lea eax, [ebp - 4]
call fcn.00403114
ret

Function at 0x4c4a04
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
mov ebx, eax
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x3c
call fcn.00401c14
mov dword [ebp - 0x3c], 0x3c
mov eax, dword [0x4d6700]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0xc
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 5
lea eax, [ebp - 0x3c]
push eax
call sub.shell32.dll_ShellExecuteExA
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c5550
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c56bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4d68bc]
mov eax, dword [eax]
mov ax, word [eax + 0x44]
mov word [ebp - 0x16], ax
mov eax, dword [0x4d68bc]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0047b6ec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
call fcn.004411a4
xor edx, edx
push ebp
push 0x4c569f
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4c560d
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
call fcn.00404ff0
push eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x344]
call fcn.004c3678
push eax
mov eax, dword [0x4d6700]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
je 0x4c5603
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00402ab4
jmp 0x4c56a6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c564b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00440d70
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004c53e0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x4c5625
push 0
mov edx, 0x4c5378
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.00440928
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c56a6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
call fcn.004411f0
mov eax, dword [0x4d68bc]
mov eax, dword [eax]
mov dx, word [ebp - 0x16]
call fcn.0047b6ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c56c3
lea eax, [ebp - 0x10]
call fcn.00404ff0
ret
Function at 0x4d083c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004035f4
xor eax, eax
push ebp
push 0x4d097a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00403114
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00403614
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4d0957
mov eax, esi
call fcn.004014d8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push esi
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4d0988
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 8]
shr eax, 0x10
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.0040879c
push dword [ebx]
push 0x4d0994
mov eax, dword [edi + 8]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x18]
call fcn.0040879c
push dword [ebp - 0x18]
mov eax, ebx
mov edx, 3
call fcn.0040350c
push dword [ebx]
push 0x4d0994
mov eax, dword [edi + 0xc]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.0040879c
push dword [ebp - 0x1c]
mov eax, ebx
mov edx, 3
call fcn.0040350c
push dword [ebx]
push 0x4d0994
mov eax, dword [edi + 0xc]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.0040879c
push dword [ebp - 0x20]
mov eax, ebx
mov edx, 3
call fcn.0040350c
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.004014f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0981
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.0040317c
lea eax, [ebp - 4]
call fcn.00403114
ret
Function at 0x401640
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4d55e4]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
mov esi, dword [esp + 0xa4]
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4016e0
cmp dword [esp + 0x14], 2
jne 0x4016e0
cmp dword [esp + 8], 5
push esi
jae 0x4016b1
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.00403610
xor ecx, ecx
add esp, 8
test al, al
sete cl
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00417490
add esp, 0x98
ret
mov edx, dword [esp + 0xa4]
push edx
call fcn.00403880
xor ecx, ecx
add esp, 8
test al, al
sete cl
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00417490
add esp, 0x98
ret
mov ecx, dword [esp + 0x98]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00417490
add esp, 0x98
ret

Function at 0x401700
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4d55e4]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push 0x104
lea eax, [esp + 8]
push eax
mov byte [esp + 0xd], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [esp + 5], 0x3a
je 0x401753
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00417490
add esp, 0x108
ret
mov ecx, dword [esp + 4]
push esi
push ecx
call fcn.00401640
mov ecx, dword [esp + 0x110]
add esp, 8
pop esi
xor ecx, esp
call fcn.00417490
add esp, 0x108
ret

Function at 0x4019c0
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 0xc], 0
ja 0x4019d0
mov ecx, dword [esp + 8]
cmp ecx, 0xffffffff
jb 0x4019d6
mov eax, 0x1d
ret
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax]
push ebp
mov ebp, dword [eax + 0x20]
push esi
push edi
mov edi, dword [eax + 0x1c]
mov eax, edi
mul ecx
mov esi, eax
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
je 0x401a17
mov esi, 0xd
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
xor esi, esi
push esi
lea ecx, [esp + 0x18]
push ecx
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401a32
cmp dword [esp + 0x14], edi
je 0x401a37
mov esi, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x403610
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x47a0fb
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x4d55e4]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
mov eax, dword [0x4d55e4]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
movsx eax, byte [esp + 0x14c]
mov edi, dword [esp + 0x150]
push eax
lea ecx, [esp + 0x2c]
push 0x49487c
push ecx
xor ebx, ebx
call fcn.00418351
add esp, 0xc
push 0x104
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x40370d
lea ecx, [esp + 0x34]
push ecx
call fcn.004182ec
mov edx, dword [0x4d3654]
add esp, 4
push edx
lea ecx, [esp + 0x14]
call fcn.004718b0
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], ebx
call fcn.00471780
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00417f80
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4036f9
lea ecx, [esp + 0x10]
call fcn.00471780
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4036d8
sub eax, edx
push edi
add esi, eax
push 0x494878
push esi
call fcn.00418070
add esp, 0xc
cmp eax, 1
jne 0x4036f9
mov bl, al
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], 0xffffffff
call fcn.004717a0
mov al, bl
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00417490
add esp, 0x138
ret

Function at 0x403740
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x20
mov eax, dword [0x4d55e4]
xor eax, esp
mov dword [esp + 0x1c], eax
movsx eax, byte [esp + 0x24]
push ebx
push esi
push eax
lea ecx, [esp + 0x10]
push str.._c:
push ecx
xor bl, bl
call fcn.00418351
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4037bc
push 0
lea eax, [esp + 0xc]
push eax
push 0xc
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4037b5
mov edx, dword [esp + 0x1c]
mov dword [edi], edx
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.00417490
add esp, 0x20
ret
Function at 0x404780
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x404710
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
setne al
ret

Function at 0x4047b0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x168
mov eax, dword [0x4d55e4]
xor eax, esp
mov dword [esp + 0x164], eax
cmp dword [0x4e72b8], 0
je 0x404903
push str.FNPLicensingService
push str.FlexNet_Publisher
push str.Macrovision
push str.SOFTWARE_s_s_s
lea eax, [esp + 0x74]
push 0x100
push eax
mov dword [esp + 0x18], 0
call fcn.0041866b
add esp, 0x18
lea ecx, [esp]
push 0
push ecx
call fcn.0045b410
push eax
push 0xf003f
push 0
push 0
push 0
lea edx, [esp + 0x80]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x404844
xor al, al
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.00417490
add esp, 0x168
ret
push esi
push edi
push 0x60
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00417b00
push 0
call fcn.0041871a
push eax
call fcn.00418768
add esp, 0x14
call fcn.0041877a
mov edi, eax
shl edi, 0x10
call fcn.0041877a
mov esi, eax
add esi, edi
add dword [esp + 0x174], esi
mov dword [esp + 0xc], esi
mov edi, 4
jmp 0x404890
lea ecx, [esp + 0x174]
push ecx
call fcn.004046e0
mov eax, dword [esp + 0x178]
mov dword [esp + edi + 0x10], eax
lea edx, [eax + eax]
sub edx, esi
add edi, 4
add esp, 4
mov dword [esp + 0x174], edx
cmp edi, 0x60
jb 0x404890
mov ecx, dword [esp + 8]
push 0x60
lea eax, [esp + 0x10]
push eax
push 3
push 0
push 0x4948cc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.00417490
add esp, 0x168
ret
mov ecx, dword [esp + 0x164]
xor ecx, esp
mov al, 1
call fcn.00417490
add esp, 0x168
ret

Function at 0x404a00
Capabilities:
Access the windows event log

Disassembly:
push ecx
push esi
push str.FlexNet_Licensing_Service
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 4], eax
test esi, esi
je 0x404a3e
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
pop ecx
ret
Function at 0x404b70
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov eax, dword [0x4d55e4]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
mov ebx, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x120]
test edi, edi
jne 0x404bb2
lea eax, [edi + 6]
pop edi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00417490
add esp, 0x114
ret
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404c50
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x404c3c
lea esp, [esp]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00404b70
add esp, 8
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x404c00
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop esi
mov ecx, dword [esp + 0x118]
pop edi
pop ebx
xor ecx, esp
call fcn.00417490
add esp, 0x114
ret

Function at 0x404c70
Capabilities:
Query service configuration

Disassembly:
push ecx
mov eax, dword [0x4e72bc]
test eax, eax
jne 0x404c7e
mov al, 1
pop ecx
ret
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push eax
xor bl, bl
mov dword [esp + 0x1c], 1
call edi
mov edx, dword [esp + 0xc]
push edx
call fcn.0040cd8e
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
push 0
push esi
call fcn.00417b00
mov edx, dword [esp + 0x1c]
mov eax, dword [0x4e72bc]
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
push edx
push esi
push eax
call edi
test eax, eax
je 0x404cd7
cmp dword [esi + 4], 3
sete bl
push esi
call fcn.0040cd99
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
pop ecx
ret
Function at 0x404cf0
Capabilities:
Query service configuration

Disassembly:
push ebp
lea ebp, [esp - 0x308]
sub esp, 0x308
push 0xffffffffffffffff
push 0x47a230
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4d55e4]
xor eax, ebp
mov dword [ebp + 0x304], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp byte [ebp + 0x314], 0
mov eax, dword [ebp + 0x310]
mov dword [ebp - 0x18], eax
je 0x404d53
mov eax, dword [0x4e72bc]
xor edi, edi
cmp eax, edi
jne 0x404d93
mov dword [0x4d3920], 0x2000000c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x404d62
mov edx, dword [0x4d3920]
mov dword [eax], edx
mov eax, dword [0x4d3920]
neg eax
sbb eax, eax
and eax, 0x19
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x304]
xor ecx, ebp
call fcn.00417490
add ebp, 0x308
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [ebp - 0x14]
push ecx
push edi
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], 1
call esi
mov edx, dword [ebp - 0x14]
push edx
call fcn.0040cd8e
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x4e72bc]
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push ecx
push ebx
push edx
call esi
test eax, eax
je 0x404f2b
mov esi, 0x104
push esi
mov dword [0x4d3920], edi
call fcn.0040cd8e
add esp, 4
push esi
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esi - 2]
cmp eax, ecx
jbe 0x404e12
push edi
add esi, 0x104
call fcn.0040cd99
push esi
call fcn.0040cd8e
add esp, 8
jmp 0x404de8
lea edx, [ebp + 0x100]
push edx
lea eax, [ebp]
push eax
push 0
push 0
push edi
call fcn.00418f9b
lea ecx, [ebp + 0x100]
push ecx
lea edx, [ebp]
push edx
push 0
push 0
push edi
call fcn.00418d89
mov eax, dword [ebx + 0xc]
push eax
call fcn.00418d64
push edi
call fcn.00418d64
push 0x103
lea ecx, [ebp + 0x200]
push str.FNPLicensingService
push ecx
call fcn.004188b0
lea edx, [ebp + 0x200]
push edx
call fcn.00418d64
mov eax, dword [ebx + 0xc]
add esp, 0x40
test eax, eax
je 0x404e85
push edi
push eax
call fcn.00418a0b
add esp, 8
test eax, eax
jne 0x404e8f
mov dword [0x4d3920], 0x2000000d
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x404eaa
lea ecx, [ebp + 0x200]
push ecx
push eax
call fcn.00418a0b
add esp, 8
test eax, eax
jne 0x404eb4
mov dword [0x4d3920], 0x2000000e
test byte [ebx], 0x10
jne 0x404ec5
mov dword [0x4d3920], 0x2000000f
jmp 0x404f22
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x404f18
push str.FlexNet_Licensing_Service
push eax
call fcn.00418c48
add esp, 8
test eax, eax
jne 0x404f18
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x404f22
push str..System
push eax
call fcn.00418c48
add esp, 8
test eax, eax
je 0x404f22
mov eax, dword [ebx + 0x1c]
push str.LocalSystem
push eax
call fcn.00418c48
add esp, 8
test eax, eax
je 0x404f22
mov dword [0x4d3920], 0x20000011
jmp 0x404f22
mov dword [0x4d3920], 0x20000010
push edi
call fcn.0040cd99
add esp, 4
push ebx
call fcn.0040cd99
add esp, 4
jmp 0x404d53
Function at 0x404f50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4d55e4]
xor eax, esp
mov dword [esp + 0x210], eax
push str.FNPLicensingService
push str.FlexNet_Publisher
push str.Macrovision
push str.SOFTWARE_s_s_s
lea eax, [esp + 0x20]
push 0x200
push eax
mov dword [esp + 0x24], 0
call fcn.0041866b
add esp, 0x18
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x1c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40508b
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0x49494c
mov edi, 4
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x405006
cmp dword [esp + 8], edi
jne 0x405006
cmp dword [esp + 0xc], edi
jne 0x405006
mov ecx, dword [esp + 0x10]
push ecx
push eax
call fcn.0040cb70
add esp, 8
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x494948
push edx
call esi
test eax, eax
jne 0x405042
cmp dword [esp + 8], edi
jne 0x405042
cmp dword [esp + 0xc], edi
jne 0x405042
mov eax, dword [esp + 0x10]
push eax
push 1
call fcn.0040cb70
add esp, 8
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push 0x494944
push ecx
call esi
test eax, eax
jne 0x40507e
cmp dword [esp + 8], edi
jne 0x40507e
cmp dword [esp + 0xc], edi
jne 0x40507e
mov edx, dword [esp + 0x10]
push edx
push 2
call fcn.0040cb70
add esp, 8
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00417490
add esp, 0x214
ret

Function at 0x405ae0
Capabilities:
Access the windows event log

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
xor ecx, ecx
cmp eax, 2
setne cl
push edi
mov dword [0x4e7290], edx
mov edx, dword [0x4e727c]
mov dword [0x4e7288], eax
mov eax, dword [esp + 0x10]
push 0x4e7284
mov dword [0x4e728c], ecx
mov ecx, dword [esp + 0x18]
push edx
mov dword [0x4e7284], 0x10
mov dword [0x4e7294], 0
mov dword [0x4e7298], eax
mov dword [0x4e729c], ecx
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov edi, eax
test edi, edi
jne 0x405b7b
push esi
push str.FlexNet_Licensing_Service
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
mov dword [esp + 0xc], str.SetServiceStatus_failed
test esi, esi
je 0x405b78
push edi
lea eax, [esp + 0x10]
push eax
push edi
push 1
push edi
push edi
push edi
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, edi
pop esi
pop edi
ret