joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100409d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push edi
lea ebx, [ecx + eax + 0x18]
jbe 0x100417f
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x100411a
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x100416a
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push edi
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x1004189
mov edx, dword [ebx - 4]
add edx, dword [ebp - 4]
mov ecx, edi
mov dword [ebx - 8], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x100416a
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.01004085
test eax, eax
je 0x1004189
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx]
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x1004189
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
add eax, dword [ebp - 4]
mov esi, dword [ebx + 4]
add esi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov dword [ebx - 8], eax
mov eax, dword [esi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add ebx, 0x28
cmp dword [ebp - 8], eax
jl 0x10040ca
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x1004182
Function at 0x1004edf
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x101385d
call fcn.010136d0
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x2c], ebx
je 0x1004f04
xor eax, eax
cmp dword [esi + 0x30], ebx
sete al
jmp 0x1005016
push edi
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x18]
call fcn.01004bbd
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
inc dword [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0101354e
cmp dword [esi + 0x2c], ebx
jne 0x1004fed
push 0x100174c
mov dword [esi + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x30], eax
je 0x1004fb9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001768
push eax
call edi
push 0x100177c
push dword [esi + 0x30]
mov dword [esi + 0x34], eax
call edi
push 0x1001790
push dword [esi + 0x30]
mov dword [esi + 0x38], eax
call edi
push 0x10017a0
push dword [esi + 0x30]
mov dword [esi + 0x3c], eax
call edi
push 0x10017b0
push dword [esi + 0x30]
mov dword [esi + 0x40], eax
call edi
push 0x10017c8
push dword [esi + 0x30]
mov dword [esi + 0x44], eax
call edi
push 0x10017dc
push dword [esi + 0x30]
mov dword [esi + 0x48], eax
call edi
push 0x10017f0
push dword [esi + 0x30]
mov dword [esi + 0x4c], eax
call edi
push 0x1001808
push dword [esi + 0x30]
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x1004fe1
cmp dword [esi + 0x38], ebx
je 0x1004fd3
cmp dword [esi + 0x4c], ebx
je 0x1004fd3
cmp dword [esi + 0x3c], ebx
je 0x1004fd3
xor edi, edi
jmp 0x1004fe4
cmp eax, ebx
je 0x1004fe1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x30], ebx
xor edi, edi
inc edi
mov dword [esi + 0x2c], 1
jmp 0x1004ff7
xor eax, eax
cmp dword [esi + 0x30], ebx
sete al
mov edi, eax
cmp dword [ebp - 0x18], ebx
jbe 0x1005007
mov ecx, dword [ebp - 0x14]
dec dword [ebp - 0x18]
call fcn.01013563
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.01004bd9
mov eax, edi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1005024
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x101385d
call fcn.010136d0
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x1005049
xor eax, eax
cmp dword [esi + 0x5c], ebx
sete al
jmp 0x100514d
push edi
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x18]
call fcn.01004bbd
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
inc dword [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0101354e
cmp dword [esi + 0x58], ebx
jne 0x1005124
push 0x1001820
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x5c], eax
je 0x10050e1
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001838
push eax
call edi
push 0x1001848
push dword [esi + 0x5c]
mov dword [esi + 0x60], eax
call edi
push 0x1001858
push dword [esi + 0x5c]
mov dword [esi + 0x64], eax
call edi
push 0x1001868
push dword [esi + 0x5c]
mov dword [esi + 0x68], eax
call edi
push 0x100187c
push dword [esi + 0x5c]
mov dword [esi + 0x6c], eax
call edi
push 0x1001894
push dword [esi + 0x5c]
mov dword [esi + 0x70], eax
call edi
push 0x10018ac
push dword [esi + 0x5c]
mov dword [esi + 0x74], eax
call edi
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x5c]
cmp eax, ebx
je 0x1005118
cmp dword [esi + 0x60], ebx
je 0x100510a
cmp dword [esi + 0x68], ebx
je 0x100510a
cmp dword [esi + 0x6c], ebx
je 0x100510a
cmp dword [esi + 0x70], ebx
je 0x100510a
cmp dword [esi + 0x74], ebx
je 0x100510a
cmp dword [esi + 0x78], ebx
je 0x100510a
xor edi, edi
jmp 0x100511b
cmp eax, ebx
je 0x1005118
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x5c], ebx
xor edi, edi
inc edi
mov dword [esi + 0x58], 1
jmp 0x100512e
xor eax, eax
cmp dword [esi + 0x5c], ebx
sete al
mov edi, eax
cmp dword [ebp - 0x18], ebx
jbe 0x100513e
mov ecx, dword [ebp - 0x14]
dec dword [ebp - 0x18]
call fcn.01013563
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.01004bd9
mov eax, edi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1005278
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x1001998
push SysReAllocString
mov dword [ebp - 4], 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1005330
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0x1001974
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call edi
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x1005311
cmp dword [ebp - 0xc], eax
je 0x1005311
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0x1001958
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call edi
mov esi, eax
test esi, esi
jne 0x1005302
cmp dword [ebp - 0xc], eax
jne 0x100531d
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov dword [eax], 2
jmp 0x100531d
mov ecx, dword [ebp + 8]
mov dword [ecx], 1
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
pop edi
pop ebx
je 0x1005341
test esi, esi
jle 0x100533e
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop esi
leave
ret 4

