joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415060
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484c48
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4ba1f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov esi, dword [ebp + 8]
mov esi, dword [esi]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea esi, [ebp - 0x14]
lea eax, [ebx + 4]
call fcn.00464060
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4150c6
test al, 0x10
jne 0x4150c6
mov eax, 1
jmp 0x4150c8
xor eax, eax
test eax, eax
mov eax, dword [ebp - 0x14]
sete byte [ebp - 0xd]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4150ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
je 0x415181
lea esi, [ebp + 0xc]
lea eax, [ebx + 4]
call fcn.00464060
mov edi, eax
lea esi, [ebp + 0x10]
mov eax, ebx
mov dword [ebp - 4], 0
call fcn.00464060
mov edi, dword [edi]
mov eax, dword [eax]
push 1
push 0
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415148
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41519d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx + 4]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417820
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487b48
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ba1f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402390
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x20]
push 0
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41788f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418ae0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x240
mov eax, dword [0x4ba1f0]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push esi
test edi, edi
jne 0x418b16
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.004657f5
mov esp, ebp
pop ebp
ret
push 0
push 2
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x418b8e
push 0x228
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004690e0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x418b00
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push edi
lea edx, [esp + 0x38]
push edx
call ebx
test eax, eax
jne 0x418b7e
mov eax, dword [esp + 0x18]
push eax
call fcn.00418850
add esp, 4
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x418b61
mov ecx, dword [esp + 0x244]
mov eax, dword [esp + 0xc]
pop esi
pop ebx
xor ecx, esp
call fcn.004657f5
mov esp, ebp
pop ebp
ret
Function at 0x41b770
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b044
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4ba1f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
or edi, 0xffffffff
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], 1
jne 0x41b7c6
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], 1
mov dword [ebp - 4], 0
call fcn.004211a0
push 0x4924b0
call fcn.00465ab8
add esp, 4
mov dword [ebp - 4], edi
lea esi, [ebp - 0x14]
mov ecx, sym.Install.exe__t__1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_4V__singleton_wrapp
call fcn.00422470
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.00402390
mov byte [ebp - 4], 2
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
jne 0x41b815
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
mov byte [ebp - 4], 3
call fcn.00414ab0
push 0x4923d0
call fcn.00465ab8
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp + 0xc], 0
je 0x41b89f
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp + 0xc]
push str.__s__startbywindows_tray
push ecx
call fcn.0040e410
mov esi, dword [ebp + 0xc]
mov eax, dword [esi - 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov ecx, dword [ebp - 0x10]
add eax, eax
push eax
push esi
push 1
push 0x80000001
call fcn.004140e0
mov edx, dword [0x4c475c]
mov ecx, dword [ebp - 0x10]
push 0x80000002
call fcn.00414790
lea eax, [esi - 0x10]
add esp, 0x20
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b8b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41b8b4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
push 0x80000001
call fcn.00414790
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b8d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x41b8f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41b910
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4872c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ba1f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x49bc04
mov edi, str.SOFTWAREClassesCLSID18689D3E_CF06_482F_AEB1_0880F859F0AAInprocServer32
mov ecx, 0x80000002
mov dword [ebp - 4], 0
call fcn.004149f0
mov esi, dword [ebp - 0x10]
add esp, 4
cmp dword [esi - 0xc], 0
je 0x41b98f
lea ecx, [ebp - 0x10]
push ecx
mov edi, str.SOFTWAREClassesCLSID1CF25200_FD42_45F6_ABBD_6C0C9C89B77AInprocServer32
mov ecx, 0x80000002
call fcn.004149f0
mov esi, dword [ebp - 0x10]
add esp, 4
mov eax, dword [esi - 0xc]
or edi, 0xffffffff
test eax, eax
je 0x41b9d8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
je 0x41b9d8
test al, 0x10
jne 0x41b9d8
lea eax, [esi - 0x10]
mov dword [ebp - 4], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x41b9c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x10]
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x41b9f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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 0x41c460
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488c3b
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x4ba1f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x814]
call fcn.0040edd0
push 6
push str.Cache
lea ebx, [ebp - 0x814]
mov dword [ebp - 4], 0
call fcn.0040dfe0
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x80e]
push ecx
mov word [ebp - 0x810], ax
call fcn.004690e0
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x810]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.FunshionCache
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x810]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c535
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x814]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c52e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41c586
push ecx
lea edx, [ebp - 0x810]
mov ecx, esp
mov dword [ebp - 0x818], esp
push edx
call fcn.00402390
lea eax, [ebp - 0x814]
push eax
call fcn.0040f800
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x814]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c584
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret
Function at 0x41cab0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48a1ae
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4ba1f0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x4ba1f0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, 1
xor edi, edi
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], bl
jne 0x41cb1a
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], ebx
mov dword [esp + 0x70], edi
call fcn.00414ab0
push 0x4923d0
call fcn.00465ab8
add esp, 4
mov dword [esp + 0x70], 0xffffffff
xor eax, eax
cmp eax, 0x4c4c54
je 0x41cc1c
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x70], ebx
push ecx
xor esi, esi
mov dword [esp + 0x20], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x41cb63
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
push edi
push esi
lea edx, [esp + 0x20]
push str._I64u
push edx
call fcn.0040e410
mov esi, dword [esp + 0x28]
add esp, 0x10
push esi
lea ecx, [esp + 0x18]
call fcn.00402390
push 0x49e5bc
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 2
call fcn.00402390
mov eax, dword [0x4c4c54]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [0x4c4774]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cbd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x70], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cbf8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x70], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cc1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004657f5
mov esp, ebp
pop ebp
ret
Function at 0x41cf00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488bb1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4ba1f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00401d20
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [ebp - 4], ebx
mov esi, 1
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp + 0xc]
call fcn.00402390
mov dword [ebp - 4], esi
mov eax, dword [0x4c4778]
cmp eax, ebx
je 0x41d036
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 0xc], ebx
jl 0x41d036
push eax
push ecx
call fcn.00466914
add esp, 8
cmp eax, ebx
je 0x41d036
sub eax, dword [ebp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
je 0x41d036
lea ecx, [ebp - 0x10]
push ecx
lea esi, [ebp + 0xc]
call fcn.0041cd50
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x10]
cmp dword [edx - 0xc], ebx
je 0x41d000
lea eax, [ebp - 0x18]
push 0x49aef4
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dab0
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ebx, edi
call fcn.0040dfe0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d000
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x4c4778]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ebx, edi
call fcn.0040dfe0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d034
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d058
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41f290
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4ba1f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x41f33a
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004690e0
add esp, 0xc
push 0
push 0x28
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x499a54
lea eax, [ebp - 0x20c]
push eax
call esi
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41f312
push eax
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x49eadc
lea eax, [ebp - 0x20c]
push eax
call esi
lea ecx, [ebp - 0x20c]
push ecx
push 0
push str.PrepareUpgrade
push str.Update
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret 4
Function at 0x41f760
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488b60
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4ba1f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.winusb.dll
lea ecx, [ebp - 0x14]
mov edi, 1
call fcn.00402390
push 0x25
lea esi, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.0040efa0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
mov ebx, eax
mov byte [ebp - 4], 1
call fcn.00408550
add esp, 0xc
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f7e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41f7f7
test al, 0x10
je 0x41f869
lea ecx, [ebp - 0x20]
call fcn.0040edd0
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x18]
push ecx
mov ebx, eax
mov byte [ebp - 4], 4
call fcn.00408550
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f838
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f869
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f88c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f8b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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 0x41f8d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a0c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x4ba1f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x28
lea esi, [ebp - 0x14]
call fcn.0040efa0
push eax
lea eax, [ebp - 0x10]
push eax
mov ebx, str._funshionupdateupdatexmlfile.txt
mov dword [ebp - 4], 0
call fcn.00406d50
add esp, 0xc
mov bl, 2
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f93e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41f976
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.00410b80
add esp, 8
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f995
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f9bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f9d0
Capabilities:
Check if file exists
Delete file
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4ba1f0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004690e0
add esp, 0xc
push 0
push 0x28
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x49eadc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fa50
sub eax, edx
push esi
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
lea esi, [ebp - 0x228]
call fcn.00401bf0
mov eax, dword [ebp - 0x228]
mov esi, 8
cmp dword [ebp - 0x214], esi
jae 0x41fa8b
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41fab1
mov eax, dword [ebp - 0x228]
cmp dword [ebp - 0x214], esi
jae 0x41faaa
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x214], esi
pop esi
jb 0x41fac9
mov edx, dword [ebp - 0x228]
push edx
call fcn.004657ea
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret
Function at 0x4206c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48abae
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4ba1f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.004690e0
add esp, 0xc
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], 1
jne 0x420739
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], 1
mov dword [ebp - 4], 0
call fcn.004211a0
push 0x4924b0
call fcn.00465ab8
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x21c]
push edx
push sym.Install.exe__t__1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_4V__singleton_wrapp
call fcn.00422560
mov ecx, dword [0x4c4790]
mov edx, dword [eax]
push ecx
push edx
lea eax, [ebp - 0x218]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42078b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x38
lea ecx, [ebp - 0x254]
push 0
push ecx
call fcn.004690e0
add esp, 0xc
lea eax, [ebp - 0x258]
lea edx, [ebp - 0x218]
push eax
mov dword [ebp - 0x258], 0x3c
mov dword [ebp - 0x254], 0x500
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x244], str.updatebyinstaller
mov dword [ebp - 0x23c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret