joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40abf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f848
mov eax, dword fs:[0]
push eax
sub esp, 0x34
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 edi, ecx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x2d]
push dword [ebp - 0x38]
mov esi, dword [ebp + 8]
push eax
mov dword [edi + 0xc], 0
push dword [ebx + 4]
mov dword [ebp - 0x40], ebx
push dword [ebx]
mov dword [ebp - 0x34], 7
call fcn.00407b00
mov eax, dword [ebx]
add esp, 0x10
mov dword [ebx + 4], eax
cmp byte [edi + 8], 0
je 0x40acd2
cmp dword [esi + 0x14], 8
jb 0x40ac5d
mov eax, dword [esi]
jmp 0x40ac5f
mov eax, esi
lea ecx, [ebp - 0x2c]
push ecx
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x40acd2
mov eax, dword [ebp - 0x2c]
add eax, 5
push eax
mov dword [ebp - 0x3c], eax
call fcn.0041bff6
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
test ebx, ebx
je 0x40acd2
push dword [ebp - 0x3c]
push 0
push ebx
call fcn.0041c090
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40acad
mov esi, dword [esi]
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
push 0
push esi
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [edi + 0xc], eax
test eax, eax
je 0x40acd9
push ebx
call fcn.0041abe1
add esp, 4
xor al, al
jmp 0x40ad56
mov edi, dword [ebp - 0x2c]
mov esi, ebx
mov edi, edi
cmp byte [esi], 0
jne 0x40ace9
test edi, edi
je 0x40ad49
push esi
lea ecx, [ebp - 0x28]
call sym.SetupBD.exe_public:_void___thiscall_CNcsString::constructor_wchar_t_const__
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 4], 0
test ebx, ebx
je 0x40ad0c
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
push eax
call fcn.0040bd10
lea esi, [esi + ebx*2]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx*2 + 2]
add esi, 2
sub edi, eax
cmp dword [ebp - 0x14], 8
jb 0x40ad33
push dword [ebp - 0x28]
call fcn.0041aa29
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x40ace0
push dword [ebp - 0x38]
call fcn.0041abe1
add esp, 4
mov al, 1
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

Function at 0x40ad80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 3
xor al, al
cmp byte [esi + 8], al
je 0x40adbe
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40ada0
mov eax, dword [eax]
push dword [ebp + 0x10]
lea ecx, [ebp - 4]
push dword [ebp + 0xc]
push ecx
push 0
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [esi + 0xc], eax
sete al
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b8f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor dl, dl
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
cmp byte [ebp + 0x10], dl
setne bl
mov dword [esi + 0xc], 0
mov eax, dword [ecx + 0x10]
inc ebx
inc eax
cmp byte [esi + 8], dl
je 0x40b947
cmp dword [ecx + 0x14], 8
jb 0x40b91d
mov ecx, dword [ecx]
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 8
jb 0x40b928
mov edx, dword [edx]
add eax, eax
push eax
push ecx
push ebx
push 0
push edx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [esi + 0xc], eax
test eax, eax
pop esi
sete al
pop ebx
pop ebp
ret 0xc
pop esi
mov al, dl
pop ebx
pop ebp
ret 0xc

Function at 0x40b950
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
xor al, al
cmp byte [esi + 8], al
je 0x40b984
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40b968
mov eax, dword [eax]
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov dword [esi + 0xc], eax
sete al
pop esi
pop ebp
ret 8

