joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e5f2d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0
je 0x4e5fca
cmp dword [esi + 0x10], 0x3fff
jbe 0x4e5f71
lea eax, [edi + 8]
push eax
push str.ORegistryKey.SetValue_failure:_Cannot_set_binary_into_registry_key__s._The_value_name_is_too_long
push 0x1d
lea ecx, [ebp - 0x38c]
call fcn.004e536c
jmp 0x4e5fdc
mov ecx, dword [edx]
mov edx, dword [edx + 4]
sub edx, ecx
push 0
pop eax
cmove ecx, eax
cmp dword [esi + 0x14], 8
jb 0x4e5f88
mov eax, dword [esi]
jmp 0x4e5f8a
mov eax, esi
push edx
push ecx
push 3
push 0
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4e5fb8
lea ecx, [edi + 8]
push ecx
push esi
push str.ORegistryKey.SetValue_failure:_Cannot_set_binary___s__reg_value__s.
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.004e4cf2
jmp 0x4e5fdc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050b568
mov esp, ebp
pop ebp
ret 8
push str.ORegistryKey.SetValue_failure:_Registry_key_is_not_initialized
push 0x3a
lea ecx, [ebp - 0x38c]
call fcn.00417cc6
push 0x5e5eac
lea eax, [ebp - 0x38c]
push eax
call fcn.0050ce64
int3

Function at 0x4e789e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x390], 0
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0xffffffff
je 0x4e7965
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x390]
push 0
push ecx
push esi
push eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4e7917
lea eax, [ebp - 0x390]
mov dword [ebp - 0x394], esi
push eax
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x394]
push eax
push str.Failed_to_read__d_bytes_from__s._Number_of_bytes_read___d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.004e6323
jmp 0x4e7977
mov eax, dword [ebp - 0x390]
cmp eax, esi
je 0x4e7953
cmp byte [ebp + 0x10], 0
je 0x4e7953
lea eax, [ebp - 0x390]
mov dword [ebp - 0x394], esi
push eax
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x394]
push eax
push str.Failed_to_read__d_bytes_from__s._Number_of_bytes_read___d
push 0x21
lea ecx, [ebp - 0x38c]
call fcn.004e6281
jmp 0x4e7977
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050b568
mov esp, ebp
pop ebp
ret 0xc
push str.trying_to_read_from_a_file_thats_not_open
push 0x15
lea ecx, [ebp - 0x38c]
call fcn.0040f0fb
push 0x5e5eac
lea eax, [ebp - 0x38c]
push eax
call fcn.0050ce64
int3
Function at 0x4e9605
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x394]
mov esi, ecx
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [ebp - 0x390], 0
jl 0x4e9643
jg 0x4e967a
cmp dword [ebp - 0x394], 0xffffffff
ja 0x4e967a
push dword [ebp - 0x394]
mov ecx, edi
call fcn.004529a7
mov edx, dword [edi]
mov eax, dword [edi + 4]
push 0
pop ecx
sub eax, edx
push 1
cmove edx, ecx
mov ecx, esi
push eax
push edx
call fcn.004e789e
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050b568
mov esp, ebp
pop ebp
ret 4
push str.OFile_does_not_support_reading_files_of_this_size
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.004e2c09
push 0x5e5eac
lea eax, [ebp - 0x38c]
push eax
call fcn.0050ce64
int3

Function at 0x4e96a5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b4
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push str.OSLTokenStore::ReadBaseReferral_called.
call fcn.00405753
lea eax, [ebp - 0x1c]
push eax
push 3
call fcn.004ed0c3
xor esi, esi
lea ecx, [ebp - 0x1c]
push esi
push 1
call fcn.004069fb
lea eax, [ebp - 0x3b0]
mov dword [ebp - 0x3ac], esi
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftOfficeSoftwareProtectionPlatform
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x3b4], 4
mov dword [ebp - 0x3b0], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [ebp - 0x3a8], ecx
test ecx, ecx
jns 0x4e9748
lea eax, [ebp - 0x3a8]
push eax
push str.OSLTokenStore::ReadBaseReferral_failed_to_open_registry:_hr0x_x
push 3
call fcn.004e475b
mov esi, dword [ebp - 0x3a8]
jmp 0x4e979c
lea eax, [ebp - 0x3b4]
push eax
lea eax, [ebp - 0x3ac]
push eax
push esi
push esi
push str.ReferralData
push dword [ebp - 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov dword [ebp - 0x3a8], esi
test esi, esi
js 0x4e97b0
lea eax, [ebp - 0x3ac]
push eax
push str.OSLTokenStore::ReadBaseReferral_got_value_of:__x
push 3
call fcn.004e8467
mov ecx, dword [ebp - 0x3ac]
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0050b568
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x3a8]
push eax
push str.OSLTokenStore::ReadBaseReferral_failed_to_read_registry:_hr0x_x
push 3
call fcn.004e475b
push str.Failed_to_read_value_out_of_registry
push dword [ebp - 0x3a8]
lea ecx, [ebp - 0x3a4]
push 0x17
call fcn.004e288c
push 0x5e5eac
lea eax, [ebp - 0x3a4]
push eax
call fcn.0050ce64
int3
Function at 0x4f56a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x3c0
mov eax, 0x562c25
call fcn.0050b5da
mov edi, ecx
cmp dword [edi + 0x20], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3c8], eax
jne 0x4f56e6
push str.ORegistryKey.GetValue_failure:_Cannot_get_String_value._The_registry_key_is_closed_or_not_set
push 0x3a
lea ecx, [ebp - 0x3b0]
call fcn.004eda19
push 0x5e5eac
lea eax, [ebp - 0x3b0]
push eax
call fcn.0050ce64
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x3b8], 7
mov dword [ebp - 0x3b4], 1
jb 0x4f5704
mov eax, dword [esi]
jmp 0x4f5706
mov eax, esi
lea ecx, [ebp - 0x3b4]
xor ebx, ebx
push ecx
push ebx
lea ecx, [ebp - 0x3b8]
push ecx
push ebx
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, 2
je 0x4f5842
cmp dword [ebp - 0x3b8], 7
jne 0x4f5842
test ecx, ecx
je 0x4f575b
push esi
lea eax, [edi + 8]
push eax
push str.ORegistryKey.GetValue_failure:_Cannot_get_registry__s_value__s
push ecx
push 0xf
lea ecx, [ebp - 0x3b0]
call fcn.0040761f
jmp 0x4f56d5
mov eax, dword [ebp - 0x3b4]
add eax, 2
mov dword [ebp - 0x3c4], ebx
mov dword [ebp - 0x3b4], eax
mov dword [ebp - 0x3c0], ebx
mov dword [ebp - 0x3bc], ebx
push eax
lea ecx, [ebp - 0x3c4]
mov dword [ebp - 4], ebx
call fcn.004529a7
mov ebx, dword [ebp - 0x3c0]
sub ebx, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c4]
push 0
pop eax
cmove ecx, eax
mov dword [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x4f57b4
mov eax, dword [esi]
jmp 0x4f57b6
mov eax, esi
lea edx, [ebp - 0x3b4]
push edx
push ecx
lea ecx, [ebp - 0x3b8]
push ecx
push 0
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x4f573e
mov edi, dword [ebp - 0x3c8]
xor esi, esi
mov eax, dword [ebp - 0x3c4]
xor ecx, ecx
test ebx, ebx
cmove eax, ecx
lea ecx, [ebp - 0x28]
lea eax, [eax + esi*2]
push eax
call fcn.00405753
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.0040ef35
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push 0
inc eax
mov byte [ebp - 4], 1
push 1
add esi, eax
call fcn.004069fb
mov ecx, dword [ebp - 0x3c4]
xor edx, edx
test ebx, ebx
cmove ecx, edx
cmp byte [ecx + esi*2], dl
jne 0x4f57e3
lea ecx, [ebp - 0x3c4]
call fcn.0041d6d2
mov al, 1
jmp 0x4f5844
xor al, al
call fcn.0050b58c
ret 8
Function at 0x4f584c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0
je 0x4f5933
xor edx, edx
mov dword [ebp - 0x394], 3
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x390], edx
jb 0x4f5890
mov eax, dword [esi]
jmp 0x4f5892
mov eax, esi
lea ecx, [ebp - 0x390]
push ecx
push edx
lea ecx, [ebp - 0x394]
push ecx
push edx
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x4f591e
cmp dword [ebp - 0x394], 3
jne 0x4f591e
test eax, eax
je 0x4f58d7
lea eax, [edi + 8]
push eax
push esi
push str.ORegistryKey.GetValue_failure:_Cannot_get_the_binary_value___s__in_registry_key__s.
push 0x2b
lea ecx, [ebp - 0x38c]
call fcn.004ed8de
jmp 0x4f5946
push dword [ebp - 0x390]
mov ecx, ebx
call fcn.004529a7
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
neg eax
sbb eax, eax
and eax, dword [ebx]
cmp dword [esi + 0x14], 8
jb 0x4f58f9
mov ecx, dword [esi]
jmp 0x4f58fb
mov ecx, esi
lea edx, [ebp - 0x390]
push edx
push eax
lea eax, [ebp - 0x394]
push eax
push 0
push ecx
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4f58be
mov al, 1
jmp 0x4f5920
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050b568
mov esp, ebp
pop ebp
ret 8
push esi
push str.ORegistryKey.GetValue_failure:_Cannot_get_value._The_tregistry_key_is_closed_or_not_set
push 0x3a
lea ecx, [ebp - 0x38c]
call fcn.00407835
push 0x5e5eac
lea eax, [ebp - 0x38c]
push eax
call fcn.0050ce64
int3

