joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402646
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
mov dword [ebp - 0x18], ecx
mov ecx, dword [ecx + 0xc4]
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0x63
call fcn.0041168e
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10]
mov edi, 0x20019
push eax
push edi
push ebx
push 0x4c9660
push closesocket
call esi
test eax, eax
jne 0x40275a
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push 0x4c9648
push dword [ebp - 0x10]
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x402755
lea eax, [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x88]
push eax
push ebx
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x402728
push 6
lea eax, [ebp - 0x88]
push 0x4c9754
push eax
call fcn.0049a450
add esp, 0xc
test eax, eax
je 0x402704
lea eax, [ebp - 0x88]
push ebx
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc4]
call fcn.00411560
lea eax, [ebp - 0x24]
inc dword [ebp - 4]
push eax
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 8], 0x63
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
jmp 0x4026ce
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.Service
mov dword [ebp - 0x1c], 0xc7
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
call edi
push dword [ebp - 0x10]
call edi
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x88]
push eax
mov ecx, esi
call fcn.004027b4
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
call fcn.00402915
cmp eax, 0xffffffff
je 0x40278a
mov ecx, dword [esi + 0xc4]
push eax
call fcn.0041172e
cmp dword [0x4d9ea8], 1
jne 0x4027af
mov ecx, dword [esi + 0xc4]
call fcn.004116ac
test eax, eax
jne 0x4027af
push str.No_FLEXlm_Services_defined__use_Configure_Services_to_add_services
push esi
call fcn.0040ff0a
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4027b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push edi
xor edi, edi
push eax
push 1
push edi
push 0x4c9660
push closesocket
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x40287c
lea eax, [ebp - 8]
push eax
push 1
push edi
push 0x4c9648
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402873
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.Service
mov dword [ebp - 0x10], 0xc7
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
push 6
lea eax, [ebp - 0xd8]
push 0x4c9754
push eax
call fcn.0049a450
lea ecx, [ebp - 0xd8]
add esp, 0xc
test ecx, ecx
je 0x40285f
cmp eax, edi
je 0x40285f
lea eax, [ebp - 0xd8]
push eax
jmp 0x402864
push str.Flexlm_Service_1
push dword [ebp + 8]
call fcn.00495810
pop ecx
pop ecx
push 1
pop eax
jmp 0x40287e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x402884
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push edi
mov esi, 0x20006
push eax
xor edi, edi
push esi
push edi
push 0x4c9660
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40290d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push esi
push edi
push 0x4d9e68
push edi
push 0x4c9648
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402904
push dword [ebp + 8]
call fcn.00495790
pop ecx
inc eax
push eax
push dword [ebp + 8]
push 1
push edi
push str.Service
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
push 1
pop eax
jmp 0x40290f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x403d79
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
mov dword [ebp - 0x18], ecx
mov ecx, dword [ecx + 0xa8]
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0x63
call fcn.0041168e
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10]
mov edi, 0x20019
push eax
push edi
push ebx
push 0x4c9660
push closesocket
call esi
test eax, eax
jne 0x403e8d
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push 0x4c9648
push dword [ebp - 0x10]
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x403e88
lea eax, [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x88]
push eax
push ebx
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x403e5b
push 6
lea eax, [ebp - 0x88]
push 0x4c9754
push eax
call fcn.0049a450
add esp, 0xc
test eax, eax
je 0x403e37
lea eax, [ebp - 0x88]
push ebx
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xa8]
call fcn.00411560
lea eax, [ebp - 0x24]
inc dword [ebp - 4]
push eax
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 8], 0x63
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
jmp 0x403e01
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.Service
mov dword [ebp - 0x1c], 0xc7
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
call edi
push dword [ebp - 0x10]
call edi
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x88]
push eax
mov ecx, esi
call fcn.004047ee
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
call fcn.0040476e
cmp eax, 0xffffffff
je 0x403ebd
mov ecx, dword [esi + 0xa8]
push eax
call fcn.0041172e
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4047ee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push edi
xor edi, edi
push eax
push 1
push edi
push 0x4c9660
push closesocket
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x404887
lea eax, [ebp - 8]
push eax
push 1
push edi
push 0x4c9648
push dword [ebp - 4]
call esi
test eax, eax
jne 0x40487e
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.Service
mov dword [ebp - 0x10], 0xc7
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
lea eax, [ebp - 0xd8]
push eax
push dword [ebp + 8]
call fcn.00495810
pop ecx
pop ecx
push 1
pop eax
jmp 0x404889
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x407756
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4bf9f6
call fcn.00495654
sub esp, 0x210
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0xa0c]
call fcn.00403145
lea eax, [ebp - 0x118]
xor edi, edi
push 0x4d9e68
push eax
mov dword [ebp - 4], edi
mov dword [esi + 0xa20], edi
call fcn.00495810
test byte [ebp + 0xc], 1
pop ecx
pop ecx
je 0x4077c2
push 1
lea eax, [ebp - 0x118]
pop edi
mov dword [esi + 0xa24], 0x4c9eb0
inc dword [esi + 0xa20]
push 0x4c9e90
push eax
call fcn.00495820
pop ecx
pop ecx
test byte [ebp + 0xc], 0x10
push ebx
mov ebx, 0x4c9eac
je 0x4077fc
mov dword [esi + edi*4 + 0xa24], ebx
inc edi
lea eax, [ebp - 0x118]
push str._x_lmdown
mov dword [esi + edi*4 + 0xa24], 0x4c9ea4
add dword [esi + 0xa20], 2
push eax
inc edi
call fcn.00495820
pop ecx
pop ecx
test byte [ebp + 0xd], 1
je 0x40782e
lea eax, [ebp - 0x118]
mov dword [esi + edi*4 + 0xa24], ebx
push str._x_lmremove
mov dword [esi + edi*4 + 0xa28], 0x4c9e98
add dword [esi + 0xa20], 2
push eax
call fcn.00495820
pop ecx
pop ecx
xor edi, edi
pop ebx
cmp dword [ebp + 8], edi
je 0x40789e
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push str.SOFTWAREFLEXlm_License_Manager_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x20006
lea eax, [ebp - 0x21c]
push edi
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40789e
lea eax, [ebp - 0x118]
push eax
call fcn.00495790
pop ecx
inc eax
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push edi
push str.cmdlineparams
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
mov ecx, esi
call fcn.004078ba
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x407b8e
Capabilities:
Query or enumerate registry value
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebx], ecx
mov dword [eax], ecx
mov eax, dword [edi + 4]
dec eax
je 0x407c46
dec eax
jne 0x407c3d
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 1
pop esi
mov dword [ebp - 8], 0xc7
push esi
push ecx
push 0x4c9660
push closesocket
call ebx
test eax, eax
jne 0x407c3d
lea eax, [ebp + 8]
push eax
push esi
push 0
push str.MicrosoftWindowsCurrentVersionRunServices
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x407c3d
lea eax, [ebp - 8]
add edi, 0x40c
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
test eax, eax
jne 0x407c30
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 4]
call edi
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
jmp 0x407ca7
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push 1
pop esi
push esi
push ecx
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [ebp + 8], eax
je 0x407c3d
add edi, 0x40c
push esi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x407c3d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2cc]
push 0x1f4
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x407c97
cmp dword [ebp - 0x2c8], 2
jne 0x407c97
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push dword [ebp + 8]
call edi
mov dword [ebx], esi
mov eax, esi
jmp 0x407c3f
Function at 0x407cab
Capabilities:
Delete registry value
Delete service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 4]
dec eax
je 0x407d38
dec eax
jne 0x407db3
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
xor edi, edi
push 1
push edi
push 0x4c9660
push closesocket
call esi
test eax, eax
jne 0x407db3
lea eax, [ebp - 4]
push eax
push 1
push edi
push str.MicrosoftWindowsCurrentVersionRunServices
push dword [ebp - 8]
call esi
test eax, eax
jne 0x407d26
add ebx, 0x40c
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x407d26
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push 1
pop eax
jmp 0x407db5
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
jmp 0x407db3
xor edi, edi
push 1
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, edi
mov dword [ebp - 8], esi
je 0x407db3
add ebx, 0x40c
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
cmp ebx, edi
je 0x407d9a
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x407d95
push edi
push str._Service_Error
push str.Could_not_Remove_Service
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x407db5
push 1
pop edi
jmp 0x407d83
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
push str.Service_Error
push str.Could_not_Locate_service_to_remove
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407dba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x24]
push edi
xor ebx, ebx
push eax
push 1
push ebx
push 0x4c9660
mov edi, ecx
push closesocket
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
call esi
test eax, eax
jne 0x407f72
lea eax, [edi + 0x40c]
push eax
push 0x4c9648
lea eax, [ebp - 0x128]
push 0x4cae98
push eax
call fcn.004956af
add esp, 0x10
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x128]
push ebx
push eax
push dword [ebp - 0x24]
call esi
test eax, eax
jne 0x407efe
lea ecx, [ebp - 0x14]
lea eax, [edi + 0x20c]
push ecx
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push ebx
push str.Lmgrd
mov dword [ebp - 0x14], 0x104
push dword [ebp - 8]
call esi
test eax, eax
jne 0x407e7d
lea eax, [edi + 0x20c]
mov dword [ebp - 0x1c], 1
push eax
call fcn.00495790
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
lea eax, [edi + 0xc]
push ecx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push str.License
mov dword [ebp - 0x10], 0x104
push dword [ebp - 8]
call esi
test eax, eax
jne 0x407eb6
lea eax, [edi + 0xc]
mov dword [ebp - 0x18], 1
push eax
call fcn.00495790
pop ecx
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xc]
lea eax, [edi + 0x60c]
push ecx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push str.LMGRD_LOG_FILE
mov dword [ebp - 0xc], 0x104
push dword [ebp - 8]
call esi
test eax, eax
jne 0x407ef5
lea eax, [edi + 0x60c]
mov dword [ebp - 0x20], 1
push eax
call fcn.00495790
pop ecx
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x407f10
mov byte [eax], bl
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x407f19
mov byte [esi], bl
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x407f22
mov byte [ecx], bl
cmp eax, ebx
je 0x407f38
cmp dword [ebp - 0x18], 1
jne 0x407f38
lea ecx, [edi + 0xc]
push ecx
push eax
call fcn.00495810
pop ecx
pop ecx
cmp esi, ebx
je 0x407f51
cmp dword [ebp - 0x1c], 1
jne 0x407f51
lea eax, [edi + 0x20c]
push eax
push esi
call fcn.00495810
pop ecx
pop ecx
cmp dword [ebp + 0x10], ebx
je 0x407f6d
cmp dword [ebp - 0x20], 1
jne 0x407f6d
add edi, 0x60c
push edi
push dword [ebp + 0x10]
call fcn.00495810
pop ecx
pop ecx
push 1
pop eax
jmp 0x407f74
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x407f7b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
lea edi, [esi + 0xc]
push edi
call fcn.00495810
push dword [ebp + 0xc]
lea ebx, [esi + 0x20c]
push ebx
call fcn.00495810
push dword [ebp + 0x10]
lea eax, [esi + 0x60c]
mov dword [ebp + 0xc], eax
push eax
call fcn.00495810
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4c9660
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408080
add esi, 0x40c
lea eax, [ebp - 0x10c]
push esi
push 0x4c9648
push 0x4cae98
push eax
call fcn.004956af
add esp, 0x10
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp + 8]
push eax
push esi
push 0x20006
push esi
push 0x4d9e68
lea eax, [ebp - 0x10c]
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x408080
push ebx
call fcn.00495790
pop ecx
inc eax
push eax
push ebx
push 1
pop ebx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.Lmgrd
push dword [ebp + 8]
call esi
push dword [ebp + 0xc]
call fcn.00495790
pop ecx
inc eax
push eax
push dword [ebp + 0xc]
push ebx
push 0
push str.LMGRD_LOG_FILE
push dword [ebp + 8]
call esi
push edi
call fcn.00495790
pop ecx
inc eax
push eax
push edi
push ebx
push 0
push str.License
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408082
xor ebx, ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc

Function at 0x408094
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
lea eax, [ebp - 4]
push esi
push eax
push 1
push 0
push 0x4c9660
mov esi, ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408104
add esi, 0x40c
lea eax, [ebp - 0x108]
push esi
push 0x4c9648
push 0x4cae98
push eax
call fcn.004956af
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
test eax, eax
jne 0x4080fe
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x408106
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
leave
ret
Function at 0x408109
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push edi
mov esi, 0x20006
push eax
xor edi, edi
push esi
push edi
push 0x4c9660
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408192
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push esi
push edi
push 0x4d9e68
push edi
push 0x4c9648
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x408189
push dword [ebp + 8]
call fcn.00495790
pop ecx
inc eax
push eax
push dword [ebp + 8]
push 1
push edi
push str.Service
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
push 1
pop eax
jmp 0x408194
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x4081e0
Capabilities:
Create process on windows
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
mov esi, ecx
lea eax, [ebp - 8]
xor ebx, ebx
mov edi, dword [esi + 4]
push eax
mov dword [ebp - 4], ebx
call fcn.00407b8e
cmp dword [esi + 4], 1
jne 0x408211
cmp dword [ebp - 8], ebx
jne 0x408211
push 2
pop edi
dec edi
je 0x40821e
dec edi
je 0x408282
xor eax, eax
jmp 0x4082f9
push 1
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x408282
lea ecx, [esi + 0x40c]
push 0xf01ff
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x408278
lea eax, [esi + 0xa24]
push eax
push dword [esi + 0xa20]
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x40826f
mov dword [ebp - 4], 1
jmp 0x408275
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call ebx
push dword [ebp - 0xc]
call ebx
mov eax, dword [ebp - 4]
jmp 0x4082f9
push 0x44
lea eax, [ebp - 0x64]
pop edi
push edi
push ebx
push eax
call fcn.004959e0
lea eax, [esi + 0x60c]
add esp, 0xc
mov dword [ebp - 0x64], edi
cmp byte [eax], bl
jne 0x4082a7
push 0x4cae14
jmp 0x4082a8
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00495810
pop ecx
lea eax, [ebp - 0x12c]
pop ecx
push eax
lea eax, [esi + 0xc]
add esi, 0x20c
push eax
push esi
lea eax, [ebp - 0x1f4]
push str.__s___app__win__c___s___l___s_
push eax
call fcn.004956af
add esp, 0x14
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x28
push ebx
push ebx
lea eax, [ebp - 0x1f4]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4083e1
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x4bfa0b
call fcn.00495654
sub esp, 0xad4
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x1c], ecx
push esi
push str.Flexlm_Service_1
lea ecx, [ebp - 0xae0]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], 0x63
call fcn.00407756
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x28]
mov ebx, 0x20019
push eax
push ebx
push esi
push 0x4c9660
push closesocket
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
call edi
test eax, eax
jne 0x408507
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push 0x4c9648
push dword [ebp - 0x28]
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4084fd
lea eax, [ebp - 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x18]
push esi
push eax
lea eax, [ebp - 0x9c]
push eax
push esi
push dword [ebp - 0x14]
call edi
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x30], eax
je 0x4084d0
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0xae0]
push eax
call fcn.004078ba
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0xae0]
push eax
push dword [ecx + 8]
call fcn.0040863b
lea eax, [ebp - 0x38]
inc dword [ebp - 0x10]
push eax
push esi
push esi
lea eax, [ebp - 0x18]
push esi
push eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x18], 0x63
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
jmp 0x40847c
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x24], esi
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push str.Service
mov dword [ebp - 0x2c], 0xc7
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x14]
call ebx
push dword [ebp - 0x28]
call ebx
cmp dword [ebp - 0x10], esi
jne 0x40853e
mov edi, str.Flexlm_Service_1
lea ecx, [ebp - 0xae0]
push edi
call fcn.004078ba
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0xae0]
push eax
push dword [ecx + 8]
call fcn.0040863b
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.00495810
pop ecx
mov dword [ebp - 0x20], esi
pop ecx
jmp 0x40856c
jle 0x40856c
mov ecx, dword [ebp - 0x1c]
push esi
call fcn.004075f8
mov ecx, eax
call fcn.0040790f
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00495950
pop ecx
test eax, eax
pop ecx
jne 0x408566
mov dword [ebp - 0x20], esi
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x408540
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xae0]
call fcn.004076b3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret