joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55b590
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47d188
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [fcn.0047f460]
push 0
lea ecx, [esp + 0x20]
call 0x58ef61
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0055af30
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call 0x58ee8f
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call 0x58b679
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call 0x58b679
push 1
push 0
push 0
mov ecx, esi
call 0x58b621
push 1
push 0
push 1
mov ecx, esi
call 0x58b621
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call 0x58efd3
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x55b710
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47d1a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call 0x58ef61
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0055af30
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call 0x58ee8f
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [fcn.0047f460]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x55b7d4
cmp dword [esp + 0x40], 1
jne 0x55b7d2
cmp ecx, eax
jge 0x55b7d4
mov eax, ecx
cmp eax, 0xc8
jge 0x55b7e0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0055b590
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [fcn.0047f464]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call 0x58efd3
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x55bf50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47d213
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call 0x589a96
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x54bf40
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x54abe8
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x47f13c]
push eax
mov ecx, edi
call 0x58f209
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call 0x590761
test eax, eax
je 0x55c06c
mov ecx, dword [esp + 0x3c]
call 0x58f236
mov ecx, dword [esi + 0x1c]
mov ebp, dword [fcn.0047f440]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x55c030
push edi
mov ecx, esi
call 0x58c7f8
mov ecx, esi
call fcn.0055c1d0
cmp dword [esp + 0x38], 1
jne 0x55c065
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call 0x58c962
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4020a3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [0x4d9e90], edi
mov ecx, dword [ecx + 0xc8]
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.004118cc
lea eax, [ebp + 8]
push eax
push 1
push esi
push 0x4c9660
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40214c
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push 0x4d9e68
push esi
push 0x4c9648
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x402146
xor eax, eax
cmp edi, esi
setne al
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 4
push eax
push 4
push esi
push str.lmtools_LM_A_DISABLE_ENV
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402141
push str.all_is_well
call fcn.00495900
pop ecx
push dword [ebp - 4]
call ebx
push dword [ebp + 8]
call ebx
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x402152
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push esi
xor esi, esi
push eax
push 1
push esi
push 0x4c966c
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4021c5
push 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.lmtools_LM_A_DISABLE_ENV
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4021b4
cmp dword [ebp - 0xc], esi
setne al
mov dword [0x4d9e90], eax
jmp 0x4021ba
mov dword [0x4d9e90], esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4021cb
mov dword [0x4d9e90], esi
pop esi
leave
ret
Function at 0x4024d2
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x4bf268
call fcn.00495654
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0040fa73
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00411a6a
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esp + 0x28], 0
push 0x428
push ebx
call esi
cmp dword [0x4d9ea8], 1
mov ebp, eax
jne 0x40258f
mov ecx, dword [edi + 0xc0]
push 0
call fcn.00411214
push 0
push ebp
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
call ebp
mov ecx, dword [edi + 0xc4]
push 5
call fcn.00411214
push str.Service_License_File
mov ecx, edi
call fcn.0040faad
mov ecx, edi
call fcn.00402342
push 0x3ff
push ebx
call esi
push 0
push eax
call ebp
push 0x403
push ebx
call esi
push 0
push eax
call ebp
push 0x404
push ebx
call esi
push 5
push eax
call ebp
push 0x400
push ebx
call esi
push 5
push eax
call ebp
mov eax, 0x402
push eax
push eax
push 0x401
jmp 0x402607
mov ecx, dword [edi + 0xc0]
push 5
call fcn.00411214
push 5
push ebp
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
call ebp
mov ecx, dword [edi + 0xc4]
push 0
call fcn.00411214
push str.Service_License_File
mov ecx, edi
call fcn.0040faad
mov ecx, edi
call fcn.00402342
push 0x403
push ebx
call esi
push 5
push eax
call ebp
push 0x404
push ebx
call esi
push 0
push eax
call ebp
push 0x400
push ebx
call esi
push 0
push eax
call ebp
push 0x3ff
push ebx
call esi
push 5
push eax
call ebp
mov eax, 0x401
push eax
push 0x402
push eax
push ebx
call dword [sym.imp.USER32.dll_CheckRadioButton]
or dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00411af7
mov ecx, dword [esp + 0x20]
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret
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 0x80000002
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 0x80000002
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 0x80000002
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 0x80000002
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 0x80000002
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 0x80000002
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 0x80000002
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 0x80000002
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 0x80000002
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