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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbc1a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4f23d4]
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, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.004766b1
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x404a20
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0047460e
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x4ef134
push eax
call fcn.00475ac0
push edi
push esi
call fcn.00476a0f
add esp, 8
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.0048cbbc
mov esp, ebp
pop ebp
ret 4

Function at 0x406eb0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbf65
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4f23d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.00406fc0
mov ebx, eax
lea esi, [edi + 0x28]
cmp esi, ebx
je 0x406f26
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x406eff
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004017c0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x406f17
mov eax, dword [esi]
jmp 0x406f19
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push ebx
call fcn.004034c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x406f42
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004017c0
push 0x50
call fcn.0048cc08
mov esi, eax
mov dword [ebp - 0x10], esi
push 0x50
push 0
push esi
mov dword [ebp - 4], 1
call fcn.00475590
sub esp, 0x18
mov ecx, 0x408330
mov eax, esp
mov dword [eax + 0x24], 0
test ecx, ecx
je 0x406f84
mov dword [eax], vtable.std::_Func_impl_unsigned_long_int____stdcall___void____class_std::allocator_int___unsigned_long_int__void__.0
mov dword [eax + 4], 0x408330
mov dword [eax + 0x24], eax
push 0x4e0c58
push edi
mov ecx, esi
call fcn.00419cd0
mov dword [edi + 0x74], eax
mov eax, dword [eax + 4]
test eax, eax
je 0x406fa2
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbea6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4f23d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0048cc08
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0047690c
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40a420
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4f23d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40a47b
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048cbbc
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call edi
test eax, eax
je 0x40a4db
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp - 0x238]
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x40a4ce
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call edi
test eax, eax
jne 0x40a4a1
jmp 0x40a4da
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], eax
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
xor ecx, ebp
pop edi
pop esi
call fcn.0048cbbc
mov esp, ebp
pop ebp
ret
Function at 0x40c160
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc6c5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4f23d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.0040c2c0
mov ebx, eax
lea esi, [edi + 0x58]
cmp esi, ebx
je 0x40c1d6
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40c1af
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004017c0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40c1c7
mov eax, dword [esi]
jmp 0x40c1c9
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push ebx
call fcn.004034c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x40c1f2
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004017c0
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x40c23e
cmp dword [esi + 4], 0
je 0x40c225
mov eax, dword [esi + 4]
test eax, eax
je 0x40c225
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi], 0xffffffff
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x40c23e
mov ecx, esi
call fcn.00419f20
push 0x50
push esi
call fcn.0048cbcd
add esp, 8
push 0x50
call fcn.0048cc08
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
push 0x50
push 0
push esi
mov dword [ebp - 4], 1
call fcn.00475590
sub esp, 0x1c
mov ecx, 0x40de70
mov eax, esp
mov dword [eax + 0x24], 0
test ecx, ecx
je 0x40c283
mov dword [eax], vtable.std::_Func_impl_unsigned_long_int____cdecl___void____class_std::allocator_int___unsigned_long_int__void__.0
mov dword [eax + 4], 0x40de70
mov dword [eax + 0x24], eax
push str.ABDEF
push edi
mov ecx, esi
call fcn.00419cd0
mov dword [edi + 0x7c], eax
mov eax, dword [eax + 4]
test eax, eax
je 0x40c2a1
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4133b0
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd19d
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4f23d4]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x234], 0
call fcn.00475590
mov dword [esi + 0x10], 0
lea ecx, [edi + 0x758]
mov dword [esi + 0x14], 0
add esp, 0xc
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x41343c
mov eax, dword [esi]
jmp 0x41343e
mov eax, esi
xor edx, edx
push 0xffffffffffffffff
push edx
push ecx
mov ecx, esi
mov word [eax], dx
call fcn.00403270
xor eax, eax
mov dword [ebp - 0x234], 1
mov byte [edi + 0x7b9], 1
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 1
call fcn.0041a670
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
call fcn.0041a560
test eax, eax
mov dword [ebp - 0x238], eax
mov byte [edi + 0x7ba], 1
setne al
mov byte [edi + 0x7b9], al
call fcn.0041a4e0
mov ebx, eax
test ebx, ebx
setne al
mov byte [edi + 0x7ba], al
cmp dword [edi + 0x768], 0
je 0x4134fa
cmp dword [edi + 0x754], 8
lea eax, [edi + 0x740]
jb 0x4134eb
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4135bf
cmp dword [ebp - 0x238], 0
je 0x413542
test ebx, ebx
je 0x413542
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
lea eax, [ebp - 0x218]
push 0
je 0x41354a
push str.hudun
push eax
push 0
push 0x104
push eax
call fcn.0049ad2b
add esp, 0x18
jmp 0x413569
push 0
lea eax, [ebp - 0x218]
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x2a
push eax
push 0
call edi
test eax, eax
jne 0x413569
push eax
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call edi
push 0x4e0730
push str.xunjieaixiezuo
lea eax, [ebp - 0x218]
push eax
push 0
push 0x104
push eax
call fcn.0049ad2b
add esp, 0x18
cmp word [ebp - 0x218], 0
jne 0x413598
xor ecx, ecx
jmp 0x4135b0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4135a1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00403170
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x4135dd
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.004017c0
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.0048cbbc
mov esp, ebp
pop ebp
ret 4
Function at 0x413760
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4f23d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x234]
push 0x208
push 0
push eax
mov esi, ecx
call fcn.00475590
add esi, 0x758
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x41379e
mov esi, dword [esi]
push 0x10
push edi
push 0x10
push esi
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRelativePathToW]
mov ecx, 0x4e0cf8
lea eax, [ebp - 0x234]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4137e6
test dx, dx
je 0x4137e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4137e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4137c0
xor eax, eax
jmp 0x4137eb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41389f
push eax
push str.set.ini
push edi
push eax
lea esi, [eax + 1]
lea eax, [ebp - 0x234]
push 0x104
push eax
call fcn.0049ad2b
add esp, 0x18
lea eax, [ebp - 0x234]
push eax
push 0x14
lea eax, [ebp - 0x2c]
push eax
push str.true
push str.IsOverride
push str.Uninstall
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, str.false
lea eax, [ebp - 0x2c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41387f
test dx, dx
je 0x413862
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41387f
add eax, 4
add ecx, 4
test dx, dx
jne 0x413840
xor eax, eax
xor ecx, ecx
test eax, eax
pop edi
cmovne esi, ecx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048cbbc
mov esp, ebp
pop ebp
ret 4
sbb eax, eax
xor ecx, ecx
or eax, 1
test eax, eax
pop edi
cmovne esi, ecx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048cbbc
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0048cbbc
mov esp, ebp
pop ebp
ret 4

Function at 0x413a40
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4f23d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], 0
call fcn.00475590
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x413aa4
push eax
push 0x2e
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
push 0x4e236c
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x104
push eax
call fcn.0049ad2b
push 0
push str.xunjieaixiezuo
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x104
push eax
call fcn.0049ad2b
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
add esp, 0x30
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x413afd
xor ecx, ecx
jmp 0x413b15
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413b06
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00403170
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0048cbbc
mov esp, ebp
pop ebp
ret 4
Function at 0x413b40
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd291
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x4f23d4]
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 ecx, dword [ecx + 0x794]
lea eax, [ebp - 0x200]
mov ebx, dword [ebp + 8]
push eax
call fcn.0040bae0
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 8
jb 0x413b94
mov edx, dword [edx]
xor eax, eax
mov dword [ebp - 0x1ac], 7
mov dword [ebp - 0x1b0], 0
mov word [ebp - 0x1c0], ax
cmp word [edx], ax
jne 0x413bba
xor ecx, ecx
jmp 0x413bcf
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413bc0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c0]
call fcn.00403170
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1ec]
cmp eax, 8
jb 0x413bfe
inc eax
lea ecx, [ebp - 0x200]
push eax
push dword [ebp - 0x200]
call fcn.004017c0
xor eax, eax
mov dword [ebp - 0x1ec], 7
mov dword [ebp - 0x1f0], 0
mov word [ebp - 0x200], ax
call fcn.004185e0
cmp dword [ebp - 0x1ac], 8
lea esi, [ebp - 0x1c0]
mov dword [ebp - 0x1e4], eax
cmovae esi, dword [ebp - 0x1c0]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x413c52
push esi
call edi
test eax, eax
je 0x413c81
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x413c81
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov edi, 1
jmp 0x413c83
xor edi, edi
xorps xmm0, xmm0
mov dword [ebp - method.Utils::HardDiskManager.virtual_0], vtable.Utils::HardDiskManager.0
movlpd qword [ebp - 0x1d8], xmm0
movlpd qword [ebp - 0x1d0], xmm0
movlpd qword [ebp - 0x1c8], xmm0
push 0
push 0
push 0
push 0
push 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
cmp dword [ebp - 0x1ac], 8
lea eax, [ebp - 0x1c0]
push 0
cmovae eax, dword [ebp - 0x1c0]
push 3
push ecx
push eax
call fcn.0049ab5a
add esp, 0x24
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1e0]
push eax
call fcn.0041e440
cmp dword [ebx + 0x24], 8
lea esi, [ebx + 0x10]
jb 0x413cf5
mov esi, dword [esi]
push dword [ebp - 0x1e4]
mov edx, dword [ebp - 0x1d4]
mov ecx, 0x4e2408
test edi, edi
mov eax, 0x4e2400
cmove eax, ecx
mov ecx, dword [ebp - 0x1d8]
push eax
call fcn.0048d760
xor edx, edx
movsd qword [ebp - 0x1e8], xmm0
mov ecx, 0x40000000
call fcn.0048d760
movsd xmm1, qword [ebp - 0x1e8]
sub esp, 8
divsd xmm1, xmm0
cvttsd2si eax, qword [ebx + 8]
movsd qword [esp], xmm1
push esi
push eax
push str.1.code_ld
lea eax, [ebp - 0x1a8]
push 0xc8
push eax
call fcn.00409ff0
mov eax, dword [ebp - 0x1ac]
add esp, 0x24
mov dword [ebp - method.Utils::HardDiskManager.virtual_0], vtable.Utils::HardDiskManager.0
cmp eax, 8
jb 0x413d8c
inc eax
lea ecx, [ebp - 0x1c0]
push eax
push dword [ebp - 0x1c0]
call fcn.004017c0
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.0048cbbc
mov esp, ebp
pop ebp
ret 4
Function at 0x413fa0
Capabilities:
Check if file exists
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd2f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4f23d4]
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
cmp dword [edi + 0x73c], 8
lea esi, [edi + 0x728]
jb 0x413fe0
mov ebx, dword [esi]
jmp 0x413fe2
mov ebx, esi
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareHuDunSoftSwift_AI_Writing
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x414036
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414010
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push 0
push str.InstallPath
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi + 0x720], 0
jne 0x4140a7
xor eax, eax
mov dword [ebp - 0x18], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00403270
push 0xa
push str.uninst.ep
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00403390
lea ecx, [edi + 0x710]
cmp ecx, eax
je 0x414092
push 0xffffffffffffffff
push 0
push eax
call fcn.00403270
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4140a7
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004017c0
cmp dword [edi + 0x724], 8
lea esi, [edi + 0x710]
jb 0x4140ba
mov eax, dword [esi]
jmp 0x4140bc
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4140de
cmp dword [esi + 0x14], 8
jb 0x4140cf
mov esi, dword [esi]
push esi
push ecx
push str.UnInstallEp
call fcn.0041e560
add esp, 0xc
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.0048cbbc
mov esp, ebp
pop ebp
ret

Function at 0x414430
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x780]
test eax, eax
je 0x414468
cmp eax, 5
jbe 0x414468
cmp dword [edi + 0x784], 8
lea eax, [edi + 0x770]
jb 0x414454
mov eax, dword [eax]
push 3
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [edi + 0x70c], 8
lea esi, [edi + 0x6f8]
jb 0x414479
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4144a6
mov ecx, edi
call fcn.004367b0
mov ecx, eax
call fcn.004181d0
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
ret
Function at 0x417c40
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd76f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4f23d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x60]
test esi, esi
je 0x417cb5
cmp dword [esi + 4], 0
je 0x417c9c
mov eax, dword [esi + 4]
test eax, eax
je 0x417c9c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi], 0xffffffff
mov esi, dword [edi + 0x60]
test esi, esi
je 0x417cb5
mov ecx, esi
call fcn.00419f20
push 0x50
push esi
call fcn.0048cbcd
add esp, 8
push 0x50
call fcn.0048cc08
mov esi, eax
mov dword [ebp - 0x10], esi
push 0x50
push 0
push esi
mov dword [ebp - 4], 0
call fcn.00475590
sub esp, 0x18
mov ecx, method.DuiLib::CTxtWinHost.virtual_88
mov eax, esp
mov dword [eax + 0x24], 0
test ecx, ecx
je 0x417cf7
mov dword [eax], vtable.std::_Func_impl_unsigned_long_int____stdcall___void____class_std::allocator_int___unsigned_long_int__void__.0
mov dword [eax + 4], method.DuiLib::CTxtWinHost.virtual_88
mov dword [eax + 0x24], eax
push str.ABDEF
push edi
mov ecx, esi
call fcn.00419cd0
mov dword [edi + 0x60], eax
mov eax, dword [eax + 4]
test eax, eax
je 0x417d15
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418270
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd82b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x4f23d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
jne 0x4182da
xor ecx, ecx
jmp 0x4182f2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4182e3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00403170
push 0x1e
push 0x4e28f4
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0
call fcn.00403390
xor ecx, ecx
mov dword [ebp - 0x21c], 7
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x230]
push eax
mov dword [ebp - 0x220], 0
call fcn.00403270
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x418368
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.004017c0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4183ad
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4183ad
lea esi, [eax + 1]
jmp 0x4183d2
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
push esi
call fcn.0049dbcf
add esp, 0xc
xor esi, esi
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x4183f0
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.004017c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048cbbc
mov esp, ebp
pop ebp
ret