joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413184
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x436c38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040ba79
mov dword [ebp - 0x14], eax
cmp dword [0x4ae2f0], esi
jne 0x413277
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x413204
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x413357
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x413357
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x413357
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ae2f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ae2f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ae2f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ae300], eax
test eax, eax
je 0x413274
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ae2fc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41329c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41328f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4132b1
push 4
pop eax
jmp 0x413359
cmp dword [ebp - 0x14], esi
je 0x4132b1
push dword [0x4ae2f0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x413296
mov eax, dword [0x4ae2fc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41330f
cmp dword [0x4ae300], edi
je 0x41330f
push eax
call ebx
push dword [0x4ae300]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41330f
test eax, eax
je 0x41330f
call ecx
test eax, eax
je 0x413304
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x413304
test byte [ebp - 8], 1
jne 0x41330f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41333f
mov eax, dword [0x4ae2f4]
cmp eax, edi
je 0x41333c
push eax
call ebx
test eax, eax
je 0x41333c
call eax
mov esi, eax
test esi, esi
je 0x41333c
mov eax, dword [0x4ae2f8]
cmp eax, edi
je 0x41333c
push eax
call ebx
test eax, eax
je 0x41333c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ae2f0]
call ebx
test eax, eax
je 0x413357
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x413359
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040650b
mov esp, ebp
pop ebp
ret
Function at 0x43b0ca
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x453348]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00421419
and dword [ebp - 0x14], 0
cmp dword [0x456ea8], 0
mov dword [ebp - 0x18], eax
jne 0x43b17d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x43b225
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44d094
push ebx
call edi
test eax, eax
je 0x43b225
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x456ea8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x456eac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x456eb0], eax
call edi
push eax
call esi
mov dword [0x456eb8], eax
test eax, eax
je 0x43b17d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x456eb4], eax
mov eax, dword [0x456eb4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x43b1d6
cmp dword [0x456eb8], ecx
je 0x43b1d6
push eax
call esi
push dword [0x456eb8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x43b1d6
test ebx, ebx
je 0x43b1d6
call edi
test eax, eax
je 0x43b1cd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x43b1cd
test byte [ebp - 8], 1
jne 0x43b1d6
or dword [ebp + 0x10], 0x200000
jmp 0x43b209
mov eax, dword [0x456eac]
cmp eax, dword [ebp - 0x18]
je 0x43b209
push eax
call esi
test eax, eax
je 0x43b209
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x43b209
mov eax, dword [0x456eb0]
cmp eax, dword [ebp - 0x18]
je 0x43b209
push eax
call esi
test eax, eax
je 0x43b209
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x456ea8]
call esi
test eax, eax
je 0x43b225
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x43b227
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c2f8
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401790
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4d8eb0]
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 0x401830
cmp dword [esp + 0x14], 2
jne 0x401830
cmp dword [esp + 8], 5
push esi
jae 0x401801
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.00402380
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.00460f23
add esp, 0x98
ret
mov edx, dword [esp + 0xa4]
push edx
call fcn.004025f0
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.00460f23
add esp, 0x98
ret
mov ecx, dword [esp + 0x98]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00460f23
add esp, 0x98
ret

Function at 0x401850
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4d8eb0]
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 0x4018a3
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00460f23
add esp, 0x108
ret
mov ecx, dword [esp + 4]
push esi
push ecx
call fcn.00401790
mov ecx, dword [esp + 0x110]
add esp, 8
pop esi
xor ecx, esp
call fcn.00460f23
add esp, 0x108
ret

Function at 0x401a30
Capabilities:
Read file on windows

Disassembly:
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, dword [esp + 0x18]
add eax, 0xffffffff
mul edi
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 0x401a74
pop edi
pop esi
pop ebp
mov eax, 0xd
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
lea eax, [esi + 8]
je 0x401a94
cmp dword [esp + 0x14], edi
jne 0x401a94
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x401aa0
Capabilities:
Write file on windows

