joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427020
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x43c648]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, dword [0x43c648]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
push 0x43fdd0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x43fdec], 1
jne 0x405fa1
or dword [0x43fdec], 1
mov ecx, 0x43fde8
mov dword [esp + 0x38], 1
call fcn.00405e40
mov byte [esp + 0x38], 0
push 0x43fdd0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov ecx, dword [esp + 0x44]
mov edx, dword [0x43fe98]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
mov dword [esp + 0x44], 2
call fcn.00419081
add esp, 0xc
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
test eax, eax
jne 0x40601c
mov dword [esi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 8], 1
mov byte [esp + 0x38], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00423e66
add esp, 0x34
ret
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [esi], eax
jne 0x405fe7
push 0x8007000e
call fcn.00401210
int3

Function at 0x406170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427090
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x43c648]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x7c]
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 0
mov esi, dword [esi + 0x74]
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0xc]
push ecx
push 0xffffffffffffffff
push esi
mov byte [esp + 0x28], 1
call edx
mov esi, eax
test esi, esi
jl 0x4061ea
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x28]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
mov byte [esp + 0x1c], 0
je 0x4061ff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 8
Function at 0x40c780
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x42791b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x43c648]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
lea esi, [ebx + 4]
xor edi, edi
mov dword [ebx], vtable.CNMTVHardwareInitializer.0
mov dword [ebp - 0x18], ebx
mov dword [esi], edi
push 0x43fdf0
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], 0x43fdf0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 0x208]
push eax
push 0x104
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
je 0x40c8da
cmp eax, 0x104
ja 0x40c8da
lea ecx, [ebp + 0x208]
push ecx
push 0x104
lea edx, [ebp]
push edx
call fcn.00402ac0
push str.GCHWLogfile.log
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x14]
push ecx
push 0x42a780
push 3
push edi
push 0x42a760
mov byte [ebp - 4], 3
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x40c889
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [ebp + 0x208]
push ecx
push eax
call edx
cmp eax, edi
jl 0x40c889
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp + 0x208]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp eax, edi
jl 0x40c889
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push eax
call edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00410910
test al, al
jne 0x40c8c7
cmp esi, edi
je 0x40c8c7
mov eax, dword [ebp - 0x14]
test eax, eax
mov edi, dword [esi]
mov dword [esi], 0
je 0x40c8bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push esi
push 0x42add4
push eax
call edx
mov eax, dword [ebp - 0x14]
test edi, edi
je 0x40c8ca
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov eax, dword [ebp - 0x14]
test eax, eax
mov byte [ebp - 4], 2
je 0x40c8da
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push 0x43fdf0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00423e66
add ebp, 0x414
mov esp, ebp
pop ebp
ret

Function at 0x40cf50
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x40cf70
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x40cf86
push 0x80004005
call fcn.00401210
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc
Function at 0x40cfb0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x40cfc8
push 0x80004005
call fcn.00401210
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40cfd5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8

Function at 0x40d7f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x43c648]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x40d85e
test ecx, ecx
je 0x40d850
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x40d86c
test ecx, ecx
je 0x40d911
push ecx
jmp 0x40d90b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x40d8de
jmp 0x40d8a0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.0040d7f0
mov edi, eax
test edi, edi
jne 0x40d92d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x40d8a0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d8f5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d911
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00423e66
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d93c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40d913

Function at 0x40dd90
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x30], eax
jne 0x40ddac
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x40d7a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x40ddd4
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x40fa70
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x427b78
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x43c648]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43c648]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
push 0x42b198
xor ebx, ebx
push 0x17
push ebx
push 0x42b2bc
mov ebp, ecx
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], 1
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x40fadf
cmp byte [esp + 0x14], bl
je 0x40fadf
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov byte [esp + 0x14], bl
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push edi
call fcn.0040c200
add esp, 4
test al, al
je 0x40fb3b
cmp byte [esp + 0x14], bl
mov dword [esp + 0x28], 0xffffffff
je 0x40fb24
cmp byte [esp + 0x15], bl
je 0x40fb1e
push ebx
push str.CLogger
push str.Application_stopped._Please_press_OK_to_exit.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40fb34
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
jmp 0x40fbbd
lea esi, [ebp + 0x40]
push esi
call fcn.0040e8b0
add esp, 4
test eax, eax
jge 0x40fb8e
cmp byte [esp + 0x14], bl
mov dword [esp + 0x28], 0xffffffff
je 0x40fb77
cmp byte [esp + 0x15], bl
je 0x40fb71
push ebx
push str.CLogger
push str.Application_stopped._Please_press_OK_to_exit.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40fb87
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0x8007000e
jmp 0x40fbbd
mov ecx, dword [esi]
push edi
call fcn.0040b620
mov esi, eax
cmp esi, ebx
jl 0x40fbaa
mov eax, dword [esp + 0x30]
push eax
mov ecx, ebp
call fcn.0040f8b0
mov esi, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040dc50
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00423e66
add esp, 0x18
ret 4
Function at 0x40fbe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x427bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x43c648]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0x418]
mov edi, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
call dword [0x438cb0]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x40fc6d
call fcn.0040cc80
mov esi, eax
jmp 0x40fd55
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40fc89
call fcn.0040cc80
jmp 0x40fd4c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x40fca2
call fcn.0040cc80
jmp 0x40fd4c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x14], esi
jae 0x40fcd8
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x40fcc6
lea ecx, [ebp]
call fcn.0040d760
lea ecx, [ebp - 0x1c]
call fcn.0040d6e0
mov eax, 0x8007000e
jmp 0x40fd72
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0040e5e0
mov dword [ebp - 4], 1
jmp 0x40fd01
mov ebx, dword [ebp]
test ebx, ebx
jne 0x40fd0f
mov esi, 0x8007000e
jmp 0x40fd4e
call dword [0x438cb0]
mov ecx, dword [ebp - 0x20]
push esi
push ebx
push esi
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40fd30
call fcn.0040cc80
jmp 0x40fd4c
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040f920
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x40fd70
lea ecx, [ebp]
call fcn.0040d760
jmp 0x40fd70
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 + 0x404]
xor ecx, ebp
call fcn.00423e66
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x417f27
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43c648]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00417ebc
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x417f76
cmp dword [ebp - 0x1c], 5
jb 0x417f8e
jmp 0x417f8a
cmp dword [ebp - 0x10], 1
jne 0x417f8e
cmp dword [ebp - 0x1c], 4
ja 0x417f8a
jne 0x417f8e
cmp dword [ebp - 0x18], 0
jbe 0x417f8e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42c068
call fcn.00401270
test eax, eax
jge 0x417faf
mov byte [0x43fe10], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00423e66
add ebp, 0x78
leave
ret

Function at 0x41805e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 4
inc eax
movzx eax, ax
push 6
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4180cb
push edi
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4180ca
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4180c3
and esi, 0xf
jmp 0x4180a6
movzx ecx, cx
dec esi
lea eax, [eax + ecx*2]
movzx ecx, word [eax]
inc eax
inc eax
test esi, esi
jne 0x41809f
test cx, cx
je 0x4180c3
movzx ecx, cx
push ecx
mov ecx, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCP80.dll_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
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
ret

