joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456ee0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x456ef7
add esp, 0xfffffff0
call fcn.00403590
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421ed8
mov eax, dword [0x481830]
cmp word [eax + 2], 0
jne 0x456f1f
mov eax, dword [0x481830]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004585b8
mov eax, dword [0x4819e0]
cmp word [eax + 2], 0
jne 0x456f39
mov eax, dword [0x4819e0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004587b0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x419234]
call fcn.00403254
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x419234]
call fcn.00403254
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4240b4]
call fcn.00429cfc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4570c0
mov eax, dword [0x481614]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042a0cc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x458d50
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x481614]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d090
test eax, eax
je 0x45702e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408cd4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d0b8
test eax, eax
je 0x457042
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004042d0
mov eax, dword [0x481348]
cmp byte [eax], 0
jne 0x457076
mov eax, ebx
call fcn.004571e8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00458f2c
mov eax, ebx
call fcn.004598f0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4570b6
call fcn.004035e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457468
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x482bb8]
cmp dword [eax + 0x30], 0
je 0x457512
cmp dword [ebx + 0x94], 0
jne 0x45750c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4573f8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45750c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4574d2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45750c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041b840
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4574e1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x458074
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4580a9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404150
jmp 0x4580b6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040b4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x459108
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x459149
mov eax, esi
call fcn.0043f8d0
test al, al
je 0x459149
mov eax, dword [ebx + 0x84]
call fcn.0043f5cc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x459149
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043f5cc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x406291
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4261d0]
jne 0x40629b
repz ret
jmp fcn.0040871c

Function at 0x40adfc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4261d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004074b2
and dword [ebp - 0x14], 0
cmp dword [0x427a30], 0
mov dword [ebp - 0x18], eax
jne 0x40aeaf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40af57
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40af57
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x427a30], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x427a34], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x427a38], eax
call edi
push eax
call esi
mov dword [0x427a40], eax
test eax, eax
je 0x40aeaf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x427a3c], eax
mov eax, dword [0x427a3c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40af08
cmp dword [0x427a40], ecx
je 0x40af08
push eax
call esi
push dword [0x427a40]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40af08
test ebx, ebx
je 0x40af08
call edi
test eax, eax
je 0x40aeff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40aeff
test byte [ebp - 8], 1
jne 0x40af08
or dword [ebp + 0x10], 0x200000
jmp 0x40af3b
mov eax, dword [0x427a34]
cmp eax, dword [ebp - 0x18]
je 0x40af3b
push eax
call esi
test eax, eax
je 0x40af3b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40af3b
mov eax, dword [0x427a38]
cmp eax, dword [ebp - 0x18]
je 0x40af3b
push eax
call esi
test eax, eax
je 0x40af3b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x427a30]
call esi
test eax, eax
je 0x40af57
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40af59
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406291
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x4056c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42eec0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x448070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 1
push eax
push str.CHBAAPIInt::DeInitHBAAPIMod
lea ecx, [ebp - 0x2c]
call fcn.00409380
push 0x60
lea eax, [edi + 8]
mov dword [ebp - 4], 0
push 0
push eax
mov byte [edi + 0xe0], 0
call fcn.0041c090
add esp, 0xc
push str.GlobalCHBAAPINTMUT
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x405749
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40575b
push str.CHBAAPIInt::DeInitHBAAPIMod_Failed_to_acquire_Mutex
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x40576e
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi], 0
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x40577b
push esi
call edi
mov bl, byte [ebp - 0xd]
test esi, esi
je 0x405785
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00409470
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408f30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SOFTWAREINTELNETWORK_SERVICESDMIX
push reloc.OLEAUT32.dll_SysReAllocString
xor bl, bl
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40905c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.ForcedLanguage
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409053
mov eax, dword [ebp - 8]
mov bl, 1
push esi
mov esi, dword [ebp + 0xc]
mov word [esi], ax
cmp eax, 0x411
ja 0x408fec
je 0x408fe5
add eax, 0xfffffbfc
cmp eax, 0xc
ja case.0x408fc2.1029
movzx eax, byte [eax + 0x40907c]
jmp dword [eax*4 + 0x409068]
push 0x433b04
jmp 0x40904a
push 0x433b0c
jmp 0x40904a
push 0x433b14
jmp 0x40904a
push 0x433b34
jmp 0x40904a
push 0x433b24
jmp 0x40904a
cmp eax, 0x804
ja 0x409016
je 0x40900f
sub eax, 0x412
je 0x409008
sub eax, 4
jne case.0x408fc2.1029
push 0x433b44
jmp 0x40904a
push 0x433b2c
jmp 0x40904a
push 0x433b3c
jmp 0x40904a
cmp eax, 0xc0a
je 0x409045
mov ecx, dword [ebp + 8]
push 0x433b4c
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__
mov eax, 0x409
mov word [esi], ax
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x433b1c
mov ecx, dword [ebp + 8]
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x409a10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x448070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x409b8f
cmp eax, 2
je 0x409b8f
cmp byte [esi + 0x28], 0
je 0x409b8f
cmp dword [esi + 8], 0
je 0x409b8f
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x34], 0
je 0x409a89
push dword [esi + 8]
call fcn.0041d537
push eax
call fcn.0041d55b
add esp, 8
cmp dword [esi + 0x34], eax
ja 0x409a89
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b486
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [ebp - 0x18]
movzx eax, word [ebp - 6]
push dword [ebp - 0x1c]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [esi + 4]
push str._s_tPID:_x_tTID:_x_t_02.2d:_02.2d:_02.2d._03.3d_t__I64X__t
push 0x47f
push 0x480
push 0x449ee8
call fcn.0041cf49
mov edi, eax
add esp, 0x34
test edi, edi
js 0x409b85
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [edi*2 + 0x449ee8]
push 0x3ff
push 0x400
push eax
call fcn.0041cf68
add esp, 0x14
mov ecx, 0x3ff
test eax, eax
cmovs eax, ecx
add edi, eax
mov eax, 0x47e
cmp edi, 0x47f
cmovae edi, eax
mov eax, 0xa
mov word [edi*2 + 0x449ee8], ax
lea edi, [edi*2 + 2]
cmp edi, 0x900
jae 0x409b9e
xor eax, eax
mov word [edi + 0x449ee8], ax
mov eax, dword [esi + 8]
test eax, eax
je 0x409b69
push 0x449ee8
push 0x433050
push eax
call fcn.0041ceb5
add esp, 0xc
push dword [esi + 8]
call fcn.0041d3fa
add esp, 4
cmp dword [esi + 0x2c], 4
jne 0x409b85
push 0x449ee8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041b486
mov esp, ebp
pop ebp
ret
call fcn.0041cbc5
int3
Function at 0x40a4d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f736
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x448070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x25c], ebx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x254]
call sym.SetupBD.exe_public:_void___thiscall_CNcsRegKey::constructor_void_
cmp byte [ebx + 8], 0
mov dword [ebp - 4], 0
je 0x40a657
test edi, edi
je 0x40a657
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a532
sub ecx, edx
sar ecx, 1
je 0x40a657
push edi
lea ecx, [ebp - 0x228]
call sym.SetupBD.exe_public:_void___thiscall_CNcsString::constructor_wchar_t_const__
push 0
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 1
push eax
push dword [ebx + 4]
lea ecx, [ebp - 0x254]
call sym.SetupBD.exe_public:_bool___thiscall_CNcsRegKey::Open_struct_HKEY_____class_CNcsString_const___bool_
cmp dword [ebp - 0x214], 8
mov bl, al
mov byte [ebp - 4], 0
jb 0x40a58b
push dword [ebp - 0x228]
call fcn.0041aa29
add esp, 4
xor eax, eax
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
test bl, bl
je 0x40a657
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], 0x100
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push dword [ebp - 0x250]
call esi
test eax, eax
jne 0x40a639
lea esp, [esp]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x254]
call sym.SetupBD.exe_public:_bool___thiscall_CNcsRegKey::DeleteSubKey_wchar_t_const__
test al, al
je 0x40a657
lea eax, [ebp - 0x264]
mov dword [ebp - 0x258], 0x100
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push dword [ebp - 0x250]
call esi
test eax, eax
je 0x40a5f0
lea ecx, [ebp - 0x254]
call sym.SetupBD.exe_public:_void___thiscall_CNcsRegKey::Close_void_
mov ecx, dword [ebp - 0x25c]
push edi
call sym.SetupBD.exe_private:_unsigned_long_int___thiscall_CNcsRegKey::RemoveSubKey_wchar_t_const__
test eax, eax
sete bl
jmp 0x40a659
xor bl, bl
lea ecx, [ebp - 0x254]
mov dword [ebp - 4], 0xffffffff
call sym.SetupBD.exe_public_virtual:_void___thiscall_CNcsRegKey::destructor_void_
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b486
mov esp, ebp
pop ebp
ret 4

Function at 0x40a690
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 8], 0
mov dword [esi + 0xc], 0
je 0x40a6bb
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40a6ae
mov eax, dword [eax]
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [esi + 0xc], eax
xor eax, eax
cmp dword [esi + 0xc], eax
pop esi
sete al
pop ebp
ret 4
Function at 0x40a6d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f76b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x448070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xor al, al
mov dword [ebp - 0x234], 0x100
cmp byte [esi + 8], al
je 0x40a7c7
mov ecx, dword [esi + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x23c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
push ecx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [esi + 0xc], eax
cmp eax, 0x103
jne 0x40a75b
mov dword [esi + 0x10], 0
xor al, al
jmp 0x40a7c7
test eax, eax
sete bl
test bl, bl
je 0x40a7c5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call sym.SetupBD.exe_public:_void___thiscall_CNcsString::constructor_wchar_t_const__
mov edx, eax
cmp dword [edx + 0x14], 8
mov dword [ebp - 4], 0
jb 0x40a787
mov edx, dword [edx]
cmp word [edx], 0
jne 0x40a791
xor ecx, ecx
jmp 0x40a7a5
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a796
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const___unsigned_int_
cmp dword [ebp - 0x21c], 8
jb 0x40a7c5
push dword [ebp - 0x230]
call fcn.0041aa29
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b486
mov esp, ebp
pop ebp
ret 4

Function at 0x40a7f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x448070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x408], 0x200
xor al, al
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 8], al
je 0x40a897
mov ecx, dword [esi + 0x10]
push 0
push 0
push 0
lea eax, [ecx + 1]
push 0
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
push ecx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [esi + 0xc], eax
cmp eax, 0x103
jne 0x40a855
mov dword [esi + 0x10], 0
test eax, eax
push ebx
sete bl
test bl, bl
je 0x40a894
cmp word [ebp - 0x404], 0
jne 0x40a86d
xor ecx, ecx
jmp 0x40a885
lea ecx, [ebp - 0x404]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a876
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x404]
mov ecx, edi
push eax
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const___unsigned_int_
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041b486
mov esp, ebp
pop ebp
ret 4
Function at 0x40a960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
cmp byte [esi + 8], 0
mov dword [esi + 0xc], 0
je 0x40a9a7
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40a986
mov eax, dword [eax]
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40a9b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x448070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push eax
push str.CNcsRegKey::GetValue
lea ecx, [ebp - 0x30]
call fcn.00409380
cmp byte [esi + 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], 4
je 0x40aa78
push str.CNcsRegKey::GetValue_m_bIsOpened__true
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
mov eax, dword [ebp + 8]
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x40aa26
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
test eax, eax
mov dword [esi + 0xc], eax
push str.CNcsRegKey::GetValue_:_d
push 0x44aca0
sete byte [ebp - 0xd]
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 0xc
cmp dword [ebp - 0x14], 4
je 0x40aa78
push str.CNcsRegKey::GetValue_dwRegType___REG_DWORD
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
xor bl, bl
mov byte [ebp - 0xd], bl
jmp 0x40aa7b
mov bl, byte [ebp - 0xd]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.00409470
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40aaa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f80b
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x448070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x411]
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x434]
push eax
push str.CNcsRegKey::GetValue
mov byte [ebp - 0x411], 0
call fcn.00409380
push 0x400
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x418], 1
mov dword [ebp - 0x41c], 0x200
call fcn.0041c090
add esp, 0xc
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x40ab36
mov eax, dword [esi]
jmp 0x40ab38
mov eax, esi
xor ecx, ecx
mov word [eax], cx
cmp byte [ebx + 8], cl
je 0x40abb2
cmp dword [edi + 0x14], 8
jb 0x40ab4a
mov edi, dword [edi]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push edi
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [ebx + 0xc], eax
sete bl
mov byte [ebp - 0x411], bl
test bl, bl
je 0x40abb8
cmp word [ebp - 0x410], 0
jne 0x40ab8b
xor ecx, ecx
jmp 0x40aba3
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ab94
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const___unsigned_int_
mov bl, byte [ebp - 0x411]
lea ecx, [ebp - 0x434]
mov dword [ebp - 4], 0xffffffff
call fcn.00409470
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b486
mov esp, ebp
pop ebp
ret 8