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

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x10171b0]
push ebx
push esi
push 4
pop esi
push dword [ebp + 0x3b0]
mov dword [ebp + 0x3a4], eax
push 0x105
lea eax, [ebp + 0x198]
xor ebx, ebx
push eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], ebx
call fcn.01003863
test eax, eax
jge 0x10091ec
xor eax, eax
jmp 0x100928c
lea eax, [ebp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
jl 0x10091e5
push ebx
push 0x20019
push esi
mov word [ebp + eax*2 + 0x190], bx
call fcn.0100c898
mov esi, eax
cmp esi, ebx
je 0x10091e5
push edi
push 0x104
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
inc dword [ebp - 0x7c]
mov edi, eax
lea eax, [ebp + 0x198]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x100924b
cmp edi, ebx
je 0x1009218
jmp 0x100924f
cmp edi, ebx
je 0x100925a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x100928b
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push 0x10
push 0x1001b00
lea eax, [ebp - 0x74]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
je 0x100927c
mov dword [ebp - 0x78], ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x78], ebx
setne al
pop edi
mov ecx, dword [ebp + 0x3a4]
pop esi
pop ebx
call fcn.0101209b
add ebp, 0x3a8
leave
ret 4
Function at 0x10095b3
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x10171b0]
push ebx
push esi
push edi
push 0x20019
mov dword [ebp + 0x1a4], eax
mov esi, ecx
call sym.mobsync.dll_RegGetHandlerTopLevelKey
test eax, eax
mov dword [ebp - 0x80], eax
je 0x100969f
and dword [ebp - 0x7c], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, 0x104
push ebx
lea ecx, [ebp - 0x74]
push ecx
push 0
mov dword [esi + 0x62c], 1
push eax
jmp 0x100968c
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x100967e
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x194]
push eax
push dword [esi + 0x634]
call fcn.010038f7
test eax, eax
jne 0x100967e
lea eax, [ebp + 0x194]
push eax
push dword [ebp - 0x78]
push dword [esi + 0x634]
call fcn.010045bc
xor ecx, ecx
cmp eax, ecx
jne 0x1009670
push ecx
push ecx
push 0x100
push ecx
push dword [ebp - 0x78]
push dword [esi + 0x634]
call fcn.01004656
test eax, eax
je 0x100967e
push dword [ebp - 0x78]
push dword [esi + 0x634]
call fcn.0100397a
inc dword [ebp - 0x7c]
push ebx
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
call edi
test eax, eax
je 0x100960c
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x78]
push eax
push 5
push dword [esi + 0x634]
call fcn.0100457e
mov edi, eax
test edi, edi
jne 0x10096f0
lea ebx, [esi + 0x10]
push dword [ebp - 0x78]
push dword [esi + 0x634]
call fcn.01004a1f
push ebx
push dword [ebp - 0x78]
push dword [esi + 0x634]
call fcn.01004038
lea eax, [ebp - 0x78]
push eax
push 5
push dword [ebp - 0x78]
push dword [esi + 0x634]
call fcn.01003bb6
mov edi, eax
test edi, edi
je 0x10096b9
mov ebx, 0x1002c94
push ebx
mov ecx, esi
call fcn.01008891
push ebx
mov ecx, esi
call fcn.01008930
mov ecx, dword [ebp + 0x1a4]
mov eax, edi
dec eax
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebx
call fcn.0101209b
add ebp, 0x1a8
leave
ret
Function at 0x100a455
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x10171b0]
push esi
push 0xf0000000
xor esi, esi
push 0x18
push esi
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x430]
push eax
mov dword [ebp - 0x438], 0x20
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], esi
mov byte [ebp - 0x28], 0x92
mov byte [ebp - 0x27], 4
mov byte [ebp - 0x26], 0xe2
mov byte [ebp - 0x25], 0x86
mov byte [ebp - 0x24], 0x5c
mov byte [ebp - 0x23], 0x48
mov byte [ebp - 0x22], 0x21
mov byte [ebp - 0x21], 0x81
mov byte [ebp - 0x20], 0x75
mov byte [ebp - 0x1f], 0xe6
mov byte [ebp - 0x1e], 0x25
mov byte [ebp - 0x1d], 0x96
mov byte [ebp - 0x1c], 0xda
mov byte [ebp - 0x1b], 0x69
mov byte [ebp - 0x1a], 0x1e
mov byte [ebp - 0x19], 0x39
mov byte [ebp - 0x18], 0x7f
mov byte [ebp - 0x17], 0xb4
mov byte [ebp - 0x16], 0x83
mov byte [ebp - 0x15], 0xfb
mov byte [ebp - 0x14], 1
mov byte [ebp - 0x13], 0xe3
mov byte [ebp - 0x12], 0x87
mov byte [ebp - 0x11], 0x95
mov byte [ebp - 0x10], 0xa7
mov byte [ebp - 0xf], 0xd1
mov byte [ebp - 0xe], 0xe2
mov byte [ebp - 0xd], 0xc7
mov byte [ebp - 0xc], 0xf6
mov byte [ebp - 0xb], 0x7f
mov byte [ebp - 0xa], 0x7d
mov byte [ebp - 9], 0xb1
mov byte [ebp - 8], 0xab
mov byte [ebp - 7], 0xa5
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100a610
push ebx
push edi
lea eax, [ebp - 0x42c]
push eax
push esi
push esi
push 0x800c
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x100a54c
xor edi, edi
jmp 0x100a5ff
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push esi
push 0x22
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x42c]
call edi
test eax, eax
jne 0x100a56c
xor edi, edi
jmp 0x100a5f3
push 0x1001b30
push dword [ebp + 8]
mov dword [ebp - 0x434], esi
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
je 0x100a5d3
push ebx
push 0x400
lea eax, [ebp - 0x428]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, esi
jbe 0x100a5cb
add dword [ebp - 0x434], eax
push esi
push eax
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x42c]
call edi
test eax, eax
je 0x100a61d
cmp dword [ebp - 0x434], 0x3000
jb 0x100a588
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push esi
lea eax, [ebp - 0x438]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor edi, edi
test eax, eax
je 0x100a5f3
inc edi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0101209b
leave
ret 8
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x100a60e
Function at 0x100a642
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10171b0]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x1001b38
xor ebx, ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x30], cl
mov byte [ebp - 0x2f], 2
mov word [ebp - 0x2e], bx
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
lea edi, [ebp - 0x24]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100a72e
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
xor edi, edi
test eax, eax
je 0x100a722
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push ebx
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x100a6d1
xor edi, edi
jmp 0x100a719
push ebx
lea eax, [ebp - 0x34]
push eax
push 3
push dword [ebp + 0xc]
mov dword [ebp - 0x34], edi
call esi
test eax, eax
je 0x100a6cd
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x100a6f9
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp - 0x38]
push ecx
push eax
push ebx
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x100a6cd
push dword [ebp - 0x38]
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101209b
leave
ret 8
Function at 0x100adfd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001bdc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100ae52
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push 0x10000002
push 0x1001bc8
push esi
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueA]
test eax, eax
jne 0x100ae49
inc esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0x7fff0001
add eax, 0x8000ffff
pop esi
leave
ret 8

