joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c82a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push r14
sub rsp, 0x268
mov rax, qword [0x14039bc30]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14, rcx
mov qword [rsp + 0x40], rcx
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x1400c8442
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400c8442
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400c8442
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x1400c8442
cmp word [rax + 4], 0
jne 0x1400c8442
cmp dword [rax + 0x28], 0xfeef04bd
jne 0x1400c8442
movzx ebx, word [rax + 0x34]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x288], rbp
xor edx, edx
movzx ebp, word [rax + 0x32]
mov r8d, 0x200
mov qword [rsp + 0x290], rsi
movzx esi, word [rax + 0x30]
mov qword [rsp + 0x260], rdi
movzx edi, word [rax + 0x36]
call fcn.14013d7a0
mov dword [rsp + 0x30], ebx
lea r8, str._d._d._d._d
mov dword [rsp + 0x28], edi
lea rcx, [rsp + 0x50]
mov r9d, ebp
mov dword [rsp + 0x20], esi
mov edx, 0x100
call fcn.1400c94b0
mov rdi, qword [rsp + 0x260]
mov rsi, qword [rsp + 0x290]
mov rbp, qword [rsp + 0x288]
test eax, eax
jns 0x1400c840f
lea rax, str.Failed_to_format_version
mov r9d, 0xb0
lea r8, str.XMLUpdater::v2::CSubstitutionManager::GetOsVersion
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterSubstitutionManager.cpp
mov ecx, 1
call fcn.1400da630
mov rdx, qword [str._UNKNOWN]
xor eax, eax
mov qword [r14], rax
mov r8, 0xffffffffffffffff
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], 7
mov word [r14], ax
inc r8
cmp word [rdx + r8*2], ax
jne 0x1400c8400
jmp 0x1400c849a
xor eax, eax
mov qword [r14 + 0x18], 7
mov qword [r14], rax
mov r8, 0xffffffffffffffff
mov qword [r14 + 0x10], rax
mov word [r14], ax
lea rax, [rsp + 0x50]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400c8430
lea rdx, [rsp + 0x50]
jmp 0x1400c849a
lea rax, [0x1402eeab0]
mov r9d, 0xa9
lea r8, str.XMLUpdater::v2::CSubstitutionManager::GetOsVersion
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterSubstitutionManager.cpp
mov ecx, 1
call fcn.1400da630
mov rdx, qword [str._UNKNOWN]
xor eax, eax
mov qword [r14], rax
mov r8, 0xffffffffffffffff
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], 7
mov word [r14], ax
nop
inc r8
cmp word [rdx + r8*2], ax
jne 0x1400c8490
mov rcx, r14
call fcn.140032810
mov rax, r14
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14013af80
add rsp, 0x268
pop r14
pop rbx
ret
Function at 0x1400d4820
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14039bc30]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
movzx eax, byte [rcx]
test al, al
jne 0x1400d498f
cmp dword [rcx + 0x88], 0
jne 0x1400d498f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x98], rax
test rax, rax
jne 0x1400d4929
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x14039fc90]
mov rax, qword [rcx + 0x10]
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [0x14039fc90]
call qword [case.0x1400c6d28.0]
nop
cmp qword [rax + 0x18], 0x10
jb 0x1400d48a3
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
lea rax, str.Failed_to_create_message_event:___d___hs
mov qword [rsp + 0x20], rax
mov r9d, 0x321
lea r8, str.XMLUpdater::v2::pipe_manager::impl::start
lea rdx, str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterProgressManager.cpp
mov ecx, 1
call fcn.1400da630
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400d4914
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d490f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d49bd
call fcn.14013afa0
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14013af80
add rsp, 0x70
pop rbx
ret
mov ecx, 0x10
call fcn.14013afa8
test rax, rax
je 0x1400d4946
mov qword [rax], rbx
lea rcx, [0x1400d4aa0]
mov qword [rax + 8], rcx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140065580]
xor edx, edx
xor ecx, ecx
call fcn.1401552a8
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400d49aa
cmp dword [rbx + 0x88], 0
jne 0x1400d49a4
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx + 0x80], xmm0
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14013af80
add rsp, 0x70
pop rbx
ret
call fcn.1400d4a90
nop
mov dword [rsp + 0x48], 0
mov ecx, 6
call fcn.140115bb0
nop
call fcn.1401421d8
int3
Function at 0x1400dade0
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [r8 + 0x18], 8
mov rbx, rdx
jb 0x1400dadf3
mov r8, qword [r8]
mov rcx, r8
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rdx, qword [str.FALSE]
mov r8, 0xffffffffffffffff
test eax, eax
mov qword [rbx + 0x18], 7
cmovne rdx, qword [str.TRUE]
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 0x10], rax
mov word [rbx], ax
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], ax
jne 0x1400dae30
mov rcx, rbx
call fcn.140032810
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400dd560
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14039bc30]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edx, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400dd602
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400dd602
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14013d7a0
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.14014a108
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.14013e098
test rax, rax
je 0x1400dd5d4
xor ecx, ecx
mov word [rax], cx
lea rcx, [rsp + 0x20]
call fcn.1400dd560
test al, al
jne 0x1400dd5e6
xor al, al
jmp 0x1400dd604
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400dd602
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400dd5e2
mov al, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14013af80
add rsp, 0x240
pop rbx
ret
Function at 0x1400dd620
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x14039bc30]
xor rax, rsp
mov qword [rbp + 0x210], rax
movzx esi, dl
mov rdi, rcx
mov ebx, 1
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x1400dd687
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
xor ecx, ecx
cmp eax, ebx
setbe cl
mov eax, ecx
jmp 0x1400dd771
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_b41b04a0a7a7f7312e941055e7b10b38___void___.0
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x68], rax
xor ecx, ecx
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x28]
mov rax, qword [vtable.std::_Func_impl_no_alloc_class__lambda_b41b04a0a7a7f7312e941055e7b10b38___void___.0]
call qword [case.0x1400c6d28.0]
mov rcx, rax
mov qword [rbp - 0x48], rax
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x1400dd706
mov rax, qword [r8]
lea rcx, [rsp + 0x28]
cmp r8, rcx
setne dl
mov rcx, r8
mov rax, qword [rax + 0x20]
call qword [case.0x1400c6d28.0]
mov rcx, qword [rbp - 0x48]
test dword [rbp - 0x40], 0x400
je 0x1400dd73c
mov eax, dword [rbp - 0x1c]
cmp eax, 0xa0000003
je 0x1400dd720
cmp eax, 0xa000000c
jne 0x1400dd73c
mov rcx, rdi
test sil, sil
je 0x1400dd730
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400dd736
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbp - 0x48]
mov ebx, eax
test rcx, rcx
je 0x1400dd76f
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400c6d28.0]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1400dd76f
mov rax, qword [rcx]
lea rdx, [rbp - 0x80]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x1400c6d28.0]
nop
mov eax, ebx
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14013af80
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400e2430
Capabilities:
Create directory
Get common file path