Function at 0x41a14e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43c648]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx], 0xffffffff
je 0x41a18e
call fcn.0041a12f
push 7
lea ecx, [ebp - 0x14]
push ecx
movzx eax, ax
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41a18e
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.MSVCR80.dll__wtoi]
pop ecx
jmp 0x41a190
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423e66
leave
ret
Function at 0x41a6b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
cmp dword [0x43ff64], 0
mov dword [0x43ff60], 0
je 0x41a6cc
xor eax, eax
add esp, 0xc
ret
mov eax, 0x43ff70
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a6d4
sub eax, edx
sar eax, 1
push esi
jne 0x41a751
lea eax, [esp + 4]
push eax
push 1
xor esi, esi
push esi
push str.CLSIDc6f7158b_a330_474c_b76e_ecf14355aabaInprocServer32
push SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41a765
lea ecx, [esp + 0xc]
push ecx
push 0x43ff70
lea edx, [esp + 0x10]
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41a742
cmp dword [esp + 8], 1
jne 0x41a742
lea esi, [eax + 1]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41a765
push 0x43ff70
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x43ff64], eax
jne 0x41a781
cmp dword [0x43ff60], 0
jle 0x41a777
mov word [0x43ff62], 0x8007
mov eax, 0x80004005
pop esi
add esp, 0xc
ret
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x41a840
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x428b2b
mov eax, dword fs:[0]
push eax
mov eax, 0x2208
call fcn.00423f60
mov eax, dword [0x43c648]
xor eax, esp
mov dword [esp + 0x2204], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43c648]
xor eax, esp
push eax
lea eax, [esp + 0x221c]
mov dword fs:[0], eax
push 0x43ff48
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 1
mov dword [esp + 0x14], esi
xor edi, edi
cmp dword [0x43ff64], edi
mov dword [esp + 0x2224], edi
je 0x41a8b0
cmp dword [0x43ff68], edi
jne 0x41aa08
mov word [esp + 0x218], di
call fcn.0041a6b0
test eax, eax
jge 0x41a8e6
push 0x1000
push str.This_program_requires_the_file_advrcntr3.dll__which_was_not_found_on_this_system.
lea eax, [esp + 0x220]
push 0x1000
push eax
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
jmp 0x41a97e
mov ebp, dword [esp + 0x2230]
mov ebx, dword [esp + 0x222c]
push ebp
push ebx
call fcn.0041a790
add esp, 8
test eax, eax
jge 0x41aa08
test bl, bl
je 0x41a93b
push ebp
push 0
call fcn.0041a790
add esp, 8
test eax, eax
jl 0x41a93b
mov ebp, dword [0x43ff68]
add ebp, 0x14
push ebp
mov esi, 2
call fcn.0041a7f0
add esp, 4
test eax, eax
je 0x41a93b
mov ecx, dword [ebp]
call ecx
mov edi, eax
mov edx, dword [esp + 0x2230]
mov eax, dword [esp + 0x2238]
mov ecx, dword [esp + 0x2234]
push edx
push eax
push ecx
push edi
push 7
push 0xcf
push esi
push str.Fatal_Error:_r_nInstallation_corrupted___please_reinstall_NERO__r_n_r_nError_Code:__i____i____i____i_r_nParameters:__i____i____i_r_nSee_Doc4536
push 0x1000
lea edx, [esp + 0x23c]
push 0x1000
push edx
call dword [sym.imp.MSVCR80.dll__snwprintf_s]
add esp, 0x2c
xor edi, edi
push 0x43ff48
mov dword [0x43ff68], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x42d8f4]
mov cx, word [0x42d8f8]
push 0x1fa
lea edx, [esp + 0x22]
push edi
push edx
mov dword [esp + 0x24], eax
mov word [esp + 0x28], cx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x100
lea eax, [esp + 0x1c]
push eax
push str.NeroSuppressProxyCheck
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x41a9e2
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.MSVCR80.dll__wtoi]
add esp, 4
test eax, eax
jne 0x41aa01
test byte [0x43ff6c], 1
jne 0x41aa01
push 0x10
push str.Nero
lea edx, [esp + 0x220]
push edx
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x80004005
jmp 0x41aa15
push 0x43ff48
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x221c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2204]
xor ecx, esp
call fcn.00423e66
add esp, 0x2214
ret
Function at 0x41cfa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x428da1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x43c648]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push 0x42bd44
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [esp + 0xc]
push eax
push 0
mov ecx, esi
mov dword [esp + 0x38], 0
call fcn.0041f610
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x41e050
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x428ed3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x43c648]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x440580
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.tinyxml::TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x440580
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x42d5a0
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.004205d0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret