joyce8/EMBER2024-capa huggingface dataset:
Function at 0x66744c
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
push edi
mov esi, pe_nt_image_headers32
push esi
push dword [ebp + 8]
lea ebx, [ebp - 8]
lea edi, [ebp - 0x114]
call fcn.00667409
mov eax, dword [ebp - 8]
pop ecx
pop ecx
mov cl, byte [ebp + eax - 0x115]
cmp cl, 0x3a
je 0x667491
cmp cl, 0x5c
je 0x667491
mov byte [ebp + eax - 0x114], 0x5c
inc eax
mov dword [ebp - 8], eax
mov ecx, esi
sub ecx, eax
push ecx
push 0x6e4d5c
lea edi, [ebp + eax - 0x114]
lea ebx, [ebp - 8]
call fcn.00667409
pop ecx
pop ecx
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x6674d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x667587
lea eax, [ebp - 0x114]
dec eax
mov dword [ebp - 0x10], eax
push esi
push dword [ebp + 8]
lea ebx, [ebp - 8]
lea edi, [ebp - 0x114]
call fcn.00667409
mov eax, dword [ebp - 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx + eax]
cmp cl, 0x3a
je 0x667510
cmp cl, 0x5c
je 0x667510
mov byte [ebp + eax - 0x114], 0x5c
inc eax
mov dword [ebp - 8], eax
mov ecx, esi
sub ecx, eax
push ecx
lea ecx, [ebp - 0x228]
push ecx
lea edi, [ebp + eax - 0x114]
lea ebx, [ebp - 8]
call fcn.00667409
cmp byte [ebp - 0x228], 0x2e
pop ecx
pop ecx
jne 0x667551
cmp byte [ebp - 0x227], 0
je 0x667562
cmp byte [ebp - 0x227], 0x2e
jne 0x667551
cmp byte [ebp - 0x226], 0
je 0x667562
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x66758c
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x6674dd
xor esi, esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x66757c
Function at 0x668b52
Capabilities:
Resolve dns
Set socket configuration

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

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

Function at 0x668d24
Capabilities:
Initialize winsock library

Disassembly:
and dword [0x6f9494], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.WSOCK32.dll_WSAStartup]
mov esi, 0x6f9498
push esi
push 0x202
call edi
mov ebx, eax
cmp ebx, 0x276c
jne 0x668d55
push esi
push 0x101
call edi
mov ebx, eax
cmp byte [0x6f9498], 2
mov edi, dword [esp + 0x10]
push 0x64
pop ecx
rep movsd dword es:[edi], dword [esi]
jne 0x668d9f
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.WSARecv
push eax
mov dword [0x6f948c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x6f948c], 0
mov dword [0x6f9490], eax
je 0x668d9f
test eax, eax
je 0x668d9f
mov dword [0x6f9494], 0x668909
cmp dword [0x6f9494], 0
jne 0x668db2
mov dword [0x6f9494], 0x66895c
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x66917f
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 0x6691b2
test esi, esi
je 0x6691b6
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 0x6691d8
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 0x6691dd
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 0x66921b
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 0x669294
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 0x6692ac
xor eax, eax
jmp 0x6692b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
ret 8

Function at 0x6694ac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
push esi
push edi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x854]
push dword [ebp + 8]
push str._s__s
push 0x7ff
push eax
call fcn.004bb677
mov esi, dword [ebx + 0x234]
lea eax, [ebp - 0x854]
push eax
push dword [ebp + 8]
mov edi, 0xbfffffff
push str.FileInstall:_Executing___s__with_command_line:__s_r_n
push edi
call fcn.00666d3d
add esp, 0x24
lea eax, [ebp - 0x10]
push eax
xor esi, esi
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x4000020
push esi
push esi
push esi
lea eax, [ebp - 0x854]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x669533
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
jmp 0x669536
mov dword [ebp + 0xc], esi
cmp dword [ebp + 0xc], esi
je 0x669557
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.00666d3d
add esp, 0x10
jmp 0x669562
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
leave
ret 8
Function at 0x669ccd
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.0066587c
pop ecx
pop ecx
test eax, eax
je 0x669d00
push 0xd
pop eax
jmp 0x669ea7
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.00665a23
add esp, 0x10
test eax, eax
jne 0x669cf8
push esi
push str.rebootCopy
push dword [ebp + 0xc]
lea esi, [ebx + 0x204]
call fcn.00665aeb
pop ecx
pop ecx
test eax, eax
je 0x669d3d
mov byte [esi], 0
push str.forceCopy
push dword [ebp + 0xc]
lea esi, [ebx + 0x205]
call fcn.00665aeb
pop ecx
pop ecx
test eax, eax
je 0x669d59
mov byte [esi], 0
push dword [ebp + 0xc]
lea esi, [ebx + 0x208]
call fcn.00665aa2
pop ecx
test eax, eax
je 0x669d6f
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.00665927
add esp, 0x10
test eax, eax
je 0x669da6
push esi
push 0x6e5d6c
xor ebx, ebx
lea edi, [ebp - 0x34]
call fcn.00667409
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.0066587c
pop ecx
pop ecx
test eax, eax
je 0x669dc9
and dword [ebx + 0x21c], 0
push str.postCall
push dword [ebp + 0xc]
lea edi, [ebp - 0xc]
lea eax, [ebx + 0x220]
call fcn.0066587c
pop ecx
pop ecx
test eax, eax
je 0x669dec
and dword [ebx + 0x220], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x669df9
mov ecx, dword [ebx]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x669e0a
mov ecx, dword [ebx + 0x21c]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x669e1b
mov ecx, dword [ebx + 0x220]
mov byte [eax + ecx], 0
lea eax, [ebp - 0x34]
push eax
lea esi, [ebx + 0x20c]
call fcn.00666ac9
mov esi, dword [ebp - 4]
push str._SYSTEMROOT_
push esi
call fcn.004bd44f
pop ecx
pop ecx
test eax, eax
jne 0x669e4c
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x669ea4
push str._OSSBRANDROOT_
push esi
call fcn.004bd44f
pop ecx
pop ecx
test eax, eax
je 0x669e8d
push str._WINDIR_
push esi
call fcn.004bd44f
pop ecx
pop ecx
test eax, eax
jne 0x669e7c
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x669ea4
push str._OSSINSTALLROOT_
push esi
call fcn.004bd44f
pop ecx
pop ecx
test eax, eax
jne 0x669ea4
add ebx, 0x104
push pe_nt_image_headers32
push ebx
xor ebx, ebx
mov edi, esi
call fcn.00667409
pop ecx
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x66a230
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x670b4e
call fcn.004c5428
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.00665700
push 0x6e607c
push dword [ebp - 0x10]
call fcn.004bd44f
add esp, 0x18
test eax, eax
je 0x66a273
push 0xd
pop eax
jmp 0x66a40b
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.00665700
push str.INSTALL
push dword [ebp - 0x10]
call fcn.004bd44f
add esp, 0x18
test eax, eax
jne 0x66a26b
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x13f]
push ebx
push eax
mov byte [ebp - 0x140], bl
call fcn.004bee40
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.00665927
add esp, 0x10
cmp eax, ebx
jne 0x66a39d
lea eax, [ebp - 0x34]
push eax
call fcn.004b8881
pop ecx
push 1
push 0x6e56e8
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.00402f56
lea eax, [ebp - 0x140]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x66a30e
sub eax, ecx
push eax
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x34]
call fcn.00402f56
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
lea edi, [esi + 0x168]
mov byte [edi], bl
jae 0x66a33b
lea eax, [ebp - 0x34]
push 0x200
push eax
xor ebx, ebx
call fcn.00667409
pop ecx
pop ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x66a378
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x66a378
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.004010ac
mov eax, 0x80004005
jmp 0x66a40b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x66a38e
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
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 0x66a3e8
push 0x6e5d38
push dword [ebp - 0x10]
call fcn.004bd44f
pop ecx
pop ecx
test eax, eax
jne 0x66a3c4
push dword [ebp - 0x18]
mov eax, esi
call fcn.0066a062
jmp 0x66a3e4
push str.FILE
push dword [ebp - 0x10]
call fcn.004bd44f
pop ecx
pop ecx
test eax, eax
jne 0x66a3e8
push dword [ebp - 0x18]
mov ecx, esi
push dword [ebp - 0x14]
call fcn.0066a194
test eax, eax
jne 0x66a404
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.00665700
add esp, 0x10
test eax, eax
je 0x66a3a5
cmp eax, 0x26
jne 0x66a40b
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x66a4d7
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 0x66a4dd
xor eax, eax
pop esi
ret
Function at 0x66a5d5
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, 0x6f5fd0
lea eax, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
call fcn.0066a4d7
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 0x66a607
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 0x66b07c
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 0x66b9ce
Capabilities:
Read file on windows

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

Disassembly:
mov eax, 0x670e4e
call fcn.004c5428
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 0x66cc4a
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 0x66cc4a
push 0x2000
push dword [ebp - 0x1c]
call fcn.004b4559
pop ecx
pop ecx
test eax, eax
je 0x66cc4a
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.0040c142
pop ecx
push ebx
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004b30ef
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.004b270c
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.004b2742
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 0x66cc31
push ebx
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004b30ef
push esi
push str.UninstallString
lea ecx, [ebp - 0xac]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004b340b
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004b244c
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], bl
call fcn.0040189f
push ebx
push esi
lea ecx, [ebp - 0xa8]
call fcn.004019ab
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 8
call fcn.004b2789
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.004baa18
add esp, 0x20
push str.__bootremove
lea eax, [ebp - 0x3c]
push eax
call fcn.00401684
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004016a7
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
call fcn.0040173e
push ebx
push esi
lea ecx, [ebp - 0x78]
call fcn.004010ac
cmp dword [ebp - 0x28], 0x10
mov eax, dword [ebp - 0x3c]
jae 0x66cbfb
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 0x66cc27
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.004b2789
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 0x66d0d3
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 0x66d0e8
mov eax, dword [edi]
jmp 0x66d0ea
mov eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
push 0
push eax
call ebx
test eax, eax
jne 0x66d11f
cmp dword [edi + 0x14], 0x10
jb 0x66d103
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.00666d3d
add esp, 0x10
jmp 0x66d13a
cmp dword [edi + 0x14], 0x10
jb 0x66d127
mov edi, dword [edi]
push edi
push str.Installer:_will_delete__s_at_the_next_reboot._r_n
push bind
call fcn.00666d3d
add esp, 0xc
lea eax, [esi + 0x2afc]
cmp dword [eax + 0x14], 0x10
jb 0x66d148
mov eax, dword [eax]
push 4
push 0
push eax
call ebx
pop edi
pop esi
pop ebx
ret

Function at 0x66d153
Capabilities:
Delete directory

Disassembly:
mov eax, 0x670a8e
call fcn.004c5428
sub esp, 0x28
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 1
push 0x6e4d5c
push dword [ebp + 0xc]
call fcn.0040dc8c
add esp, 0xc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x66d194
push eax
push dword [ebp + 0xc]
call fcn.004b7311
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 0x66d20b
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
mov eax, 0x670aef
call fcn.004c5428
sub esp, 0x3ec
push esi
push edi
lea eax, [ebp - 0x3f4]
call fcn.00402a68
mov eax, ebx
cdq
push edx
push eax
xor edi, edi
lea eax, [ebp - 0x3f4]
mov dword [ebp - 4], edi
call fcn.0066a4ea
mov esi, eax
or eax, edi
je 0x66d262
lea eax, [ebp - 0x3f4]
call fcn.0066ba0c
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.00666d3d
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.0066af1b
mov ecx, eax
or ecx, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
je 0x66d2ca
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.00666d3d
add esp, 0x14
lea eax, [ebp - 0x3f4]
call fcn.0066ba0c
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x66d252
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 0x6e51f0
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x66d31b
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.00666d3d
add esp, 0x10
jmp 0x66d2b7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x66d34b
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 0x66d2ac
push esi
lea eax, [ebp - 0x3f4]
call fcn.0066ac28
mov ecx, eax
or ecx, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
je 0x66d380
push edx
push eax
push str.Installer:_Could_not_extract_from_archive__iReturn_d__r_n
push edi
mov esi, ebx
call fcn.00666d3d
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
add esp, 0x10
jmp 0x66d243
lea eax, [ebp - 0x3f4]
call fcn.0066ba0c
xor esi, esi
xor edi, edi
jmp 0x66d243
Function at 0x66d49b
Capabilities:
Delete directory

Disassembly:
mov eax, 0x670b85
call fcn.004c5428
sub esp, 0x578
push ebx
push esi
push edi
lea eax, [ebp - 0x584]
call fcn.00402b33
mov edx, dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [edx + 0x96b]
mov dword [ebp - 0x21c], edx
lea edi, [eax - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x66d4cf
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 0x66d4e8
sub ecx, esi
mov ebx, ecx
lea edi, [eax - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x66d4f6
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 0x66d528
lea edi, [eax - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x66d518
mov esi, str.__o:0
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ecx, [ebp - 0x584]
call fcn.00669220
mov esi, pe_nt_image_headers32
push esi
push dword [ebp + 0xc]
lea ebx, [ebp - 0x14]
lea edi, [ebp - 0x114]
call fcn.00667409
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov cl, byte [ebp + eax - 0x115]
cmp cl, 0x3a
je 0x66d569
cmp cl, 0x5c
je 0x66d569
mov byte [ebp + eax - 0x114], 0x5c
inc eax
sub esi, eax
push esi
push str.upgrade.xml
lea edi, [ebp + eax - 0x114]
xor ebx, ebx
call fcn.00667409
pop ecx
pop ecx
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x584]
call fcn.0066a41b
mov ebx, eax
test ebx, ebx
je 0x66d5b8
mov esi, dword [ebp + 8]
push ebx
lea eax, [ebp - 0x114]
push eax
push str.Installer:_Could_not_open__s__iReturn_d__r_n
push bind
call fcn.00666d3d
add esp, 0x10
jmp 0x66d5f7
push dword [ebp + 0xc]
lea edi, [ebp - 0x584]
call fcn.00669c15
mov esi, dword [ebp + 8]
mov ebx, eax
test ebx, ebx
je 0x66d5e4
push ebx
push str.Installer:_Could_not_process_upgrade__iReturn_d__r_n
push bind
call fcn.00666d3d
add esp, 0xc
jmp 0x66d5f7
push str.Installer:_ExecuteUpgrade_completed_successfully_r_n
push bind
call fcn.00666d3d
pop ecx
pop ecx
xor ebx, ebx
push dword [ebp + 0xc]
call fcn.0066744c
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edi, [ebp - 0x584]
call fcn.00402b74
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
leave
ret 8