Disassembly:
push r14
sub rsp, 0x250
mov rax, qword [0x14039bc30]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp byte [rcx], 0
mov r14, rcx
jne 0x1400e266d
mov r9d, 1
mov byte [rcx], 1
mov qword [rsp + 0x248], rsi
lea rsi, [rcx + 0x218]
mov rdx, rsi
xor ecx, ecx
lea r8d, [r9 + 0x22]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1400e2665
mov qword [rsp + 0x268], rbx
mov rax, rsi
mov ebx, 0x104
mov qword [rsp + 0x270], rbp
mov ecx, ebx
mov qword [rsp + 0x240], rdi
cmp word [rax], 0
je 0x1400e24b8
add rax, 2
sub rcx, 1
jne 0x1400e24a8
xor ebp, ebp
mov rax, rbx
sub rax, rcx
mov edi, 0x7ffffffe
test rcx, rcx
cmove rax, rbp
je 0x1400e2515
mov rdx, rbx
lea rcx, [rsi + rax*2]
sub rdx, rax
je 0x1400e2507
lea r9, str.McAfee_
mov eax, edi
sub r9, rcx
test rax, rax
je 0x1400e2507
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x1400e2507
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x1400e24e6
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bp
mov dl, 1
mov rcx, rsi
call fcn.1400dd620
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400e253f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400e25e1
lea r8, [r14 + 0x10]
mov rdx, rbx
mov rcx, rsi
call fcn.1400e2370
mov dl, 1
mov rcx, rsi
call fcn.1400dd620
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400e2574
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400e25e1
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14013d7a0
mov rcx, qword [r14 + 8]
lea rdx, [rsp + 0x20]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400e25e6
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov rdx, rbx
mov rcx, rsi
mov r8, rax
call fcn.1400e2370
mov dl, 1
mov rcx, rsi
call fcn.1400dd620
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400e25e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400e25e6
mov word [rsi], bp
jmp 0x1400e264d
mov rcx, rbx
mov rax, rsi
nop dword [rax]
cmp word [rax], bp
je 0x1400e25ff
add rax, 2
sub rcx, 1
jne 0x1400e25f0
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, rbp
je 0x1400e264d
lea rcx, [rsi + rax*2]
sub rbx, rax
je 0x1400e263f
lea rdx, str.log.txt
sub rdx, rcx
test rdi, rdi
je 0x1400e263f
movzx eax, word [rdx + rcx]
test ax, ax
je 0x1400e263f
mov word [rcx], ax
dec rdi
add rcx, 2
sub rbx, 1
jne 0x1400e2621
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bp
mov rbx, qword [rsp + 0x268]
mov rbp, qword [rsp + 0x270]
mov rdi, qword [rsp + 0x240]
mov rsi, qword [rsp + 0x248]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14013af80
add rsp, 0x250
pop r14
ret
Function at 0x1400e8190
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x98
mov rax, qword [0x14039bc30]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, qword [rsp + 0xd8]
mov rcx, r9
mov qword [rsp + 0x80], rdx
mov rbx, r9
lea rdx, [0x14032c4f8]
call fcn.140029100
lea rdx, [0x14032c4f8]
mov rcx, rdi
call fcn.140029100
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e829c
test al, 0x10
je 0x1400e829c
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdi
nop dword [rax]
test ebx, ebx
lea rcx, [rsp + 0x30]
setne dl
call fcn.1400e7450
test al, al
jne 0x1400e82c8
inc ebx
cmp ebx, 2
jl 0x1400e8280
jmp 0x1400e82c6
lea rax, str.Destination_directory_does_not_exist
mov r9d, 0xc3
lea r8, str.XMLUpdater::v2::NHttp::NDownloadFile::StoreOnDisk
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterHttpsDownloadFile.cpp
mov ecx, 1
call fcn.1400da630
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14013af80
add rsp, 0x98
pop rdi
pop rbx
ret
Function at 0x1400fa510
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14039bc30]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [rcx + 8]
xor ebp, ebp
test rbx, rbx
je 0x1400fa5b7
cmp qword [rbx], rbp
je 0x1400fa5a9
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400fa5e6
lea rdx, str.CreateFileTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400fa5ae
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov rdx, qword [rbx]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 1
mov r8d, edx
mov rcx, rsi
call qword [case.0x1400c6d28.0]
jmp 0x1400fa5e0
cmp dword [rbx + 8], ebp
jne 0x1400fa5b7
mov rax, 0xffffffffffffffff
jmp 0x1400fa5e0
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov edx, 1
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1400fa5ed
call fcn.1400f9880
jmp 0x1400fa5f2
mov qword [rdi], rax
mov eax, ebp
test eax, eax
jns 0x1400fa630
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rax, str.Failed_to_open_the_file:__d_n
mov qword [rsp + 0x20], rax
mov r9d, 0x32
lea r8, str.XMLUpdater::v2::CFileMemMap::Init
lea rdx, str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterFileMemMap.h
lea ecx, [r9 - 0x31]
call fcn.1400da630
xor al, al
jmp 0x1400fa6fa
mov rbx, qword [rdi]
lea rdx, [rsp + 0x64]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x60], eax
mov r9, qword [rsp + 0x60]
shr r9, 0x20
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x1400fa67b
call fcn.1400f9880
mov ebx, eax
jmp 0x1400fa6c7
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x30], 4
mov qword [rdi + 0x28], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x1400fa6f8
call fcn.1400f9880
mov ebx, eax
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x20], rbp
test ebx, ebx
jns 0x1400fa6f8
lea rax, str.Failed_to_map_file_to_memory
mov qword [rsp + 0x20], rax
mov r9d, 0x38
lea r8, str.XMLUpdater::v2::CFileMemMap::Init
lea rdx, str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterFileMemMap.h
lea ecx, [r9 - 0x37]
call fcn.1400da630
xor al, al
jmp 0x1400fa6fa
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14013af80
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400fa800
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14039bc30]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx + 0x60]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400fa876
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov r9d, 0x5d
lea r8, str.XMLUpdater::v2::CCabParser::Write
lea rax, str.WriteFile_failed:__d
lea rdx, str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterCabParser.h
mov qword [rsp + 0x20], rax
lea ecx, [r9 - 0x5c]
call fcn.1400da630
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14013af80
add rsp, 0x48
ret
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14013af80
add rsp, 0x48
ret
Function at 0x1400fd210
Capabilities:
Hash data with md5

Disassembly:
lea rax, vtable.XMLUpdater::v2::CMD5Checksum.0
xorps xmm0, xmm0
mov qword [rcx], rax
xor eax, eax
movups xmmword [rcx + 8], xmm0
movups xmmword [rcx + 0x18], xmm0
movups xmmword [rcx + 0x28], xmm0
movups xmmword [rcx + 0x38], xmm0
mov qword [rcx + 0x48], rax
mov rax, rcx
mov dword [rcx + 0x50], 0x67452301
mov dword [rcx + 0x54], 0xefcdab89
mov dword [rcx + 0x58], 0x98badcfe
mov dword [rcx + 0x5c], 0x10325476
ret

Function at 0x1400fe210
Capabilities:
Set http header

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x1400fe224
xor al, al
add rsp, 0x28
ret
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
cmp eax, 1
sete al
add rsp, 0x28
ret

Function at 0x1400fe430
Capabilities:
Initialize winhttp library

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx], 0
mov rax, rdx
mov rbx, rcx
je 0x1400fe44a
xor al, al
add rsp, 0x30
pop rbx
ret
cmp byte [rsp + 0x60], 0
je 0x1400fe458
mov edx, 1
jmp 0x1400fe472
test r8, r8
je 0x1400fe470
mov dword [rsp + 0x20], r9d
mov edx, 3
mov r9, qword [r8 + 8]
mov r8, qword [r8]
jmp 0x1400fe47d
xor edx, edx
mov dword [rsp + 0x20], r9d
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
test rax, rax
mov qword [rbx], rax
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x1400fe4a0
Capabilities:
Prepare http request

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400fe4ee
cmp qword [rbx + 0x10], 0
jne 0x1400fe4ee
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
test rax, rax
mov qword [rbx + 0x10], rax
setne al
add rsp, 0x40
pop rbx
ret
xor al, al
add rsp, 0x40
pop rbx
ret

Function at 0x1400fe500
Capabilities:
Read http header

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xd0
mov rax, qword [0x14039bc30]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rcx, qword [rcx + 0x10]
mov rbx, rdx
test rcx, rcx
je 0x1400fe59a
test rdx, rdx
je 0x1400fe59a
xorps xmm0, xmm0
mov qword [rsp + 0x28], 0
movups xmmword [rsp + 0x40], xmm0
xor r8d, r8d
lea rax, [rsp + 0x30]
movups xmmword [rsp + 0x50], xmm0
lea r9, [rsp + 0x40]
mov dword [rsp + 0x30], 0x7f
movups xmmword [rsp + 0x60], xmm0
lea edx, [r8 + 5]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [r11 - 0x58], xmm0
movups xmmword [r11 - 0x48], xmm0
movups xmmword [r11 - 0x38], xmm0
movups xmmword [r11 - 0x28], xmm0
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1400fe59a
lea rcx, [rsp + 0x40]
call fcn.140152220
mov dword [rbx], eax
mov al, 1
jmp 0x1400fe59c
xor al, al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14013af80
add rsp, 0xd0
pop rbx
ret
Function at 0x1400fe5c0
Capabilities:
Read http header

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14039bc30]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x1400fe636
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x100
call fcn.14013d7a0
xor r8d, r8d
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0xff
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rcx, rbx
lea edx, [r8 + 0x13]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1400fe636
lea rcx, [rsp + 0x40]
call fcn.140152220
jmp 0x1400fe638
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14013af80
add rsp, 0x150
pop rbx
ret

Function at 0x1400fe660
Capabilities:
Receive http response

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x1400fe674
xor al, al
add rsp, 0x28
ret
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
cmp eax, 1
sete al
add rsp, 0x28
ret

Function at 0x1400fe690
Capabilities:
Receive http response

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x1400fe6a4
xor al, al
add rsp, 0x28
ret
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, 1
sete al
add rsp, 0x28
ret
Function at 0x140103480
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1401034a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140103523
mov rdi, r14
mov rcx, rbx
call fcn.140042010
test rax, rax
jle 0x1401034f4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14013d0f0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140103513
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x38]
call qword [case.0x1400c6d28.0]
cmp eax, 0xffffffff
je 0x14010351b
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1401034b6
sub r14, rdi
jmp 0x140103618
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14010353a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14010353c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140103571
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14013d0f0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140103615
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x1401035ac
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x1401035f0
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140156ae4
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x14010362e
cmp rbp, rax
ja 0x1401035c0
mov r8, rdi
test rdi, rdi
je 0x140103615
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140156ae4
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140103618