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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x462074]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x463034], 0
jne 0x404967
and dword [ebp - 0x6c], 0
lea eax, [ebp - 0x6c]
push esi
push eax
push 0x20019
push ecx
mov edx, str.SOFTWAREMicrosoftInternet_Explorer
mov dword [ebp - 0x70], 0x64
mov ecx, 0x80000002
call fcn.0040c5c8
xor esi, esi
inc esi
test eax, eax
jne 0x404951
movzx eax, byte [ebp - 0x68]
xor ecx, ecx
cmp dword [ebp - 0x74], esi
cmove eax, ecx
mov byte [ebp - 0x68], al
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x74]
push eax
push ecx
push str.Version
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404951
cmp word [ebp - 0x68], ax
je 0x404951
push 0xa
pop edx
lea ecx, [ebp - 0x68]
call fcn.0040c2a0
mov ecx, dword [0x463030]
cmp eax, 4
cmova ecx, esi
mov dword [0x463030], ecx
cmp dword [ebp - 0x6c], 0
mov dword [0x463034], esi
pop esi
je 0x404967
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [0x463030]
xor ecx, ebp
call fcn.0043182e
leave
ret

Function at 0x404978
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x462074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov edi, ecx
push 0x20
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], esi
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404a27
cmp word [ebp - 0x210], si
je 0x404a27
lea eax, [ebp - 0x210]
mov ecx, esi
lea eax, [eax + 2]
inc ecx
cmp word [eax], si
jne 0x4049c6
push ecx
lea edx, [ebp - 0x210]
mov ecx, edi
call fcn.0040bf47
test eax, eax
je 0x404a27
push esi
push 0x10
push 0x401fad
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_DdeInitializeW]
mov edx, dword [ebp - 0x214]
mov ecx, edi
call fcn.00404a37
mov esi, eax
test esi, esi
jne 0x404a12
mov ecx, edi
call fcn.00404c4d
mov esi, eax
cmp dword [ebp - 0x214], 0
je 0x404a27
push dword [ebp - 0x214]
call dword [sym.imp.USER32.dll_DdeUninitialize]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0043182e
leave
ret
Function at 0x405b49
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
mov eax, dword [0x462074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x504], edx
push esi
mov esi, dword [ebp + 8]
mov ebx, eax
push edi
mov dword [ebp - 0x4fc], eax
mov edi, 0x20019
mov dword [ebp - 0x4f8], eax
mov edx, ecx
mov dword [ebp - 0x4f0], eax
mov dword [ebp - 0x4f4], eax
lea eax, [ebp - 0x4fc]
push eax
push edi
push ecx
mov ecx, Ordinal_1
call fcn.0040c5c8
test eax, eax
jne 0x405d48
lea eax, [ebp - 0x4f8]
mov edx, str.CurVer
push eax
push edi
push ecx
mov ecx, dword [ebp - 0x4fc]
call fcn.0040c5c8
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405c4e
movzx eax, byte [ebp - 0xd0]
xor ecx, ecx
cmp dword [ebp - 0x4ec], 1
mov dword [ebp - 0x500], 0xca
cmove eax, ecx
mov byte [ebp - 0xd0], al
lea eax, [ebp - 0x500]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x4ec]
push eax
push ecx
push ecx
push dword [ebp - 0x4f8]
call edi
test eax, eax
jne 0x405c4e
cmp dword [ebp - 0x4ec], 1
jne 0x405d48
cmp word [ebp - 0xd0], bx
je 0x405c4e
lea eax, [ebp - 0x4f0]
push eax
push 0x20019
push ecx
lea edx, [ebp - 0xd0]
mov ecx, Ordinal_1
call fcn.0040c5c8
test eax, eax
jne 0x405d48
push 0x105
mov edx, 0x437434
lea ecx, [ebp - 0x2dc]
call fcn.0040bfdc
mov edx, dword [ebp - 0x504]
lea ecx, [ebp - 0x2dc]
push 0x105
call fcn.0040c02b
push 0x105
mov edx, 0x4378fc
lea ecx, [ebp - 0x2dc]
call fcn.0040c02b
cmp dword [ebp - 0x4f0], ebx
lea eax, [ebp - 0x4f4]
mov ecx, dword [ebp - 0x4fc]
lea edx, [ebp - 0x2dc]
cmovne ecx, dword [ebp - 0x4f0]
push eax
push 0x20019
push ecx
call fcn.0040c5c8
test eax, eax
jne 0x405d48
cmp dword [ebp - 0x4ec], 1
mov dword [ebp - 0x508], 0x208
jne 0x405cda
test esi, esi
je 0x405cda
mov byte [esi], bl
lea eax, [ebp - 0x508]
push eax
push esi
lea eax, [ebp - 0x4ec]
push eax
push 0
push 0
push dword [ebp - 0x4f4]
call edi
test eax, eax
jne 0x405d48
cmp dword [ebp - 0x4ec], 1
je 0x405d0b
cmp dword [ebp - 0x4ec], 2
jne 0x405d0e
xor eax, eax
inc eax
test eax, eax
je 0x405d48
cmp dword [ebp - 0x4ec], 2
jne 0x405d45
mov edi, 0x104
lea ecx, [ebp - 0x4e8]
push edi
mov edx, esi
call fcn.0040bfdc
push edi
push esi
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x405d48
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x4f4], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x405d5f
push dword [ebp - 0x4f4]
call esi
and dword [ebp - 0x4f4], 0
cmp dword [ebp - 0x4f0], 0
je 0x405d77
push dword [ebp - 0x4f0]
call esi
and dword [ebp - 0x4f0], 0
cmp dword [ebp - 0x4f8], 0
je 0x405d8f
push dword [ebp - 0x4f8]
call esi
and dword [ebp - 0x4f8], 0
cmp dword [ebp - 0x4fc], 0
je 0x405da7
push dword [ebp - 0x4fc]
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043182e
leave
ret 8
Function at 0x407a55
Capabilities:
Delete registry value

Disassembly:
push 0x20
mov eax, 0x433680
call fcn.00432eba
mov ebx, edx
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov edi, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x18]
mov edx, str.SOFTWARE
push eax
lea eax, [ebp - 0x28]
push eax
sub esp, 0x14
call fcn.0040c622
test eax, eax
jne 0x407b7e
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
mov edx, 0x437a8c
push eax
sub esp, 0x14
call fcn.0040c622
test eax, eax
jne 0x407b7e
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
mov edx, str.Internet_Explorer
push eax
sub esp, 0x14
call fcn.0040c622
test eax, eax
jne 0x407b7e
cmp dword [ebp + 8], edi
mov eax, str.Default_HTML_Editor
mov ecx, dword [ebp - 0x14]
mov esi, str.Default_MHTML_Editor
cmove esi, eax
mov edx, esi
call fcn.0040976b
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
mov edx, esi
push eax
sub esp, 0x14
call fcn.0040c622
test eax, eax
jne 0x407b7e
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
mov edx, 0x437ac4
push eax
sub esp, 0x14
call fcn.0040c622
test eax, eax
jne 0x407b7e
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
mov edx, 0x437398
push eax
sub esp, 0x14
call fcn.0040c622
test eax, eax
jne 0x407b7e
push str.Description
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 0x1c]
xor esi, esi
push esi
mov ecx, ebx
call fcn.004093b6
call fcn.004048b7
test eax, eax
je 0x407b7b
push esi
push esi
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
xor edi, edi
inc edi
cmp dword [ebp - 0x1c], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x407b8f
push dword [ebp - 0x1c]
call esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x20], ebx
je 0x407b9e
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x10], ebx
je 0x407bab
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x407bb8
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x24], ebx
je 0x407bc5
push dword [ebp - 0x24]
call esi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x28], ebx
je 0x407bd2
push dword [ebp - 0x28]
call esi
mov eax, edi
call fcn.00432e8e
ret 4
Function at 0x4098ff
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov eax, ecx
mov ebx, edx
xor edx, edx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 4]
mov dword [ebp - 4], edx
push ecx
push edx
lea ecx, [ebp - 8]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 8]
test eax, eax
jne 0x409937
cmp edx, 1
jne 0x409937
mov ecx, dword [ebp - 4]
jmp 0x409939
xor ecx, ecx
mov edi, dword [ebp + 0xc]
mov eax, 0x208
mov esi, dword [ebp + 8]
cmp ecx, eax
cmovb ecx, eax
add ecx, 2
mov dword [ebp - 4], ecx
cmp ecx, dword [edi]
jbe 0x409982
cmp dword [esi], 0
je 0x409968
mov ecx, dword [esi]
call fcn.00401cf4
and dword [esi], 0
and dword [edi], 0
mov ecx, dword [ebp - 4]
call fcn.00401cbf
mov dword [esi], eax
test eax, eax
je 0x4099b3
mov eax, dword [ebp - 4]
xor ecx, ecx
mov dword [edi], eax
mov eax, dword [esi]
mov word [eax], cx
mov edx, dword [ebp - 8]
mov eax, dword [esi]
cmp edx, 1
jne 0x409990
test eax, eax
je 0x409990
mov byte [eax], 0
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4099b0
mov ecx, dword [esi]
xor edx, edx
mov word [ecx], dx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409e8a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov ebx, edx
mov eax, ecx
xor esi, esi
mov dword [ebp - 0x14], ebx
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], esi
call fcn.0040bd8c
mov ecx, ebx
mov dword [ebp - 8], eax
call fcn.00409e35
mov ebx, eax
mov edi, 0x4367f0
test ebx, ebx
cmovne edi, ebx
xor eax, eax
cmp word [edi], ax
je 0x409ef5
mov eax, edi
push dword [ebp - 8]
mov edx, dword [ebp - 0xc]
lea ecx, [eax + 2]
cmp eax, edi
mov dword [ebp - 0x10], ecx
cmova eax, ecx
mov ecx, eax
call fcn.0040bf47
test eax, eax
jne 0x409f68
mov ecx, dword [ebp - 0x10]
push 0x3b
pop edx
call fcn.0040bda3
test eax, eax
jne 0x409ec6
mov edx, dword [ebp - 8]
mov ecx, edi
lea edx, [edx + 2]
call fcn.0040c06a
mov esi, eax
test esi, esi
je 0x409f68
mov ecx, esi
call fcn.0040bd8c
mov dword [ebp - 0x10], eax
lea ecx, [esi + eax*2]
cmp ecx, esi
jbe 0x409f22
push 0x3b
pop eax
mov word [ecx], ax
add ecx, 2
mov edi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
lea eax, [edi + 1]
push eax
call fcn.0040bfdc
push 1
push dword [ebp - 0x14]
lea edx, [ebp - 4]
mov ecx, 0x80000002
call fcn.00406277
test eax, eax
je 0x409f68
mov eax, dword [ebp - 0x10]
add eax, edi
lea eax, [eax*2 + 2]
push eax
push esi
push 1
xor eax, eax
push eax
push str.KnownIDs
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
je 0x409f73
mov ecx, ebx
call fcn.00401cf4
test esi, esi
je 0x409f7e
mov ecx, esi
call fcn.00401cf4
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x409f90
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x40c470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x462074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x220]
push edi
push eax
push 0x20219
xor ebx, ebx
mov edi, str.SoftwareMicrosoftOffice16.0common_filespaths
push ebx
push edi
push 0x80000002
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
call esi
test eax, eax
jne 0x40c591
lea eax, [ebp - 0x21c]
push eax
push 0x20119
push ebx
push edi
push 0x80000002
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40c589
movzx eax, byte [ebp - 0x210]
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x218], 0x20a
inc edx
mov esi, ebx
cmp dword [ebp - 0x214], edx
cmove eax, ecx
mov byte [ebp - 0x210], al
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push str.mso.dll
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c57f
cmp dword [ebp - 0x214], 1
jne 0x40c57f
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x20a
push eax
lea eax, [ebp - 0x210]
mov byte [ebp - 0x210], bl
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push str.mso.dll
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c57f
inc eax
cmp dword [ebp - 0x214], eax
cmove esi, eax
push dword [ebp - 0x21c]
call edi
mov ebx, esi
push dword [ebp - 0x220]
call edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043182e
leave
ret
Function at 0x40d580
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x50]
push 0x3c
push 0
push eax
mov esi, edx
mov ebx, ecx
or edi, 0x40
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x40], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
mov dword [ebp - 0x50], 0x3c
sete al
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x24], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x40d5e3
cmp dword [ebp - 0x18], 0
je 0x40d5e3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x14], vtable.Mso::Logging::StructuredObject_unsigned_int__1_.0
mov word [ebp - 8], ax
mov edx, 0x851
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], str.Param
push eax
push str.HevShellExecuteEx_
push 0x64
mov ecx, 0x170b0c6
mov dword [ebp - 0xc], esi
call fcn.00401c18
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40fc29
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov ecx, 0x811c9dc5
cmp dword [ebp + 8], esi
jbe 0x40fc4c
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc esi
cmp esi, dword [ebp + 8]
jb 0x40fc3a
mov eax, ecx
pop esi
leave
ret 4

Function at 0x41115e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
push 0xffff
push edx
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, dword [ebp - 4]
mov ecx, eax
mov edx, dword [ebp + 0xc]
push 2
pop ebx
cmp esi, ebx
jae 0x4111a4
cmp edx, 1
je 0x4111a2
cmp edx, ebx
jne 0x4111a4
mov ecx, ebx
call fcn.004104e3
test eax, eax
jne 0x4111e5
test ecx, ecx
jne 0x4111e5
cmp edx, ebx
je 0x4111ba
cmp edx, 1
jne 0x4111c6
shr esi, 1
xor eax, eax
mov word [edi + esi*2 - 2], ax
mov edx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x10]
cmp edx, eax
je 0x4111e5
sub edx, 1
je 0x4111df
sub edx, 1
jne 0x4111e3
cmp eax, 1
jne 0x4111e3
jmp 0x4111e5
cmp eax, ebx
je 0x4111e5
mov ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
leave
ret 0xc
Function at 0x4117b9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov ebx, ecx
mov edi, 0x4395d0
mov cl, byte [edi]
or esi, 0xffffffff
mov edx, ebx
mov dword [ebp - 0xc], esi
call fcn.0041122e
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x4118de
push ecx
push 0x463e78
lea ecx, [ebp - 0x34]
call fcn.0040f52e
xor esi, esi
cmp esi, 4
jge 0x4118d3
movzx eax, byte [ebx + 0x14]
lea ecx, [ebp - 0x28]
mov edx, dword [ebx + 0x10]
and dword [ebp - 8], 0
push 0
push eax
push dword [ebp - 0x14]
mov byte [ebp - 1], 0
push 0
call fcn.00410686
lea ecx, [ebp - 8]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x20]
push eax
call fcn.004124ef
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x411847
and dword [ebp - 0x24], 0
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0xc], 0
jne 0x4118b8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
push dword [ebp - 0x18]
mov dword [ecx], eax
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 8]
push ecx
push 0
push dword [ebx]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
mov dword [ebp - 0xc], ecx
call fcn.004104e3
test eax, eax
je 0x411889
mov ecx, dword [ebx + 0x10]
call fcn.00410500
mov byte [ebp - 1], 1
jmp 0x4118b8
test ecx, ecx
jne 0x4118b8
movzx ecx, word [ebx + 0x18]
mov eax, ecx
and eax, 0xf
cmp dword [ebp - 0x10], eax
je 0x4118f4
cmp dword [ebp - 0x10], 3
jne 0x4118b1
mov eax, dword [ebp + 0xc]
cmp dword [eax], 4
jne 0x4118b1
and cl, 0xf
cmp cl, 4
je 0x4118f4
mov dword [ebp - 0xc], 2
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4118c8
and dword [ebp - 8], 0
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp byte [ebp - 1], 0
jne 0x4117fa
lea ecx, [ebp - 0x34]
call fcn.0040f504
mov esi, dword [ebp - 0xc]
inc edi
cmp edi, 0x4395d3
jne 0x4117d0
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x411904
and dword [ebp - 8], 0
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x34]
call fcn.0040f504
xor eax, eax
jmp 0x4118ed