Function at 0x4f9127
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x4f9157
lea eax, [edi + 0x10]
push eax
push 0x5c8314
push 3
call fcn.004e2eaf
mov al, 1
jmp 0x4f91b5
push esi
lea esi, [edi + 0x10]
cmp dword [esi + 0x14], 8
jb 0x4f9165
mov eax, dword [esi]
jmp 0x4f9167
mov eax, esi
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [edi + 4], eax
test eax, eax
jne 0x4f91b2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
jne 0x4f9191
cmp byte [ebp + 8], 0
je 0x4f91ae
jmp 0x4f91c6
cmp byte [ebp + 8], 0
je 0x4f91ae
push str.Failed_to_open_mutex
call edi
push eax
push 0x63
lea ecx, [ebp - 0x38c]
call fcn.004e1d9a
jmp 0x4f91d9
xor al, al
jmp 0x4f91b4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0050b568
mov esp, ebp
pop ebp
ret 4
push esi
push str.Attempting_to_open_mutex__s_which_does_not_yet_exist
push 0x14
lea ecx, [ebp - 0x38c]
call fcn.004ed68a
push 0x5e5eac
lea eax, [ebp - 0x38c]
push eax
call fcn.0050ce64
int3
Function at 0x4fc5c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0
je 0x4fc651
cmp dword [esi + 0x10], 0x3fff
jbe 0x4fc5fd
push str.ORegistryKey.SetValue_failure:_Cannot_set_QWORD_value._value_name_is_too_long
push 0x1d
lea ecx, [ebp - 0x38c]
call fcn.0040772f
jmp 0x4fc663
cmp dword [esi + 0x14], 8
jb 0x4fc607
mov eax, dword [esi]
jmp 0x4fc609
mov eax, esi
push 8
lea ecx, [ebp + 0xc]
push ecx
push 0xb
push 0
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4fc63f
lea ecx, [edi + 8]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push esi
push str.ORegistryKey.SetValue_failure:_Cannot_set_QWORD_name___s__value___i__in_registry_key__s
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.004ed975
jmp 0x4fc663
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050b568
mov esp, ebp
pop ebp
ret 0xc
push str.ORegistryKey.SetValue_failure:_Cannot_set_QWORD_value._The_registry_key_is_closed_or_not_set
push 0x3a
lea ecx, [ebp - 0x38c]
call fcn.00407968
push 0x5e5eac
lea eax, [ebp - 0x38c]
push eax
call fcn.0050ce64
int3

