joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49fbc0
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 0x49fce6
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x49fce6
mov ecx, dword [ebp + 0x10]
cmp ecx, 1
jb 0x49fce6
cmp dword [esi + 0xc], 0
je 0x49fce6
cmp dword [esi + 0x10], 0
je 0x49fce6
test ecx, ecx
jle 0x49fcda
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 0x49fc6d
mov ecx, dword [esi]
call fcn.0049fe60
mov byte [edi], al
lea edi, [edi + 1]
mov ecx, dword [esi]
call fcn.0049fe60
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 0x49fc33
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 0x49fcb5
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 0x49fca0
mov ecx, dword [ebp - 4]
mov edx, edi
jmp 0x49fcbb
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 0x49fc11
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 0x4a00e0
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 0x4a5590
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645270
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6d3438]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CoreTech::CBaseIniReader.0
mov dword [ebp - 4], 0
call fcn.004213d0
mov ebx, eax
test ebx, ebx
je 0x4a56f3
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x659730]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 4], eax
mov dword [ebp - 4], 1
call fcn.004213d0
mov ebx, eax
test ebx, ebx
je 0x4a56f3
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x659730]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi], vtable.CoreTech::CObfuscatedIniReader.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0x11
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0xa
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x20], 0x3f400000
mov dword [edi + 0x24], 0x3e800000
mov dword [edi + 0x28], 0x40100000
mov dword [edi + 0x2c], 0x26
mov dword [edi + 0x30], 0
mov al, byte [ebp + 8]
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0x11
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0xa
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x50], 0x3f400000
mov dword [edi + 0x54], 0x3e800000
mov dword [edi + 0x58], 0x40100000
mov dword [edi + 0x5c], 0x26
mov dword [edi + 0x60], 0
mov byte [edi + 0x74], al
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00421010
int3
Function at 0x4a6890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4a68cb
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0x8000
push 0x659da0
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, dword [ebp - 4]
test eax, eax
jns 0x4a68d8
test esi, esi
je 0x4a68cb
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
mov eax, 0x57
pop esi
mov esp, ebp
pop ebp
ret 8
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
push edi
call fcn.0060e40a
add esp, 0x10
mov edi, eax
test esi, esi
je 0x4a68f4
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4a7650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
mov esi, ecx
test eax, eax
je 0x4a771e
xor ecx, ecx
cmp cx, word [eax]
je 0x4a771e
cmp dword [esi + 0x28], ecx
je 0x4a7680
mov eax, 0xb7
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0xa0
push edi
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x28], eax
test ecx, ecx
je 0x4a76b6
cmp ecx, 0xffffffff
je 0x4a76b6
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
jne 0x4a76d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ebx, eax
mov dword [esi + 0x28], 0
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 3
jne 0x4a76f0
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 2
je 0x4a76fa
cmp edi, 1
jne 0x4a7713
push 0
lea ecx, [ebp - 8]
mov word [ebp - 4], 0xfeff
push ecx
push 2
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, 0x57
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4a8cb0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
mov eax, dword [esi + 0x34]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
test eax, eax
je 0x4a8cdc
push 0x1b58
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [esi + 0x54]
mov ebx, 0x57
mov ecx, esi
call dword [0x659730]
mov ecx, dword [ebp - 4]
call esi
mov esi, dword [ebp - 4]
test al, al
je 0x4a8da9
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4a8da9
xor ecx, ecx
cmp cx, word [eax]
je 0x4a8da9
mov ecx, esi
call fcn.004a7730
mov ebx, eax
test ebx, ebx
je 0x4a8d2b
cmp ebx, 0xb7
jne 0x4a8da9
lea eax, [ebp - 8]
mov ecx, esi
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004a5f20
mov edi, dword [ebp - 8]
mov ebx, eax
test ebx, ebx
jne 0x4a8da9
test edi, edi
jne 0x4a8d5b
lea ebx, [eax + 0xe]
jmp 0x4a8da9
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a8d60
sub ecx, edx
lea eax, [ebp - 0x10]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edi
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [esi + 0x44], 1
mov dword [ebp - 0xc], eax
je 0x4a8d9d
xor ecx, ecx
cmp cx, word [edi]
je 0x4a8d9d
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4a8da9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0x28], 0
test eax, eax
je 0x4a8dc3
cmp eax, 0xffffffff
je 0x4a8dc3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4a8dd0
push edi
call fcn.0060dd99
add esp, 4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4a8dde
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4ab870
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4ab9e0
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4ab9e0
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.004ab9f0
add esp, 4
cmp dword [ebp + 0x14], eax
jb 0x4ab9e0
xor eax, eax
xor edx, edx
mov dword [ebp - 4], eax
cmp ebx, 2
jbe 0x4ab943
lea edx, [edi + 2]
mov dword [ebp - 8], 2
xor edi, edi
movzx eax, byte [edx - 2]
lea edx, [edx + 3]
shr eax, 2
add edi, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [edx - 5]
movzx eax, byte [edx - 4]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx ecx, byte [edx - 4]
movzx eax, byte [edx - 3]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [ebp - 8]
mov byte [esi + 2], al
add ecx, 3
movzx eax, byte [edx - 3]
and eax, 0x3f
mov dword [ebp - 8], ecx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
mov eax, dword [ebp - 4]
add eax, 3
mov dword [ebp - 4], eax
cmp ecx, ebx
jb 0x4ab8c0
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 8]
sub ebx, eax
add edi, eax
test bl, 2
je 0x4ab9a0
movzx eax, byte [edi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx eax, byte [edi + 1]
and eax, 0xf
pop edi
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
add esi, 4
add edx, 4
mov byte [esi], 0
pop esi
lea eax, [edx + 1]
pop ebx
mov esp, ebp
pop ebp
ret
test bl, 1
je 0x4ab9d3
movzx eax, byte [edi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx eax, byte [edi]
and eax, 3
shl eax, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
add esi, 4
add edx, 4
pop edi
mov byte [esi], 0
lea eax, [edx + 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4acbb0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6d3438]
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 [0x6d15b0]
ja 0x4acde2
cmp byte [0x6d1198], 0
jne 0x4acd4b
push 1
push 0x23
push 0x6d13a8
push 0
mov byte [0x6d1198], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4acd4b
push str.McAfee_
push 0x104
push 0x6d13a8
call fcn.004ace00
push 1
push 0x6d13a8
call fcn.004b4ba0
add esp, 8
push 0
push 0x6d13a8
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4acc59
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4acd1e
push 0x6d11a0
push 0x104
push 0x6d13a8
call fcn.004ace00
push 1
push 0x6d13a8
call fcn.004b4ba0
add esp, 8
push 0
push 0x6d13a8
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4acc9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4acd1e
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0060a8e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x6d119c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4acd37
push 0x5c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
push eax
push 0x104
push 0x6d13a8
call fcn.004ace00
push 1
push 0x6d13a8
call fcn.004b4ba0
add esp, 8
push 0
push 0x6d13a8
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4acd37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4acd37
pop edi
xor eax, eax
pop esi
mov word [0x6d13a8], ax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00608185
mov esp, ebp
pop ebp
ret
push str.log.txt
push 0x104
push 0x6d13a8
call fcn.004ace00
cmp word [0x6d13a8], 0
je 0x4acde2
push 0x65d600
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push 0x6d13a8
push eax
call fcn.006141da
mov eax, dword [ebp - 0x210]
add esp, 0xc
test eax, eax
je 0x4acde2
test edi, edi
je 0x4acdb3
test ebx, ebx
je 0x4acdb3
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.004aceb0
mov eax, dword [ebp - 0x210]
add esp, 0x18
test esi, esi
je 0x4acdd9
push dword [ebp - 0x214]
push 0
push esi
push eax
call fcn.0042fb00
push dword [eax + 4]
push dword [eax]
call fcn.006135a5
mov eax, dword [ebp - 0x210]
add esp, 0x18
push eax
call fcn.00614698
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00608185
mov esp, ebp
pop ebp
ret
Function at 0x4ad5f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6d3438]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x68ec80
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x20c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x4ad77c
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4ad77c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4ad77c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x4ad77c
cmp word [ecx + 4], 0
jne 0x4ad77c
cmp dword [ecx + 0x28], 0xfeef04bd
jne 0x4ad77c
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.0060a8e0
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.004ae960
add esp, 0x28
test eax, eax
jns 0x4ad73b
push str.Failed_to_format_version
push 0xb0
push str.XMLUpdater::v2::CSubstitutionManager::GetOsVersion
push str.E:BT3f715c85_ff0b_44ed_ac13_dd63d3f5c42aWebAdvisor_XmlUpdater_srcXmlUpdaterSubstitutionManager.cpp
push 1
call fcn.004acee0
mov esi, dword [ebp - 0x208]
add esp, 0x14
mov edx, dword [0x6d15b8]
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 0x4ad710
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0042e850
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00608185
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 0x4ad763
sub ecx, edx
lea eax, [ebp - 0x204]
sar ecx, 1
push ecx
push eax
jmp 0x4ad721
push str.Failed_to_retrieve_kernel_verison
push 0xa9
push str.XMLUpdater::v2::CSubstitutionManager::GetOsVersion
push str.E:BT3f715c85_ff0b_44ed_ac13_dd63d3f5c42aWebAdvisor_XmlUpdater_srcXmlUpdaterSubstitutionManager.cpp
push 1
call fcn.004acee0
mov edx, dword [0x6d15b8]
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 0x4ad7c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.0042e850
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00608185
mov esp, ebp
pop ebp
ret
Function at 0x4b4220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x6d3438]
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 0x68d90c
mov dword [ebp - 8], eax
call fcn.0042a4b0
push 0x68d90c
mov ecx, edi
call fcn.0042a4b0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b42cb
test al, 0x10
je 0x4b42cb
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.004b35d0
test al, al
jne 0x4b42eb
inc esi
cmp esi, 2
jl 0x4b42a0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00608185
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:BT3f715c85_ff0b_44ed_ac13_dd63d3f5c42aWebAdvisor_XmlUpdater_srcXmlUpdaterHttpsDownloadFile.cpp
push 1
call fcn.004acee0
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00608185
mov esp, ebp
pop ebp
ret
Function at 0x4b4ad0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6d3438]
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 0x4b4b82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4b4b82
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0060a8e0
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0060e2d8
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0060add2
add esp, 0x20
test eax, eax
je 0x4b4b44
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.004b4ad0
add esp, 4
test al, al
jne 0x4b4b68
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00608185
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4b4b82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4b4b57
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00608185
mov esp, ebp
pop ebp
ret
Function at 0x4b4ba0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64637b
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x6d3438]
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 0x4b4c14
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x4b4d10
cmp eax, 2
je 0x4b4d10
xor eax, eax
jmp 0x4b4d12
lea eax, [ebp - 0x28c]
mov dword [ebp - fcn.004b5490], 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.004b5490
mov ecx, dword [ebp - 0x298]
mov edi, eax
mov dword [ebp - 0x14], edi
test ecx, ecx
je 0x4b4c96
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 [0x659730]
mov ecx, dword [ebp - 0x298]
call esi
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x290]
test dword [ebp - 0x288], 0x400
je 0x4b4cd0
mov eax, dword [ebp - 0x264]
cmp eax, 0xa0000003
je 0x4b4cb6
cmp eax, 0xa000000c
jne 0x4b4cd0
cmp byte [ebp + 0xc], 0
push esi
je 0x4b4cc5
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4b4ccb
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x14]
mov ebx, eax
mov dword [ebp - 4], 2
test edi, edi
je 0x4b4d10
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x659730]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4b4d10
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 [0x659730]
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.00608185
mov esp, ebp
pop ebp
ret