Function at 0x412a3b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], 0x20a
mov word [eax], dx
lea edx, [ebp - 4]
push edx
push eax
push 0
push 2
push str.mso.dll
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
neg eax
sbb al, al
inc al
leave
ret 8
Function at 0x41319d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, ecx
push eax
push 0x20019
push 0
push str.CLSID
push Ordinal_1
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x413234
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 8]
call edi
test eax, eax
jne 0x413229
push 4
pop edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4399f8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413229
cmp dword [ebp - 0xc], edi
jne 0x413229
mov edi, dword [ebp - 0x10]
cmp edi, 3
ja 0x413229
cmp dword [ebp - 4], eax
je 0x413236
push dword [ebp - 4]
call esi
jmp 0x413236
cmp dword [ebp - 4], 0
je 0x413234
push dword [ebp - 4]
call esi
xor edi, edi
cmp dword [ebp - 8], 0
je 0x413241
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413514
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x4634c4], 0
je 0x413529
mov eax, dword [0x4634c0]
leave
ret
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413577
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x4634c0
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413577
cmp dword [ebp - 8], 4
je 0x4135d0
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
test eax, eax
je 0x413588
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4135d8
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x4634c0
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4135d8
cmp dword [ebp - 8], 4
jne 0x4135d8
mov esi, dword [0x4634c0]
jmp 0x4135de
mov dword [0x4634c0], esi
cmp dword [ebp - 4], 0
mov al, 1
mov byte [0x4634c4], al
je 0x4135f4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x4153e6
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, edx
mov dword [ebp - 4], ecx
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [ebp + ecx - 4]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x4153f9
push edx
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040f803
mov eax, dword [eax + 4]
test eax, eax
jne 0x415426
mov eax, dword [esi + 4]
xor edx, edx
lea ecx, [eax + 0x10]
cmp eax, dword [esi + 4]
pop esi
cmovne edx, ecx
mov eax, edx
leave
ret