Function at 0x40b990
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
xor al, al
mov dword [esi + 0xc], 0
cmp byte [esi + 8], al
je 0x40b9cb
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40b9af
mov eax, dword [eax]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 3
push 0
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov dword [esi + 0xc], eax
sete al
pop esi
pop ebp
ret 0xc
Function at 0x40b9d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fa38
mov eax, dword fs:[0]
push eax
sub esp, 0x18
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 ebx, ecx
mov dword [ebp - 0x20], ebx
cmp byte [ebx + 8], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0xc], 0
je 0x40ba74
mov ecx, dword [ebp + 0x10]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp + 0xc]
xor esi, esi
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x40ba40
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
mov eax, dword [ecx]
lea ecx, [ecx + 0x18]
lea esi, [esi + eax*2]
add esi, 2
dec edi
jne 0x40ba32
add esi, 2
push esi
mov dword [ebp - 0x1c], esi
call fcn.0041bff6
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x40bad0
push str.ERROR:__Unable_to_allocate_memory
push 0x3bf
push str.....CommonSrcNcsRegKey.cpp
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Error_wchar_t___int__wchar_t_const__
add esp, 0x10
xor bl, bl
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40baba
mov edi, dword [ebp + 0x10]
cmp esi, edi
je 0x40bab1
cmp dword [esi + 0x14], 8
jb 0x40ba94
push dword [esi]
call fcn.0041aa29
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x40ba84
mov esi, dword [ebp + 0xc]
push esi
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 esp, ebp
pop ebp
ret 0x10
push esi
push 0
push edi
call fcn.0041c090
xor ecx, ecx
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 0xc]
mov eax, esi
shr eax, 1
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, 0x2aaaaaab
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40bb67
mov esi, dword [ebp - 0x14]
xor ebx, ebx
jmp 0x40bb10
cmp dword [ebx + edi + 0x14], 8
lea eax, [ebx + edi]
jb 0x40bb1c
mov eax, dword [eax]
push eax
push dword [ebp - 0x18]
push esi
push 0x3cc
push str.....CommonSrcNcsRegKey.cpp
call fcn.0040be40
mov edi, dword [ebp + 0xc]
add esp, 0x14
mov ecx, dword [ebp + 0x10]
inc dword [ebp - 0x10]
sub ecx, edi
mov eax, dword [ebx + edi + 0x10]
add ebx, 0x18
lea esi, [esi + eax*2]
mov eax, 0x2aaaaaab
imul ecx
add esi, 2
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x10], eax
jb 0x40bb10
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov byte [edi + esi - 1], 0
cmp dword [eax + 0x14], 8
jb 0x40bb7a
mov eax, dword [eax]
push esi
push edi
push 7
push 0
push eax
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov dword [ebx + 0xc], eax
call fcn.0041abe1
add esp, 4
cmp dword [ebx + 0xc], 0
jne 0x40ba74
mov bl, 1
jmp 0x40ba76
Function at 0x40bc30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
lea eax, [ebp - 1]
mov esi, ecx
push eax
xor bl, bl
lea ecx, [ebp - 0x1c]
push str.CNcsRegKey::ValueExists
mov byte [ebp - 1], bl
call fcn.00409380
cmp byte [esi + 8], bl
je 0x40bc7f
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40bc60
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
lea ecx, [ebp - 0x1c]
call fcn.00409470
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40f130
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x448070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x40f173
push 0x10
lea ecx, [ebp - 0x24]
push ecx
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x24]
push eax
call fcn.0041ca70
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b486
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b486
mov esp, ebp
pop ebp
ret
Function at 0x410200
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x448070]
xor eax, ebp
mov dword [ebp - 4], eax
push str.Entering_CalliSCSIConfigExe
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
push 0x106
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0041c090
push 0x104
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.0041c090
add esp, 0x20
lea eax, [ebp - 0x418]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x437ac4
lea eax, [ebp - 0x210]
push 0x106
push eax
call fcn.0041c1ed
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push 0x106
push eax
call fcn.0041d6ab
push 0x431fe0
lea eax, [ebp - 0x210]
push 0x106
push eax
call fcn.0041d6ab
push 0x437ac8
lea eax, [ebp - 0x210]
push 0x106
push eax
call fcn.0041d6ab
push 0x437ae4
lea eax, [ebp - 0x210]
push 0x106
push eax
call fcn.0041d6ab
push str._verify__fix
lea eax, [ebp - 0x210]
push 0x106
push eax
call fcn.0041d6ab
add esp, 0x48
lea eax, [ebp - 0x46c]
push 0x44
push 0
push eax
call fcn.0041c090
add esp, 0xc
mov dword [ebp - 0x46c], 0x44
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x46c]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x410347
push str.Failed_to_call_iSCSI_command_line_utility.
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
jmp 0x410355
push 0xffffffffffffffff
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.Leaving_CalliSCSIConfigExe
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.0041b486
mov esp, ebp
pop ebp
ret
Function at 0x4133b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push str.Entering___GetLanguageSpecificString
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
mov eax, dword [ebp + 0xc]
add esp, 8
mov edi, dword [ebp + 8]
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push dword [ebp + 0x10]
movzx eax, ax
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x41341a
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41341a
xor ecx, ecx
jmp 0x413400
movzx edx, word [eax]
add eax, 2
test dx, dx
je 0x413414
mov edi, edx
cmp ecx, esi
je 0x413420
lea eax, [eax + edi*2]
inc ecx
cmp ecx, 0x10
jl 0x413400
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
dec ecx
cmp edi, ecx
cmovg edi, ecx
push edi
push eax
push esi
call fcn.0041dd34
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x413450
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x448070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.Entering___GetLevelsToRootFromINI
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
push str.SetupBD.ini
lea eax, [ebp - 0x224]
push 0x448024
push eax
call fcn.0040fb60
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0041c090
add esp, 0x20
lea eax, [ebp - 0x224]
cmp dword [ebp - 0x210], 8
cmovae eax, dword [ebp - 0x224]
push eax
push 0x208
lea eax, [ebp - 0x20c]
push eax
push 0x431fdc
push str.LevelsToRoot
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0041ca70
add esp, 4
mov esi, eax
cmp dword [ebp - 0x210], 8
jb 0x413507
push dword [ebp - 0x224]
call fcn.0041aa29
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041b486
mov esp, ebp
pop ebp
ret
Function at 0x413520
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x448070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push str.Entering___GetModuleVersion
push 0x44aca0
mov dword [ebp - 0x264], eax
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
mov dword [ebp - 0x258], 0
lea eax, [ebp - 0x254]
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x413594
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b486
mov esp, ebp
pop ebp
ret
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x260]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x4135bf
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b486
mov esp, ebp
pop ebp
ret
push esi
push ebx
call fcn.0041aa20
mov esi, eax
add esp, 4
test esi, esi
jne 0x4135e0
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b486
mov esp, ebp
pop ebp
ret
push esi
push ebx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x413659
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], 0
push eax
lea eax, [ebp - 0x25c]
push eax
push 0x431fe0
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x413659
mov ecx, dword [ebp - 0x25c]
mov edi, dword [ebp - 0x264]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
push edi
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 0x20
mov dword [ebp - 0x258], 1
push esi
call fcn.0041ad35
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x258]
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.0041b486
mov esp, ebp
pop ebp
ret
Function at 0x413d30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x448070]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0041c090
push str.SETUPBD.txt
lea eax, [ebp - 0x20c]
push eax
push 0x3a
push str.SetupBasedriver.cpp
call fcn.0040fc50
add esp, 0x1c
lea eax, [ebp - 0x20c]
mov ecx, 0x44aca0
push 0
push 0
push 0
push 1
push eax
push str.SETUPBD:
call sym.SetupBD.exe_public:_int___thiscall_CNcsDebug::Configure_wchar_t_const___wchar_t_const___unsigned_long_int__int__unsigned_long_int__wchar_t_const__
push str.InitDebug_completed
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.0041b486
mov esp, ebp
pop ebp
ret
Function at 0x414660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430470
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x448070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Entering___IsFileUnicode
push 0x44aca0
mov dword [ebp - 4], 0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
lea eax, [ebp + 8]
xor esi, esi
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41472b
push 0x15
xor eax, eax
mov dword [ebp - 0x14], 7
push str.unable_to_open_file:
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], ax
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_
push edi
push esi
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x28]
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__::append_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int_
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
cmp dword [ebp - 0x14], 8
jb 0x414789
push dword [ebp - 0x28]
call fcn.0041aa29
add esp, 4
jmp 0x414789
push 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], esi
push eax
push 2
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414770
mov eax, 0xfeff
cmp ax, word [ebp - 0x2c]
jne 0x414769
push str.file_is_Unicode_n
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
mov esi, 1
jmp 0x41477f
push str.file_is_not_Unicode_n
jmp 0x414775
push str.unable_to_read_from_file_n
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 8
jb 0x41479a
push dword [ebp + 8]
call fcn.0041aa29
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b486
mov esp, ebp
pop ebp
ret
Function at 0x414cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43050b
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
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
push str.Entering___IsNT4TerminalServer
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
lea ecx, [ebp - 0x16c]
push 0
call fcn.0040f190
lea ecx, [ebp - 0x16c]
mov dword [ebp - 4], 0
call fcn.0040f1d0
cmp eax, 5
jne 0x414e2d
movdqu xmm0, xmmword [str.Terminal_Server]
lea eax, [ebp - 0x170]
mov dword [ebp - 0x170], 0
push eax
push str.SystemCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
movdqu xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x178], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x414e21
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x178]
push eax
push 0
lea eax, [ebp - 0x174]
push eax
push 0
push str.ProductSuite
push dword [ebp - 0x170]
call esi
test eax, eax
jne 0x414e21
mov eax, dword [ebp - 0x178]
test eax, eax
je 0x414e21
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x414e21
lea eax, [ebp - 0x178]
push eax
push edi
lea eax, [ebp - 0x174]
push eax
push 0
push str.ProductSuite
push dword [ebp - 0x170]
call esi
test eax, eax
jne 0x414e21
cmp dword [ebp - 0x174], 7
jne 0x414e21
mov esi, edi
cmp byte [edi], al
je 0x414e1a
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x414e00
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x414e5f
push esi
call ebx
inc esi
add esi, eax
cmp byte [esi], 0
jne 0x414e00
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x170]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea ecx, [ebp - 0x16c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040f1c0
mov eax, esi
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
push dword [ebp - 0x170]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x414e2f
Function at 0x414e80
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x448070]
xor eax, ebp
mov dword [ebp - 4], eax
push str.Entering___IsPROSetActive
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0041c090
movq xmm0, qword [str.PROSetMutex]
add esp, 0x14
mov eax, dword [0x4378a0]
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], eax
call fcn.00414cd0
test eax, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
jne 0x414ee7
push 0x433050
jmp 0x414eec
push str.Global_s
push 0x104
push eax
call fcn.0041e3d1
add esp, 0x10
lea eax, [ebp - 0x218]
push esi
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x414f2f
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b486
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0041b486
mov esp, ebp
pop ebp
ret
Function at 0x417020
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4305cb
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x448070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push str.Entering___PreviousInstanceRunning
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
xor edi, edi
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x417083
lea eax, [edi + 1]
jmp 0x41712b
push 0
lea ecx, [ebp - 0x364]
call fcn.0040f190
lea ecx, [ebp - 0x364]
mov dword [ebp - 4], 0
call fcn.0040f1d0
cmp eax, 5
jne 0x417117
call fcn.00414e80
test eax, eax
je 0x417117
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0041c090
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0xd
push dword [0x44aa54]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10
push str.SetupBD
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [ebp - 0x218]
push eax
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
mov edi, 1
lea ecx, [ebp - 0x364]
mov dword [ebp - 4], 0xffffffff
call fcn.0040f1c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b486
mov esp, ebp
pop ebp
ret
Function at 0x4181b0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x448070]
xor eax, ebp
mov dword [ebp - 4], eax
push str.Entering___RestartMachine
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b486
mov esp, ebp
pop ebp
ret