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

Disassembly:
test esi, esi
jne 0x71a0f5
push 0x57
pop eax
jmp 0x71a14d
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 0x71a13d
push dword [esp + 4]
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x71a13d
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 4], eax
cmp dword [esi + 4], 0xffffffff
jne 0x71a14b
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
jmp 0x71a14d
xor eax, eax
ret 8

Function at 0x71a22a
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 0x71a237
mov eax, 0x2748
jmp 0x71a26a
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x71a252
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
jmp 0x71a26a
push 0x10
push dword [esp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
je 0x71a24a
mov byte [esi + 0x14], 1
xor eax, eax
ret 4

Function at 0x71a2be
Capabilities:
Initialize winsock library

Disassembly:
and dword [0x7cf134], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.WSOCK32.dll_WSAStartup]
mov esi, 0x7cf138
push esi
push 0x202
call edi
mov ebx, eax
cmp ebx, 0x276c
jne 0x71a2ef
push esi
push 0x101
call edi
mov ebx, eax
cmp byte [0x7cf138], 2
mov edi, dword [esp + 0x10]
push 0x64
pop ecx
rep movsd dword es:[edi], dword [esi]
jne 0x71a339
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.WSARecv
push eax
mov dword [0x7cf12c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x7cf12c], 0
mov dword [0x7cf130], eax
je 0x71a339
test eax, eax
je 0x71a339
mov dword [0x7cf134], 0x719ea3
cmp dword [0x7cf134], 0
jne 0x71a34c
mov dword [0x7cf134], 0x719ef6
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x71a719
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 0x71a74c
test esi, esi
je 0x71a750
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 0x71a772
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 0x71a777
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 0x71a7b5
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 0x71a82e
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 0x71a846
xor eax, eax
jmp 0x71a84c
call dword [sym.imp.KERNEL32.dll_GetLastError]
ret 8

Function at 0x71aa46
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.004cd547
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.007182d6
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 0x71aacd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
jmp 0x71aad0
mov dword [ebp + 0xc], esi
cmp dword [ebp + 0xc], esi
je 0x71aaf4
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.007182d6
mov eax, dword [ebp + 0xc]
add esp, 0x10
jmp 0x71ab41
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 0x71ab27
mov esi, dword [ebx + 0x234]
push str.FileInstall:_EXECall_Unable_to_get_the_exit_code._r_n
push edi
call fcn.007182d6
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.007182d6
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
leave
ret 8
Function at 0x71b2f8
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.00716cc6
pop ecx
pop ecx
test eax, eax
je 0x71b32b
push 0xd
pop eax
jmp 0x71b4d2
lea eax, [ebx + 4]
push pe_nt_image_headers32
push eax
push str.dest
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.00716e6d
add esp, 0x10
test eax, eax
jne 0x71b323
push esi
push str.rebootCopy
push dword [ebp + 0xc]
lea esi, [ebx + 0x204]
call fcn.00716f35
pop ecx
pop ecx
test eax, eax
je 0x71b368
mov byte [esi], 0
push str.forceCopy
push dword [ebp + 0xc]
lea esi, [ebx + 0x205]
call fcn.00716f35
pop ecx
pop ecx
test eax, eax
je 0x71b384
mov byte [esi], 0
push dword [ebp + 0xc]
lea esi, [ebx + 0x208]
call fcn.00716eec
pop ecx
test eax, eax
je 0x71b39a
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.00716d71
add esp, 0x10
test eax, eax
je 0x71b3d1
push esi
push 0x7bc1dc
xor ebx, ebx
lea edi, [ebp - 0x34]
call fcn.007189a2
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.00716cc6
pop ecx
pop ecx
test eax, eax
je 0x71b3f4
and dword [ebx + 0x21c], 0
push str.postCall
push dword [ebp + 0xc]
lea edi, [ebp - 0xc]
lea eax, [ebx + 0x220]
call fcn.00716cc6
pop ecx
pop ecx
test eax, eax
je 0x71b417
and dword [ebx + 0x220], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x71b424
mov ecx, dword [ebx]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x71b435
mov ecx, dword [ebx + 0x21c]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x71b446
mov ecx, dword [ebx + 0x220]
mov byte [eax + ecx], 0
lea eax, [ebp - 0x34]
push eax
lea esi, [ebx + 0x20c]
call fcn.00718061
mov esi, dword [ebp - 4]
push str._SYSTEMROOT_
push esi
call fcn.004cf79c
pop ecx
pop ecx
test eax, eax
jne 0x71b477
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x71b4cf
push str._OSSBRANDROOT_
push esi
call fcn.004cf79c
pop ecx
pop ecx
test eax, eax
je 0x71b4b8
push str._WINDIR_
push esi
call fcn.004cf79c
pop ecx
pop ecx
test eax, eax
jne 0x71b4a7
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x71b4cf
push str._OSSINSTALLROOT_
push esi
call fcn.004cf79c
pop ecx
pop ecx
test eax, eax
jne 0x71b4cf
add ebx, 0x104
push pe_nt_image_headers32
push ebx
xor ebx, ebx
mov edi, esi
call fcn.007189a2
pop ecx
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x71b871
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x722e77
call fcn.004d8f88
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.00716b4a
push 0x7bc54c
push dword [ebp - 0x10]
call fcn.004cf79c
add esp, 0x18
test eax, eax
je 0x71b8b4
push 0xd
pop eax
jmp 0x71ba5e
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.00716b4a
push str.INSTALL
push dword [ebp - 0x10]
call fcn.004cf79c
add esp, 0x18
test eax, eax
jne 0x71b8ac
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x13f]
push ebx
push eax
mov byte [ebp - 0x140], bl
call fcn.004d1020
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.00716d71
add esp, 0x10
cmp eax, ebx
jne 0x71b9f0
lea eax, [ebp - 0x34]
push eax
call fcn.004ca74b
pop ecx
push 1
push 0x7bb918
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 0x71b94f
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 0x71b97c
lea eax, [ebp - 0x34]
push 0x200
push eax
xor ebx, ebx
call fcn.007189a2
pop ecx
pop ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x71b9b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x71b9b9
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.004010ac
mov eax, 0x80004005
jmp 0x71ba5e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x71b9cf
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 0x71ba3b
push 0x7bc1a8
push dword [ebp - 0x10]
call fcn.004cf79c
pop ecx
pop ecx
test eax, eax
jne 0x71ba17
push dword [ebp - 0x18]
mov eax, esi
call fcn.0071b68d
jmp 0x71ba37
push str.FILE
push dword [ebp - 0x10]
call fcn.004cf79c
pop ecx
pop ecx
test eax, eax
jne 0x71ba3b
push dword [ebp - 0x18]
mov ecx, esi
push dword [ebp - 0x14]
call fcn.0071b7bf
test eax, eax
jne 0x71ba57
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.00716b4a
add esp, 0x10
test eax, eax
je 0x71b9f8
cmp eax, 0x26
jne 0x71ba5e
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x71bbca
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 0x71bbd0
xor eax, eax
pop esi
ret
Function at 0x71bcc8
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, 0x7cc5d0
lea eax, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
call fcn.0071bbca
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 0x71bcfa
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 0x71c76f
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 0x71d0c1
Capabilities:
Read file on windows

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

Disassembly:
mov eax, 0x723062
call fcn.004d8f88
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 0x71e33e
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 0x71e33e
push 0x2000
push dword [ebp - 0x1c]
call fcn.004c67a8
pop ecx
pop ecx
test eax, eax
je 0x71e33e
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.004c533e
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.004c495b
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.004c4991
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 0x71e325
push ebx
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004c533e
push esi
push str.UninstallString
lea ecx, [ebp - 0xac]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004c565a
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004c469b
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.004c49d8
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.004cc8e8
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 0x71e2ef
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 0x71e31b
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.004c49d8
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 0x71e7b8
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.00719a7e
test al, al
jne 0x71e7ce
xor eax, eax
jmp 0x71e892
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 0x71e80a
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.007182d6
add esp, 0xc
push 0xa
pop eax
jmp 0x71e891
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 0x71e847
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.007182d6
add esp, 0x10
push 0xb
pop esi
jmp 0x71e888
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x71e877
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.007182d6
add esp, 0xc
push 0xc
pop esi
jmp 0x71e885
cmp dword [ebp - 0x1c], 4
je 0x71e883
cmp dword [ebp - 0x1c], 2
jne 0x71e872
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 0x71e8f9
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 0x71e90e
mov eax, dword [edi]
jmp 0x71e910
mov eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
push 0
push eax
call ebx
test eax, eax
jne 0x71e945
cmp dword [edi + 0x14], 0x10
jb 0x71e929
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.007182d6
add esp, 0x10
jmp 0x71e960
cmp dword [edi + 0x14], 0x10
jb 0x71e94d
mov edi, dword [edi]
push edi
push str.Installer:_will_delete__s_at_the_next_reboot._r_n
push bind
call fcn.007182d6
add esp, 0xc
lea eax, [esi + 0x2afc]
cmp dword [eax + 0x14], 0x10
jb 0x71e96e
mov eax, dword [eax]
push 4
push 0
push eax
call ebx
pop edi
pop esi
pop ebx
ret

Function at 0x71e979
Capabilities:
Delete directory

Disassembly:
mov eax, 0x722ba2
call fcn.004d8f88
sub esp, 0x28
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 1
push 0x7baf5c
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 0x71e9ba
push eax
push dword [ebp + 0xc]
call fcn.004c91a0
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 0x71ea31
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
mov eax, 0x722c03
call fcn.004d8f88
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.0071bbdd
mov esi, eax
or eax, edi
je 0x71ea88
lea eax, [ebp - 0x3f4]
call fcn.0071d0ff
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.007182d6
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.0071c60e
mov ecx, eax
or ecx, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
je 0x71eaf0
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.007182d6
add esp, 0x14
lea eax, [ebp - 0x3f4]
call fcn.0071d0ff
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x71ea78
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 0x7bb420
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x71eb41
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.007182d6
add esp, 0x10
jmp 0x71eadd
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x71eb71
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 0x71ead2
push esi
lea eax, [ebp - 0x3f4]
call fcn.0071c31b
mov ecx, eax
or ecx, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
je 0x71eba6
push edx
push eax
push str.Installer:_Could_not_extract_from_archive__iReturn_d__r_n
push edi
mov esi, ebx
call fcn.007182d6
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
add esp, 0x10
jmp 0x71ea69
lea eax, [ebp - 0x3f4]
call fcn.0071d0ff
xor esi, esi
xor edi, edi
jmp 0x71ea69
Function at 0x72045f
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 0x72047d
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 0x720496
sub ecx, esi
mov ebx, ecx
lea edi, [eax - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x7204a4
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 0x7204d6
lea edi, [eax - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x7204c6
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.0071a7ba
mov esi, pe_nt_image_headers32
push esi
push dword [ebp + 0xc]
lea ebx, [ebp - 8]
lea edi, [ebp - 0x108]
call fcn.007189a2
mov eax, dword [ebp - 8]
pop ecx
pop ecx
mov cl, byte [ebp + eax - 0x109]
cmp cl, 0x3a
je 0x72051a
cmp cl, 0x5c
je 0x72051a
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.007189a2
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.0071ba6e
mov edi, eax
test edi, edi
je 0x720575
push edi
lea eax, [ebp - 0x108]
push eax
push str.Installer:_Could_not_open__s__iReturn_d__r_n
push bind
call fcn.007182d6
add esp, 0x10
push 4
push esi
call fcn.0071f20e
jmp 0x7205c3
push dword [ebp + 0xc]
mov edi, dword [ebp - 4]
call fcn.0071b21a
mov edi, eax
test edi, edi
je 0x7205b0
mov eax, dword [esi + 0x3a80]
test eax, eax
jne 0x720594
push 7
jmp 0x720595
push eax
push esi
call fcn.0071f20e
push edi
push str.Installer:_Could_not_process_upgrade__iReturn_d__r_n
push bind
call fcn.007182d6
add esp, 0xc
jmp 0x7205c3
push str.Installer:_ExecuteUpgrade_completed_successfully_r_n
push bind
call fcn.007182d6
pop ecx
pop ecx
xor edi, edi
push dword [ebp + 0xc]
call fcn.007189e5
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