Function at 0x1005374
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x2001f
xor edi, edi
push edi
push 0x1001998
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x10053fc
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
je 0x10053bf
dec eax
push 1
pop ecx
je 0x10053bc
dec eax
dec eax
je 0x10053b9
push 0x57
pop esi
jmp 0x10053f3
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
push 4
lea eax, [ebp - 8]
push eax
push 4
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1001974
push dword [ebp - 4]
call edi
mov esi, eax
test esi, esi
jne 0x10053f3
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push esi
push 0x1001958
push dword [ebp - 4]
call edi
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jle 0x100540c
and esi, 0xffff
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x10056a9
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 0x1001a7c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10056fe
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push 0x10000002
push 0x1001a68
push esi
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueA]
test eax, eax
jne 0x10056f5
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 0x10063c3
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.01005e3b
push 0xffffffffffffffff
lea ecx, [ebp - 0x80]
call fcn.01005e85
mov ebx, dword [ebp + 0x1a4]
cmp ebx, edi
je 0x1006489
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1006489
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 0x100648e
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 0x100646f
cmp esi, edi
jne 0x100647e
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x70]
call fcn.010063c3
mov esi, eax
cmp esi, edi
je 0x1006430
jmp 0x100647e
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 0x100648e
mov esi, 0x3f2
lea ecx, [ebp - 0x80]
call fcn.01005eae
lea ecx, [ebp - 0x80]
call fcn.01005e60
mov ecx, dword [ebp + 0x194]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.010120e7
add ebp, 0x198
leave
ret 8
Function at 0x10066f1
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 0x1001c58
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 0x10067dd
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 0x10067d1
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 0x1006780
xor edi, edi
jmp 0x10067c8
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 0x100677c
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x10067a8
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 0x100677c
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.010120e7
leave
ret 8
Function at 0x10069e8
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.01005e3b
push 0xffffffffffffffff
lea ecx, [ebp - 0x80]
call fcn.01005e85
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 0x1006ad7
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 0x1006ace
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 0x1006ac5
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x2d8]
mov dword [ebp - 0x74], 4
push ebx
push 0x10
push 0x1001ce8
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
je 0x1006adb
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 0x1006af3
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.01005eae
lea ecx, [ebp - 0x80]
call fcn.01005e60
mov ecx, dword [ebp + 0x2a4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.010120e7
add ebp, 0x2a8
leave
ret 0x2c
Function at 0x1006b1d
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.01005e3b
push 0xffffffffffffffff
lea ecx, [ebp - 0x80]
call fcn.01005e85
lea eax, [ebp - 0x70]
push eax
mov edi, 0x2001f
push edi
push dword [ebp + 0x2d0]
push dword [ebp + 0x2ac]
call fcn.010060db
test eax, eax
jne 0x1006bff
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.010060db
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x1006bfa
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp + 0x19c]
push eax
push dword [ebp - 0x6c]
call fcn.010060db
test eax, eax
jne 0x1006bf5
push 4
lea eax, [ebp + 0x2d4]
push eax
push 4
push 0
push 0x1001ce8
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1006c03
push dword [ebp - 0x6c]
call esi
push dword [ebp - 0x70]
call esi
xor esi, esi
jmp 0x1006c1b
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.01005eae
lea ecx, [ebp - 0x80]
call fcn.01005e60
mov ecx, dword [ebp + 0x2a0]
pop edi
mov eax, esi
pop esi
call fcn.010120e7
add ebp, 0x2a4
leave
ret 0x2c

Function at 0x1006c44
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 0x1001d18
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006ce0
push edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0x10000002
push 0x1001d00
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 0x1006ce0
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 0x1006ce4
xor eax, eax
jmp 0x1006cf4
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.010120e7
add ebp, 0x3a4
leave
ret 4
Function at 0x1006fda
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.01005e3b
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.01005e85
push 1
mov edi, 0x2001f
push edi
push 2
call fcn.01006164
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x10070eb
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push esi
mov esi, 0x1001d60
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 0x1001b98
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10070e0
cmp dword [ebp + 8], eax
je 0x10070cb
mov edi, 0x1001bf8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 2
push 0
push 0x1002238
push dword [ebp - 8]
call esi
jmp 0x10070d9
push 0x1002238
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
call ebx
jmp 0x10070e8
push dword [ebp + 8]
call fcn.010133e3
xor esi, esi
inc esi
lea ecx, [ebp - 0x20]
call fcn.01005eae
lea ecx, [ebp - 0x20]
call fcn.01005e60
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x1007104
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 0x1001b98
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10071a7
push edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0x10000002
mov edi, 0x1002238
push edi
push 0
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x208
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x100719d
push 0x1001d7c
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x100719d
push esi
mov esi, 0x1001bf8
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.010120e7
add ebp, 0x194
leave
ret
Function at 0x10071bd
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.01005e3b
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.01005e85
push 1
push 0x2001f
push 2
call fcn.01006164
mov ebx, eax
cmp ebx, edi
je 0x1007247
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x10
mov esi, 0x1001d60
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.01005eae
lea ecx, [ebp - 0x14]
call fcn.01005e60
mov eax, edi
pop edi
pop ebx
leave
ret 4

Function at 0x100725f
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.01006164
cmp eax, edi
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
mov dword [ebp - 0xc], eax
je 0x10072e9
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push edi
push 0x10
push 0x1001dcc
push edi
push eax
call esi
test eax, eax
jne 0x10072b4
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 0x1001dbc
push edi
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x10072e0
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.01006164
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x100732f
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push edi
push 0x10
push 0x1001da4
push edi
push eax
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x1007326
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