joyce8/EMBER2024-capa huggingface dataset:
Function at 0x722442
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
test esi, esi
jne 0x72244b
push 0x57
pop eax
jmp 0x7224a3
push edi
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push dword [esp + 0xc]
mov word [esi], ax
call dword [sym.imp.WSOCK32.dll_htons]
push dword [esp + 8]
mov word [esi + 2], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [esi + 4], eax
pop edi
cmp eax, 0xffffffff
jne 0x722493
push dword [esp + 4]
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x722493
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 4], eax
cmp dword [esi + 4], 0xffffffff
jne 0x7224a1
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
jmp 0x7224a3
xor eax, eax
ret 8

Function at 0x722580
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
cmp byte [esi + 0x14], 0
je 0x72258d
mov eax, 0x2748
jmp 0x7225c0
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x7225a8
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
jmp 0x7225c0
push 0x10
push dword [esp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
je 0x7225a0
mov byte [esi + 0x14], 1
xor eax, eax
ret 4

Function at 0x722614
Capabilities:
Initialize winsock library

Disassembly:
and dword [0x7d915c], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.WSOCK32.dll_WSAStartup]
mov esi, 0x7d9160
push esi
push 0x202
call edi
mov ebx, eax
cmp ebx, 0x276c
jne 0x722645
push esi
push 0x101
call edi
mov ebx, eax
cmp byte [0x7d9160], 2
mov edi, dword [esp + 0x10]
push 0x64
pop ecx
rep movsd dword es:[edi], dword [esi]
jne 0x72268f
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.WSARecv
push eax
mov dword [0x7d9154], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x7d9154], 0
mov dword [0x7d9158], eax
je 0x72268f
test eax, eax
je 0x72268f
mov dword [0x7d915c], 0x7221f9
cmp dword [0x7d915c], 0
jne 0x7226a2
mov dword [0x7d915c], 0x72224c
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x722a6f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp byte [ebp + 0x20], 0
mov esi, eax
je 0x722aa2
test esi, esi
je 0x722aa6
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
test esi, esi
jne 0x722ac8
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x722acd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x722b0b
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x722b84
Capabilities:
Copy file

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x722b9c
xor eax, eax
jmp 0x722ba2
call dword [sym.imp.KERNEL32.dll_GetLastError]
ret 8

