joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416dc0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4946e6
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4d53a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x264], ecx
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004726b0
add esp, 0xc
push 0
push 0xb
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4989b4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x230]
push eax
call fcn.00401820
add esp, 8
mov dword [ebp - 4], 0
push 0x4989c0
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x260]
push edx
call fcn.00402be0
add esp, 0xc
mov byte [ebp - 4], 1
push 0x4989cc
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
push ecx
call fcn.00402be0
add esp, 0xc
lea ecx, [ebp - 0x260]
call fcn.00403d00
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x248]
call fcn.00403d00
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x248]
call fcn.00403f90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.00403f90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00403f90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470931
mov esp, ebp
pop ebp
ret

Function at 0x417630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494756
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4d53a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x254], ecx
call fcn.004165e0
mov ecx, eax
call fcn.00421c30
movzx eax, al
test eax, eax
je 0x417756
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.004726b0
add esp, 0xc
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x498c84
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x248]
push edx
call fcn.004165e0
mov ecx, eax
call fcn.004216e0
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x250], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x250]
call fcn.00403d00
push eax
lea ecx, [ebp - 0x230]
push ecx
call fcn.00401990
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.00403f90
push 0x498c98
lea ecx, [ebp - 0x230]
call fcn.004175e0
push 0
lea edx, [ebp - 0x218]
push edx
push 0
lea ecx, [ebp - 0x230]
call fcn.00403570
push eax
mov ecx, dword [ebp - 0x254]
call fcn.00417770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00403bd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470931
mov esp, ebp
pop ebp
ret
Function at 0x417af0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4d53a4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x417b0f
cmp dword [ebp + 0xc], 0
jne 0x417b13
xor eax, eax
jmp 0x417b88
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x23c]
push ecx
call fcn.0041a110
add esp, 8
xor edx, edx
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.004726b0
add esp, 0xc
mov dword [ebp - 0x240], 0x104
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x23c]
push ecx
push 0x2000
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00417eb0
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470931
mov esp, ebp
pop ebp
ret
Function at 0x419c30
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4d53a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x150], ecx
xor eax, eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
push 0x11c
push 0
lea ecx, [ebp - 0x120]
push ecx
call fcn.004726b0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x419cb9
xor eax, eax
jmp 0x419dc5
push 0x498d78
push 0x498d8c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x419cee
lea eax, [ebp - 0x14c]
push eax
call dword [ebp - 0x128]
jmp 0x419cfb
lea ecx, [ebp - 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 0x124], 0
cmp dword [ebp - 0x110], 2
jne 0x419dbf
cmp dword [ebp - 0x11c], 4
jbe 0x419dbf
cmp dword [ebp - 0x11c], 6
jne 0x419d67
cmp dword [ebp - 0x118], 0
jne 0x419d3d
mov dword [ebp - 0x124], 4
jmp 0x419d65
cmp dword [ebp - 0x118], 1
jne 0x419d52
mov dword [ebp - 0x124], 5
jmp 0x419d65
cmp dword [ebp - 0x118], 2
jne 0x419d65
mov dword [ebp - 0x124], 6
jmp 0x419dbf
cmp dword [ebp - 0x11c], 5
jne 0x419d85
cmp dword [ebp - 0x118], 2
jne 0x419d85
mov dword [ebp - 0x124], 3
jmp 0x419dbf
cmp dword [ebp - 0x11c], 5
jne 0x419da3
cmp dword [ebp - 0x118], 1
jne 0x419da3
mov dword [ebp - 0x124], 2
jmp 0x419dbf
cmp dword [ebp - 0x11c], 5
jne 0x419dbf
cmp dword [ebp - 0x118], 0
jne 0x419dbf
mov dword [ebp - 0x124], 1
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470931
mov esp, ebp
pop ebp
ret
Function at 0x41a5b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494b38
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4d53a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x5c]
add ecx, 0xc
call fcn.00404ad0
lea eax, [ebp - 0x40]
push eax
call fcn.004165e0
mov ecx, eax
call fcn.004216e0
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x68]
call fcn.00403d00
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.0041a8b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00403f90
lea edx, [ebp - 0x60]
push edx
mov ecx, dword [ebp - 0x5c]
add ecx, 0xc
call fcn.00404c00
jmp 0x41a63f
lea ecx, [ebp - 0x60]
call fcn.00407200
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x5c]
add ecx, 0xc
call fcn.00404bf0
push eax
lea ecx, [ebp - 0x60]
call fcn.004071e0
movzx ecx, al
test ecx, ecx
je 0x41a6b6
lea ecx, [ebp - 0x60]
call sym.Install.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov ecx, eax
call fcn.00403d00
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.00401990
add esp, 8
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00403570
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a6a5
lea ecx, [ebp - 0x28]
call fcn.00403570
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.0041ab40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403bd0
jmp 0x41a637
lea eax, [ebp - 0x58]
push eax
call fcn.004165e0
mov ecx, eax
call fcn.004216e0
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x70]
call fcn.00403d00
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.0041a8b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00403f90
mov ecx, dword [ebp - 0x5c]
add ecx, 0xc
call fcn.00404ad0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470931
mov esp, ebp
pop ebp
ret
Function at 0x41a720
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494b83
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4d53a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb8], ecx
push str.Heinote_
push 0x1a
lea eax, [ebp - 0x70]
push eax
call fcn.004013e0
add esp, 8
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xa8]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.00402cc0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00403f90
lea ecx, [ebp - 0x40]
call fcn.00403d00
push eax
lea ecx, [ebp - 0x88]
push ecx
call fcn.00401990
add esp, 8
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
call fcn.00403570
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea ecx, [ebp - 0x88]
call fcn.00403bd0
push 0x4992e4
lea edx, [ebp - 0xa0]
push edx
call fcn.004165e0
mov ecx, eax
call fcn.004216e0
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xb4]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.00402cc0
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
call fcn.00403f90
push str.Heinote.ini
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00402be0
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.00403d00
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [ebp - 0x28]
call fcn.00403d00
push eax
lea ecx, [ebp - 0x58]
call fcn.00403d00
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x28]
call fcn.00403f90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00403f90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00403f90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470931
mov esp, ebp
pop ebp
ret
Function at 0x41ab40
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x4d53a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x62c], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41ab6c
jmp 0x41ad07
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x628], eax
cmp dword [ebp - 0x628], 0
je 0x41ab8a
jmp 0x41ad07
xor edx, edx
mov word [ebp - 0x414], dx
push 0x206
push 0
lea eax, [ebp - 0x412]
push eax
call fcn.004726b0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x61c], cx
push 0x206
push 0
lea edx, [ebp - 0x61a]
push edx
call fcn.004726b0
add esp, 0xc
lea eax, [ebp - 0x61c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x62c]
call fcn.0041b0f0
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x620], 0
mov eax, 1
test eax, eax
je 0x41ad07
mov dword [ebp - 0x624], 1
xor ecx, ecx
mov word [ebp - 0x20c], cx
push 0x206
push 0
lea edx, [ebp - 0x20a]
push edx
call fcn.004726b0
add esp, 0xc
cmp dword [ebp - 0x620], 0
jne 0x41ac67
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x61c]
push ecx
push 0x499304
lea edx, [ebp - 0x20c]
push edx
call fcn.0040afd0
add esp, 0x10
jmp 0x41ac90
mov eax, dword [ebp - 0x620]
push eax
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x61c]
push edx
push str._s_s.del_d
lea eax, [ebp - 0x20c]
push eax
call fcn.0040afd0
add esp, 0x14
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41acb4
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x624], eax
cmp dword [ebp - 0x624], 0
jne 0x41acdc
cmp dword [ebp - 0x620], 0xa
jl 0x41acc8
jmp 0x41ad07
mov eax, dword [ebp - 0x620]
add eax, 1
mov dword [ebp - 0x620], eax
jmp 0x41ac04
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004767d7
add esp, 8
push 5
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x41ad07
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470931
mov esp, ebp
pop ebp
ret 4
Function at 0x41c6d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494d59
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4d53a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x54]
call fcn.004168b0
mov dword [ebp - 4], 0
push 0x499a50
lea ecx, [ebp - 0x40]
call fcn.00404650
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
or eax, 1
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00401480
add esp, 8
movzx eax, al
test eax, eax
je 0x41c757
lea ecx, [ebp - 0x54]
call fcn.00417280
test eax, eax
jbe 0x41c757
mov dword [ebp - 0x58], 1
jmp 0x41c75e
mov dword [ebp - 0x58], 0
mov cl, byte [ebp - 0x58]
mov byte [ebp - 0x41], cl
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x48]
and edx, 1
je 0x41c77f
and dword [ebp - 0x48], 0xfffffffe
lea ecx, [ebp - 0x40]
call fcn.00403f90
movzx eax, byte [ebp - 0x41]
test eax, eax
je 0x41c8c3
push 0
push str.HEINOTE_MAIN_WND
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x5c], eax
push 0
push str.HEINOTE_MAIN_WND_U
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x60], eax
push 0
push str.HEINOTE_MAIN_WND_B
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x64], eax
push 0
push str.HEINOTE_MAIN_WND_U_B
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x5c], 0
jne 0x41c7e7
cmp dword [ebp - 0x60], 0
jne 0x41c7e7
cmp dword [ebp - 0x64], 0
jne 0x41c7e7
cmp dword [ebp - 0x68], 0
je 0x41c8c3
push 0x499afc
lea ecx, [ebp - 0x28]
call fcn.00404650
mov byte [ebp - 4], 2
push 0x499b18
lea ecx, [ebp - 0x28]
call fcn.004028a0
push 0x499b24
lea ecx, [ebp - 0x28]
call fcn.004028a0
push 4
push 0x499b5c
lea ecx, [ebp - 0x28]
call fcn.00403d00
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 6
jne 0x41c893
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x54]
call fcn.004170d0
jmp 0x41c84f
push 0
lea edx, [ebp - 0x78]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00416a40
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x54]
call fcn.00417220
push eax
lea ecx, [ebp - 0x4c]
call fcn.00416990
movzx ecx, al
test ecx, ecx
je 0x41c891
lea ecx, [ebp - 0x4c]
call fcn.004169f0
mov edx, dword [eax]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x70], eax
push 0
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x41c841
jmp 0x41c8b7
mov byte [ebp - 0x42], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00403f90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00416940
mov al, byte [ebp - 0x42]
jmp 0x41c8d9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00403f90
mov byte [ebp - 0x43], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00416940
mov al, byte [ebp - 0x43]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470931
mov esp, ebp
pop ebp
ret
Function at 0x41c9a0
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
call fcn.004165e0
mov ecx, eax
call fcn.0041ef60
mov dword [ebp - 8], eax
push 0x499ccc
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41c9d9
jmp 0x41ca6e
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41ca20
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x41ca6e
mov dword [ebp - 0x14], 0
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 8

Function at 0x41cd80
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4d53a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], ecx
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.004726b0
add esp, 0xc
push 0
mov ecx, dword [ebp + 8]
call fcn.00407b00
movsx ecx, byte [eax]
push ecx
push str._c:_
lea edx, [ebp - 0x108]
push edx
call fcn.0041e0b0
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470931
mov esp, ebp
pop ebp
ret 4
Function at 0x41ceb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 8], 0
jne 0x41cec9
mov eax, 1
jmp 0x41cfd2
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41cfcd
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
push 0x499d2c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41cf24
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x41cfd2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00470eaa
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41cfc3
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0
push 0
push str.ProgramW6432Dir
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41cf8f
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004709de
add esp, 4
mov eax, 1
jmp 0x41cfd2
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00476763
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004709de
add esp, 4
xor eax, eax
jmp 0x41cfd2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x41d1f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494e41
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4d53a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x268], ecx
mov byte [ebp - 0x114], 0
push 0x103
push 0
lea eax, [ebp - 0x113]
push eax
call fcn.004726b0
add esp, 0xc
lea ecx, [ebp - 0x114]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.Check.7z.md5
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x114]
push eax
push str.7ZDATAMD5
mov ecx, dword [ebp - 0x268]
call fcn.0041c9a0
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x230]
push edx
mov ecx, dword [ebp - 0x268]
call fcn.0041d880
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call sym.Install.exe_public_virtual:_class_DuiLib::IListOwnerUI____thiscall_DuiLib::CListContainerElementUI::GetOwner_void_
test eax, eax
jne 0x41d2cd
mov byte [ebp - 0x261], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00403f90
mov al, byte [ebp - 0x261]
jmp 0x41d3ea
mov byte [ebp - 0x218], 0
push 0x103
push 0
lea eax, [ebp - 0x217]
push eax
call fcn.004726b0
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.7zData.7z
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x218]
push eax
push str.7ZDATA
mov ecx, dword [ebp - 0x268]
call fcn.0041c9a0
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x260]
push edx
call fcn.00401990
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x260]
call fcn.00403570
push eax
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x268]
call fcn.0041d940
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.00403d00
push eax
lea ecx, [ebp - 0x230]
call fcn.00403d00
push eax
call fcn.00401c70
add esp, 8
mov esi, eax
lea ecx, [ebp - 0x230]
call fcn.00403d00
cmp esi, eax
jne 0x41d39e
mov dword [ebp - 0x26c], 1
jmp 0x41d3a8
mov dword [ebp - 0x26c], 0
mov cl, byte [ebp - 0x26c]
mov byte [ebp - 0x262], cl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.00403f90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.00403bd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00403f90
mov al, byte [ebp - 0x262]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470931
mov esp, ebp
pop ebp
ret