Function at 0x100b9db
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x10171b0]
push ebx
push esi
push edi
push 0x1001540
xor edi, edi
push edi
push edi
lea ecx, [ebp - 0x80]
mov dword [ebp + 0x194], eax
call fcn.01008619
push 0xffffffffffffffff
lea ecx, [ebp - 0x80]
call fcn.01008663
mov ebx, dword [ebp + 0x1a4]
cmp ebx, edi
je 0x100baa1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100baa1
lea eax, [ebp - 0x70]
push eax
push 0x10008
push edi
push ebx
push dword [ebp + 0x1a0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x100baa6
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x100ba87
cmp esi, edi
jne 0x100ba96
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x70]
call fcn.0100b9db
mov esi, eax
cmp esi, edi
je 0x100ba48
jmp 0x100ba96
push ebx
push dword [ebp + 0x1a0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100baa6
mov esi, 0x3f2
lea ecx, [ebp - 0x80]
call fcn.0100868c
lea ecx, [ebp - 0x80]
call fcn.0100863e
mov ecx, dword [ebp + 0x194]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0101209b
add ebp, 0x198
leave
ret 8
Function at 0x100bad0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x10171b0]
push ebx
push esi
push edi
push 0x1001540
xor esi, esi
push esi
push esi
lea ecx, [ebp - 0x80]
mov dword [ebp + 0x2a4], eax
call fcn.01008619
push 0xffffffffffffffff
lea ecx, [ebp - 0x80]
call fcn.01008663
lea eax, [ebp - 0x6c]
push eax
mov edi, 0x20019
push edi
push esi
push dword [ebp + 0x2d4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push dword [ebp + 0x2b0]
call esi
test eax, eax
jne 0x100bbbf
mov ebx, dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x102
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x2b4]
push eax
call ebx
push 0x81
lea eax, [ebp + 0x1a0]
push eax
lea eax, [ebp + 0x2c4]
push eax
call ebx
lea eax, [ebp - 0x68]
push eax
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x6c]
call esi
test eax, eax
jne 0x100bbb6
lea eax, [ebp - 0x70]
push eax
push edi
push ebx
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x100bbad
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x2d8]
mov dword [ebp - 0x74], 4
push ebx
push 0x10
push 0x1001dac
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
je 0x100bbc3
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x100bbdb
push dword [ebp - 0x6c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x70]
call esi
push dword [ebp - 0x68]
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x80]
call fcn.0100868c
lea ecx, [ebp - 0x80]
call fcn.0100863e
mov ecx, dword [ebp + 0x2a4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0101209b
add ebp, 0x2a8
leave
ret 0x2c
Function at 0x100bc05
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2a4]
sub esp, 0x324
mov eax, dword [0x10171b0]
push esi
push edi
push 0x1001540
push 0
push 0
lea ecx, [ebp - 0x80]
mov dword [ebp + 0x2a0], eax
call fcn.01008619
push 0xffffffffffffffff
lea ecx, [ebp - 0x80]
call fcn.01008663
lea eax, [ebp - 0x70]
push eax
mov edi, 0x2001f
push edi
push dword [ebp + 0x2d0]
push dword [ebp + 0x2ac]
call fcn.0100b6f3
test eax, eax
jne 0x100bce7
mov esi, dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x102
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x2b0]
push eax
call esi
push 0x81
lea eax, [ebp + 0x19c]
push eax
lea eax, [ebp + 0x2c0]
push eax
call esi
lea eax, [ebp - 0x6c]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x70]
call fcn.0100b6f3
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x100bce2
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp + 0x19c]
push eax
push dword [ebp - 0x6c]
call fcn.0100b6f3
test eax, eax
jne 0x100bcdd
push 4
lea eax, [ebp + 0x2d4]
push eax
push 4
push 0
push 0x1001dac
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100bceb
push dword [ebp - 0x6c]
call esi
push dword [ebp - 0x70]
call esi
xor esi, esi
jmp 0x100bd03
push dword [ebp - 0x70]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x74]
call esi
push dword [ebp - 0x6c]
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x80]
call fcn.0100868c
lea ecx, [ebp - 0x80]
call fcn.0100863e
mov ecx, dword [ebp + 0x2a0]
pop edi
mov eax, esi
pop esi
call fcn.0101209b
add ebp, 0x2a4
leave
ret 0x2c

Function at 0x100bd2c
Capabilities:
Delete file
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x10171b0]
mov dword [ebp + 0x3a0], eax
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push 0
push 0x1001de0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100bdc8
push edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0x10000002
push 0x1001dc4
push 0
push dword [ebp - 0x7c]
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
push dword [ebp - 0x7c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x100bdc8
push 0x104
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x3ac]
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x100bdcc
xor eax, eax
jmp 0x100bddc
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x3a0]
call fcn.0101209b
add ebp, 0x3a4
leave
ret 4
Function at 0x100c0c2
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 4
pop ebx
xor esi, esi
push 0x1001540
push esi
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.01008619
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.01008663
push 1
mov edi, 0x2001f
push edi
push 2
call fcn.0100b77c
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x100c1d3
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push esi
mov esi, 0x1001e28
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
neg ecx
sbb ecx, ecx
mov edx, eax
and ecx, 0x40
neg edx
sbb edx, edx
and edx, 8
or ecx, edx
neg eax
sbb eax, eax
and eax, 2
or ecx, eax
mov eax, dword [ebp - 4]
and eax, 0xffffffb0
push ebx
or ecx, eax
lea eax, [ebp - 4]
push eax
push ebx
push 0
push esi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], ecx
call esi
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0x1001cf8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100c1c8
cmp dword [ebp + 8], eax
je 0x100c1b3
mov edi, 0x1001d58
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 2
push 0
push 0x1002260
push dword [ebp - 8]
call esi
jmp 0x100c1c1
push 0x1002260
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
call ebx
jmp 0x100c1d0
push dword [ebp + 8]
call fcn.01013479
xor esi, esi
inc esi
lea ecx, [ebp - 0x20]
call fcn.0100868c
lea ecx, [ebp - 0x20]
call fcn.0100863e
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x100c1ec
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x10171b0]
mov dword [ebp + 0x190], eax
lea eax, [ebp - 0x7c]
push eax
push 0x2001f
push 0
push 0x1001cf8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100c28f
push edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0x10000002
mov edi, 0x1002260
push edi
push 0
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x208
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x100c285
push 0x1001e40
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x100c285
push esi
mov esi, 0x1001d58
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push 2
push 0
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp + 0x190]
xor eax, eax
inc eax
call fcn.0101209b
add ebp, 0x194
leave
ret
Function at 0x100c2a5
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
push 0x1001540
push edi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
mov dword [ebp - 8], 4
call fcn.01008619
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.01008663
push 1
push 0x2001f
push 2
call fcn.0100b77c
mov ebx, eax
cmp ebx, edi
je 0x100c32f
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x10
mov esi, 0x1001e28
push esi
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0x10
and ecx, 0x2f
or eax, ecx
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
pop esi
lea ecx, [ebp - 0x14]
call fcn.0100868c
lea ecx, [ebp - 0x14]
call fcn.0100863e
mov eax, edi
pop edi
pop ebx
leave
ret 4

Function at 0x100c347
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 4
pop ebx
xor edi, edi
push edi
push 0x20019
push 2
mov dword [ebp - 4], ebx
mov dword [eax], edi
call fcn.0100b77c
cmp eax, edi
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
mov dword [ebp - 0xc], eax
je 0x100c3d1
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push edi
push 0x10
push 0x1001e90
push edi
push eax
call esi
test eax, eax
jne 0x100c39c
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp - 8], edi
setne cl
or dword [eax], ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x10
push 0x1001e80
push edi
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x100c3c8
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
neg ecx
sbb ecx, ecx
and ecx, 2
or dword [eax], ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0x20019
push 3
call fcn.0100b77c
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x100c417
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push edi
push 0x10
push 0x1001e68
push edi
push eax
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x100c40e
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
neg ecx
sbb ecx, ecx
and ecx, ebx
or dword [eax], ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4
Function at 0x100c4e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x10171b0]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push edi
mov edi, 0x104
mov dword [ebp + 0x19c], eax
push edi
xor ebx, ebx
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], ebx
push ebx
jmp 0x100c574
lea eax, [ebp - 0x78]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0x1a8]
mov dword [ebp - 0x80], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100c569
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0x10
push 0x1002784
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x100c560
mov eax, dword [ebp - 0x7c]
or dword [ebp - 0x70], eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x74]
push edi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp + 0x1a8]
call esi
test eax, eax
je 0x100c517
and dword [ebp - 0x70], 7
push 4
lea eax, [ebp - 0x70]
push eax
push 4
push ebx
push 0x1002784
push dword [ebp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x1a8]
call fcn.0100c46a
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
pop ebx
call fcn.0101209b
add ebp, 0x1a0
leave
ret 4

Function at 0x100c5c1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10171b0]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov esi, 0x20019
xor ebx, ebx
push esi
mov dword [eax], ebx
call sym.mobsync.dll_RegGetHandlerTopLevelKey
cmp eax, ebx
mov dword [ebp - 0x10c], eax
jne 0x100c5f4
xor eax, eax
jmp 0x100c663
push edi
push 0x81
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromGUID2]
push ebx
push esi
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call fcn.0100b91d
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, ebx
je 0x100c658
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 8], 4
push ebx
push 0x10
push 0x1002784
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
push edi
mov dword [ebp + 0xc], eax
call esi
xor eax, eax
cmp dword [ebp + 0xc], ebx
sete al
mov ebx, eax
push dword [ebp - 0x10c]
call esi
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0101209b
leave
ret 8