joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7d70fbb0
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7d73e478
push 0x7d71fcbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x28], 0x7fff
mov eax, dword [ebp - 0x28]
push eax
push 0
call sym.kernelbase.dll_LocalAlloc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x7d70fbfa
xor eax, eax
jmp 0x7d70fd1d
push 0
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 5
call dword [sym.imp.ntext.dll_NtQuerySystemInformation]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xc0000004
jne 0x7d70fc2f
mov eax, dword [ebp - 0x1c]
push eax
call sym.kernelbase.dll_LocalFree
mov ecx, dword [ebp - 0x28]
add ecx, 0x7fff
mov dword [ebp - 0x28], ecx
jmp 0x7d70fc31
jmp 0x7d70fc3a
mov edx, 1
test edx, edx
jne 0x7d70fbdf
cmp dword [ebp - 0x2c], 0
jge 0x7d70fc60
mov eax, dword [ebp - 0x1c]
push eax
call sym.kernelbase.dll_LocalFree
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ntext.dll_RtlNtStatusToDosError]
push eax
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x7d70fd1d
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
shr eax, 2
cmp dword [ebp - 0x24], eax
jae 0x7d70fc97
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x44]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x20]
cmp dword [edx], 0
jne 0x7d70fca1
jmp 0x7d70fcb5
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, 1
test edx, edx
jne 0x7d70fc74
mov eax, dword [ebp - 0x24]
shl eax, 2
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x7d70fd0f
mov ecx, dword [ebp - 0x1c]
push ecx
call sym.kernelbase.dll_LocalFree
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x7d70fd40
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x13c
push esi
push edi
mov dword [ebp - 0xc], 0x474
mov eax, dword [ebp - 0xc]
push eax
push 0
call sym.kernelbase.dll_LocalAlloc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x7d70fd79
push 0x5aa
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x7d70ff27
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
push 0xb
call dword [sym.imp.ntext.dll_NtQuerySystemInformation]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x7d70fe8e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
push eax
call sym.kernelbase.dll_LocalFree
cmp dword [ebp - 0x14], 0xc0000004
je 0x7d70fdcb
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ntext.dll_RtlNtStatusToDosError]
push eax
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x7d70ff27
cmp dword [ebp - 0xc], 0x120
jae 0x7d70fdf1
push 0
push 0x5b
push 0x7d727878
push str.Size___sizeof_RTL_PROCESS_MODULES_
call dword [sym.imp.ntext.dll_RtlAssert]
mov dword [ebp - 0x20], 0
jmp 0x7d70fdf8
mov dword [ebp - 0x20], 1
mov edx, dword [ebp - 8]
imul edx, edx, 0x11c
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x120
jae 0x7d70fe33
push 0
push 0x5e
push 0x7d727878
push str.NewSize___sizeof_RTL_PROCESS_MODULES_
call dword [sym.imp.ntext.dll_RtlAssert]
mov dword [ebp - 0x18], 0
jmp 0x7d70fe3a
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jae 0x7d70fe86
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0xc]
ja 0x7d70fe67
push 0
push 0x62
push 0x7d727878
push str.NewSize___Size
call dword [sym.imp.ntext.dll_RtlAssert]
mov dword [ebp - 0x1c], 0
jmp 0x7d70fe6e
mov dword [ebp - 0x1c], 1
push 0xc0000004
call dword [sym.imp.ntext.dll_RtlNtStatusToDosError]
push eax
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x7d70ff27
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jmp 0x7d70ff08
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0
jne 0x7d70fe98
jmp 0x7d70ff15
mov dword [ebp - 0x10], 0
jmp 0x7d70feaa
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax]
jae 0x7d70ff06
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x11c
mov eax, dword [ebp - 4]
lea esi, [eax + edx + 4]
mov ecx, 0x47
lea edi, [ebp - 0x13c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x134]
cmp ecx, dword [ebp + 8]
jne 0x7d70ff04
push 0x11c
lea edx, [ebp - 0x13c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.ntext.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call sym.kernelbase.dll_LocalFree
mov eax, 1
jmp 0x7d70ff27
jmp 0x7d70fea1
jmp 0x7d70ff15
mov edx, 1
test edx, edx
jne 0x7d70fd54
mov eax, dword [ebp - 4]
push eax
call sym.kernelbase.dll_LocalFree
push 6
call sub.kernel32.dll_SetLastError
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x7d710310
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.GetMappedFileNameA__p___p___p___lu__n
call sub.ntext.dll_DbgPrint
add esp, 0x14
mov ecx, dword [ebp + 0x14]
shl ecx, 1
push ecx
push 0
call sym.kernelbase.dll_LocalAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x7d71034f
xor eax, eax
jmp 0x7d7103b4
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sym.kernelbase.dll_K32GetMappedFileNameW
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x7d71037a
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x7d710380
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
push 0
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
push 0
push 0
call sym.kernelbase.dll_WideCharToMultiByte
test eax, eax
jne 0x7d7103a8
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
push ecx
call sym.kernelbase.dll_LocalFree
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x7d7103c0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.GetMappedFileNameW__p___p___p___lu__n
call sub.ntext.dll_DbgPrint
add esp, 0x14
cmp dword [ebp + 0x14], 0
jne 0x7d7103fc
push 0x7a
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x7d71049d
lea ecx, [ebp - 4]
push ecx
push 0x210
lea edx, [ebp - 0x21c]
push edx
push 2
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntext.dll_NtQueryVirtualMemory]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x7d710439
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ntext.dll_RtlNtStatusToDosError]
push eax
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x7d71049d
movzx eax, word [ebp - 0x21c]
shr eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 1
cmp edx, dword [ebp + 0x14]
jbe 0x7d71046e
mov eax, dword [ebp + 0x14]
sub eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], ecx
push 0x7a
call sub.kernel32.dll_SetLastError
jmp 0x7d710475
push 0
call sub.kernel32.dll_SetLastError
mov edx, dword [ebp - 8]
shl edx, 1
push edx
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call sub.ntext.dll_memcpy
add esp, 0xc
xor edx, edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x7d7116a0
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
cmp dword [ebp + 0xc], 0
jne 0x7d7116bb
mov eax, 0x57
jmp 0x7d711800
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.7d7149a0
add esp, 8
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x7d7116de
mov eax, 6
jmp 0x7d711800
mov edx, dword [ebp + 0x10]
and edx, 0x300
mov dword [ebp + 0x10], edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
or ecx, 0x10000
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call sym.kernelbase.dll_RegOpenKeyExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x7d71177f
call fcn.7d714aa0
test eax, eax
jne 0x7d711762
mov dword [ebp - 0x10], 0x104
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x114]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call sym.kernelbase.dll_RegEnumKeyExA
test eax, eax
jne 0x7d711762
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sym.kernelbase.dll_RegDeleteKeyExA
test eax, eax
je 0x7d711760
jmp 0x7d711762
jmp 0x7d711720
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntext.dll_NtDeleteKey]
push eax
call dword [sym.imp.ntext.dll_RtlNtStatusToDosError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call fcn.7d711170
mov ecx, dword [0x7d727a40]
movzx edx, byte [ecx]
and edx, 8
je 0x7d7117fd
mov eax, 1
imul eax, eax, 0
movsx ecx, byte [eax + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c]
cmp ecx, 0x2e
jne 0x7d7117aa
mov dword [ebp - 0xc], 0x12
jmp 0x7d7117b1
mov dword [ebp - 0xc], 0x21
push 0x7d7242c0
push 0x42e
push 0x7d727d94
mov edx, dword [ebp - 0xc]
add edx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c
push edx
mov eax, dword [0x7d727a40]
push eax
push 3
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d7117fd
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.7d707900
add esp, 4
push eax
push str._s_ret_08x_n
call fcn.7d71f960
add esp, 0xc
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x7d711810
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x7d711828
mov eax, 0x57
jmp 0x7d71191b
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.7d7149a0
add esp, 8
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x7d71184b
mov eax, 6
jmp 0x7d71191b
mov edx, dword [ebp + 0x10]
and edx, 0x300
mov dword [ebp + 0x10], edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
or ecx, 0x10000
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call sym.kernelbase.dll_RegOpenKeyExW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x7d71189a
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntext.dll_NtDeleteKey]
push eax
call dword [sym.imp.ntext.dll_RtlNtStatusToDosError]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call fcn.7d711170
mov eax, dword [0x7d727a40]
movzx ecx, byte [eax]
and ecx, 8
je 0x7d711918
mov edx, 1
imul edx, edx, 0
movsx eax, byte [edx + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c]
cmp eax, 0x2e
jne 0x7d7118c4
mov dword [ebp - 0xc], 0x12
jmp 0x7d7118cb
mov dword [ebp - 0xc], 0x21
push 0x7d7242c0
push 0x40d
push 0x7d727d74
mov ecx, dword [ebp - 0xc]
add ecx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c
push ecx
mov edx, dword [0x7d727a40]
push edx
push 3
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d711918
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.7d701950
add esp, 4
push eax
push str._s_ret_08x_n
call fcn.7d71f960
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x7d711930
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.7d7149a0
add esp, 8
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x7d711960
mov eax, 6
jmp 0x7d7119ea
cmp dword [ebp + 0xc], 0
je 0x7d71198f
lea ecx, [ebp - 4]
push ecx
push 2
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call sym.kernelbase.dll_RegOpenKeyExA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x7d711989
mov eax, dword [ebp - 0xc]
jmp 0x7d7119ea
mov ecx, dword [ebp - 4]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntext.dll_RtlInitAnsiString]
push 1
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.ntext.dll_RtlAnsiStringToUnicodeString]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x7d7119d1
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntext.dll_NtDeleteValueKey]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.ntext.dll_RtlFreeUnicodeString]
cmp dword [ebp - 4], 0
je 0x7d7119e0
mov eax, dword [ebp - 4]
push eax
call fcn.7d711170
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntext.dll_RtlNtStatusToDosError]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x7d711a00
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.7d7149a0
add esp, 8
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x7d711a2d
mov eax, 6
jmp 0x7d711a94
cmp dword [ebp + 0xc], 0
je 0x7d711a5c
lea ecx, [ebp - 4]
push ecx
push 2
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call sym.kernelbase.dll_RegOpenKeyExW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x7d711a56
mov eax, dword [ebp - 8]
jmp 0x7d711a94
mov ecx, dword [ebp - 4]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntext.dll_RtlInitUnicodeString]
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntext.dll_NtDeleteValueKey]
push eax
call dword [sym.imp.ntext.dll_RtlNtStatusToDosError]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x7d711a91
mov eax, dword [ebp - 4]
push eax
call fcn.7d711170
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x7d713eb0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [0x7d727a40]
movzx ecx, byte [eax]
and ecx, 8
je 0x7d713f5a
mov edx, 1
imul edx, edx, 0
movsx eax, byte [edx + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c]
cmp eax, 0x2e
jne 0x7d713eed
mov dword [ebp - 0xc], 0x12
jmp 0x7d713ef4
mov dword [ebp - 0xc], 0x21
push 0x7d7242c0
push 0x25e
push 0x7d727cc8
mov ecx, dword [ebp - 0xc]
add ecx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c
push ecx
mov edx, dword [0x7d727a40]
push edx
push 3
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d713f5a
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.7d707900
add esp, 4
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.7d707900
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
push str.__p__s__s__d__p__d__n
call fcn.7d71f960
add esp, 0x1c
cmp dword [ebp + 0xc], 0
je 0x7d713fa4
mov eax, 1
imul eax, eax, 0
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax]
test edx, edx
je 0x7d713fa4
push 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sym.kernelbase.dll_RegCreateKeyExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x7d713f9e
mov eax, dword [ebp - 8]
jmp 0x7d713fd4
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.advapi32.dll_RegSetValueExA
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x7d713fd1
mov eax, dword [ebp - 4]
push eax
call fcn.7d711170
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x18
Function at 0x7d714110
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x7d714128
mov eax, dword [ebp + 0x18]
shr eax, 0x10
test eax, eax
je 0x7d714134
cmp dword [ebp + 0x18], 0
jne 0x7d71413e
cmp dword [ebp + 0x1c], 0
je 0x7d71413e
mov eax, 0x3e6
jmp 0x7d7141d3
cmp dword [ebp + 0x1c], 0
je 0x7d714184
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.7d714a60
add esp, 4
test eax, eax
je 0x7d714184
mov edx, dword [ebp + 0x18]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x1c]
shr eax, 1
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + eax*2 - 2]
test edx, edx
je 0x7d714184
mov eax, dword [ebp + 0x1c]
shr eax, 1
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + eax*2]
test edx, edx
jne 0x7d714184
mov eax, dword [ebp + 0x1c]
add eax, 2
mov dword [ebp + 0x1c], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.7d7149a0
add esp, 8
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x7d7141a2
mov eax, 6
jmp 0x7d7141d3
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntext.dll_RtlInitUnicodeString]
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntext.dll_NtSetValueKey]
push eax
call dword [sym.imp.ntext.dll_RtlNtStatusToDosError]
mov esp, ebp
pop ebp
ret 0x18
Function at 0x7d7150b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
cmp ecx, 0xffff
jne 0x7d7150d6
mov edx, dword [ebp + 0xc]
neg edx
mov dword [ebp + 0xc], edx
push 6
mov eax, dword [ebp + 0xc]
shr eax, 4
and eax, 0xffff
movzx ecx, ax
add ecx, 1
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp + 8]
push eax
call sym.kernelbase.dll_FindResourceW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x7d71510c
xor eax, eax
jmp 0x7d7151c6
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sym.kernelbase.dll_LoadResource
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x7d715129
xor eax, eax
jmp 0x7d7151c6
mov eax, dword [ebp - 0x10]
push eax
call sym.kernelbase.dll_LockResource
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
and ecx, 0xf
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 0x18], 0
je 0x7d715165
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2 + 2]
mov dword [ebp - 4], ecx
jmp 0x7d71513e
cmp dword [ebp + 0x10], 0
jne 0x7d715173
mov edx, dword [ebp - 4]
movzx eax, word [edx]
jmp 0x7d7151c6
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp ecx, dword [ebp + 0x14]
jge 0x7d715189
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov dword [ebp - 0x14], eax
jmp 0x7d715192
mov ecx, dword [ebp + 0x14]
sub ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp + 0x14], edx
cmp dword [ebp + 0x14], 0
jl 0x7d7151c3
mov eax, dword [ebp + 0x14]
shl eax, 1
push eax
mov ecx, dword [ebp - 4]
add ecx, 2
push ecx
mov edx, dword [ebp + 0x10]
push edx
call sub.ntext.dll_memcpy
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov word [edx + ecx*2], ax
mov eax, dword [ebp + 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x7d716690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
mov eax, dword [0x7d7348f4]
movzx ecx, byte [eax]
and ecx, 8
je 0x7d716719
mov edx, 1
imul edx, edx, 0
movsx eax, byte [edx + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_string.c]
cmp eax, 0x2e
jne 0x7d7166c9
mov dword [ebp - 0x10], 0x12
jmp 0x7d7166d0
mov dword [ebp - 0x10], 0x21
push 0x7d7242c0
push 0x53
push 0x7d7349a8
mov ecx, dword [ebp - 0x10]
add ecx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_string.c
push ecx
mov edx, dword [0x7d7348f4]
push edx
push 3
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d716719
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.instance___p__id___04x__buffer___p__length___d_n
call fcn.7d71f960
add esp, 0x14
cmp dword [ebp + 0x14], 0
jne 0x7d716727
or eax, 0xffffffff
jmp 0x7d716851
push 6
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff
movzx edx, cx
sar edx, 4
add edx, 1
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp + 8]
push ecx
call sym.kernelbase.dll_FindResourceW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x7d7167ce
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call sym.kernelbase.dll_LoadResource
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x7d7167ce
mov ecx, dword [ebp - 0x18]
push ecx
call sym.kernelbase.dll_LockResource
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
and edx, 0xf
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x20], 0
je 0x7d7167a9
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
jmp 0x7d716782
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
shl ecx, 1
push ecx
mov edx, dword [ebp - 4]
add edx, 2
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x14]
sub ecx, 1
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.ntext.dll_RtlUnicodeToMultiByteN]
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0xc]
mov byte [eax], 0
mov ecx, dword [0x7d7348f4]
movzx edx, byte [ecx]
and edx, 8
je 0x7d71684e
mov eax, 1
imul eax, eax, 0
movsx ecx, byte [eax + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_string.c]
cmp ecx, 0x2e
jne 0x7d716802
mov dword [ebp - 0x1c], 0x12
jmp 0x7d716809
mov dword [ebp - 0x1c], 0x21
push 0x7d7242c0
push 0x63
push 0x7d7349a8
mov edx, dword [ebp - 0x1c]
add edx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_string.c
push edx
mov eax, dword [0x7d7348f4]
push eax
push 3
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d71684e
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.7d707900
add esp, 4
push eax
push str.returning__s_n
call fcn.7d71f960
add esp, 8
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10