Function at 0x415874
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, word [eax]
mov dword [ebp + 8], eax
movzx eax, byte [ebp + ecx + 8]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 2
jb 0x415887
mov eax, edx
pop ebp
ret 4
Function at 0x41addb
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433d39
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x462074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push dword [ebp + 8]
call fcn.0040e126
push dword [ebp + 0xc]
lea ecx, [ebx + 0x18]
call fcn.0040e126
push dword [ebp + 0x10]
lea ecx, [ebx + 0x30]
call fcn.0040e126
mov al, byte [ebp + 0x14]
lea edi, [ebx + 0x50]
mov byte [ebx + 0x48], al
mov al, byte [ebp + 0x18]
mov esi, dword [ebp + 0x28]
mov byte [ebx + 0x49], al
mov al, byte [ebp + 0x1c]
mov byte [ebx + 0x4a], al
mov al, byte [ebp + 0x20]
mov byte [ebx + 0x4b], al
mov al, byte [ebp + 0x24]
mov byte [ebx + 0x4c], al
push 8
pop eax
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x2c]
lea edi, [ebx + 0x70]
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x30]
lea edi, [ebx + 0x90]
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x34]
lea edi, [ebx + 0xb0]
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x38]
lea edi, [ebx + 0xd0]
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x3c]
lea edi, [ebx + 0xf0]
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x40]
lea edi, [ebx + 0x110]
mov ecx, eax
mov al, byte [ebp + 0x44]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x48]
lea edi, [ebx + 0x131]
mov byte [ebx + 0x130], al
mov eax, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x44

Function at 0x41b599
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push esi
push edi
push eax
mov edi, ecx
mov dword [ebp - 0x18], 1
push ecx
mov ecx, 0x20019
mov dword [ebp - 0x1c], vtable.Mso::Registry::Key.0
mov esi, edx
mov byte [ebp - 0x10], 1
call fcn.00412c29
pop ecx
push eax
push 0
push esi
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41b629
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], ecx
push eax
push ecx
push str.SendTelemetry
push dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b629
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov byte [edi + 4], 1
jmp 0x41b630
and dword [edi], 0
mov byte [edi + 4], 0
cmp byte [ebp - 0x10], 0
mov dword [ebp - 0x1c], vtable.Mso::Registry::Key.0
je 0x41b64c
cmp dword [ebp - 0x14], 0
je 0x41b64c
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret