joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bdd0
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 0x43be07
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 0x43be0a
mov esi, dword [ebp + 8]
test esi, esi
je 0x43bfbd
call fcn.004561e0
test eax, eax
je 0x43beb5
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 0x43bfb1
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x43be59
cmp eax, 2
je 0x43be59
cmp eax, 6
je 0x43be59
cmp eax, 7
jne 0x43bfb1
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 0x43bf9c
mov ecx, dword [ebp + 0x18]
call fcn.004231e0
cmp esi, dword [ebp + 8]
je 0x43bf86
jmp 0x43bf7f
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x43bec1
mov dword [ebp + 0x10], eax
jmp 0x43bef6
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.0041c560
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 0x43bfb1
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x43bf30
cmp eax, 2
je 0x43bf30
cmp eax, 6
je 0x43bf30
cmp eax, 7
jne 0x43bfb1
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 0x43bf9c
mov ecx, dword [ebp + 0x18]
call fcn.004232b0
cmp esi, dword [ebp + 8]
je 0x43bf86
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 0x47b1f4
call fcn.004231e0
cmp esi, dword [ebp + 8]
je 0x43bfbd
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 0x43c230
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [ecx]
push edi
push 0xffffffffffffffff
push 0
mov ecx, ebp
call sub.MFC42u.DLL_CStringArray::SetSize
test esi, esi
je 0x43c319
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43c319
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x43c28c
cmp eax, 2
je 0x43c28c
cmp eax, 6
je 0x43c28c
cmp eax, 7
jne 0x43c319
mov eax, dword [esp + 0x1c]
add eax, 2
push eax
call sub.MFC42u.DLL_operatornew
mov ecx, dword [esp + 0x20]
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 [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43c310
cmp word [ebx], ax
mov esi, ebx
je 0x43c2fa
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [ebp + 8]
push esi
push edx
mov ecx, ebp
call sub.MFC42u.DLL_CStringArray::SetAtGrow_1
push esi
call edi
lea esi, [esi + eax*2 + 2]
add esp, 4
cmp word [esi], 0
jne 0x43c2de
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x43ca20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46a5c8
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x43ca76
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 0x43ca7b
mov esi, dword [ebp + 8]
mov ebx, esi
test esi, esi
je 0x43cb6b
call fcn.004561e0
test eax, eax
je 0x43cacb
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 0x43cb60
cmp esi, ebx
je 0x43cac1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x43cb6d
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x43cad6
xor edi, edi
jmp 0x43cb0b
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.0041c560
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.0041cd10
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 0x43cb51
cmp esi, ebx
je 0x43cb3b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0041d520
mov eax, 1
jmp 0x43cb6d
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0041d520
cmp esi, ebx
je 0x43cb6b
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 0x43d330
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 0x43d36e
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 0x43d370
mov esi, edi
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push ebp
call sub.MFC42u.DLL_CStringArray::SetSize
cmp esi, ebp
je 0x43d45b
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 0x43d450
cmp dword [esp + 0x10], ebp
jbe 0x43d450
mov eax, dword [esp + 0x20]
cmp eax, 0x104
jae 0x43d3cc
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 0x43d450
cmp dword [esp + 0x10], ebp
jbe 0x43d42d
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 0x43d420
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 0x43d3e5
mov edi, dword [esp + 0x18]
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
cmp esi, edi
je 0x43d441
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 0x43d45b
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 0x43dce0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x47cf94]
test eax, eax
jne 0x43ddcc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x47cd30
mov dword [0x47cf94], 1
mov dword [0x47cd30], 0x114
call esi
mov edx, dword [0x47cd40]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x479148], eax
je 0x43ddae
push edi
push 0x47ce48
mov dword [0x47ce48], 0x11c
call esi
push 0x476d98
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x476d80
push esi
call edi
push 0x479ebc
push esi
mov dword [0x47cf8c], eax
call edi
mov dword [0x47cf90], eax
mov eax, dword [0x47cf8c]
pop edi
test eax, eax
push 0x47cf68
je 0x43dd7c
call eax
jmp 0x43dd82
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x47ce4c]
cmp eax, 6
jae 0x43dd9a
cmp eax, 5
jne 0x43ddae
cmp dword [0x47ce50], 2
jb 0x43ddae
cmp word [0x47cf68], 9
jne 0x43ddae
mov dword [0x47cd24], 1
push 0x47cd38
push 0x47cd34
call fcn.0043e0f0
add esp, 8
call fcn.0043dde0
mov eax, 1
pop esi
ret
mov eax, 1
ret

Function at 0x43ee00
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e440
push 0x41c5e2
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 [0x47cf98]
xor ebx, ebx
cmp eax, ebx
jne 0x43ef61
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 0x43ef5c
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 0x47a080
lea ecx, [ebp - 0x220]
push ecx
push 0x476784
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 0x43ef5c
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 0x43ef53
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x477320
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43ef53
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x47cf98], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x43ef53
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, dword [0x47cf98]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43f680
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x43f6c1
lea edx, [esp + 0x14]
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 + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x43f6c3
mov esi, edi
test esi, esi
je 0x43f738
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x43f72d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x43f72d
cmp dword [esp + 0x1c], eax
jbe 0x43f6fe
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x43f72d
cmp esi, edi
je 0x43f71f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x43f738
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x43f750
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 0x43f7b5
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x43f7b5
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x43f7b5
cmp dword [esp + 0x18], eax
jbe 0x43f79b
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
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 0x43f7b9
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x43fa50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46a7cf
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 0x43fabd
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 0x43fabf
mov esi, edi
test esi, esi
je 0x43fb89
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 0x43fb7e
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x43fb01
cmp eax, 2
je 0x43fb01
cmp eax, 6
je 0x43fb01
cmp eax, 7
jne 0x43fb7e
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 0x43fb64
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator
cmp esi, dword [esp + 0x14]
je 0x43fb59
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call sub.MFC42u.DLL_operatordelete
add esp, 4
jmp 0x43fb9b
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
push 0x47b1f4
call sub.MFC42u.DLL_CString::operator
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x43fb89
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x43fb9b
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 0x43fce0
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 0x43fd17
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 0x43fd1a
mov esi, dword [ebp + 8]
test esi, esi
je 0x43fecd
call fcn.0043e2f0
test eax, eax
je 0x43fdc5
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 0x43fec1
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x43fd69
cmp eax, 2
je 0x43fd69
cmp eax, 6
je 0x43fd69
cmp eax, 7
jne 0x43fec1
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 0x43feac
mov ecx, dword [ebp + 0x18]
call fcn.004231e0
cmp esi, dword [ebp + 8]
je 0x43fe96
jmp 0x43fe8f
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x43fdd1
mov dword [ebp + 0x10], eax
jmp 0x43fe06
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.0041c560
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 0x43fec1
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x43fe40
cmp eax, 2
je 0x43fe40
cmp eax, 6
je 0x43fe40
cmp eax, 7
jne 0x43fec1
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 0x43feac
mov ecx, dword [ebp + 0x18]
call fcn.004232b0
cmp esi, dword [ebp + 8]
je 0x43fe96
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 0x47b1f4
call fcn.004231e0
cmp esi, dword [ebp + 8]
je 0x43fecd
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 0x440910
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46a898
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x440966
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 0x44096b
mov esi, dword [ebp + 8]
mov ebx, esi
test esi, esi
je 0x440a5b
call fcn.0043e2f0
test eax, eax
je 0x4409bb
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 0x440a50
cmp esi, ebx
je 0x4409b1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x440a5d
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4409c6
xor edi, edi
jmp 0x4409fb
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.0041c560
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.0041cd10
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 0x440a41
cmp esi, ebx
je 0x440a2b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0041d520
mov eax, 1
jmp 0x440a5d
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0041d520
cmp esi, ebx
je 0x440a5b
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 0x442190
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46aa2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00422460
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push 0x104
push eax
mov dword [esp + 0x228], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004231e0
lea edx, [esp + 8]
push 1
push edx
mov ecx, esi
call fcn.004254c0
mov eax, dword [eax]
push 0x4757dc
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
lea ecx, [esp + 8]
mov edi, eax
call fcn.00422f00
test edi, edi
je 0x44222f
push 0x4757dc
mov ecx, esi
call fcn.00423b40
mov ecx, dword [esp + 0x218]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret

Function at 0x442370
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46aa6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00422460
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push 0x104
push eax
mov dword [esp + 0x228], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004231e0
lea edx, [esp + 8]
push 1
push edx
mov ecx, esi
call fcn.004254c0
mov eax, dword [eax]
push 0x4757dc
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
lea ecx, [esp + 8]
mov edi, eax
call fcn.00422f00
test edi, edi
je 0x44240f
push 0x4757dc
mov ecx, esi
call fcn.00423b40
mov ecx, dword [esp + 0x218]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret