joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ad50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426fc7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
lea eax, [ebp - 0x58]
xor esi, esi
push eax
mov dword [ebp - 0x10], esi
call fcn.0040c800
mov edi, dword [ebp + 8]
cmp edi, esi
mov dword [ebp - 4], esi
je 0x41adf9
cmp word [edi], si
je 0x41adf9
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41adf9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
call fcn.004263b0
mov esi, esp
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea ecx, [ebp - 0x58]
push ecx
call fcn.0040c960
test al, al
je 0x41adf2
lea eax, [ebp - 0x58]
call fcn.0041aac0
test eax, eax
je 0x41adf2
lea eax, [ebp - 0x58]
call fcn.0041a920
test eax, eax
je 0x41adf2
lea eax, [ebp - 0x58]
call fcn.0041a7b0
test eax, eax
je 0x41adf9
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
cmp eax, 0x445a58
mov dword [ebp - 0x58], vtable.BDMTinyxml::TiXmlDocument.0
je 0x41ae1a
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.0040bfc0
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41b3e0
Capabilities:
Set registry value

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

Function at 0x41b430
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
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 [esi + 4]
push edi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x41b460
Capabilities:
Set registry value

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

Function at 0x41b480
Capabilities:
Set registry value

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

Function at 0x41b4a0
Capabilities:
Set registry value

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

Function at 0x41b4c0
Capabilities:
Set registry value

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

Function at 0x41b4f0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
mov bl, byte [esp + 0x10]
test bl, bl
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
je 0x41b515
cmp eax, 0xffffffff
jne 0x41b524
pop edi
pop esi
mov eax, 0x57
pop ebx
ret 0x10
cmp eax, 0xffffffff
jne 0x41b524
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 4]
add eax, eax
neg bl
push eax
push edi
sbb ebx, ebx
and ebx, 6
add ebx, 1
push ebx
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x41b570
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
add eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0
mov dword [esi], 0
mov ecx, dword [ecx + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b5c1
cmp dword [esp + 0xc], 7
je 0x41b5b7
mov eax, 0xd
pop esi
ret 0xc
mov edx, dword [esp + 0x10]
shr edx, 1
mov dword [esi], edx
xor eax, eax
pop esi
ret 0xc

Function at 0x41b5d0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
add eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0
mov dword [esi], 0
mov ecx, dword [ecx + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x10]
shr edx, 1
test eax, eax
mov dword [esi], edx
pop esi
jne 0x41b628
mov eax, dword [esp + 8]
cmp eax, 1
je 0x41b626
cmp eax, 2
je 0x41b626
mov eax, 0xd
ret 0xc
xor eax, eax
ret 0xc

Function at 0x41b630
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b662
mov eax, dword [esp + 0xc]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0xd
ret 0xc

Function at 0x41b670
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x18], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b6aa
mov eax, dword [esp + 0xc]
sub eax, 0xb
neg eax
sbb eax, eax
and eax, 0xd
pop ecx
ret 8

Function at 0x41b6b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b6ea
mov eax, dword [esp + 0xc]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
pop ecx
ret 8

Function at 0x41b6f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
ret 0x10
Function at 0x41b750
Capabilities:
Query or enumerate registry value

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

Function at 0x41b880
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push 0
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
ret 0x18

Function at 0x41b8b0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 8
test eax, eax
jne 0x41b8be
lea eax, [esp]
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 8
ret 0x10
Function at 0x41b9b0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov edx, dword [esp + 0x220]
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
lea ecx, [esp + 0x1c]
push ecx
push 0x2001f
push 0
push edx
mov ebx, vtable.BDMRegisterUtils::CBDMRegistryHandleImp.0
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x41bace
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x54]
lea ecx, [esp + 0x10]
call edx
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jne 0x41bad2
lea ecx, [esp + 0x20]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x3c]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x41ba81
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x14]
call fcn.0041b9b0
mov ebx, eax
test ebx, ebx
jne 0x41baef
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebx
push eax
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x41ba43
mov eax, dword [esp + 0x14]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x41ba9a
push eax
call ebx
mov dword [esp + 0x14], 0
mov edx, dword [edi]
mov eax, dword [esp + 0x22c]
mov edx, dword [edx + 0x70]
push eax
mov ecx, edi
call edx
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x10], vtable.BDMRegisterUtils::CBDMRegistryHandleImp.0
je 0x41bac0
push eax
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x21c
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x10], ebx
je 0x41bac0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x21c
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x10], vtable.BDMRegisterUtils::CBDMRegistryHandleImp.0
je 0x41bb06
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x21c
ret 4
Function at 0x41bb20
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [ecx + 4]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 4]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push ecx
mov dword [esp + 0x28], vtable.BDMRegisterUtils::CBDMRegistryHandleImp.0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41bb79
mov edx, dword [esp + 4]
mov eax, dword [edx + 0x54]
lea ecx, [esp + 4]
call eax
mov ecx, dword [esp]
mov dword [esp + 8], ecx
test eax, eax
push esi
mov esi, eax
jne 0x41bba7
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0xc]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x1c]
push edx
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 8], vtable.BDMRegisterUtils::CBDMRegistryHandleImp.0
je 0x41bbbe
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret 0xc

Function at 0x41bf90
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x414
push ebx
push esi
push 0x206
mov esi, eax
lea eax, [esp + 0x12]
push 0
push eax
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0
call sub.MSVCR80.dll_memset
push 0x206
lea ecx, [esp + 0x226]
push 0
push ecx
mov word [esp + 0x22c], 0
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x438]
add esp, 0x18
lea ebx, [esp + 0x214]
lea ecx, [esp + 0xc]
call fcn.0041bbe0
test eax, eax
je 0x41c026
neg esi
sbb esi, esi
lea edx, [esp + 8]
push edx
and esi, 0x100
or esi, 0x10009
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0041bda0
add esp, 0xc
test eax, eax
jne 0x41c026
pop esi
pop ebx
add esp, 0x414
ret
mov edx, dword [esp + 8]
lea ecx, [esp + 0x214]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
neg eax
sbb eax, eax
pop esi
add eax, 1
pop ebx
add esp, 0x414
ret
Function at 0x41c050
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x426db6
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
push ebp
push esi
push edi
push 0x206
xor ebp, ebp
lea eax, [esp + 0x3a]
push ebp
push eax
mov esi, ecx
call sub.MSVCR80.dll_memset
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add esp, 0xc
xor edi, edi
mov edi, edi
mov eax, dword [esp + 0x254]
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x48]
push edx
push edi
push eax
mov dword [esp + 0x34], 0x104
mov word [esp + 0x54], bp
call ebx
add edi, 1
cmp eax, ebp
jne 0x41c0f0
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
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__]
push eax
mov dword [esp + 0x250], ebp
call fcn.00406040
lea ecx, [esp + 0x18]
mov dword [esp + 0x24c], 0xffffffff
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_]
jmp 0x41c090
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x240
ret

Function at 0x41c110
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x426dcc
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
push ebp
push esi
push edi
push 0x206
xor ebp, ebp
lea eax, [esp + 0x3a]
push ebp
push eax
mov esi, ecx
call sub.MSVCR80.dll_memset
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
xor edi, edi
mov edi, edi
mov eax, dword [esp + 0x254]
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x48]
push edx
push edi
push eax
mov dword [esp + 0x34], 0x104
mov word [esp + 0x54], bp
call ebx
add edi, 1
cmp eax, ebp
jne 0x41c1b0
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
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__]
push eax
mov dword [esp + 0x250], ebp
call fcn.00406040
lea ecx, [esp + 0x18]
mov dword [esp + 0x24c], 0xffffffff
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_]
jmp 0x41c150
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x240
ret
Function at 0x41c2b0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x20c
push 0x208
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call sub.MSVCR80.dll_memset
push 0x438cd4
push edi
call dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 0x14
test eax, eax
jne 0x41c31e
push esi
lea ecx, [esp + 4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edx, [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, 0x104
sub eax, esi
push eax
push edi
lea ecx, [esp + 0xc]
push 0x105
push ecx
call dword [sym.imp.MSVCR80.dll_wcsncat_s]
add esp, 0x10
pop esi
jmp 0x41c337
push 0x104
push edi
lea edx, [esp + 8]
push 0x105
push edx
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c357
xor eax, eax
xor edx, edx
test eax, eax
sete dl
mov eax, edx
add esp, 0x20c
ret
push 0
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor edx, edx
test eax, eax
sete dl
mov eax, edx
add esp, 0x20c
ret

Function at 0x41c530
Capabilities:
Get routing table

Disassembly:
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
mov eax, dword [0x444dac]
test eax, eax
je 0x41c557
mov ecx, ebp
sub ecx, dword [0x447b48]
cmp ecx, 0x3e8
jb 0x41c610
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCR80.dll_malloc]
push 0x3c
mov dword [esp + 0x14], 0
call edi
add esp, 4
push 0
lea edx, [esp + 0x14]
mov esi, eax
push edx
push esi
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, 0x7a
mov ebx, dword [sym.imp.MSVCR80.dll_free]
jne 0x41c5af
push esi
call ebx
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, 0xb2c
ja 0x41c5b9
push eax
call edi
add esp, 4
mov esi, eax
push 0
lea eax, [esp + 0x14]
push eax
push esi
call sub.iphlpapi.dll_GetIpForwardTable
test eax, eax
je 0x41c5d4
push esi
call ebx
add esp, 4
pop edi
pop esi
pop ebx
mov dword [0x447b48], ebp
mov dword [0x444dac], 1
mov eax, 1
pop ebp
pop ecx
ret
mov edx, dword [esi]
xor ecx, ecx
test edx, edx
jbe 0x41c5f5
lea eax, [esi + 4]
nop
cmp dword [eax], 0
jne 0x41c5eb
cmp dword [eax + 4], 0
je 0x41c5b3
add ecx, 1
add eax, 0x38
cmp ecx, edx
jb 0x41c5e0
push esi
call ebx
add esp, 4
pop edi
pop esi
mov dword [0x444dac], 0
xor eax, eax
mov dword [0x447b48], ebp
pop ebx
pop ebp
pop ecx
ret
Function at 0x41c6a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4430f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
jne 0x41c6d2
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410d2a
mov esp, ebp
pop ebp
ret 8
push ebx
push 0x208
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call sub.MSVCR80.dll_memset
mov ebx, dword [ebp + 0xc]
lea ecx, [ebx + ebx]
push ecx
push edi
push esi
mov dword [ebp - 0x21c], 0x104
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], 1
call sub.MSVCR80.dll_memset
add esp, 0x18
lea edx, [ebp - 0x214]
push edx
push 1
push 0
push str.SOFTWAREBaiduBrowserProtect
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41c792
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push str.Version
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c783
cmp dword [ebp - 0x218], 1
jne 0x41c783
lea ecx, [ebp - 0x210]
push ecx
push ebx
push esi
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
mov edi, 1
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41c794
xor edi, edi
mov ecx, dword [ebp - 4]
pop ebx
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00410d2a
mov esp, ebp
pop ebp
ret 8
Function at 0x41cae0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4430f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
jne 0x41cb12
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410d2a
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [ebp + 0xc]
add edi, edi
push edi
push ebx
push esi
mov dword [ebp - 0x210], ebx
call sub.MSVCR80.dll_memset
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call sub.MSVCR80.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
add esp, 0x18
push 0x103
push esi
push 0x436348
call ebx
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x41cc01
cmp eax, 0x50
je 0x41cc01
cmp eax, 0xb7
je 0x41cc01
push 0x103
lea edx, [ebp - 0x20c]
push edx
push str._ALLUSERSPROFILE_BaiduBrowserProtect
call ebx
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x41cbb6
cmp eax, 0xb7
je 0x41cbb6
cmp eax, 0x50
jne 0x41cc49
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push esi
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
lea edx, [ebp - 0x20c]
push 0x5c
push edx
mov word [edi + esi], 0
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41cbe3
sub eax, edx
sar eax, 1
cmp eax, 1
jbe 0x41cc39
push 1
push 0x436344
push ebx
jmp 0x41cc2f
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41cc10
sub eax, edx
sar eax, 1
cmp eax, 1
jbe 0x41cc49
mov eax, dword [ebp + 0xc]
push 1
push 0x436408
push eax
push esi
call dword [sym.imp.MSVCR80.dll_wcsncat_s]
add esp, 0x10
mov dword [ebp - 0x210], 1
mov word [edi + esi], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410d2a
mov esp, ebp
pop ebp
ret 8
Function at 0x41cc70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4430f4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x41cc9e
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410d2a
mov esp, ebp
pop ebp
ret 8
push esi
push 0x400
lea eax, [ebp - 0x406]
push 0
push eax
mov dword [ebp - 0x40c], 0
mov word [ebp - 0x408], 0
call sub.MSVCR80.dll_memset
mov esi, dword [ebp + 0xc]
lea ecx, [esi + esi]
push ecx
push 0
push edi
mov dword [ebp - 0x410], 0x400
call sub.MSVCR80.dll_memset
add esp, 0x18
call fcn.0041c7b0
neg eax
sbb eax, eax
and eax, 0x200
lea edx, [ebp - 0x40c]
push edx
add eax, 1
push eax
push 0
push 0x4362a4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41cd7e
mov edx, dword [ebp - 0x40c]
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x408]
push ecx
push 0
push 0
push str.InstallDir
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41cd5a
cmp esi, 0x104
mov eax, esi
jb 0x41cd47
mov eax, 0x104
push eax
lea eax, [ebp - 0x408]
push eax
push esi
push edi
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
mov ecx, dword [ebp - 0x40c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410d2a
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop edi
call fcn.00410d2a
mov esp, ebp
pop ebp
ret 8