Function at 0x722d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
push esi
push edi
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x858]
push dword [ebp + 8]
push str._s__s
push 0x7ff
push eax
call fcn.004d0f27
mov esi, dword [ebx + 0x234]
lea eax, [ebp - 0x858]
push eax
push dword [ebp + 8]
mov edi, 0xbfffffff
push str.FileInstall:_Executing___s__with_command_line:__s_r_n
push edi
call fcn.0072062c
add esp, 0x24
lea eax, [ebp - 0x14]
push eax
xor esi, esi
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x4000020
push esi
push esi
push esi
lea eax, [ebp - 0x858]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x722e23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
jmp 0x722e26
mov dword [ebp + 0xc], esi
cmp dword [ebp + 0xc], esi
je 0x722e4a
push dword [ebp + 0xc]
mov esi, dword [ebx + 0x234]
push dword [ebp + 8]
push str.FileInstall:_EXECall_to__s_failed__iReturn_d__r_n
push edi
call fcn.0072062c
mov eax, dword [ebp + 0xc]
add esp, 0x10
jmp 0x722e97
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x722e7d
mov esi, dword [ebx + 0x234]
push str.FileInstall:_EXECall_Unable_to_get_the_exit_code._r_n
push edi
call fcn.0072062c
pop ecx
pop ecx
push dword [ebp - 4]
mov esi, dword [ebx + 0x234]
push str.FileInstall:_EXECall_exit_code:_0x_08x._r_n
push edi
call fcn.0072062c
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
leave
ret 8
Function at 0x72364e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
push str.name
push dword [ebp + 0xc]
lea edi, [ebp - 0x14]
mov eax, ebx
call fcn.0071f01c
pop ecx
pop ecx
test eax, eax
je 0x723681
push 0xd
pop eax
jmp 0x723828
lea eax, [ebx + 4]
push 0x100
push eax
push str.dest
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.0071f1c3
add esp, 0x10
test eax, eax
jne 0x723679
push esi
push str.rebootCopy
push dword [ebp + 0xc]
lea esi, [ebx + 0x204]
call fcn.0071f28b
pop ecx
pop ecx
test eax, eax
je 0x7236be
mov byte [esi], 0
push str.forceCopy
push dword [ebp + 0xc]
lea esi, [ebx + 0x205]
call fcn.0071f28b
pop ecx
pop ecx
test eax, eax
je 0x7236da
mov byte [esi], 0
push dword [ebp + 0xc]
lea esi, [ebx + 0x208]
call fcn.0071f242
pop ecx
test eax, eax
je 0x7236f0
and dword [esi], 0
push 0x20
pop esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
push eax
push str.version
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
call fcn.0071f0c7
add esp, 0x10
test eax, eax
je 0x723727
push esi
push 0x7c53f8
xor ebx, ebx
lea edi, [ebp - 0x34]
call fcn.00720cf8
mov ebx, dword [ebp + 8]
pop ecx
pop ecx
push str.preCall
push dword [ebp + 0xc]
lea edi, [ebp - 8]
lea eax, [ebx + 0x21c]
call fcn.0071f01c
pop ecx
pop ecx
test eax, eax
je 0x72374a
and dword [ebx + 0x21c], 0
push str.postCall
push dword [ebp + 0xc]
lea edi, [ebp - 0xc]
lea eax, [ebx + 0x220]
call fcn.0071f01c
pop ecx
pop ecx
test eax, eax
je 0x72376d
and dword [ebx + 0x220], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x72377a
mov ecx, dword [ebx]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x72378b
mov ecx, dword [ebx + 0x21c]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x72379c
mov ecx, dword [ebx + 0x220]
mov byte [eax + ecx], 0
lea eax, [ebp - 0x34]
push eax
lea esi, [ebx + 0x20c]
call fcn.007203b7
mov esi, dword [ebp - 4]
push str._SYSTEMROOT_
push esi
call fcn.004d317c
pop ecx
pop ecx
test eax, eax
jne 0x7237cd
push 0x100
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x723825
push str._OSSBRANDROOT_
push esi
call fcn.004d317c
pop ecx
pop ecx
test eax, eax
je 0x72380e
push str._WINDIR_
push esi
call fcn.004d317c
pop ecx
pop ecx
test eax, eax
jne 0x7237fd
push 0x100
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x723825
push str._OSSINSTALLROOT_
push esi
call fcn.004d317c
pop ecx
pop ecx
test eax, eax
jne 0x723825
add ebx, 0x104
push 0x100
push ebx
xor ebx, ebx
mov edi, esi
call fcn.00720cf8
pop ecx
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x723bc7
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x72b217
call fcn.004dc888
sub esp, 0x138
push ebx
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0071eea0
push 0x7c5768
push dword [ebp - 0x10]
call fcn.004d317c
add esp, 0x18
test eax, eax
je 0x723c0a
push 0xd
pop eax
jmp 0x723db4
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0071eea0
push str.INSTALL
push dword [ebp - 0x10]
call fcn.004d317c
add esp, 0x18
test eax, eax
jne 0x723c02
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x13f]
push ebx
push eax
mov byte [ebp - 0x140], bl
call fcn.004d4a00
add esp, 0xc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x140]
push eax
push str.brand
push dword [ebp - 0x18]
mov dword [ebp + 8], 0x104
call fcn.0071f0c7
add esp, 0x10
cmp eax, ebx
jne 0x723d46
lea eax, [ebp - 0x34]
push eax
call fcn.004ce131
pop ecx
push 1
push 0x7c4b08
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.004030c3
lea eax, [ebp - 0x140]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x723ca5
sub eax, ecx
push eax
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x34]
call fcn.004030c3
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
lea edi, [esi + 0x168]
mov byte [edi], bl
jae 0x723cd2
lea eax, [ebp - 0x34]
push 0x200
push eax
xor ebx, ebx
call fcn.00720cf8
pop ecx
pop ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x723d0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x723d0f
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.004010ac
mov eax, 0x80004005
jmp 0x723db4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x723d25
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x140]
push eax
lea ecx, [esi + 0x470]
call fcn.004019e8
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.004010ac
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
jmp 0x723d91
push 0x7c53c4
push dword [ebp - 0x10]
call fcn.004d317c
pop ecx
pop ecx
test eax, eax
jne 0x723d6d
push dword [ebp - 0x18]
mov eax, esi
call fcn.007239e3
jmp 0x723d8d
push str.FILE
push dword [ebp - 0x10]
call fcn.004d317c
pop ecx
pop ecx
test eax, eax
jne 0x723d91
push dword [ebp - 0x18]
mov ecx, esi
push dword [ebp - 0x14]
call fcn.00723b15
test eax, eax
jne 0x723dad
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0071eea0
add esp, 0x10
test eax, eax
je 0x723d4e
cmp eax, 0x26
jne 0x723db4
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x723f20
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x10
sub ecx, eax
pop esi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x723f26
xor eax, eax
pop esi
ret
Function at 0x72401e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ecx, cx
movsd dword es:[edi], dword [esi]
shl ecx, 5
add ecx, 0x7d6600
lea eax, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
call fcn.00723f20
lea eax, [ebp - 0x10]
push 8
mov edi, ebx
lea esi, [ebp - 1]
sub eax, ebx
pop ecx
mov dl, byte [eax + edi]
xor dl, byte [esi]
dec esi
mov byte [edi], dl
inc edi
dec ecx
jne 0x724050
add dword [ebx], 0xa7ec752d
mov eax, dword [ebx]
mov edx, eax
adc dword [ebx + 4], ecx
mov ecx, dword [ebx + 4]
mov esi, ecx
shrd edx, esi, 0x1d
shld ecx, eax, 3
shr esi, 0x1d
shl eax, 3
or esi, ecx
or edx, eax
pop edi
mov dword [ebx + 4], esi
mov dword [ebx], edx
xor eax, eax
pop esi
leave
ret

Function at 0x724ac5
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x725417
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [eax + 0x100]
and dword [esi], 0
cmp eax, 0xffffffff
jne 0x72542a
push 6
pop eax
jmp 0x725452
push dword [esp + 8]
push dword [esp + 8]
push eax
call fcn.004d1dfb
add esp, 0xc
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x72544c
cmp eax, dword [esp + 8]
jne 0x72544c
xor eax, eax
jmp 0x725452
call dword [sym.imp.KERNEL32.dll_GetLastError]
ret 8
Function at 0x7264a3
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x72b402
call fcn.004dc888
sub esp, 0x934
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x20]
push eax
push 0xf01ff
mov dword [ebp - 0x18], 0x80004005
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x726694
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
inc esi
push esi
xor ebx, ebx
push ebx
push ebx
push 0x2000000
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x726694
push 0x2000
push dword [ebp - 0x1c]
call fcn.004ca18e
pop ecx
pop ecx
test eax, eax
je 0x726694
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 4], ebx
call fcn.0040c420
pop ecx
push ebx
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004c8d24
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.004c8341
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.004c8377
push ebx
push esi
lea ecx, [ebp - 0x78]
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 2
call fcn.004010ac
cmp byte [ebp - 0x11], bl
je 0x72667b
push ebx
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004c8d24
push esi
push str.UninstallString
lea ecx, [ebp - 0xac]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004c9040
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004c8081
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], bl
call fcn.004019e8
push ebx
push esi
lea ecx, [ebp - 0xa8]
call fcn.00401b4e
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 8
call fcn.004c83be
push dword [ebp + 0x18]
lea eax, [ebp - 0x940]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x90
push dword [ebp + 8]
push str.__surl:_s__sflg:_d__sht:_d__swd:_d__smn:_d__sslp:_d
push eax
call fcn.004d02c8
add esp, 0x20
push ebx
push str.__bootremove
lea eax, [ebp - 0x3c]
push eax
call fcn.004017ab
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004017d0
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
call fcn.00401887
push ebx
push esi
lea ecx, [ebp - 0x78]
call fcn.004010ac
cmp dword [ebp - 0x28], 0x10
mov eax, dword [ebp - 0x3c]
jae 0x726645
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x140]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x940]
push ecx
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x726671
mov dword [ebp - 0x18], ebx
push ebx
push esi
lea ecx, [ebp - 0x3c]
call fcn.004010ac
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 1
call fcn.004c83be
push ebx
push esi
lea ecx, [ebp - 0x58]
call fcn.004010ac
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x726b0e
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.00721dd4
test al, al
jne 0x726b24
xor eax, eax
jmp 0x726be8
push esi
mov esi, 0xf003f
push esi
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x726b60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
push eax
push str.OpenSCManager_failed_with_error:__d._n
push bind
call fcn.0072062c
add esp, 0xc
push 0xa
pop eax
jmp 0x726be7
push ebx
push edi
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
test ebx, ebx
jne 0x726b9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push str.Unable_to_open_the_service__s._Error:__d._n
push bind
call fcn.0072062c
add esp, 0x10
push 0xb
pop esi
jmp 0x726bde
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x726bcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
push eax
push str.Unable_to_query_service_status._Error:__d._n
push bind
call fcn.0072062c
add esp, 0xc
push 0xc
pop esi
jmp 0x726bdb
cmp dword [ebp - 0x1c], 4
je 0x726bd9
cmp dword [ebp - 0x1c], 2
jne 0x726bc8
xor esi, esi
push ebx
call edi
push dword [ebp - 4]
call edi
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret 8