Disassembly:
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, dword [esp + 0x18]
add eax, 0xffffffff
mul edi
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 0x401ae4
pop edi
pop esi
pop ebp
mov eax, 0xd
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_WriteFile]
test eax, eax
lea eax, [esi + 9]
je 0x401b04
cmp dword [esp + 0x14], edi
jne 0x401b04
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x402380
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x48217b
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4d8eb0]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov eax, dword [0x4d8eb0]
xor eax, esp
push eax
lea eax, [esp + 0x134]
mov dword fs:[0], eax
movsx eax, byte [esp + 0x144]
mov edi, dword [esp + 0x148]
push eax
lea ecx, [esp + 0x24]
push 0x48a7d4
push ecx
xor ebx, ebx
call fcn.00461dfb
add esp, 0xc
push 0x104
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x40247f
lea ecx, [esp + 0x2c]
push ecx
call fcn.00461d99
mov edx, dword [0x4c75f8]
add esp, 4
push edx
lea ecx, [esp + 0x14]
call fcn.00457ca0
lea ecx, [esp + 0x10]
mov dword [esp + 0x13c], ebx
call fcn.00457c70
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00461a40
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40246b
lea ecx, [esp + 0x10]
call fcn.00457c70
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402448
sub eax, edx
push edi
add esi, eax
push 0x48a7d0
push esi
call fcn.00461b2e
add esp, 0xc
cmp eax, 1
jne 0x40246b
mov bl, al
lea ecx, [esp + 0x10]
mov dword [esp + 0x13c], 0xffffffff
call fcn.0040c230
mov al, bl
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00460f23
add esp, 0x130
ret

Function at 0x4024b0
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x20
mov eax, dword [0x4d8eb0]
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.00461dfb
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40252c
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 0x402525
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.00460f23
add esp, 0x20
ret
Function at 0x403530
Capabilities:
Create thread

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

Function at 0x403550
Capabilities:
Set registry value

Disassembly:
sub esp, 0x168
mov eax, dword [0x4d8eb0]
xor eax, esp
mov dword [esp + 0x164], eax
cmp dword [0x4daf38], 0
je 0x4036a3
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.0046211b
add esp, 0x18
lea ecx, [esp]
push 0
push ecx
call fcn.00440640
push eax
push 0xf003f
push 0
push 0
push 0
lea edx, [esp + 0x80]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4035e4
xor al, al
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.00460f23
add esp, 0x168
ret
push esi
push edi
push 0x60
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004619c0
push 0
call fcn.004621c8
push eax
call fcn.00462201
add esp, 0x14
call fcn.0046220e
mov edi, eax
shl edi, 0x10
call fcn.0046220e
mov esi, eax
add esi, edi
add dword [esp + 0x174], esi
mov dword [esp + 0xc], esi
mov edi, 4
jmp 0x403630
lea ecx, [esp + 0x174]
push ecx
call fcn.00403490
mov eax, dword [esp + 0x178]
mov dword [esp + edi + 0x10], eax
lea edx, [eax + eax]
sub edx, esi
add edi, 4
add esp, 4
cmp edi, 0x60
mov dword [esp + 0x174], edx
jb 0x403630
mov ecx, dword [esp + 8]
push 0x60
lea eax, [esp + 0x10]
push eax
push 3
push 0
push 0x48a824
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.00460f23
add esp, 0x168
ret
mov ecx, dword [esp + 0x164]
xor ecx, esp
mov al, 1
call fcn.00460f23
add esp, 0x168
ret

Function at 0x4037a0
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
test esi, esi
mov eax, dword [esp + 0xc]
mov dword [esp + 4], eax
je 0x4037de
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 0x403950
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov eax, dword [0x4d8eb0]
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 0x403992
lea eax, [edi + 6]
pop edi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00460f23
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 0x403a30
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 0x403a1c
lea esp, [esp]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00403950
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 0x4039e0
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.00460f23
add esp, 0x114
ret

Function at 0x403a50
Capabilities:
Query service configuration

Disassembly:
push ecx
mov eax, dword [0x4daf3c]
test eax, eax
jne 0x403a5e
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.00457e36
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
push 0
push esi
call fcn.004619c0
mov edx, dword [esp + 0x1c]
mov eax, dword [0x4daf3c]
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
push edx
push esi
push eax
call edi
test eax, eax
je 0x403ab7
cmp dword [esi + 4], 3
sete bl
push esi
call fcn.00457e3b
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
pop ecx
ret
Function at 0x403ad0
Capabilities:
Query service configuration

Disassembly:
push ebp
lea ebp, [esp - 0x308]
sub esp, 0x308
push 0xffffffffffffffff
push 0x4822a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4d8eb0]
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 0x403b33
mov eax, dword [0x4daf3c]
xor edi, edi
cmp eax, edi
jne 0x403b73
mov dword [0x4c7900], 0x2000000c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x403b42
mov edx, dword [0x4c7900]
mov dword [eax], edx
mov eax, dword [0x4c7900]
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.00460f23
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.00457e36
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x4daf3c]
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push ecx
push ebx
push edx
call esi
test eax, eax
je 0x403d0b
mov esi, 0x104
push esi
mov dword [0x4c7900], edi
call fcn.00457e36
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 0x403bf2
push edi
add esi, 0x104
call fcn.00457e3b
push esi
call fcn.00457e36
add esp, 8
jmp 0x403bc8
lea edx, [ebp + 0x100]
push edx
lea eax, [ebp]
push eax
push 0
push 0
push edi
call fcn.00462bb5
lea ecx, [ebp + 0x100]
push ecx
lea edx, [ebp]
push edx
push 0
push 0
push edi
call fcn.004629a7
mov eax, dword [ebx + 0xc]
push eax
call fcn.004627d7
push edi
call fcn.004627d7
push 0x103
lea ecx, [ebp + 0x200]
push str.FNPLicensingService
push ecx
call fcn.0046233e
lea edx, [ebp + 0x200]
push edx
call fcn.004627d7
mov eax, dword [ebx + 0xc]
add esp, 0x40
test eax, eax
je 0x403c65
push edi
push eax
call fcn.00462494
add esp, 8
test eax, eax
jne 0x403c6f
mov dword [0x4c7900], 0x2000000d
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x403c8a
lea ecx, [ebp + 0x200]
push ecx
push eax
call fcn.00462494
add esp, 8
test eax, eax
jne 0x403c94
mov dword [0x4c7900], 0x2000000e
test byte [ebx], 0x10
jne 0x403ca5
mov dword [0x4c7900], 0x2000000f
jmp 0x403d02
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x403cf8
push str.FLEXnet_Licensing_Service
push eax
call fcn.004626c1
add esp, 8
test eax, eax
jne 0x403cf8
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x403d02
push str..System
push eax
call fcn.004626c1
add esp, 8
test eax, eax
je 0x403d02
mov eax, dword [ebx + 0x1c]
push str.LocalSystem
push eax
call fcn.004626c1
add esp, 8
test eax, eax
je 0x403d02
mov dword [0x4c7900], 0x20000011
jmp 0x403d02
mov dword [0x4c7900], 0x20000010
push edi
call fcn.00457e3b
add esp, 4
push ebx
call fcn.00457e3b
add esp, 4
jmp 0x403b33
Function at 0x403d30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4d8eb0]
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.0046211b
add esp, 0x18
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x1c]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403e6b
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 0x48a8b0
mov edi, 4
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x403de6
cmp dword [esp + 8], edi
jne 0x403de6
cmp dword [esp + 0xc], edi
jne 0x403de6
mov ecx, dword [esp + 0x10]
push ecx
push eax
call fcn.0040b770
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 0x48a8ac
push edx
call esi
test eax, eax
jne 0x403e22
cmp dword [esp + 8], edi
jne 0x403e22
cmp dword [esp + 0xc], edi
jne 0x403e22
mov eax, dword [esp + 0x10]
push eax
push 1
call fcn.0040b770
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 0x48a8a8
push ecx
call esi
test eax, eax
jne 0x403e5e
cmp dword [esp + 8], edi
jne 0x403e5e
cmp dword [esp + 0xc], edi
jne 0x403e5e
mov edx, dword [esp + 0x10]
push edx
push 2
call fcn.0040b770
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.00460f23
add esp, 0x214
ret

Function at 0x4045f0
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 [0x4daf10], edx
mov edx, dword [0x4daefc]
mov dword [0x4daf08], eax
mov eax, dword [esp + 0x10]
push 0x4daf04
mov dword [0x4daf0c], ecx
mov ecx, dword [esp + 0x18]
push edx
mov dword [0x4daf04], 0x10
mov dword [0x4daf14], 0
mov dword [0x4daf18], eax
mov dword [0x4daf1c], ecx
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov edi, eax
test edi, edi
jne 0x40468b
push esi
push str.FLEXnet_Licensing_Service
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], str.SetServiceStatus_failed
je 0x404688
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

Function at 0x4053c0
Capabilities:
Create pipe

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0x10
jb 0x4053cf
mov eax, dword [eax + 4]
jmp 0x4053d2
add eax, 4
mov ecx, dword [esp + 8]
push ecx
push 0x2710
push 0
push 0
push 1
push 6
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
ret