Function at 0x4fef6f
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
lea eax, [ebp + 8]
cmp byte [ebp + 8], 0
push eax
mov dword [ebp + 8], esi
je 0x4ff00b
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [0x624824]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4fefc1
push dword [0x624824]
push str.RegCreateKeyEx_failed_on__S_n
call fcn.004ef573
jmp 0x4ff04d
cmp dword [ebp + 8], 2
je 0x4fefd7
push dword [0x624824]
push str.RegCreateKeyEx_didnt_open_preexisting_key__unexpected_:__S_n
call fcn.004ef573
push edi
mov edi, 0x6403c8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push esi
push dword [0x624828]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
test eax, eax
je 0x4ff04d
push str.RegSetValueEx_failed_n
jmp 0x4ff048
push 2
push esi
push dword [0x624824]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4ff030
push dword [0x624824]
push str.RegOpenKeyEx_failed_on__S_n
jmp 0x4fefb7
push dword [0x624828]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4ff04d
push str.RegDeleteValue_failed_n
call fcn.004f90c9
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x500d62
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x101
push ebx
mov edi, str.SoftwareMicrosoftClickToRunOverRide
mov dword [ebp - 4], ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x500de3
lea eax, [ebp - 8]
mov edi, str.AllowJitvInAppvVirtualizedProcess
push eax
push edi
push dword [ebp - 4]
call fcn.005012b1
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Registry_override
test al, al
je 0x500dcc
cmp dword [ebp - 8], ebx
setne bl
call esi
push edi
call esi
test bl, bl
je 0x500dc5
push str._is_enabled.__C2R_JitV_will_run_in_AppV_virtualized_processes._n
jmp 0x500dd6
push str._is_disabled.__C2R_JitV_will_NOT_run_in_AppV_virtualized_processes._n
jmp 0x500dd6
call esi
push edi
call esi
push str._not_found_n
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x500dfa
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Registry_override_key
call esi
push edi
call esi
push str._does_not_exist_n
call esi
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x500e39
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x468]
push ebx
push ecx
push 0x101
xor ebx, ebx
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x480], eax
mov eax, dword [ebp + 0x10]
push str.SoftwareMicrosoftOffice16.0ClickToRunStorePackages
push eax
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x468], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x50105e
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x470]
mov dword [ebp - 0x470], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x501052
mov eax, dword [ebp - 0x470]
test eax, eax
je 0x501052
push esi
mov esi, ebx
push 0x208
lea eax, [ebp - 0x25c]
push ebx
push eax
call fcn.0050e5e3
push 0x4e
lea eax, [ebp - 0x54]
mov dword [ebp - 0x47c], 0x104
push ebx
push eax
call fcn.0050e5e3
add esp, 0x18
mov dword [ebp - 0x484], 0x4e
lea eax, [ebp - 0x484]
mov dword [ebp - 0x478], ebx
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x478]
push eax
push ebx
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x25c]
push eax
push esi
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x500f64
cmp dword [ebp - 0x478], 1
jne 0x500f64
mov eax, dword [ebp - 0x47c]
dec eax
push eax
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x46c]
call fcn.0053a4bc
add esp, 0xc
test eax, eax
je 0x500f76
inc esi
cmp esi, dword [ebp - 0x470]
jb 0x500ecd
jmp 0x501051
mov esi, dword [ebp - 0x480]
xor eax, eax
cmp dword [ebp - 0x474], 0x80000001
push 0xffffffffffffffff
setne al
inc eax
mov dword [esi], eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [esi + 4]
push 0x104
push eax
call fcn.0052fecb
push 0xffffffffffffffff
lea eax, [ebp - 0x54]
add esi, 0x20c
push eax
push 0x27
push esi
call fcn.0052fecb
add esp, 0x20
mov dword [ebp - 0x46c], ebx
lea eax, [ebp - 0x46c]
push eax
push 0x101
push ebx
push esi
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x501051
mov esi, 0x208
lea eax, [ebp - 0x464]
push esi
push ebx
push eax
call fcn.0050e5e3
add esp, 0xc
mov dword [ebp - 0x474], esi
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x464]
push eax
push ebx
push ebx
push str.JitV32
push dword [ebp - 0x46c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x501045
push 0xffffffffffffffff
lea eax, [ebp - 0x464]
push eax
mov eax, dword [ebp - 0x480]
add eax, 0x25a
push 0x104
push eax
call fcn.0052fecb
add esp, 0x10
mov bl, 1
push dword [ebp - 0x46c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0050b568
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5014d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x56a30c]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.0050e5e3
add esp, 0xc
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x20c]
push esi
push 0x2b
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x501546
cmp word [ebp - 0x20c], si
je 0x501546
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
push str.Microsoft_Shared
push eax
call fcn.0050135a
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0050b568
mov esp, ebp
pop ebp
ret 8

Function at 0x507829
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x20]
mov edx, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x507891
and dword [ebp - 0x390], 0
lea ecx, [ebp - 0x390]
push 0
push ecx
push dword [ebp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x507881
push str.write_to_file_failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.004e1d9a
jmp 0x5078a3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050b568
mov esp, ebp
pop ebp
ret 8
push str.trying_to_write_to_a_file_thats_not_opened
push 0x15
lea ecx, [ebp - 0x38c]
call fcn.005077b2
push 0x5e5eac
lea eax, [ebp - 0x38c]
push eax
call fcn.0050ce64
int3
Function at 0x518b3e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x54415a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00543e1a

Function at 0x54aa0a
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push str._MSIExecute
xor ebx, ebx
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
jne 0x54aa30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x54aa3d
mov bl, 1
test esi, esi
je 0x54aa3d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
ret
Function at 0x54b8d6
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, ecx
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x54b90e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0x420
jne 0x54b91a
push str.OService::StartService___Service_instance_already_running
push 2
call fcn.0054b404
cmp byte [edi + 0x14], 0
je 0x54b94a
push esi
mov esi, dword [edi + 0xc]
jmp 0x54b93c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push str.OService::StartService___Failed_to_Start_Service_:_ret___d_:_errCode___d
push 2
call fcn.0054b530
xor al, al
jmp 0x54b94c
add esi, 0xffffffe4
mov ecx, esi
call fcn.0054b8d6
cmp esi, dword [edi + 8]
jne 0x54b932
lea ecx, [edi + 8]
call fcn.0054bdb4
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x54b971
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push esi
push edi
push eax
mov esi, ecx
call fcn.0054b853
mov ecx, dword [ebp - 0x24]
mov byte [ebx], 0
cmp ecx, 1
je 0x54ba5f
cmp byte [esi + 0x14], 0
mov edi, dword [ebp - 0x10]
je 0x54b9b7
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0054ba7a
mov ecx, dword [ebp - 0x24]
mov byte [ebx], 1
cmp ecx, 3
je 0x54ba00
lea eax, [ebp - 0x44]
push eax
push 1
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x54b9fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
cmp eax, 0x426
je 0x54b9f6
lea eax, [ebp - 0x48]
push eax
push str.OService::StopServiceRecursive___Failed_to_control_service_:_errCode___d
push 2
call fcn.0054b4e2
xor al, al
jmp 0x54ba67
mov al, 1
jmp 0x54ba67
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
cmp ecx, 1
je 0x54ba5f
push dword [ebp + 0xc]
call fcn.0054b8bd
test al, al
jne 0x54ba48
cmp edi, 0x2710
jbe 0x54ba24
push 0xa
mov eax, edi
xor edx, edx
pop ecx
div ecx
jmp 0x54ba29
mov eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0054b853
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x10]
cmp ecx, 1
jne 0x54ba05
jmp 0x54ba4b
mov ecx, dword [ebp - 0x24]
cmp ecx, 1
je 0x54ba5f
push str.OService::StopServiceRecursive___Timed_out_waiting_for_service_to_stop
push 2
call fcn.0054b498
mov ecx, dword [ebp - 0x24]
xor eax, eax
cmp ecx, 1
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050b568
mov esp, ebp
pop ebp
ret 8