Function at 0x726c4f
Capabilities:
Delete file
Move file

Disassembly:
push ebx
push esi
mov esi, eax
push edi
lea edi, [esi + 0x2ac4]
cmp dword [edi + 0x14], 0x10
jb 0x726c64
mov eax, dword [edi]
jmp 0x726c66
mov eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
push 0
push eax
call ebx
test eax, eax
jne 0x726c9b
cmp dword [edi + 0x14], 0x10
jb 0x726c7f
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Unable_to_delete__s_at_the_next_reboot._Error:__d._r_n
push bind
call fcn.0072062c
add esp, 0x10
jmp 0x726cb6
cmp dword [edi + 0x14], 0x10
jb 0x726ca3
mov edi, dword [edi]
push edi
push str.Installer:_will_delete__s_at_the_next_reboot._r_n
push bind
call fcn.0072062c
add esp, 0xc
lea eax, [esi + 0x2afc]
cmp dword [eax + 0x14], 0x10
jb 0x726cc4
mov eax, dword [eax]
push 4
push 0
push eax
call ebx
pop edi
pop esi
pop ebx
ret

Function at 0x726ccf
Capabilities:
Delete directory

Disassembly:
mov eax, 0x72af42
call fcn.004dc888
sub esp, 0x28
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 1
push 0x7c411c
push dword [ebp + 0xc]
call fcn.0040ee3b
add esp, 0xc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x726d10
push eax
push dword [ebp + 0xc]
call fcn.004ccb86
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x726d87
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
mov eax, 0x72afa3
call fcn.004dc888
sub esp, 0x3ec
push esi
push edi
lea eax, [ebp - 0x3f4]
call fcn.00402c9f
mov eax, ebx
cdq
push edx
push eax
xor edi, edi
lea eax, [ebp - 0x3f4]
mov dword [ebp - 4], edi
call fcn.00723f33
mov esi, eax
or eax, edi
je 0x726dde
lea eax, [ebp - 0x3f4]
call fcn.00725455
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 8
push dword [ebp + 8]
mov edi, bind
push str.Installer:_Extracting_Upgrade_from_archive__s_r_n
push edi
mov esi, ebx
call fcn.0072062c
add esp, 0xc
cmp byte [ebx + 0x3188], 0
lea esi, [ebp - 0x3f4]
sete al
movzx eax, al
push eax
push dword [ebp + 8]
call fcn.00724964
mov ecx, eax
or ecx, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
je 0x726e46
push edx
push eax
push dword [ebp + 8]
push str.Installer:_Could_not_open_archive__s__iReturn_d__r_n
push edi
mov esi, ebx
call fcn.0072062c
add esp, 0x14
lea eax, [ebp - 0x3f4]
call fcn.00725455
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x726dce
lea eax, [ebp - 0x9c]
push eax
push 0x80
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [ebp + 0xc]
push esi
push 0
push 0x7c45e0
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x726e97
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x18], 0
push dword [ebp - 0x18]
mov esi, ebx
push eax
push str.Installer:_Could_not_get_tempDirectory___d__r_n
push edi
mov dword [ebp - 0x1c], eax
call fcn.0072062c
add esp, 0x10
jmp 0x726e33
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x726ec7
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x18], 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push eax
push esi
push str.Installer:_Could_not_create_temporary_directory__s___d__r_n
jmp 0x726e28
push esi
lea eax, [ebp - 0x3f4]
call fcn.00724671
mov ecx, eax
or ecx, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
je 0x726efc
push edx
push eax
push str.Installer:_Could_not_extract_from_archive__iReturn_d__r_n
push edi
mov esi, ebx
call fcn.0072062c
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
add esp, 0x10
jmp 0x726dbf
lea eax, [ebp - 0x3f4]
call fcn.00725455
xor esi, esi
xor edi, edi
jmp 0x726dbf
Function at 0x7287e7
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x10c
push ebx
push esi
lea eax, [edx + 0x96b]
push edi
mov dword [edx + 0x3940], edx
lea edi, [eax - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x728805
mov esi, str.__bid:
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ecx, [edx + 0x954]
movsb byte es:[edi], byte [esi]
mov esi, ecx
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x72881e
sub ecx, esi
mov ebx, ecx
lea edi, [eax - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x72882c
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [edx + 0x3190], 0
je 0x72885e
lea edi, [eax - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x72884e
mov esi, str.__o:0
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ecx, [edx + 0x35d8]
mov dword [ebp - 4], ecx
call fcn.00722b10
mov esi, 0x100
push esi
push dword [ebp + 0xc]
lea ebx, [ebp - 8]
lea edi, [ebp - 0x108]
call fcn.00720cf8
mov eax, dword [ebp - 8]
pop ecx
pop ecx
mov cl, byte [ebp + eax - 0x109]
cmp cl, 0x3a
je 0x7288a2
cmp cl, 0x5c
je 0x7288a2
mov byte [ebp + eax - 0x108], 0x5c
inc eax
sub esi, eax
push esi
push str.upgrade.xml
lea edi, [ebp + eax - 0x108]
xor ebx, ebx
call fcn.00720cf8
mov esi, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
lea eax, [esi + 0x3a88]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00723dc4
mov edi, eax
test edi, edi
je 0x7288fd
push edi
lea eax, [ebp - 0x108]
push eax
push str.Installer:_Could_not_open__s__iReturn_d__r_n
push bind
call fcn.0072062c
add esp, 0x10
push 4
push esi
call fcn.00727564
jmp 0x72894b
push dword [ebp + 0xc]
mov edi, dword [ebp - 4]
call fcn.00723570
mov edi, eax
test edi, edi
je 0x728938
mov eax, dword [esi + 0x3a80]
test eax, eax
jne 0x72891c
push 7
jmp 0x72891d
push eax
push esi
call fcn.00727564
push edi
push str.Installer:_Could_not_process_upgrade__iReturn_d__r_n
push bind
call fcn.0072062c
add esp, 0xc
jmp 0x72894b
push str.Installer:_ExecuteUpgrade_completed_successfully_r_n
push bind
call fcn.0072062c
pop ecx
pop ecx
xor edi, edi
push dword [ebp + 0xc]
call fcn.00720d3b
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8