joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4522b0
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 0x4522e7
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 0x4522ea
mov esi, dword [ebp + 8]
test esi, esi
je 0x45249d
call fcn.004589f0
test eax, eax
je 0x452395
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 0x452491
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x452339
cmp eax, 2
je 0x452339
cmp eax, 6
je 0x452339
cmp eax, 7
jne 0x452491
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 0x45247c
mov ecx, dword [ebp + 0x18]
call fcn.004262d0
cmp esi, dword [ebp + 8]
je 0x452466
jmp 0x45245f
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4523a1
mov dword [ebp + 0x10], eax
jmp 0x4523d6
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.0041f650
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 0x452491
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x452410
cmp eax, 2
je 0x452410
cmp eax, 6
je 0x452410
cmp eax, 7
jne 0x452491
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 0x45247c
mov ecx, dword [ebp + 0x18]
call fcn.004263a0
cmp esi, dword [ebp + 8]
je 0x452466
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 0x486f38
call fcn.004262d0
cmp esi, dword [ebp + 8]
je 0x45249d
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 0x452710
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 0x4527f9
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 0x4527f9
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x45276c
cmp eax, 2
je 0x45276c
cmp eax, 6
je 0x45276c
cmp eax, 7
jne 0x4527f9
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 0x4527f0
cmp word [ebx], ax
mov esi, ebx
je 0x4527da
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 0x4527be
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 0x452e90
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [ecx]
test esi, esi
je 0x452eca
push edi
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esp + 0x10]
add esp, 4
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop edi
jne 0x452eca
mov eax, 1
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x452f00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4740a8
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x452f56
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 0x452f5b
mov esi, dword [ebp + 8]
mov ebx, esi
test esi, esi
je 0x45304b
call fcn.004589f0
test eax, eax
je 0x452fab
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 0x453040
cmp esi, ebx
je 0x452fa1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x45304d
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x452fb6
xor edi, edi
jmp 0x452feb
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.0041f650
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.0041fe00
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 0x453031
cmp esi, ebx
je 0x45301b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.00420610
mov eax, 1
jmp 0x45304d
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.00420610
cmp esi, ebx
je 0x45304b
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 0x4537e0
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 0x45381e
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 0x453820
mov esi, edi
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push ebp
call sub.MFC42u.DLL_CStringArray::SetSize
cmp esi, ebp
je 0x45390b
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 0x453900
cmp dword [esp + 0x10], ebp
jbe 0x453900
mov eax, dword [esp + 0x20]
cmp eax, 0x104
jae 0x45387c
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 0x453900
cmp dword [esp + 0x10], ebp
jbe 0x4538dd
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 0x4538d0
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 0x453895
mov edi, dword [esp + 0x18]
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
cmp esi, edi
je 0x4538f1
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 0x45390b
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 0x454190
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x488d00]
sub esp, 0x114
test eax, eax
jne 0x4542dd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
push 0x488a98
mov dword [0x488d00], 1
mov dword [0x488a98], 0x114
call esi
mov edx, dword [0x488aa8]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x484c60], eax
je 0x4542b8
push ebx
push 0x488bb0
mov dword [0x488bb0], 0x11c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x482768
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x482750
push esi
call edi
push 0x485a78
push esi
mov dword [0x488cf4], eax
call edi
mov dword [0x488cf8], eax
mov eax, dword [0x488cf4]
test eax, eax
push 0x488cd0
je 0x454234
call eax
jmp 0x45423a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x488bb4]
cmp eax, 6
jae 0x454252
cmp eax, 5
jne 0x454266
cmp dword [0x488bb8], 2
jb 0x454266
cmp word [0x488cd0], 9
jne 0x454266
mov dword [0x488a8c], 1
push 0x485a64
call ebx
test eax, eax
pop ebx
je 0x454284
push 0x485a54
push eax
call edi
mov edx, eax
mov dword [0x488cfc], edx
jmp 0x45428a
mov edx, dword [0x488cfc]
test edx, edx
je 0x4542b8
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
call edx
test eax, eax
jne 0x4542b8
mov ecx, dword [esp + 0x14]
mov dword [0x488aa4], ecx
push 0x488aa0
push 0x488a9c
call fcn.00454680
add esp, 8
call fcn.004542f0
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x455540
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4784c8
push 0x41f6cc
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 [0x488d04]
xor ebx, ebx
cmp eax, ebx
jne 0x4556a1
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 0x45569c
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 0x485c3c
lea ecx, [ebp - 0x220]
push ecx
push 0x481838
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 0x45569c
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 0x455693
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x482cdc
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x455693
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x488d04], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x455693
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, dword [0x488d04]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455e30
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 0x455e71
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 0x455e73
mov esi, edi
test esi, esi
je 0x455ee8
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 0x455edd
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x455edd
cmp dword [esp + 0x1c], eax
jbe 0x455eae
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 0x455edd
cmp esi, edi
je 0x455ecf
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 0x455ee8
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 0x455f00
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 0x455f65
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 0x455f65
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x455f65
cmp dword [esp + 0x18], eax
jbe 0x455f4b
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 0x455f69
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x456200
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4742af
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_4
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 0x45626d
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 0x45626f
mov esi, edi
test esi, esi
je 0x456339
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 0x45632e
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x4562b1
cmp eax, 2
je 0x4562b1
cmp eax, 6
je 0x4562b1
cmp eax, 7
jne 0x45632e
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 0x456314
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator
cmp esi, dword [esp + 0x14]
je 0x456309
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call sub.MFC42u.DLL_operatordelete
add esp, 4
jmp 0x45634b
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
push 0x486f38
call sub.MFC42u.DLL_CString::operator
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x456339
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x45634b
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_2
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 0x456490
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 0x4564c7
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 0x4564ca
mov esi, dword [ebp + 8]
test esi, esi
je 0x45667d
call fcn.00454880
test eax, eax
je 0x456575
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 0x456671
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x456519
cmp eax, 2
je 0x456519
cmp eax, 6
je 0x456519
cmp eax, 7
jne 0x456671
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 0x45665c
mov ecx, dword [ebp + 0x18]
call fcn.004262d0
cmp esi, dword [ebp + 8]
je 0x456646
jmp 0x45663f
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x456581
mov dword [ebp + 0x10], eax
jmp 0x4565b6
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.0041f650
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 0x456671
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x4565f0
cmp eax, 2
je 0x4565f0
cmp eax, 6
je 0x4565f0
cmp eax, 7
jne 0x456671
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 0x45665c
mov ecx, dword [ebp + 0x18]
call fcn.004263a0
cmp esi, dword [ebp + 8]
je 0x456646
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 0x486f38
call fcn.004262d0
cmp esi, dword [ebp + 8]
je 0x45667d
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 0x4570c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x474378
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x457116
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 0x45711b
mov esi, dword [ebp + 8]
mov ebx, esi
test esi, esi
je 0x45720b
call fcn.00454880
test eax, eax
je 0x45716b
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 0x457200
cmp esi, ebx
je 0x457161
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x45720d
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x457176
xor edi, edi
jmp 0x4571ab
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.0041f650
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.0041fe00
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 0x4571f1
cmp esi, ebx
je 0x4571db
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.00420610
mov eax, 1
jmp 0x45720d
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.00420610
cmp esi, ebx
je 0x45720b
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