joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54d420
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0060bd60
mov eax, dword [0x77e784]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
call fcn.00469640
push ebx
push 0
push edi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
test esi, esi
jne 0x54d4b2
push 0xffd
lea edx, [ebp - 0x1004]
or ecx, 1
push edx
push eax
push ecx
call fcn.0061bdc7
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
jle 0x54d483
lea eax, [ebp + eax - 0x1004]
jmp 0x54d48b
cmp eax, 0xffffffff
jne 0x54d4c3
lea eax, [ebp - 7]
mov word [eax], 0xa0d
mov byte [eax + 2], 0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060bd4a
mov esp, ebp
pop ebp
ret
push esi
push eax
push ecx
call fcn.0061bcf6
push esi
call fcn.00625ed0
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0060bd4a
mov esp, ebp
pop ebp
ret
Function at 0x5525e0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68be68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x77e784]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x55261a
mov byte [esi + 0xc], 1
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea edi, [esi + 8]
push edi
push 0x6d69dc
push 1
push 0
push 0x6d69cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x55271d
cmp dword [edi], 0
je 0x5526f7
push 0x6d6a50
lea ecx, [ebp - 0x10]
call fcn.0048a740
mov eax, dword [eax]
mov dword [ebp - 4], 0
test eax, eax
je 0x55267b
mov ebx, dword [eax]
jmp 0x55267d
xor ebx, ebx
mov ecx, dword [edi]
lea eax, [esi + 4]
push eax
push 0
push 0
mov edx, dword [ecx]
push 0
push 0
push 0
push 0
push ebx
push ecx
call dword [edx + 0xc]
mov edi, dword [ebp - 0x10]
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x5526f4
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x5526ed
test edi, edi
je 0x5526ed
mov eax, dword [edi]
test eax, eax
je 0x5526cb
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x5526e2
push eax
call fcn.0060b8f9
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.0060b8e2
add esp, 8
mov dword [ebp - 0x10], 0
lea edi, [esi + 8]
test ebx, ebx
js 0x55271d
mov eax, dword [esi + 4]
test eax, eax
je 0x552719
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebx, eax
test ebx, ebx
jns 0x552753
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x55272a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x552736
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp byte [esi + 0xc], 0
je 0x552742
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esi + 4], 0
mov dword [edi], 0
mov byte [esi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x557b40
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68c6a7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x77e784]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], 0
je 0x557b95
mov dword [ebx], 0x6d7480
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
lea esi, [ebx + 0x10]
mov ecx, ebx
push 0
push esi
mov dword [ebp + 0xc], esi
call fcn.00495fb0
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + ebx - 4], eax
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0060b8b2
mov esi, eax
add esp, 4
test esi, esi
je 0x557bf2
push 1
mov byte [ebp - 4], 2
call fcn.005f9024
add esp, 4
mov dword [esi + 4], eax
jmp 0x557bf4
xor esi, esi
lea eax, [ebx + 0x10]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea edx, [eax + 0x24]
mov dword [eax + 0x2c], edx
lea edi, [eax + 0x14]
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov dword [esi], 0
mov esi, dword [ebp + 0xc]
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [edi], 0
not ecx
mov dword [edx], 0
and ecx, 2
mov eax, ebx
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov edx, ecx
mov dword [esi + 0x38], 0
or edx, 8
and al, 8
cmove edx, ecx
mov eax, edx
or eax, 0x10
and bl, 4
cmove eax, edx
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x568880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x77e784]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x56893a
cmp byte [esi + 0x3d], 0
je 0x56893a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x568928
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x5688f0
sub eax, 1
je 0x5688f4
sub eax, 2
jne 0x568928
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060bd4a
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x568911
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0062728f
add esp, 0x10
cmp edi, eax
jne 0x568928
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060bd4a
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060bd4a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0060bd4a
mov esp, ebp
pop ebp
ret
Function at 0x568d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x77e784]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x568da0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060bd4a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x568ddc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x568ddc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060bd4a
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x568ec1
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x568e04
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x568e37
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00623825
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060bd4a
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x568ec1
cmp eax, 1
jle 0x568e94
cmp eax, 3
jne 0x568ec1
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00564420
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060bd4a
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x568eb1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0062728f
add esp, 0x10
cmp edi, eax
jne 0x568ec1
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x568dc7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0060bd4a
mov esp, ebp
pop ebp
ret 4
Function at 0x56f300
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.0060bd60
mov eax, dword [0x77e784]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x56f39f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x56f39f
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0x100
push eax
call fcn.00469640
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0061bdc7
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [esp + 4]
push 0
push ecx
test eax, eax
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0060bd4a
add esp, 0x108
ret
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0xff
push eax
call fcn.00469640
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0061bdc7
add esp, 0x1c
mov byte [esp + 0x107], 0
call fcn.0056f1c0
test eax, eax
jle 0x56f433
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x56f447
push 0
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
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
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0060bd4a
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.0060bd4a
add esp, 0x108
ret
Function at 0x57cee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push edi
push eax
push 1
push 0
push str.SOFTWAREPoliciesAdobeAdobe_Acrobat11.0FeatureLockdown
xor bl, bl
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], ebx
call esi
mov edi, 1
test eax, eax
jne 0x57cf4b
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.bGoCart
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x57cf4b
cmp dword [ebp - 0x14], eax
movzx ebx, bl
cmove ebx, edi
mov dword [ebp - 8], ebx
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
lea eax, [ebp - 4]
xor bl, bl
push eax
push 1
push 0
push str.SOFTWAREPoliciesAdobeAdobe_Acrobat2015FeatureLockdown
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
jne 0x57cfb2
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.bGoCart
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x57cfb2
cmp dword [ebp - 0x18], eax
mov eax, 1
movzx ebx, bl
cmove ebx, eax
mov dword [ebp - 0xc], ebx
push dword [ebp - 4]
call edi
lea eax, [ebp - 4]
xor bl, bl
push eax
push 1
push 0
push str.SOFTWAREPoliciesAdobeAdobe_AcrobatDCFeatureLockdown
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], ebx
call esi
test eax, eax
jne 0x57d013
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.bGoCart
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x57d013
cmp dword [ebp - 0x1c], eax
mov eax, 1
movzx ebx, bl
cmove ebx, eax
mov dword [ebp - 0x10], ebx
push dword [ebp - 4]
call edi
lea eax, [ebp - 4]
xor bl, bl
push eax
push 1
push 0
push str.SOFTWAREPoliciesAdobeAdobe_Acrobat2017FeatureLockdown
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x57d06e
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.bGoCart
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x57d06e
cmp dword [ebp - 0x14], eax
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push dword [ebp - 4]
call edi
cmp byte [ebp - 8], 0
jne 0x57d092
cmp byte [ebp - 0xc], 0
jne 0x57d092
cmp byte [ebp - 0x10], 0
jne 0x57d092
test bl, bl
jne 0x57d092
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57d160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x77e784]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x408]
push eax
push 0
push 0x400
push 0x715358
mov dword [ebp - 0x408], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x57d227
push 0x400
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.0060e250
push 0x400
push dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push eax
call fcn.0061c4de
lea eax, [ebp - 0x404]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x57d1d6
sub eax, edx
mov ecx, esi
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.004753c0
push 1
push 0x6c2824
mov ecx, esi
call fcn.00475240
push 0xb
push str.AdobeGCInfo
mov ecx, eax
call fcn.00475240
push dword [ebp - 0x408]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060bd4a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0060bd4a
mov esp, ebp
pop ebp
ret

Function at 0x57d330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x101
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x57d408
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x57d3ea
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x57d380
cmp eax, dword [ebp - 0x10]
jne 0x57d3fb
mov esi, dword [ebx]
push edi
mov edi, dword [ebp + 0x18]
mov byte [ebp - 1], 0
mov eax, dword [edi + 4]
mov ecx, eax
mov edx, dword [edi]
sub ecx, edx
mov dword [ebp - 0xc], eax
cmp esi, ecx
jae 0x57d39f
lea eax, [edx + esi]
jmp 0x57d3cd
jbe 0x57d3d0
mov eax, dword [edi + 8]
sub eax, edx
cmp esi, eax
jbe 0x57d3b8
lea eax, [ebp - 1]
mov ecx, edi
push eax
push esi
call fcn.0057c8e0
jmp 0x57d3d0
sub esi, ecx
push esi
push 0
push dword [ebp - 0xc]
call fcn.0060e250
mov eax, dword [ebp - 0xc]
add esp, 0xc
add eax, esi
mov dword [edi + 4], eax
push ebx
push dword [edi]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
pop edi
test esi, esi
je 0x57d3fb
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57d710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.0060bd60
mov eax, dword [0x77e784]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1404]
push 0x1000
push 0
push eax
xor bl, bl
mov dword [ebp - 0x1410], 1
mov dword [ebp - 0x1408], 0
call fcn.0060e250
add esp, 0xc
mov dword [ebp - 0x140c], 0x400
lea eax, [ebp - 0x1408]
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x57d826
lea eax, [ebp - 0x140c]
push eax
lea eax, [ebp - 0x1404]
push eax
lea eax, [ebp - 0x1410]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x1408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x57d81a
mov eax, dword [ebp - 0x140c]
dec eax
cmp eax, 0x3fe
ja 0x57d81a
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0060e250
push 0x400
lea eax, [ebp - 0x1404]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.0061c4de
lea edx, [ebp - 0x404]
add esp, 0x18
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x57d800
sub edx, ecx
lea eax, [ebp - 0x404]
push edx
push eax
mov ecx, esi
call fcn.004753c0
mov bl, 1
push dword [ebp - 0x1408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0060bd4a
mov esp, ebp
pop ebp
ret
Function at 0x57e5a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x690b98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x77e784]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [esi + 4]
mov esi, dword [esi]
mov dword [ebp + 0x14], eax
cmp esi, eax
je 0x57e63e
nop dword [eax]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x57e629
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x57e601
mov edi, dword [esi]
mov edx, esi
jb 0x57e607
mov edx, dword [esi]
push dword [ebp + 0x14]
inc ecx
lea eax, [edi + ecx*2]
push eax
push edx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0057c740
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
inc edx
add edx, dword [esi + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], edx
add esi, 0x18
cmp esi, eax
jne 0x57e5f0
mov esi, dword [ebp - 0x14]
cmp ebx, esi
je 0x57e63e
xor eax, eax
mov word [ebx], ax
jmp 0x57e64f
push 0x6eb1dc
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0057c670
mov esi, dword [ebp - 0x14]
push 0
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [ebp - 0x1c]
mov ebx, eax
test ebx, ebx
jne 0x57e6a9
mov eax, dword [ebp - 0x10]
lea eax, [eax*2 + 2]
push eax
push edi
push 7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
jne 0x57e6a9
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x57e6d6
sub esi, edi
mov eax, edi
and esi, 0xfffffffe
cmp esi, 0x1000
jb 0x57e6cc
mov edi, dword [edi - 4]
add esi, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x57e6ea
push esi
push edi
call fcn.0060b8e2
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0061777f
int3
Function at 0x57ecc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
xor ecx, ecx
push 0
mov dword [ebp + 0x14], 0
cmp byte [eax], cl
lea eax, [ebp + 0x14]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 0xc]
setne cl
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x57ed20
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x57ed20
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x57f820
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x77e784]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 8
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x57f89e
call esi
cmp eax, 0x3f0
jne 0x57f87f
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x57f89e
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060bd4a
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x57f888
call esi
cmp eax, 0x7a
jne 0x57f888
mov esi, dword [ebp - 0x18]
mov eax, esi
call fcn.0060cc10
mov ebx, esp
test ebx, ebx
je 0x57f888
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x57f888
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x222
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x57f888
xor esi, esi
mov byte [ebp - 0xd], 0
cmp dword [ebx], esi
jbe 0x57f930
lea edi, [ebx + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x57f92c
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x57f913
jmp 0x57f930
mov byte [ebp - 0xd], 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xd]
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060bd4a
mov esp, ebp
pop ebp
ret