joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a0e0
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a44d6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00560a80
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x48a15d
push eax
push str.2344_tKUninstall::CleanCloudSvrFolder_tcan_not_get_folder_path__error_code:__l
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallKUninstall.cpp
push str._ERROR_
push 0x641cc8
call fcn.0046b730
add esp, 0x14
jmp 0x48a2a0
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x48a2ba
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x48a19f
movzx eax, ax
lea ecx, [ebp - 0x21c]
push eax
call fcn.00429d90
jmp 0x48a1d2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x48a1b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48a1b0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0042a060
push 0x5c3410
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00429810
add esp, 0xc
mov edx, dword [ebp - 0x21c]
or esi, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48a218
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x220]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48a253
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x220]
push str.2352_tKUninstall::CleanCloudSvrFolder_tcan_not_find_path:__ws__error_code:__lu
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallKUninstall.cpp
push str._ERROR_
push 0x641cc8
call fcn.0046b730
add esp, 0x18
jmp 0x48a285
push 1
push 0
push dword [ebp - 0x220]
call fcn.0047fb80
add esp, 0xc
test eax, eax
jne 0x48a285
push str.2358_tKUninstall::CleanCloudSvrFolder_tremove_cloudsvr_folder_failed
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallKUninstall.cpp
push str._ERROR_
push 0x641cc8
call fcn.0046b730
add esp, 0x10
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x48a2a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b60
int3
Function at 0x48d8d0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x124c
call fcn.0055cc70
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00560a80
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00560a80
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0056f8ec
push str.kingsoftwps
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0056f877
push 0
push 0
lea eax, [ebp - 0x414]
push 1
push eax
call fcn.0047a3e0
push 1
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0047fb80
add esp, 0x40
lea eax, [ebp - 0x824]
push 0x208
push 0
push eax
call fcn.00560a80
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0056f8ec
push str.kingsoft
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0056f877
push 1
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.0047fb80
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00560a80
add esp, 0x3c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.ShellNew
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0056f877
push 0x208
push 0
lea eax, [ebp - 0xa2c]
push eax
call fcn.00560a80
push 0x208
lea eax, [ebp - 0xc34]
push 0
push eax
call fcn.00560a80
push 0x208
lea eax, [ebp - 0xe3c]
push 0
push eax
call fcn.00560a80
push 0x208
lea eax, [ebp - 0x1044]
push 0
push eax
call fcn.00560a80
push 0x208
lea eax, [ebp - 0x124c]
push 0
push eax
call fcn.00560a80
add esp, 0x48
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa2c]
push 0x104
push eax
call fcn.0056f8ec
push str._newfile.wps
lea eax, [ebp - 0xa2c]
push 0x104
push eax
call fcn.0056f877
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xc34]
push 0x104
push eax
call fcn.0056f8ec
push str._newfile.et
lea eax, [ebp - 0xc34]
push 0x104
push eax
call fcn.0056f877
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xe3c]
push 0x104
push eax
call fcn.0056f8ec
push str._newfile.dps
lea eax, [ebp - 0xe3c]
push 0x104
push eax
call fcn.0056f877
add esp, 0x48
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x1044]
push 0x104
push eax
call fcn.0056f8ec
push str._newfile.xlsx
lea eax, [ebp - 0x1044]
push 0x104
push eax
call fcn.0056f877
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x124c]
push 0x104
push eax
call fcn.0056f8ec
push str._newfile.pptx
lea eax, [ebp - 0x124c]
push 0x104
push eax
call fcn.0056f877
add esp, 0x30
lea eax, [ebp - 0xa2c]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
lea eax, [ebp - 0xc34]
push eax
call esi
lea eax, [ebp - 0xe3c]
push eax
call esi
lea eax, [ebp - 0x1044]
push eax
call esi
lea eax, [ebp - 0x124c]
push eax
call esi
push 1
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0047fb80
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
Function at 0x48f880
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4ce5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
call fcn.00429250
test eax, eax
je 0x48fa70
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 2
call fcn.00429250
test eax, eax
je 0x48fa70
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
call fcn.00429250
test eax, eax
je 0x48fa70
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0046c3b0
add esp, 0xc
or edi, 0xffffffff
test eax, eax
je 0x48fa12
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0046c0f0
add esp, 8
test eax, eax
je 0x48f9a3
push 0x5c
push dword [ebp - 0x10]
call fcn.005614c9
add esp, 8
test eax, eax
je 0x48f982
sub eax, dword [ebp - 0x10]
sar eax, 1
cmp eax, edi
je 0x48f982
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.004487c0
mov edx, dword [ebp - 0x20]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48f982
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00429b80
add esp, 4
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.0048c100
mov byte [ebp - 4], 6
call fcn.00429250
test eax, eax
je 0x48fa70
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 7
push eax
call fcn.0046c180
add esp, 4
test eax, eax
je 0x48f9f3
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48f9f3
push 0
push 1
push 0
push dword [ebp - 0x14]
call fcn.0047a3e0
add esp, 0x10
call fcn.0046c030
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48fa12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48fa2c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48fa46
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x48fa5e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b60
int3
Function at 0x4919b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 0x20], eax
mov al, byte [ebp + 0x18]
mov byte [esi + 0x59], al
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x54], eax
call fcn.004d1aa0
push 0
push 0
mov ecx, eax
call fcn.004d09f0
cmp byte [0x6421fc], 0
je 0x491a20
push 0
push 0
push 0x5ba110
push str.StartUninstall
push 1
call fcn.004d4f50
add esp, 0x14
cmp byte [0x6421fc], 0
je 0x491a20
push 0xff
push str.StartUninstall
call fcn.004d4fd0
add esp, 8
mov eax, dword [esi + 0x10]
mov dword [esi + 4], 0
cmp dword [eax - 0xc], 0
je 0x491a62
push str.7E3EDCB6_AA19_4598_A948_C59B6B02BF64
push 0
push 1
push 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x49e2b0
push 0
push 0
mov dword [esi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
cmp byte [0x6421fc], 0
pop esi
je 0x491a9f
push 0
push 0
push 0x5ba110
push str.StartUninstall
push 1
call fcn.004d4f90
add esp, 0x14
cmp byte [0x6421fc], 0
je 0x491a9f
push 0xff
push str.StartUninstall
call fcn.004d4ff0
add esp, 8
pop ebp
ret 0x14
Function at 0x491ab0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4fe5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x10]
sub eax, 0x10
push eax
call fcn.00429b80
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x14]
sub eax, 0x10
mov dword [ebp - 4], 0
push eax
call fcn.00429b80
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call fcn.0047fa90
lea eax, [ebp - 0x10]
push eax
call fcn.0047fa90
push str.WPSOfficePIA.exe
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00429810
mov esi, dword [eax]
lea eax, [ebp - 0x14]
push str.office6WPSOfficePIA.exe
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.00429810
add esp, 0x28
push 0
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x18]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x491b70
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x491b8e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
push str.WPSOfficePIA.exe
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 8]
mov ebx, dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00429810
push 1
push 1
push 0
push esi
push edi
push ebx
push dword [eax]
mov byte [ebp - 4], 3
call fcn.0047fdb0
mov edx, dword [ebp + 8]
or ebx, 0xffffffff
add esp, 0x28
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x491be0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x491bfa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x491c12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x494aa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x210], esi
cmp dword [edi + 0xdc], 0
mov eax, dword [edi + 0xb8]
je 0x494ad6
lea ecx, [eax - 0x10]
push ecx
jmp 0x494b3c
cmp dword [eax - 0xc], 0
jne 0x494b38
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00560a80
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov edi, edi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x494b10
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
lea ecx, [edi + 0xb8]
push edx
push eax
call fcn.0042a060
mov eax, dword [edi + 0xb8]
add eax, 0xfffffff0
push eax
call fcn.00429b80
mov ecx, dword [ebp - 4]
add esp, 4
add eax, 0x10
xor ecx, ebp
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
pop ebx
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret 4
Function at 0x494b60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a54b9
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x639354]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
cmp dword [edi + 0xdc], 0
mov dword [ebp - 0x3c], ebx
je 0x494cfc
xor eax, eax
xor esi, esi
mov dword [ebp - 0x2c], eax
mov ecx, dword [str.SoftwareKingsoftOffice6.0CommonLocal]
mov edx, dword [0x643da0]
mov dword [ebp - 0x38], ecx
mov ecx, dword fs:[0x2c]
mov dword [ebp - 4], eax
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x641da8]
cmp ecx, dword [edx + 4]
jg 0x494d33
jmp 0x494bdd
mov eax, dword [ebp - 0x2c]
mov ecx, dword [0x641da4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], ecx
test eax, eax
je 0x494bf6
push eax
call ebx
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x20019
push 0
push dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], 4
test eax, eax
je 0x494c50
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x34]
push ecx
push 0
push str.UILanguage
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x494c46
cmp dword [ebp - 0x34], 4
cmove esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x494c50
push eax
call ebx
mov dword [ebp - 0x2c], 0
test esi, esi
je 0x494c9e
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0051b1c0
add esp, 8
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
je 0x494c92
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [edi + 0xb4]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x5bcaf0
push ecx
call fcn.0042c720
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0042ab30
mov eax, dword [edi + 0xb4]
cmp dword [eax - 0xc], 0
jne 0x494ce1
lea eax, [ebp - 0x30]
push eax
call fcn.004b5470
add esp, 4
push eax
lea ecx, [edi + 0xb4]
mov byte [ebp - 4], 3
call fcn.004297a0
mov edx, dword [ebp - 0x30]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x494ce1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x494cf2
push eax
call ebx
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
mov ecx, dword [edi + 0xb4]
sub ecx, 0x10
push ecx
call fcn.00429b80
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov eax, ebx
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.0055c3a9
mov esp, ebp
pop ebp
ret 4
push 0x641da8
call fcn.0055c868
add esp, 4
cmp dword [0x641da8], 0xffffffff
jne 0x494bda
mov ecx, 0x641da0
mov byte [ebp - 4], 1
call fcn.004be620
push 0x5b4760
call fcn.0055cb7a
push 0x641da8
mov byte [ebp - 4], 0
call fcn.0055c81e
add esp, 8
jmp 0x494bda
Function at 0x494d80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x210], esi
cmp dword [edi + 0xdc], 0
mov eax, dword [edi + 0xbc]
je 0x494db6
lea ecx, [eax - 0x10]
push ecx
jmp 0x494e1c
cmp dword [eax - 0xc], 0
jne 0x494e18
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00560a80
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov edi, edi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x494df0
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
lea ecx, [edi + 0xbc]
push edx
push eax
call fcn.0042a060
mov eax, dword [edi + 0xbc]
add eax, 0xfffffff0
push eax
call fcn.00429b80
mov ecx, dword [ebp - 4]
add esp, 4
add eax, 0x10
xor ecx, ebp
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
pop ebx
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret 4
Function at 0x494e40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5507
mov eax, dword fs:[0]
push eax
sub esp, 0x624
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x628]
push 0x208
push 0
mov dword [ebp - 0x630], edi
push eax
mov dword [ebp - 0x62c], 0
call fcn.00560a80
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00560a80
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00560a80
add esp, 0x24
mov dword [ebp - 4], 1
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x49504d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push dword [ebx + 0x10]
lea eax, [ebp - 0x628]
mov dword [ebp - 4], 0
push 0x104
push eax
mov dword [ebp - 0x62c], 1
call fcn.0056f8ec
push str.utilityinstall.ini
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0056f877
add esp, 0x18
lea eax, [ebp - 0x628]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x5b8734
push str.lowerversion
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x628]
push eax
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0x5b8734
push str.higherversion
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebx + 0xc4]
mov ecx, edi
push dword [eax - 0xc]
push eax
call fcn.004299d0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494f86
sub ecx, edx
sar ecx, 1
je 0x494fd4
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x494fc5
push 1
push 0x5bcda0
mov ecx, edi
call fcn.004299d0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494fb6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.004299d0
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494fe0
sub ecx, edx
sar ecx, 1
je 0x49502e
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x49501f
push 1
push 0x5bcda0
mov ecx, edi
call fcn.004299d0
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495010
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
mov ecx, edi
push eax
call fcn.004299d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00429b60
int3
Function at 0x495190
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a55b6
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 1
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x4952fe
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
push 0x20019
push 0
push dword [0x6134a0]
mov dword [ebp - 0x14], 0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0
test eax, eax
je 0x4952df
lea ecx, [ebp - 0x10]
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.Version
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x49524d
cmp eax, 2
jne 0x4952d1
mov ecx, esi
call fcn.00429c20
mov edx, dword [ebp - 0x10]
shr edx, 1
add edx, 1
js 0x4952f4
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x49527d
push edx
mov ecx, esi
call fcn.00429eb0
mov edi, dword [esi]
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0
push str.Version
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4952d1
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov word [edi + eax*2], cx
mov eax, dword [esi]
test eax, eax
je 0x4952bf
push dword [eax - 8]
push eax
call fcn.0056b163
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4952f4
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4952f4
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4952df
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00429b60
push 0x80004005
call fcn.00429b60
int3