Function at 0x408600
Capabilities:
Create process on windows
Delete file
Get session user name
Hide graphical window
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414d33
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x41b3dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x20]
push 0x415c1c
mov ecx, ebx
mov dword [ebp - 0x36c], esi
call fcn.00407350
xor edi, edi
mov byte [ebp - 0x11c], 0x5c
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], edi
push str._bin.
push ebx
lea eax, [ebp - 0x368]
push eax
mov dword [ebp - 4], edi
call fcn.004081e0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 1
call fcn.00407000
test eax, eax
mov eax, dword [ebp - 0x368]
lea ecx, [eax - 0xc]
sete byte [ebp - 0x36d]
mov byte [ebp - 4], 0
cmp ecx, dword [0x41b020]
je 0x4086bf
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4086bf
mov eax, dword [ebp - 0x368]
add eax, 0xfffffff4
push eax
call fcn.00409b02
add esp, 4
cmp byte [ebp - 0x36d], 0
je 0x4086f1
mov edx, dword [esi + 4]
push 0x40
push 0x415c04
push 0x415bc0
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x114], edi
cmp eax, edi
jmp 0x408e79
push 0x100
lea eax, [ebp - 0x110]
push edi
push eax
mov dword [ebp - 0x380], 0xff
call fcn.0040a160
add esp, 0xc
lea ecx, [ebp - 0x380]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [ebp - 0x37c], edi
mov dword [ebp - 0x374], edi
lea eax, [ebp - 0x364]
push eax
lea ecx, [ebp - 0x368]
push ecx
push edi
push 0x2001f
push edi
push edi
push edi
push str.SoftwareMarsWu2024
push 0x80000002
mov byte [ebp - 4], 2
mov dword [ebp - 0x368], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
jne 0x4087ab
mov edi, dword [ebp - 0x368]
push 4
lea edx, [ebp - 0x364]
push edx
push 4
push 0
push str.CaxaSolid2024SP0Patch
push edi
mov dword [ebp - 0x37c], edi
mov dword [ebp - 0x364], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test edi, edi
je 0x4087a9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x37c], 0
xor edi, edi
push str._bin3icm31.dll
push ebx
lea eax, [ebp - 0x368]
push eax
mov dword [ebp - 0x378], edi
call fcn.004081e0
mov eax, dword [eax]
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov eax, dword [ebp - 0x368]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x41b020]
je 0x40880e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40880e
mov eax, dword [ebp - 0x368]
add eax, 0xfffffff4
push eax
call fcn.00409b02
add esp, 4
cmp edi, 0xffffffff
jne 0x408835
mov edx, dword [esi + 4]
push 0x40
push 0x415c04
push 0x415b68
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408e56
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
push 0x3e9
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xa0000
push 0
push 0x401
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, 1
mov edi, edi
push 0
push esi
push 0x402
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xb
jl 0x408870
mov edi, dword [ebp - 0x36c]
mov ecx, dword [edi + 4]
push 0x3ee
push ecx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x408b0e
mov eax, dword [0x41b024]
mov dword [ebp - 0x36c], eax
mov dword [ebp - 0x368], eax
push str._bin3ilggv.dll
push ebx
lea edx, [ebp - 0x364]
push edx
mov byte [ebp - 4], 4
call fcn.004081e0
push eax
lea ecx, [ebp - 0x36c]
mov byte [ebp - 4], 5
call fcn.00407560
mov eax, dword [ebp - 0x364]
lea ecx, [eax - 0xc]
mov byte [ebp - 4], 4
cmp ecx, dword [0x41b020]
je 0x40891a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40891a
mov eax, dword [ebp - 0x364]
add eax, 0xfffffff4
push eax
call fcn.00409b02
add esp, 4
lea edx, [ebp - 0x368]
push edx
push ecx
lea eax, [ebp - 0x36c]
mov ecx, esp
mov dword [ebp - 0x364], esp
push eax
call fcn.00408160
mov ecx, edi
call fcn.00408260
mov ecx, dword [ebp - 0x368]
push str.f171bcf285d84052e51206a283dcbb0b
push ecx
call fcn.0040a4e1
add esp, 8
test eax, eax
jne 0x4089bc
mov edx, dword [ebp - 0x36c]
push edx
push 0x12d
mov ecx, edi
call fcn.00406730
push str._binCAXADraft_binSptGv.dll
push ebx
lea eax, [ebp - 0x364]
push eax
call fcn.004081e0
mov eax, dword [eax]
push eax
push 0x12e
mov ecx, edi
call fcn.00406730
mov eax, dword [ebp - 0x364]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x41b020]
je 0x4089d2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4089d2
mov eax, dword [ebp - 0x364]
add eax, 0xfffffff4
push eax
call fcn.00409b02
add esp, 4
jmp 0x4089d2
mov edx, dword [edi + 4]
push 0x24
push 0x415b0c
push 0x415ac8
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
push str._binCAXADraftConfigzh_CNICIntegrateMdlToolsetUI.xml
push ebx
lea eax, [ebp - 0x364]
push eax
call fcn.004081e0
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
mov eax, dword [ebp - 0x364]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x41b020]
je 0x408a20
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408a20
mov eax, dword [ebp - 0x364]
add eax, 0xfffffff4
push eax
call fcn.00409b02
add esp, 4
push str._binCAXADraftConfigzh_CNMechanicalMdlToolsetUI.xml
push ebx
lea edx, [ebp - 0x364]
push edx
call fcn.004081e0
mov eax, dword [eax]
push eax
call esi
mov eax, dword [ebp - 0x364]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x41b020]
je 0x408a68
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408a68
mov eax, dword [ebp - 0x364]
add eax, 0xfffffff4
push eax
call fcn.00409b02
add esp, 4
push str._binCAXADraft_binCxInfo.dll
push ebx
lea edx, [ebp - 0x364]
push edx
call fcn.004081e0
mov eax, dword [eax]
push eax
call esi
mov eax, dword [ebp - 0x364]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x41b020]
je 0x408ab0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408ab0
mov eax, dword [ebp - 0x364]
add eax, 0xfffffff4
push eax
call fcn.00409b02
add esp, 4
mov eax, dword [ebp - 0x368]
lea edx, [eax - 0xc]
mov byte [ebp - 4], 3
cmp edx, dword [0x41b020]
je 0x408ae2
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408adc
push esi
call fcn.00409b02
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x36c]
lea ecx, [eax - 0xc]
mov byte [ebp - 4], 2
cmp ecx, dword [0x41b020]
je 0x408b14
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408b0e
push esi
call fcn.00409b02
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [edi + 4]
push 0x3ef
push edx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x408dc8
mov eax, dword [0x41b024]
mov dword [ebp - 0x36c], eax
mov dword [ebp - 0x368], eax
push str._bin3ilggv.dll
push ebx
lea eax, [ebp - 0x364]
push eax
mov byte [ebp - 4], 7
call fcn.004081e0
push eax
lea ecx, [ebp - 0x36c]
mov byte [ebp - 4], 8
call fcn.00407560
mov eax, dword [ebp - 0x364]
lea ecx, [eax - 0xc]
mov byte [ebp - 4], 7
cmp ecx, dword [0x41b020]
je 0x408b98
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408b98
mov eax, dword [ebp - 0x364]
add eax, 0xfffffff4
push eax
call fcn.00409b02
add esp, 4
lea edx, [ebp - 0x368]
push edx
push ecx
lea eax, [ebp - 0x36c]
mov ecx, esp
mov dword [ebp - 0x364], esp
push eax
call fcn.00408160
mov ecx, edi
call fcn.00408260
mov ecx, dword [ebp - 0x368]
push str.e217142ce2beec1262fd3914517ed5aa
push ecx
call fcn.0040a4e1
add esp, 8
test eax, eax
jne 0x408c3a
mov edx, dword [ebp - 0x36c]
push edx
push 0x191
mov ecx, edi
call fcn.00406730
push str._binCAXADraft_binSptGv.dll
push ebx
lea eax, [ebp - 0x364]
push eax
call fcn.004081e0
mov eax, dword [eax]
push eax
push 0x192
mov ecx, edi
call fcn.00406730
mov eax, dword [ebp - 0x364]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x41b020]
je 0x408c50
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408c50
mov eax, dword [ebp - 0x364]
add eax, 0xfffffff4
push eax
call fcn.00409b02
add esp, 4
jmp 0x408c50
mov edx, dword [edi + 4]
push 0x20
push 0x415b0c
push 0x4159d4
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
push str._binCAXADraftConfigzh_CNICIntegrateMdlToolsetUI.xml
push ebx
lea eax, [ebp - 0x364]
push eax
call fcn.004081e0
mov eax, dword [eax]
push eax
call esi
mov eax, dword [ebp - 0x364]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x41b020]
je 0x408c98
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408c98
mov eax, dword [ebp - 0x364]
add eax, 0xfffffff4
push eax
call fcn.00409b02
add esp, 4
push str._binCAXADraftConfigzh_CNMechanicalMdlToolsetUI.xml
push ebx
lea edx, [ebp - 0x364]
push edx
call fcn.004081e0
mov eax, dword [eax]
push eax
call esi
mov eax, dword [ebp - 0x364]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x41b020]
je 0x408ce0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408ce0
mov eax, dword [ebp - 0x364]
add eax, 0xfffffff4
push eax
call fcn.00409b02
add esp, 4
push str._binCAXADraft_binCxInfo.dll
push ebx
lea edx, [ebp - 0x364]
push edx
call fcn.004081e0
mov eax, dword [eax]
push eax
call esi
mov eax, dword [ebp - 0x364]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x41b020]
je 0x408d28
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408d28
mov eax, dword [ebp - 0x364]
add eax, 0xfffffff4
push eax
call fcn.00409b02
add esp, 4
push str._binCAXADraft_binMdlToolset.dll
push ebx
lea edx, [ebp - 0x364]
push edx
call fcn.004081e0
mov eax, dword [eax]
push eax
call esi
mov eax, dword [ebp - 0x364]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x41b020]
je 0x408d70
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408d70
mov eax, dword [ebp - 0x364]
add eax, 0xfffffff4
push eax
call fcn.00409b02
add esp, 4
mov esi, dword [ebp - 0x368]
lea edx, [esi - 0xc]
mov byte [ebp - 4], 6
cmp edx, dword [0x41b020]
je 0x408d9c
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408d9c
push esi
call fcn.00409b02
add esp, 4
mov esi, dword [ebp - 0x36c]
lea eax, [esi - 0xc]
mov byte [ebp - 4], 2
cmp eax, dword [0x41b020]
je 0x408dc8
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408dc8
push esi
call fcn.00409b02
add esp, 4
mov ecx, dword [edi + 4]
push 0x24
push 0x415c04
push 0x415990
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x408e47
push str._binironcad.exe
push ebx
lea edx, [ebp - 0x364]
push edx
call fcn.004081e0
mov esi, dword [eax]
mov eax, dword [edi + 4]
push 4
push eax
call dword [sym.imp.USER32.dll_GetWindow]
push 1
push 0
push 0
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebp - 0x364]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x41b020]
je 0x408e47
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408e47
mov edx, dword [ebp - 0x364]
add edx, 0xfffffff4
push edx
call fcn.00409b02
add esp, 4
movzx eax, word [ebp + 0xc]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [ebp - 0x37c]
test eax, eax
je 0x408e67
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x118]
test eax, eax
mov dword [ebp - 0x114], 0
je 0x408e87
cmp eax, 0xffffffff
je 0x408e87
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
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.00409af3
mov esp, ebp
pop ebp
ret 0x10