joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ee570
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 0x4ee696
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4ee696
mov ecx, dword [ebp + 0x10]
cmp ecx, 1
jb 0x4ee696
cmp dword [esi + 0xc], 0
je 0x4ee696
cmp dword [esi + 0x10], 0
je 0x4ee696
test ecx, ecx
jle 0x4ee68a
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 0x4ee61d
mov ecx, dword [esi]
call fcn.004ee810
mov byte [edi], al
lea edi, [edi + 1]
mov ecx, dword [esi]
call fcn.004ee810
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 0x4ee5e3
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 0x4ee665
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 0x4ee650
mov ecx, dword [ebp - 4]
mov edx, edi
jmp 0x4ee66b
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 0x4ee5c1
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 0x4eea90
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 0x4ef2f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597c5d
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.00422520
mov edi, eax
test edi, edi
je 0x4ef3c9
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 0x4ef392
sub ecx, 1
je 0x4ef369
sub ecx, 1
je 0x4ef362
mov eax, str._s__d_:__UNKNOWN_:___s_:__s_n
jmp 0x4ef36e
mov eax, str._s__d_:__ERROR_:___s_:__s_n
jmp 0x4ef36e
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.004df9f0
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 0x4ef3b6
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.0042d820
int3
Function at 0x4f0330
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 0x4f03e7
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 0xc], 0
cmp dword [edi + 0x14], 8
jb 0x4f035c
mov eax, dword [edi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4f03e7
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 0x4f038a
lea eax, [edx + ebx]
mov dword [esi + 4], eax
jmp 0x4f03bf
jbe 0x4f03bf
mov eax, dword [esi + 8]
sub eax, edx
cmp ebx, eax
jbe 0x4f03a3
lea eax, [ebp - 1]
mov ecx, esi
push eax
push ebx
call fcn.004691c0
jmp 0x4f03bf
mov esi, ebx
sub esi, ecx
mov ecx, dword [ebp - 0x10]
add esi, ecx
push esi
push ecx
call fcn.004693c0
mov eax, dword [ebp - 8]
add esp, 8
mov dword [eax + 8], esi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0x14], 8
jb 0x4f03c7
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 0x500c70
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 0x500ea2
cmp byte [0x60c1a0], 0
jne 0x500e0b
push 1
push 0x23
push 0x60c3b0
push 0
mov byte [0x60c1a0], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x500e0b
push str.McAfee_
push 0x104
push 0x60c3b0
call fcn.00473530
push 1
push 0x60c3b0
call fcn.00507af0
add esp, 8
push 0
push 0x60c3b0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x500d19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x500dde
push 0x60c1a8
push 0x104
push 0x60c3b0
call fcn.00473530
push 1
push 0x60c3b0
call fcn.00507af0
add esp, 8
push 0
push 0x60c3b0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x500d5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x500dde
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00556260
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 0x500df7
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.00473530
push 1
push 0x60c3b0
call fcn.00507af0
add esp, 8
push 0
push 0x60c3b0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x500df7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x500df7
pop edi
xor eax, eax
pop esi
mov word [0x60c3b0], ax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553daa
mov esp, ebp
pop ebp
ret
push str.log.txt
push 0x104
push 0x60c3b0
call fcn.00473530
cmp word [0x60c3b0], 0
je 0x500ea2
push 0x5a3950
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push 0x60c3b0
push eax
call fcn.0056640e
mov eax, dword [ebp - 0x210]
add esp, 0xc
test eax, eax
je 0x500ea2
test edi, edi
je 0x500e73
test ebx, ebx
je 0x500e73
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.00500ec0
mov eax, dword [ebp - 0x210]
add esp, 0x18
test esi, esi
je 0x500e99
push dword [ebp - 0x214]
push 0
push esi
push eax
call fcn.004211c0
push dword [eax + 4]
push dword [eax]
call fcn.0055e675
mov eax, dword [ebp - 0x210]
add esp, 0x18
push eax
call fcn.0056659c
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553daa
mov esp, ebp
pop ebp
ret
Function at 0x5016a0
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 0x50182c
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x50182c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x50182c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x50182c
cmp word [ecx + 4], 0
jne 0x50182c
cmp dword [ecx + 0x28], 0xfeef04bd
jne 0x50182c
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.00556260
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.00435110
add esp, 0x28
test eax, eax
jns 0x5017eb
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.00500ef0
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 0x5017c0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00425810
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553daa
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 0x501813
sub ecx, edx
lea eax, [ebp - 0x204]
sar ecx, 1
push ecx
push eax
jmp 0x5017d1
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.00500ef0
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 0x501870
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00425810
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00553daa
mov esp, ebp
pop ebp
ret
Function at 0x507170
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 0x5bb418
mov dword [ebp - 8], eax
call fcn.004245d0
push 0x5bb418
mov ecx, edi
call fcn.004245d0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x50721b
test al, 0x10
je 0x50721b
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.00506520
test al, al
jne 0x50723b
inc esi
cmp esi, 2
jl 0x5071f0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553daa
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.00500ef0
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00553daa
mov esp, ebp
pop ebp
ret
Function at 0x507a20
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 0x507ad2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x507ad2
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00556260
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.005603eb
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00556985
add esp, 0x20
test eax, eax
je 0x507a94
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.00507a20
add esp, 4
test al, al
jne 0x507ab8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553daa
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x507ad2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x507aa7
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00553daa
mov esp, ebp
pop ebp
ret
Function at 0x507af0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59990b
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 0x507b64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x507c60
cmp eax, 2
je 0x507c60
xor eax, eax
jmp 0x507c62
lea eax, [ebp - 0x28c]
mov dword [ebp - fcn.005083e0], 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.005083e0
mov ecx, dword [ebp - 0x298]
mov edi, eax
mov dword [ebp - 0x14], edi
test ecx, ecx
je 0x507be6
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 0x507c20
mov eax, dword [ebp - 0x264]
cmp eax, 0xa0000003
je 0x507c06
cmp eax, 0xa000000c
jne 0x507c20
cmp byte [ebp + 0xc], 0
push esi
je 0x507c15
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x507c1b
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x14]
mov ebx, eax
mov dword [ebp - 4], 2
test edi, edi
je 0x507c60
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 0x507c60
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.00553daa
mov esp, ebp
pop ebp
ret
Function at 0x510530
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x51053e
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 0x510577
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00425810
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x51b460
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b7a0
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 0x51b4f3
cmp dword [esi], 0
je 0x51b4e8
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x51b50e
push str.CreateFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51b4ee
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 0x51b509
cmp dword [esi + 4], 0
jne 0x51b4f3
or eax, 0xffffffff
jmp 0x51b509
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 0x51b515
call fcn.0051abd0
jmp 0x51b519
mov dword [edi], eax
xor eax, eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
jns 0x51b54d
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.00500ef0
add esp, 0x18
xor al, al
jmp 0x51b5ee
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 0x51b580
call fcn.0051abd0
mov esi, eax
jmp 0x51b5c9
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 0x51b5ec
call fcn.0051abd0
push dword [edi + 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], 0
test esi, esi
jns 0x51b5ec
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.00500ef0
add esp, 0x14
xor al, al
jmp 0x51b5ee
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.00553daa
mov esp, ebp
pop ebp
ret 4
Function at 0x51dda0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 4]
mov dword [esi], vtable.XMLUpdater::v2::CMD5Checksum.0
push eax
call fcn.00556260
add esp, 0xc
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov eax, esi
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
pop esi
ret

