joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e9940
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596fe5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x61094c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4e9a8a
mov ebx, dword [ebp + 0x14]
cmp ebx, 1
jb 0x4e9a8a
xor esi, esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], esi
cmp ecx, 1
jne 0x4e99df
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
mov ecx, edx
call fcn.004e92a0
mov ebx, eax
test ebx, ebx
jne 0x4e99fb
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov dword [ebp + 0x10], esi
lea eax, [ebx + 0x20]
push eax
mov dword [ebp - 0x1c], eax
call fcn.00554193
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x4e9a1d
lea ebx, [eax + 8]
jmp 0x4e9a62
cmp ecx, 7
jne 0x4e99bb
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
mov ecx, edx
call fcn.004e90e0
mov ebx, eax
test ebx, ebx
je 0x4e99b2
mov esi, dword [ebp - 0x10]
push esi
call fcn.00469710
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x18]
lea eax, [ebx + 0x20]
push eax
push edi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 0x10]
call fcn.004e94b0
mov ebx, eax
test ebx, ebx
jne 0x4e9a62
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.004d0d20
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edi
push 3
push ebx
push dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x14]
mov ebx, eax
call fcn.004d0cf0
push edi
call fcn.00469710
add esp, 4
push esi
call fcn.00469710
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4ed1e0
Capabilities:
Delete registry key

Disassembly:
mov dword [ecx], vtable.CoreTech::internal::CRegKeyImpl.0
jmp fcn.004ed210

Function at 0x4ed210
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4ed24a
cmp byte [esi + 0xc], 0
je 0x4ed233
push 0x5bb3b8
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [esi + 4]
mov byte [esi + 0xc], 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
ret
xor eax, eax
mov dword [esi + 8], eax
pop esi
ret
Function at 0x4ee000
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
push ebx
mov dword [ebp - 0x210], eax
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
cmp dword [ebp + 0x14], 0
je 0x4ee110
test eax, eax
jne 0x4ee110
push edi
xor edi, edi
push esi
nop word [eax + eax]
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00556180
add esp, 0xc
mov dword [ebp - 0x20c], 0x100
lea eax, [ebp - 0x20c]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jne 0x4ee0e6
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x208]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ee0ee
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x214]
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x208]
call fcn.004ee000
push dword [ebp - 0x208]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ee0ee
cmp esi, 0x103
je 0x4ee10c
inc edi
test esi, esi
je 0x4ee050
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553cca
mov esp, ebp
pop ebp
ret 0x10
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00553cca
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ee460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
test edx, edx
je 0x4ee586
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4ee586
mov ecx, dword [ebp + 0x10]
cmp ecx, 1
jb 0x4ee586
cmp dword [esi + 0xc], 0
je 0x4ee586
cmp dword [esi + 0x10], 0
je 0x4ee586
test ecx, ecx
jle 0x4ee57a
sub edx, eax
push ebx
mov dword [ebp + 8], edx
push edi
mov ebx, dword [esi + 0x10]
mov edx, ebx
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edx
test ecx, ecx
jle 0x4ee50d
mov ecx, dword [esi]
call fcn.004ee700
mov byte [edi], al
lea edi, [edi + 1]
mov ecx, dword [esi]
call fcn.004ee700
mov byte [ebx], al
lea ebx, [ebx + 1]
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 4]
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
cmp eax, ecx
jl 0x4ee4d3
mov ebx, dword [esi + 0x10]
mov edx, ebx
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
dec ecx
mov eax, dword [ebp + 0xc]
mov al, byte [ebx + eax]
mov ebx, dword [esi + 8]
add edx, ebx
test ecx, ecx
jle 0x4ee555
mov ecx, dword [ebp - 0x10]
sub ecx, ebx
sub ecx, dword [ebp - 8]
dec ecx
add ecx, edx
sub ebx, edx
lea esi, [ebx + edi]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
nop dword [eax]
sub al, byte [edx]
lea edx, [edx - 1]
xor al, byte [ebx + edx + 1]
dec ecx
test ecx, ecx
jg 0x4ee540
mov ecx, dword [ebp - 4]
mov edx, edi
jmp 0x4ee55b
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
sub al, byte [ecx]
xor al, byte [edx]
mov ecx, dword [ebp + 0xc]
xor al, byte [esi + 0x15]
mov byte [ecx], al
inc ecx
xor byte [esi + 0x15], al
sub dword [ebp + 0x10], 1
mov dword [ebp + 0xc], ecx
jne 0x4ee4b1
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4ee980
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x4ef1e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59779d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x61094c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.004224a0
mov edi, eax
test edi, edi
je 0x4ef2b9
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5a0478]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 1
sub ecx, 0
je 0x4ef282
sub ecx, 1
je 0x4ef259
sub ecx, 1
je 0x4ef252
mov eax, str._s__d_:__UNKNOWN_:___s_:__s_n
jmp 0x4ef25e
mov eax, str._s__d_:__ERROR_:___s_:__s_n
jmp 0x4ef25e
mov eax, 0x5a1694
mov esi, dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004df8d0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4ef2a6
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5a0478]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.0042d790
int3
Function at 0x4f0220
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 8], esi
cmp byte [esi + 0x10], 0
jne 0x4f02d7
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 0xc], 0
cmp dword [edi + 0x14], 8
jb 0x4f024c
mov eax, dword [edi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4f02d7
mov eax, dword [esi + 8]
add esi, 4
mov ecx, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
mov edx, dword [esi]
sub ecx, edx
cmp ebx, ecx
jae 0x4f027a
lea eax, [edx + ebx]
mov dword [esi + 4], eax
jmp 0x4f02af
jbe 0x4f02af
mov eax, dword [esi + 8]
sub eax, edx
cmp ebx, eax
jbe 0x4f0293
lea eax, [ebp - 1]
mov ecx, esi
push eax
push ebx
call fcn.004690e0
jmp 0x4f02af
mov esi, ebx
sub esi, ecx
mov ecx, dword [ebp - 0x10]
add esi, ecx
push esi
push ecx
call fcn.004692e0
mov eax, dword [ebp - 8]
add esp, 8
mov dword [eax + 8], esi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0x14], 8
jb 0x4f02b7
mov edi, dword [edi]
push dword [esi]
push ebx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
mov ecx, dword [ebp - 8]
cmp eax, 1
pop edi
sete al
pop esi
mov byte [ecx + 0x10], al
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x500b60
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp eax, dword [0x60c5b8]
ja 0x500d92
cmp byte [0x60c1a0], 0
jne 0x500cfb
push 1
push 0x23
push 0x60c3b0
push 0
mov byte [0x60c1a0], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x500cfb
push str.McAfee_
push 0x104
push 0x60c3b0
call fcn.00473450
push 1
push 0x60c3b0
call fcn.005079e0
add esp, 8
push 0
push 0x60c3b0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x500c09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x500cce
push 0x60c1a8
push 0x104
push 0x60c3b0
call fcn.00473450
push 1
push 0x60c3b0
call fcn.005079e0
add esp, 8
push 0
push 0x60c3b0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x500c4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x500cce
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00556180
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x60c1a4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x500ce7
push 0x5c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
push eax
push 0x104
push 0x60c3b0
call fcn.00473450
push 1
push 0x60c3b0
call fcn.005079e0
add esp, 8
push 0
push 0x60c3b0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x500ce7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x500ce7
pop edi
xor eax, eax
pop esi
mov word [0x60c3b0], ax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553cca
mov esp, ebp
pop ebp
ret
push str.log.txt
push 0x104
push 0x60c3b0
call fcn.00473450
cmp word [0x60c3b0], 0
je 0x500d92
push 0x5a3950
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push 0x60c3b0
push eax
call fcn.0056627d
mov eax, dword [ebp - 0x210]
add esp, 0xc
test eax, eax
je 0x500d92
test edi, edi
je 0x500d63
test ebx, ebx
je 0x500d63
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp + 0x14]
push ebx
push edi
push eax
push str._r_n_u_tFile:_s_tFunction:_s_tLine:_d_t
push dword [ebp - 0x210]
call fcn.00500db0
mov eax, dword [ebp - 0x210]
add esp, 0x18
test esi, esi
je 0x500d89
push dword [ebp - 0x214]
push 0
push esi
push eax
call fcn.00421140
push dword [eax + 4]
push dword [eax]
call fcn.0055e585
mov eax, dword [ebp - 0x210]
add esp, 0x18
push eax
call fcn.0056640b
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553cca
mov esp, ebp
pop ebp
ret
Function at 0x501590
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push str.kernel32.dll
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x20c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x50171c
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x50171c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x50171c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x50171c
cmp word [ecx + 4], 0
jne 0x50171c
cmp dword [ecx + 0x28], 0xfeef04bd
jne 0x50171c
movzx eax, word [ecx + 0x32]
movzx ebx, word [ecx + 0x30]
movzx esi, word [ecx + 0x34]
push edi
movzx edi, word [ecx + 0x36]
push 0x200
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00556180
push esi
push edi
push ebx
push dword [ebp - 0x20c]
lea eax, [ebp - 0x204]
push str._d._d._d._d
push 0x100
push eax
call fcn.00435080
add esp, 0x28
test eax, eax
jns 0x5016db
push str.Failed_to_format_version
push 0xb0
push str.XMLUpdater::v2::CSubstitutionManager::GetOsVersion
push str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterSubstitutionManager.cpp
push 1
call fcn.00500de0
mov esi, dword [ebp - 0x208]
add esp, 0x14
mov edx, dword [str._UNKNOWN]
xor eax, eax
mov ecx, edx
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea edi, [ecx + 2]
mov word [esi], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5016b0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00425790
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553cca
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x208]
lea ecx, [ebp - 0x204]
xor eax, eax
lea edx, [ecx + 2]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x501703
sub ecx, edx
lea eax, [ebp - 0x204]
sar ecx, 1
push ecx
push eax
jmp 0x5016c1
push str.Failed_to_retrieve_kernel_verison
push 0xa9
push str.XMLUpdater::v2::CSubstitutionManager::GetOsVersion
push str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterSubstitutionManager.cpp
push 1
call fcn.00500de0
mov edx, dword [str._UNKNOWN]
add esp, 0x14
mov ecx, edx
mov dword [ebx], 0
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x501760
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00425790
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00553cca
mov esp, ebp
pop ebp
ret
Function at 0x507060
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov ecx, esi
push edi
mov edi, dword [ebp + 0x1c]
push 0x5bb3b8
mov dword [ebp - 8], eax
call fcn.00424550
push 0x5bb3b8
mov ecx, edi
call fcn.00424550
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x50710b
test al, 0x10
je 0x50710b
lea eax, [ebp + 0x20]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x30], eax
xor esi, esi
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x24], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edi
test esi, esi
lea ecx, [ebp - 0x30]
setne al
movzx eax, al
push eax
call fcn.00506410
test al, al
jne 0x50712b
inc esi
cmp esi, 2
jl 0x5070e0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553cca
mov esp, ebp
pop ebp
ret
push str.Destination_directory_does_not_exist
push 0xc3
push str.XMLUpdater::v2::NHttp::NDownloadFile::StoreOnDisk
push str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterHttpsDownloadFile.cpp
push 1
call fcn.00500de0
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00553cca
mov esp, ebp
pop ebp
ret
Function at 0x507910
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x5079c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x5079c2
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00556180
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0056030b
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.005568a5
add esp, 0x20
test eax, eax
je 0x507984
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.00507910
add esp, 4
test al, al
jne 0x5079a8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553cca
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x5079c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x507997
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00553cca
mov esp, ebp
pop ebp
ret
Function at 0x5079e0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59943b
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x61094c]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x288]
push eax
push esi
mov dword [ebp - 0x290], esi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x28c], eax
cmp eax, 0xffffffff
jne 0x507a54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x507b50
cmp eax, 2
je 0x507b50
xor eax, eax
jmp 0x507b52
lea eax, [ebp - 0x28c]
mov dword [ebp - fcn.005082d0], vtable.std::_Func_impl_no_alloc_class__lambda_252d799ae44bac8497403b9d9837b673___void___.0
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 0x2bc]
mov dword [ebp - 0x298], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x2bc]
mov byte [ebp - 4], 1
call fcn.005082d0
mov ecx, dword [ebp - 0x298]
mov edi, eax
mov dword [ebp - 0x14], edi
test ecx, ecx
je 0x507ad6
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0x2bc]
cmp ecx, eax
mov ecx, esi
setne al
push eax
call dword [0x5a0478]
mov ecx, dword [ebp - 0x298]
call esi
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x290]
test dword [ebp - 0x288], 0x400
je 0x507b10
mov eax, dword [ebp - 0x264]
cmp eax, 0xa0000003
je 0x507af6
cmp eax, 0xa000000c
jne 0x507b10
cmp byte [ebp + 0xc], 0
push esi
je 0x507b05
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x507b0b
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x14]
mov ebx, eax
mov dword [ebp - 4], 2
test edi, edi
je 0x507b50
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5a0478]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x507b50
mov esi, dword [edi]
lea eax, [ebp - 0x38]
cmp edi, eax
setne al
mov esi, dword [esi + 0x10]
mov ecx, esi
movzx eax, al
push eax
call dword [0x5a0478]
mov ecx, edi
call esi
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.00553cca
mov esp, ebp
pop ebp
ret
Function at 0x510440
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x51044e
mov eax, dword [eax]
push esi
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [str.FALSE]
test eax, eax
mov esi, dword [ebp + 8]
cmovne edx, dword [str.TRUE]
xor eax, eax
mov ecx, edx
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea edi, [ecx + 2]
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x510487
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00425790
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x51b380
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b2d0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x61094c]
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 esi, dword [edi + 4]
mov dword [ebp - 4], 0
test esi, esi
je 0x51b413
cmp dword [esi], 0
je 0x51b408
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x51b42e
push str.CreateFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51b40e
push 0
push 0
push dword [esi]
mov ecx, eax
push 0
push 0x80
push 3
push 0
push 1
push 1
push ebx
call dword [0x5a0478]
call dword [ebp - 0x14]
jmp 0x51b429
cmp dword [esi + 4], 0
jne 0x51b413
or eax, 0xffffffff
jmp 0x51b429
push 0
push 0x80
push 3
push 0
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x51b435
call fcn.0051aaf0
jmp 0x51b439
mov dword [edi], eax
xor eax, eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
jns 0x51b46d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5a9200
push 0x32
push str.XMLUpdater::v2::CFileMemMap::Init
push str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterFileMemMap.h
push 1
call fcn.00500de0
add esp, 0x18
xor al, al
jmp 0x51b50e
mov esi, dword [edi]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov dword [edi + 0x10], ecx
test ecx, ecx
jne 0x51b4a0
call fcn.0051aaf0
mov esi, eax
jmp 0x51b4e9
mov eax, dword [ebp - 0x18]
push 0
push eax
push 0
push 0
push 4
push ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x20], 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [edi + 8], eax
test eax, eax
jne 0x51b50c
call fcn.0051aaf0
push dword [edi + 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], 0
test esi, esi
jns 0x51b50c
push str.Failed_to_map_file_to_memory
push 0x38
push str.XMLUpdater::v2::CFileMemMap::Init
push str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterFileMemMap.h
push 1
call fcn.00500de0
add esp, 0x14
xor al, al
jmp 0x51b50e
mov al, 1
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.00553cca
mov esp, ebp
pop ebp
ret 4