joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bfb80
Capabilities:
Create directory
Get common file path

Disassembly:
push r14
sub rsp, 0x250
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp byte [rcx], 0
mov r14, rcx
jne 0x1400bfdbd
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 0x1400bfdb5
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 0x1400bfc08
add rax, 2
sub rcx, 1
jne 0x1400bfbf8
xor ebp, ebp
mov rax, rbx
sub rax, rcx
mov edi, 0x7ffffffe
test rcx, rcx
cmove rax, rbp
je 0x1400bfc65
mov rdx, rbx
lea rcx, [rsi + rax*2]
sub rdx, rax
je 0x1400bfc57
lea r9, str.McAfee_
mov eax, edi
sub r9, rcx
test rax, rax
je 0x1400bfc57
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x1400bfc57
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x1400bfc36
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bp
mov dl, 1
mov rcx, rsi
call fcn.1400c91f0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400bfc8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400bfd31
lea r8, [r14 + 0x10]
mov rdx, rbx
mov rcx, rsi
call fcn.14002b590
mov dl, 1
mov rcx, rsi
call fcn.1400c91f0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400bfcc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400bfd31
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14026c200
mov rcx, qword [r14 + 8]
lea rdx, [rsp + 0x20]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400bfd36
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.14002b590
mov dl, 1
mov rcx, rsi
call fcn.1400c91f0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400bfd36
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400bfd36
mov word [rsi], bp
jmp 0x1400bfd9d
mov rcx, rbx
mov rax, rsi
nop dword [rax]
cmp word [rax], bp
je 0x1400bfd4f
add rax, 2
sub rcx, 1
jne 0x1400bfd40
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, rbp
je 0x1400bfd9d
lea rcx, [rsi + rax*2]
sub rbx, rax
je 0x1400bfd8f
lea rdx, str.log.txt
sub rdx, rcx
test rdi, rdi
je 0x1400bfd8f
movzx eax, word [rdx + rcx]
test ax, ax
je 0x1400bfd8f
mov word [rcx], ax
dec rdi
add rcx, 2
sub rbx, 1
jne 0x1400bfd71
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.140269300
add rsp, 0x250
pop r14
ret
Function at 0x1400c07f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push r14
sub rsp, 0x268
mov rax, qword [0x14035dc30]
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 0x1400c0992
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400c0992
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400c0992
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x1400c0992
cmp word [rax + 4], 0
jne 0x1400c0992
cmp dword [rax + 0x28], 0xfeef04bd
jne 0x1400c0992
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.14026c200
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.14002b650
mov rdi, qword [rsp + 0x260]
mov rsi, qword [rsp + 0x290]
mov rbp, qword [rsp + 0x288]
test eax, eax
jns 0x1400c095f
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:BT42dac55d_4355_4669_9ab8_31cc00ddc957WebAdvisor_XmlUpdater_srcXmlUpdaterSubstitutionManager.cpp
mov ecx, 1
call fcn.1400bfe30
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 0x1400c0950
jmp 0x1400c09ea
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 0x1400c0980
lea rdx, [rsp + 0x50]
jmp 0x1400c09ea
lea rax, str.Failed_to_retrieve_kernel_verison
mov r9d, 0xa9
lea r8, str.XMLUpdater::v2::CSubstitutionManager::GetOsVersion
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT42dac55d_4355_4669_9ab8_31cc00ddc957WebAdvisor_XmlUpdater_srcXmlUpdaterSubstitutionManager.cpp
mov ecx, 1
call fcn.1400bfe30
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 0x1400c09e0
mov rcx, r14
call fcn.140025e70
mov rax, r14
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140269300
add rsp, 0x268
pop r14
pop rbx
ret
Function at 0x1400c8460
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 [0x14035dc30]
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, [0x1402f713c]
call fcn.140025e50
lea rdx, [0x1402f713c]
mov rcx, rdi
call fcn.140025e50
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400c856c
test al, 0x10
je 0x1400c856c
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.1400c7290
test al, al
jne 0x1400c8598
inc ebx
cmp ebx, 2
jl 0x1400c8550
jmp 0x1400c8596
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:BT42dac55d_4355_4669_9ab8_31cc00ddc957WebAdvisor_XmlUpdater_srcXmlUpdaterHttpsDownloadFile.cpp
mov ecx, 1
call fcn.1400bfe30
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140269300
add rsp, 0x98
pop rdi
pop rbx
ret
Function at 0x1400c9130
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14035dc30]
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 0x1400c91d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400c91d2
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14026c200
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.140278ba4
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.14026b9c8
test rax, rax
je 0x1400c91a4
xor ecx, ecx
mov word [rax], cx
lea rcx, [rsp + 0x20]
call fcn.1400c9130
test al, al
jne 0x1400c91b6
xor al, al
jmp 0x1400c91d4
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400c91d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400c91b2
mov al, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140269300
add rsp, 0x240
pop rbx
ret
Function at 0x1400c91f0
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 [0x14035dc30]
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 0x1400c9257
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
xor ecx, ecx
cmp eax, ebx
setbe cl
mov eax, ecx
jmp 0x1400c9341
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.0x1400ac8a1.0]
mov rcx, rax
mov qword [rbp - 0x48], rax
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x1400c92d6
mov rax, qword [r8]
lea rcx, [rsp + 0x28]
cmp r8, rcx
setne dl
mov rcx, r8
mov rax, qword [rax + 0x20]
call qword [case.0x1400ac8a1.0]
mov rcx, qword [rbp - 0x48]
test dword [rbp - 0x40], 0x400
je 0x1400c930c
mov eax, dword [rbp - 0x1c]
cmp eax, 0xa0000003
je 0x1400c92f0
cmp eax, 0xa000000c
jne 0x1400c930c
mov rcx, rdi
test sil, sil
je 0x1400c9300
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400c9306
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbp - 0x48]
mov ebx, eax
test rcx, rcx
je 0x1400c933f
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400ac8a1.0]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1400c933f
mov rax, qword [rcx]
lea rdx, [rbp - 0x80]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x1400ac8a1.0]
nop
mov eax, ebx
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140269300
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 0x1400d3a50
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
mov edx, 0x108
call fcn.140026230
mov rdx, rax
mov qword [rbx + 0x10], 0x104
mov qword [rbx + 0x18], 0x107
movzx eax, si
mov rdi, rdx
mov ecx, 0x104
rep stosw word [rdi], ax
mov word [rdx + 0x208], si
mov qword [rbx], rdx
mov dword [rsp + 0x20], 1
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x48], eax
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400d3ad0
mov rcx, rdx
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov r8, qword [rbx + 0x10]
mov rdi, rbx
mov r9, qword [rbx + 0x18]
cmp r9, 8
jb 0x1400d3aef
mov rdi, qword [rbx]
test r8, r8
je 0x1400d3b24
mov rcx, r8
mov rax, rdi
mov rdx, rsi
cmp word [rdi], dx
je 0x1400d3b14
cmp rcx, 1
je 0x1400d3b17
dec rcx
add rax, 2
cmp word [rax], dx
jne 0x1400d3b02
mov rdx, rax
test rdx, rdx
je 0x1400d3b24
sub rdx, rdi
sar rdx, 1
jmp 0x1400d3b2b
mov rdx, 0xffffffffffffffff
cmp r8, rdx
jb 0x1400d3b57
mov rax, rbx
cmp r9, 8
jb 0x1400d3b3c
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rax + rdx*2], si
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.14003a640
int3

Function at 0x1400d3b60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
mov esi, r8d
mov ebp, edx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], 7
mov word [rcx], r14w
mov edx, 0x108
call fcn.140026230
mov rdx, rax
mov qword [rbx + 0x10], 0x104
mov qword [rbx + 0x18], 0x107
movzx eax, r14w
mov rdi, rdx
mov ecx, 0x104
rep stosw word [rdi], ax
mov word [rdx + 0x208], r14w
mov qword [rbx], rdx
mov dword [rsp + 0x20], 1
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400d3be6
mov rax, rdx
mov r9d, esi
mov r8d, ebp
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov r8, qword [rbx + 0x10]
mov rdi, rbx
mov r9, qword [rbx + 0x18]
cmp r9, 8
jb 0x1400d3c0b
mov rdi, qword [rbx]
test r8, r8
je 0x1400d3c42
mov rcx, r8
mov rax, rdi
mov rdx, r14
cmp word [rdi], dx
je 0x1400d3c32
nop
cmp rcx, 1
je 0x1400d3c35
dec rcx
add rax, 2
cmp word [rax], dx
jne 0x1400d3c20
mov rdx, rax
test rdx, rdx
je 0x1400d3c42
sub rdx, rdi
sar rdx, 1
jmp 0x1400d3c49
mov rdx, 0xffffffffffffffff
cmp r8, rdx
jb 0x1400d3c79
mov rax, rbx
cmp r9, 8
jb 0x1400d3c5a
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rax + rdx*2], r14w
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
call fcn.14003a640
int3
Function at 0x1400d3dd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rbx, rdx
xor edi, edi
cmp qword [rcx + 0x18], 8
jb 0x1400d3df1
mov rcx, qword [rcx]
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rcx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400d3e26
mov rdi, qword [rsp + 0x38]
test eax, eax
jne 0x1400d3e7d
mov dword [rsp + 0x50], eax
cmp qword [rbx + 0x18], 8
jb 0x1400d3e38
mov rbx, qword [rbx]
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400d3e7d
cmp dword [rsp + 0x30], 4
jne 0x1400d3e7d
mov eax, dword [rsp + 0x50]
mov dword [rsi], eax
mov bl, 1
jmp 0x1400d3e7f
xor bl, bl
test rdi, rdi
je 0x1400d3e8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400dea80
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [r8 + 0x18], 8
mov rbx, rdx
jb 0x1400dea93
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 0x1400dead0
mov rcx, rbx
call fcn.140025e70
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400ee5b0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14035dc30]
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 0x1400ee657
cmp qword [rbx], rbp
je 0x1400ee649
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ee686
lea rdx, str.CreateFileTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400ee64e
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.0x1400ac8a1.0]
jmp 0x1400ee680
cmp dword [rbx + 8], ebp
jne 0x1400ee657
mov rax, 0xffffffffffffffff
jmp 0x1400ee680
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 0x1400ee68d
call fcn.1400ed920
jmp 0x1400ee692
mov qword [rdi], rax
mov eax, ebp
test eax, eax
jns 0x1400ee6d0
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, getservbyname
lea r8, str.XMLUpdater::v2::CFileMemMap::Init
lea rdx, str.E:BT42dac55d_4355_4669_9ab8_31cc00ddc957WebAdvisor_XmlUpdater_srcXmlUpdaterFileMemMap.h
lea ecx, [r9 - 0x31]
call fcn.1400bfe30
xor al, al
jmp 0x1400ee79a
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 0x1400ee71b
call fcn.1400ed920
mov ebx, eax
jmp 0x1400ee767
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 0x1400ee798
call fcn.1400ed920
mov ebx, eax
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x20], rbp
test ebx, ebx
jns 0x1400ee798
lea rax, str.Failed_to_map_file_to_memory
mov qword [rsp + 0x20], rax
mov r9d, reloc.WS2_32.dll_getservbyport
lea r8, str.XMLUpdater::v2::CFileMemMap::Init
lea rdx, str.E:BT42dac55d_4355_4669_9ab8_31cc00ddc957WebAdvisor_XmlUpdater_srcXmlUpdaterFileMemMap.h
lea ecx, [r9 - 0x37]
call fcn.1400bfe30
xor al, al
jmp 0x1400ee79a
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140269300
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400ee8a0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14035dc30]
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 0x1400ee916
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:BT42dac55d_4355_4669_9ab8_31cc00ddc957WebAdvisor_XmlUpdater_srcXmlUpdaterCabParser.h
mov qword [rsp + 0x20], rax
lea ecx, [r9 - 0x5c]
call fcn.1400bfe30
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140269300
add rsp, 0x48
ret
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140269300
add rsp, 0x48
ret
Function at 0x1400f1dd0
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 0x1400f2dd0
Capabilities:
Set http header

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x1400f2de4
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 0x1400f2ff0
Capabilities:
Initialize winhttp library

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx], 0
mov rax, rdx
mov rbx, rcx
je 0x1400f300a
xor al, al
add rsp, 0x30
pop rbx
ret
cmp byte [rsp + 0x60], 0
je 0x1400f3018
mov edx, 1
jmp 0x1400f3032
test r8, r8
je 0x1400f3030
mov dword [rsp + 0x20], r9d
mov edx, 3
mov r9, qword [r8 + 8]
mov r8, qword [r8]
jmp 0x1400f303d
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 0x1400f3060
Capabilities:
Prepare http request

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400f30ae
cmp qword [rbx + 0x10], 0
jne 0x1400f30ae
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 0x1400f30c0
Capabilities:
Read http header

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xd0
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rcx, qword [rcx + 0x10]
mov rbx, rdx
test rcx, rcx
je 0x1400f315a
test rdx, rdx
je 0x1400f315a
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 0x1400f315a
lea rcx, [rsp + 0x40]
call fcn.140277a3c
mov dword [rbx], eax
mov al, 1
jmp 0x1400f315c
xor al, al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140269300
add rsp, 0xd0
pop rbx
ret
Function at 0x1400f3180
Capabilities:
Read http header

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x1400f31f6
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x100
call fcn.14026c200
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 0x1400f31f6
lea rcx, [rsp + 0x40]
call fcn.140277a3c
jmp 0x1400f31f8
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140269300
add rsp, 0x150
pop rbx
ret

Function at 0x1400f3220
Capabilities:
Receive http response

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x1400f3234
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 0x1400f3250
Capabilities:
Receive http response

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x1400f3264
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