Function at 0x51ed60
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ecx + 8]
test edi, edi
je 0x51ede7
test esi, esi
je 0x51ede7
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.00556260
add esp, 0xc
mov dword [ebp - 0x88], 0x7f
lea eax, [ebp - 0x88]
push 0
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push 5
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x51ede7
lea eax, [ebp - 0x84]
push eax
call fcn.0056018a
add esp, 4
mov dword [esi], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553daa
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00553daa
mov esp, ebp
pop ebp
ret 4

Function at 0x51ee00
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ecx + 8]
test esi, esi
je 0x51ee78
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00556260
add esp, 0xc
mov dword [ebp - 0x108], 0xff
lea eax, [ebp - 0x108]
push 0
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0x13
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x51ee78
lea eax, [ebp - 0x104]
push eax
call fcn.0056018a
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553daa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00553daa
mov esp, ebp
pop ebp
ret
Function at 0x51f610
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598300
mov eax, dword fs:[0]
push eax
sub esp, 0xc
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 esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
push 8
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.std::basic_streambuf_unsigned_char__struct_std::char_traits_unsigned_char__.0
call fcn.00553fc1
mov edi, eax
add esp, 4
test edi, edi
je 0x51f676
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0053ef7a
add esp, 4
mov dword [edi + 4], eax
jmp 0x51f678
xor edi, edi
mov eax, dword [ebp - 0x10]
lea ebx, [esi + 4]
mov dword [ebp - 0x18], ebx
lea edx, [esi + 8]
mov ebx, dword [ebp - 0x10]
lea ecx, [esi + 0x18]
mov dword [esi + 0x34], edi
lea edi, [esi + 0x14]
mov dword [ebp - 0x14], edx
add esi, 0x24
mov edx, dword [ebp - 0x10]
add eax, 0x28
mov dword [ebx], vtable.std::basic_filebuf_unsigned_char__struct_std::char_traits_unsigned_char__.0
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x18]
mov dword [edx + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x2c], esi
mov ebx, dword [ebp - 0x18]
mov dword [edx], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [0x61e9e8]
mov edx, dword [0x61e9ec]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret