joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435880
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44bdcc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 8]
mov ecx, edi
call sub.MFC42u.DLL_CString::CString_3
lea ebp, [esi + 0x18]
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x1c], ebx
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esi + 0x20]
mov byte [esp + 0x1c], 1
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 2
call fcn.0041bd08
mov eax, dword [esp + 0x24]
mov ecx, edi
push eax
mov byte [esp + 0x20], 3
mov dword [esi], 0x44f3b4
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov word [esi + 0x24], 0xffff
call sub.MFC42u.DLL_CString::operator
mov eax, dword [esp + 0x28]
mov cx, word [esp + 0x30]
test eax, 0xffff0000
mov word [esi + 0x24], cx
mov dword [esi + 0x14], eax
je 0x435925
push eax
mov ecx, ebp
call sub.MFC42u.DLL_CString::operator
mov edx, dword [ebp]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x2c]
test eax, 0xffff0000
mov dword [esi + 0x1c], eax
je 0x435943
lea edi, [esi + 0x20]
push eax
mov ecx, edi
call sub.MFC42u.DLL_CString::operator
mov eax, dword [edi]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x436cf0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x44bedf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [esp + 0x34]
mov edi, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x436d5d
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x436d5f
mov esi, edi
test esi, esi
je 0x436e29
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x436e1e
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x436da1
cmp eax, 2
je 0x436da1
cmp eax, 6
je 0x436da1
cmp eax, 7
jne 0x436e1e
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call sub.MFC42u.DLL_operatornew
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x436e04
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator
cmp esi, dword [esp + 0x14]
je 0x436df9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call sub.MFC42u.DLL_operatordelete
add esp, 4
jmp 0x436e3b
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
push 0x459f34
call sub.MFC42u.DLL_CString::operator
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x436e29
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x436e3b
push eax
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_1
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x436f80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x436fb7
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x436fba
mov esi, dword [ebp + 8]
test esi, esi
je 0x43716d
call fcn.0043f090
test eax, eax
je 0x437065
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 0x14]
push 0
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x437161
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x437009
cmp eax, 2
je 0x437009
cmp eax, 6
je 0x437009
cmp eax, 7
jne 0x437161
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
call sub.MFC42u.DLL_operatornew
mov edx, dword [ebp + 0xc]
mov ebx, eax
xor eax, eax
mov edi, ebx
lea ecx, [edx + 2]
add esp, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x43714c
mov ecx, dword [ebp + 0x18]
call fcn.00422d70
cmp esi, dword [ebp + 8]
je 0x437136
jmp 0x43712f
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x437071
mov dword [ebp + 0x10], eax
jmp 0x4370a6
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.0041c120
mov edx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x10], edi
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x437161
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x4370e0
cmp eax, 2
je 0x4370e0
cmp eax, 6
je 0x4370e0
cmp eax, 7
jne 0x437161
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call sub.MFC42u.DLL_operatornew
mov ecx, dword [ebp + 0xc]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x43714c
mov ecx, dword [ebp + 0x18]
call fcn.00422e40
cmp esi, dword [ebp + 8]
je 0x437136
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x459f34
call fcn.00422d70
cmp esi, dword [ebp + 8]
je 0x43716d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x437bb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44bfa8
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x437c06
lea ecx, [ebp + 0x14]
mov ebx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp + 0xc]
or ecx, 0x20006
push edx
push 0
push ecx
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x437c0b
mov esi, dword [ebp + 8]
mov ebx, esi
test esi, esi
je 0x437cfb
call fcn.0043f090
test eax, eax
je 0x437c5b
mov edi, dword [ebp + 0x18]
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0x10]
push edx
push edi
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x437cf0
cmp esi, ebx
je 0x437c51
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x437cfd
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x437c66
xor edi, edi
jmp 0x437c9b
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.0041c120
mov ecx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push edx
call fcn.0041c8c0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x437ce1
cmp esi, ebx
je 0x437ccb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0041d0c0
mov eax, 1
jmp 0x437cfd
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0041d0c0
cmp esi, ebx
je 0x437cfb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4384c0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x20]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x18], edi
je 0x4384fe
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push ebp
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x438500
mov esi, edi
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push ebp
call sub.MFC42u.DLL_CStringArray::SetSize
cmp esi, ebp
je 0x4385eb
push ebp
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x34]
push ebp
lea ecx, [esp + 0x28]
push eax
push ecx
push ebp
push ebp
push ebp
push esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x50], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4385e0
cmp dword [esp + 0x10], ebp
jbe 0x4385e0
mov eax, dword [esp + 0x20]
cmp eax, 0x104
jae 0x43855c
mov eax, 0x104
mov dword [esp + 0x20], eax
lea edx, [eax + eax + 2]
push edx
call sub.MFC42u.DLL_operatornew
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x4385e0
cmp dword [esp + 0x10], ebp
jbe 0x4385bd
mov eax, dword [esp + 0x20]
mov edi, ebx
lea ecx, [eax + eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
inc eax
push eax
push ebx
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4385b0
mov ecx, dword [esp + 0x24]
push ebx
mov edx, dword [ecx + 8]
push edx
call sub.MFC42u.DLL_CStringArray::SetAtGrow_1
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jb 0x438575
mov edi, dword [esp + 0x18]
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
cmp esi, edi
je 0x4385d1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 8
cmp esi, edi
je 0x4385eb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8

Function at 0x438e70
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x45bcd4]
test eax, eax
jne 0x438f4a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x45ba70
mov dword [0x45bcd4], 1
mov dword [0x45ba70], 0x114
call esi
mov edx, dword [0x45ba80]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x458fb0], eax
je 0x438f3e
push edi
push 0x45bb88
mov dword [0x45bb88], 0x11c
call esi
push 0x456d00
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x45bccc], eax
call edi
mov dword [0x45bcd0], eax
mov eax, dword [0x45bccc]
pop edi
test eax, eax
push 0x45bca8
je 0x438f0c
call eax
jmp 0x438f12
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x45bb8c]
cmp eax, 6
jae 0x438f2a
cmp eax, 5
jne 0x438f3e
cmp dword [0x45bb90], 2
jb 0x438f3e
cmp word [0x45bca8], 9
jne 0x438f3e
mov dword [0x45ba64], 1
call fcn.00438f50
mov eax, 1
pop esi
ret
mov eax, 1
ret
Function at 0x439c60
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f3c8
push 0x41c1a2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x45bcd8]
xor ebx, ebx
cmp eax, ebx
jne 0x439dc1
mov word [ebp - 0x220], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x439dbc
mov word [ebp - 0x42c], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x42a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x459680
lea ecx, [ebp - 0x220]
push ecx
push 0x4566ec
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
mov dword [ebp - 0x434], ebx
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x224], eax
push eax
call sub.MFC42u.DLL_operatornew
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x439dbc
push esi
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x439db3
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x457288
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x439db3
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x45bcd8], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x439db3
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, dword [0x45bcd8]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43a5a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x43a5f5
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x43a5f5
cmp dword [esp + 0x18], 4
jne 0x43a5f5
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x43a5f9
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x43a890
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x44c17f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [esp + 0x34]
mov edi, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x43a8fd
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x43a8ff
mov esi, edi
test esi, esi
je 0x43a9c9
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43a9be
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x43a941
cmp eax, 2
je 0x43a941
cmp eax, 6
je 0x43a941
cmp eax, 7
jne 0x43a9be
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call sub.MFC42u.DLL_operatornew
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x43a9a4
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator
cmp esi, dword [esp + 0x14]
je 0x43a999
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call sub.MFC42u.DLL_operatordelete
add esp, 4
jmp 0x43a9db
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
push 0x459f34
call sub.MFC42u.DLL_CString::operator
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x43a9c9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x43a9db
push eax
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_1
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x43ab20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x43ab57
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x43ab5a
mov esi, dword [ebp + 8]
test esi, esi
je 0x43ad0d
call fcn.004392f0
test eax, eax
je 0x43ac05
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 0x14]
push 0
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43ad01
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x43aba9
cmp eax, 2
je 0x43aba9
cmp eax, 6
je 0x43aba9
cmp eax, 7
jne 0x43ad01
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
call sub.MFC42u.DLL_operatornew
mov edx, dword [ebp + 0xc]
mov ebx, eax
xor eax, eax
mov edi, ebx
lea ecx, [edx + 2]
add esp, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x43acec
mov ecx, dword [ebp + 0x18]
call fcn.00422d70
cmp esi, dword [ebp + 8]
je 0x43acd6
jmp 0x43accf
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x43ac11
mov dword [ebp + 0x10], eax
jmp 0x43ac46
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.0041c120
mov edx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x10], edi
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43ad01
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x43ac80
cmp eax, 2
je 0x43ac80
cmp eax, 6
je 0x43ac80
cmp eax, 7
jne 0x43ad01
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call sub.MFC42u.DLL_operatornew
mov ecx, dword [ebp + 0xc]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x43acec
mov ecx, dword [ebp + 0x18]
call fcn.00422e40
cmp esi, dword [ebp + 8]
je 0x43acd6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x459f34
call fcn.00422d70
cmp esi, dword [ebp + 8]
je 0x43ad0d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x43b750
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44c248
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x43b7a6
lea ecx, [ebp + 0x14]
mov ebx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp + 0xc]
or ecx, 0x20006
push edx
push 0
push ecx
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x43b7ab
mov esi, dword [ebp + 8]
mov ebx, esi
test esi, esi
je 0x43b89b
call fcn.004392f0
test eax, eax
je 0x43b7fb
mov edi, dword [ebp + 0x18]
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0x10]
push edx
push edi
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x43b890
cmp esi, ebx
je 0x43b7f1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x43b89d
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x43b806
xor edi, edi
jmp 0x43b83b
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.0041c120
mov ecx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push edx
call fcn.0041c8c0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x43b881
cmp esi, ebx
je 0x43b86b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0041d0c0
mov eax, 1
jmp 0x43b89d
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0041d0c0
cmp esi, ebx
je 0x43b89b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret