joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404720
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.soui.dll_public:_class_SOUI::SWindow____thiscall_SOUI::SWindow::FindChildByName_wchar_t_const___int_]
mov edi, eax
test edi, edi
je 0x404754
mov esi, dword [edi]
call dword [sym.imp.soui.dll_public:_static_wchar_t_const____cdecl_SOUI::SStatic::GetClassNameW_void_]
push eax
mov ecx, edi
call dword [esi + 4]
test eax, eax
je 0x404754
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
call dword [sym.imp.soui.dll_public:_static_class_SOUI::SApplication____cdecl_SOUI::SSingleton_class_SOUI::SApplication_::getSingletonPtr_void_]
test eax, eax
je 0x404770
call dword [sym.imp.soui.dll_public:_static_class_SOUI::SApplication____cdecl_SOUI::SSingleton_class_SOUI::SApplication_::getSingleton_void_]
mov ecx, eax
call dword [sym.imp.soui.dll_public:_struct_SOUI::ILog4zManager____thiscall_SOUI::SApplication::GetLogManager_void_]
mov esi, eax
jmp 0x404772
xor esi, esi
push 0x2800
call fcn.0047fb67
add esp, 4
mov edi, eax
push 0x5000
call fcn.0047fb67
add esp, 4
mov ebx, eax
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.soui.dll_public:_static_wchar_t_const____cdecl_SOUI::SStatic::GetClassNameW_void_]
push eax
push str.FindChildByName2_Failed__no_window_of_class___s__with_name_of___s__was_found_within___d__levels
push 0xffffffffffffffff
push 0x2800
push ebx
call fcn.00405680
add esp, 0x1c
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 0x2800
jae 0x4047e0
push 0
push 0
push eax
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
call fcn.0047a689
add esp, 4
test esi, esi
je 0x404835
mov eax, dword [esi]
mov ecx, esi
push 1
push 0
mov eax, dword [eax + 0x2c]
call eax
test al, al
je 0x404835
mov eax, dword [ebp + 4]
mov ecx, esi
mov edx, dword [esi]
push eax
push str.SOUI::SWindow::FindChildByName2
push 0x20e
push str.D:codeworkspace_souiSOUIincludecoreSWnd.h
push edi
push str.soui
push 1
push 0
call dword [edx + 0x34]
push edi
call fcn.0047a689
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
push 0x2800
call fcn.0047fb67
add esp, 4
mov esi, eax
push 0x20e
push str.D:codeworkspace_souiSOUIincludecoreSWnd.h
push str.SOUI::SWindow::FindChildByName2
push edi
push str._s__s__s:_d_n
push 0xffffffffffffffff
push 0x2800
push esi
call fcn.004056e0
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.0047a689
add esp, 4
push edi
call fcn.0047a689
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x404890
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.soui.dll_public:_class_SOUI::SWindow____thiscall_SOUI::SWindow::FindChildByName_wchar_t_const___int_]
mov edi, eax
test edi, edi
je 0x4048c0
mov esi, dword [edi]
call dword [sym.imp.soui.dll_public:_static_wchar_t_const____cdecl_SOUI::SProgress::GetClassNameW_void_]
push eax
mov ecx, edi
call dword [esi + 4]
test eax, eax
je 0x4048c0
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
call dword [sym.imp.soui.dll_public:_static_class_SOUI::SApplication____cdecl_SOUI::SSingleton_class_SOUI::SApplication_::getSingletonPtr_void_]
test eax, eax
je 0x4048dc
call dword [sym.imp.soui.dll_public:_static_class_SOUI::SApplication____cdecl_SOUI::SSingleton_class_SOUI::SApplication_::getSingleton_void_]
mov ecx, eax
call dword [sym.imp.soui.dll_public:_struct_SOUI::ILog4zManager____thiscall_SOUI::SApplication::GetLogManager_void_]
mov esi, eax
jmp 0x4048de
xor esi, esi
push ebx
push 0x2800
call fcn.0047fb67
push 0x5000
mov edi, eax
call fcn.0047fb67
add esp, 8
mov ebx, eax
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.soui.dll_public:_static_wchar_t_const____cdecl_SOUI::SProgress::GetClassNameW_void_]
push eax
push str.FindChildByName2_Failed__no_window_of_class___s__with_name_of___s__was_found_within___d__levels
push 0xffffffffffffffff
push 0x2800
push ebx
call fcn.00405680
add esp, 0x1c
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 0x2800
jae 0x40494a
push 0
push 0
push eax
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
call fcn.0047a689
add esp, 4
pop ebx
test esi, esi
je 0x40499e
mov eax, dword [esi]
mov ecx, esi
push 1
push 0
mov eax, dword [eax + 0x2c]
call eax
test al, al
je 0x40499e
mov eax, dword [ebp + 4]
mov ecx, esi
mov edx, dword [esi]
push eax
push str.SOUI::SWindow::FindChildByName2
push 0x20e
push str.D:codeworkspace_souiSOUIincludecoreSWnd.h
push edi
push str.soui
push 1
push 0
call dword [edx + 0x34]
push edi
call fcn.0047a689
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
push 0x2800
call fcn.0047fb67
push 0x20e
push str.D:codeworkspace_souiSOUIincludecoreSWnd.h
push str.SOUI::SWindow::FindChildByName2
push edi
push str._s__s__s:_d_n
push 0xffffffffffffffff
mov esi, eax
push 0x2800
push esi
call fcn.004056e0
add esp, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.0047a689
add esp, 4
push edi
call fcn.0047a689
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x404cc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aad65
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x6370c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x800
mov esi, eax
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00477660
push esi
push str._nOnUpdateStep_th:__d_n
lea eax, [ebp - 0x810]
push 0x3ff
push eax
call fcn.00404b00
add esp, 0x1c
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x62a30c
lea ecx, [ebp - 0x818]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push 0x62a300
lea ecx, [ebp - 0x814]
mov dword [ebp - 4], 0
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov byte [ebp - 4], 1
mov ecx, dword [edi + 4]
push str.wnd_update
add ecx, 4
call fcn.004045b0
push 0
lea ecx, [ebp - 0x818]
push ecx
mov edx, dword [eax]
lea ecx, [ebp - 0x814]
push ecx
mov ecx, eax
call dword [edx + 0x10]
lea ecx, [ebp - 0x814]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [ebp - 0x818]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
push 0x629e60
lea ecx, [ebp - 0x820]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push 0x62a300
lea ecx, [ebp - 0x81c]
mov dword [ebp - 4], 2
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov byte [ebp - 4], 3
mov ecx, dword [edi + 4]
push str.wnd_update_faild
add ecx, 4
call fcn.004045b0
push 0
lea ecx, [ebp - 0x820]
push ecx
mov edx, dword [eax]
lea ecx, [ebp - 0x81c]
push ecx
mov ecx, eax
call dword [edx + 0x10]
lea ecx, [ebp - 0x81c]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [ebp - 0x820]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov eax, dword [edi + 4]
mov byte [eax + 0x3b0], 0
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.0042db10
mov esp, ebp
pop ebp
ret
Function at 0x404e70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aad65
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x6370c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x800
mov esi, eax
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00477660
push esi
push str._nOnUpdateStep_th:__d_n
lea eax, [ebp - 0x810]
push 0x3ff
push eax
call fcn.00404b00
add esp, 0x1c
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x62a30c
lea ecx, [ebp - 0x818]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push 0x62a300
lea ecx, [ebp - 0x814]
mov dword [ebp - 4], 0
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov byte [ebp - 4], 1
mov ecx, dword [edi + 4]
push str.wnd_update
add ecx, 4
call fcn.004045b0
push 0
lea ecx, [ebp - 0x818]
push ecx
mov edx, dword [eax]
lea ecx, [ebp - 0x814]
push ecx
mov ecx, eax
call dword [edx + 0x10]
lea ecx, [ebp - 0x814]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [ebp - 0x818]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
push 0x629e60
lea ecx, [ebp - 0x820]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push 0x62a300
lea ecx, [ebp - 0x81c]
mov dword [ebp - 4], 2
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov byte [ebp - 4], 3
mov ecx, dword [edi + 4]
push str.wnd_update_succ
add ecx, 4
call fcn.004045b0
push 0
lea ecx, [ebp - 0x820]
push ecx
mov edx, dword [eax]
lea ecx, [ebp - 0x81c]
push ecx
mov ecx, eax
call dword [edx + 0x10]
lea ecx, [ebp - 0x81c]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [ebp - 0x820]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov eax, dword [edi + 4]
mov byte [eax + 0x3b0], 0
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.0042db10
mov esp, ebp
pop ebp
ret
Function at 0x405080
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aadc5
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x6370c0]
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 bl, byte [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x800
mov esi, eax
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00477660
push esi
push 0x629fa0
lea eax, [ebp - 0x810]
push 0x3ff
push eax
call fcn.00404b00
add esp, 0x1c
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x62a30c
lea ecx, [ebp - 0x818]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push 0x62a300
lea ecx, [ebp - 0x814]
mov dword [ebp - 4], 0
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov byte [ebp - 4], 1
mov ecx, dword [edi + 4]
push str.wnd_msg_main
add ecx, 4
call fcn.004045b0
push 0
lea ecx, [ebp - 0x818]
push ecx
mov edx, dword [eax]
lea ecx, [ebp - 0x814]
push ecx
mov ecx, eax
call dword [edx + 0x10]
lea ecx, [ebp - 0x814]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [ebp - 0x818]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
push 0x62a30c
lea ecx, [ebp - 0x820]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push 0x62a300
lea ecx, [ebp - 0x81c]
mov dword [ebp - 4], 2
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov byte [ebp - 4], 3
mov ecx, dword [edi + 4]
push str.wnd_uninstall
add ecx, 4
call fcn.004045b0
push 0
lea ecx, [ebp - 0x820]
push ecx
mov edx, dword [eax]
lea ecx, [ebp - 0x81c]
push ecx
mov ecx, eax
call dword [edx + 0x10]
lea ecx, [ebp - 0x81c]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [ebp - 0x820]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
xor eax, eax
test bl, bl
push 1
setne al
push eax
push ecx
push str.wnd_uninstall_succ
mov ecx, dword [edi + 4]
add ecx, 4
call fcn.004045b0
mov esi, dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::SetVisible_int__int_]
mov ecx, eax
call esi
xor eax, eax
test bl, bl
push 1
sete al
push eax
push ecx
mov ecx, dword [edi + 4]
push str.wnd_uninstall_failed
add ecx, 4
call fcn.004045b0
mov ecx, eax
call 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.0042db10
mov esp, ebp
pop ebp
ret
Function at 0x405ef0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.soui.dll_public:_class_SOUI::SWindow____thiscall_SOUI::SWindow::FindChildByName_wchar_t_const___int_]
mov edi, eax
test edi, edi
je 0x405f20
mov esi, dword [edi]
call dword [sym.imp.soui.dll_public:_static_wchar_t_const____cdecl_SOUI::SImageButton::GetClassNameW_void_]
push eax
mov ecx, edi
call dword [esi + 4]
test eax, eax
je 0x405f20
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
call dword [sym.imp.soui.dll_public:_static_class_SOUI::SApplication____cdecl_SOUI::SSingleton_class_SOUI::SApplication_::getSingletonPtr_void_]
test eax, eax
je 0x405f3c
call dword [sym.imp.soui.dll_public:_static_class_SOUI::SApplication____cdecl_SOUI::SSingleton_class_SOUI::SApplication_::getSingleton_void_]
mov ecx, eax
call dword [sym.imp.soui.dll_public:_struct_SOUI::ILog4zManager____thiscall_SOUI::SApplication::GetLogManager_void_]
mov esi, eax
jmp 0x405f3e
xor esi, esi
push ebx
push 0x2800
call fcn.0047fb67
push 0x5000
mov edi, eax
call fcn.0047fb67
add esp, 8
mov ebx, eax
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.soui.dll_public:_static_wchar_t_const____cdecl_SOUI::SImageButton::GetClassNameW_void_]
push eax
push str.FindChildByName2_Failed__no_window_of_class___s__with_name_of___s__was_found_within___d__levels
push 0xffffffffffffffff
push 0x2800
push ebx
call fcn.00405680
add esp, 0x1c
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 0x2800
jae 0x405faa
push 0
push 0
push eax
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
call fcn.0047a689
add esp, 4
pop ebx
test esi, esi
je 0x405ffe
mov eax, dword [esi]
mov ecx, esi
push 1
push 0
mov eax, dword [eax + 0x2c]
call eax
test al, al
je 0x405ffe
mov eax, dword [ebp + 4]
mov ecx, esi
mov edx, dword [esi]
push eax
push str.SOUI::SWindow::FindChildByName2
push 0x20e
push str.D:codeworkspace_souiSOUIincludecoreSWnd.h
push edi
push str.soui
push 1
push 0
call dword [edx + 0x34]
push edi
call fcn.0047a689
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
push 0x2800
call fcn.0047fb67
push 0x20e
push str.D:codeworkspace_souiSOUIincludecoreSWnd.h
push str.SOUI::SWindow::FindChildByName2
push edi
push str._s__s__s:_d_n
push 0xffffffffffffffff
mov esi, eax
push 0x2800
push esi
call fcn.004056e0
add esp, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.0047a689
add esp, 4
push edi
call fcn.0047a689
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x407010
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x6370c0]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0
push ecx
mov dword [esp + 0x1c], 0
mov ebx, dword [edi + 4]
or ebx, 0x2001f
mov dword [esp + 0x20], 0
push ebx
push 0
push eax
push dword [edi]
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x407151
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40708b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x24]
and ebx, 0x300
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
test esi, esi
jne 0x407151
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x28]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x100
push eax
lea eax, [esp + 0x44]
push eax
push esi
push dword [esp + 0x30]
call ebx
test eax, eax
jne 0x407109
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00407010
mov esi, eax
test esi, esi
jne 0x407151
lea eax, [esp + 0x28]
mov dword [esp + 0x20], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x44]
push eax
push esi
push dword [esp + 0x30]
call ebx
test eax, eax
je 0x4070d0
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x407122
push eax
call ebx
mov dword [esp + 0x14], 0
mov esi, dword [edi + 8]
mov dword [esp + 0x18], 0
test esi, esi
je 0x40718a
cmp dword [esi], 0
mov edi, dword [edi]
je 0x40717d
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40715c
mov esi, 1
jmp 0x4071f0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4071f0
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407147
push 0
push dword [esi]
push 0
push 0
push dword [esp + 0x20]
push edi
call eax
jmp 0x4071ee
cmp dword [esi + 4], 0
je 0x407147
push dword [esp + 0x10]
push edi
jmp 0x4071e8
cmp byte [0x640d64], 0
jne 0x4071ca
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4071bc
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x640d68], eax
mov byte [0x640d64], 1
jmp 0x4071cf
mov eax, dword [0x640d68]
mov byte [0x640d64], 1
jmp 0x4071cf
mov eax, dword [0x640d68]
test eax, eax
je 0x4071e2
push 0
push dword [edi + 4]
push dword [esp + 0x18]
push dword [edi]
call eax
jmp 0x4071ee
push dword [esp + 0x10]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4071fb
push eax
call ebx
mov ecx, dword [esp + 0x234]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042db10
mov esp, ebp
pop ebp
ret 4
Function at 0x4073f0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 8]
mov byte [ebp - 1], 1
push eax
mov ebx, ecx
mov dword [ebp - 0x1c], 4
push 8
push ebx
mov esi, edx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
jne 0x407432
xor al, al
mov byte [ebp - 1], al
jmp 0x407574
mov ecx, dword [ebp - 8]
shr ecx, 3
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
push edi
mov edi, ecx
test ecx, ecx
jne 0x407468
mov ecx, 1
mov dword [ebp - 8], 1
mov dword [ebp - 0x10], ecx
mov edi, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov ebx, dword [esi + 0x10]
xor edx, edx
mov eax, ebx
mov dword [ebp - 0x24], ebx
div ecx
xor edx, edx
mov ecx, eax
mov eax, ebx
div dword [ebp - 0x10]
test edx, edx
je 0x407484
inc ecx
test edx, edx
cmove edi, dword [ebp - 0x14]
test edx, edx
mov eax, dword [ebp - 0x18]
cmove eax, dword [ebp - 0x1c]
cmp dword [esi + 0x14], 0xf
jbe 0x4074a4
mov eax, dword [esi]
imul edi, ecx
mov ecx, eax
sub edi, ebx
add eax, ebx
jmp 0x4074b0
mov edi, eax
lea eax, [ebx + esi]
imul edi, ecx
mov ecx, esi
sub edi, ebx
push 0
sub eax, ecx
mov ecx, esi
push edi
push eax
call fcn.0040b4e0
mov ecx, 0x3e8
xor edx, edx
mov eax, ecx
xor ebx, ebx
div dword [ebp - 8]
sub ecx, edx
xor edi, edi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0x24]
sub eax, edi
cmp eax, ecx
jg 0x4074e3
mov dword [ebp - 0xc], eax
mov ebx, 1
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x4074ed
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
add eax, edi
push ecx
push eax
push 0
push ebx
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x407511
mov ecx, dword [ebp - 0xc]
add edi, ecx
test ebx, ebx
je 0x4074d2
jmp 0x407516
xor al, al
mov byte [ebp - 1], al
mov ecx, dword [esi + 0x10]
cmp edi, ecx
ja 0x40752e
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], 0xf
jbe 0x407528
mov esi, dword [esi]
mov byte [esi + edi], 0
jmp 0x40756d
mov edx, dword [esi + 0x14]
mov ebx, edi
mov eax, edx
sub ebx, ecx
sub eax, ecx
cmp ebx, eax
ja 0x40755b
mov dword [esi + 0x10], edi
cmp edx, 0xf
jbe 0x407547
mov esi, dword [esi]
push ebx
add esi, ecx
push 0
push esi
call fcn.00477660
add esp, 0xc
mov byte [esi + ebx], 0
jmp 0x40756d
push 0
push ebx
mov byte [ebp - 0x24], 0
mov ecx, esi
push dword [ebp - 0x24]
push ebx
call fcn.0040bd70
mov ebx, dword [ebp - 0x20]
mov al, byte [ebp - 1]
pop edi
test ebx, ebx
je 0x407582
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret