joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14020f8c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov rax, qword [rcx + 8]
xor r14d, r14d
mov esi, r14d
mov ebp, r14d
mov rdi, rcx
nop word [rax + rax]
lea ecx, [rax + 0xff]
shl esi, cl
add esi, esi
nop word [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x14020f964
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x14020f920
mov ecx, dword [r10]
jmp 0x14020fa47
cmp ecx, 0x4e0
jb 0x14020fa47
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14020f980
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14020f9d0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r14d
mov dword [r10], r14d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [rdi + 0x10]
ja 0x14020f900
mov rax, qword [rdi + 8]
or esi, ecx
add rbp, rax
cmp rbp, 0x20
jb 0x14020f8f0
mov rbx, qword [rsp + 0x10]
mov eax, esi
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x28]
pop r14
ret
Function at 0x140213090
Capabilities:
Create directory
Get common file path

Disassembly:
push r14
sub rsp, 0x250
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp byte [rcx], 0
mov r14, rcx
jne 0x1402132dc
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 0x1402132d4
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 0x140213118
add rax, 2
sub rcx, 1
jne 0x140213108
xor ebp, ebp
mov edi, 0x7ffffffe
test rcx, rcx
je 0x14021317f
mov rax, rbx
mov rdx, rbx
sub rax, rcx
test rcx, rcx
cmove rax, rbp
lea rcx, [rsi + rax*2]
sub rdx, rax
je 0x140213171
lea r9, str.McAfee_
mov eax, edi
sub r9, rcx
nop dword [rax]
test rax, rax
je 0x140213171
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x140213171
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x140213150
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bp
mov dl, 1
mov rcx, rsi
call fcn.14021c290
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1402131a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14021324b
lea r8, [r14 + 0x10]
mov rdx, rbx
mov rcx, rsi
call fcn.14003b8b0
mov dl, 1
mov rcx, rsi
call fcn.14021c290
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1402131de
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14021324b
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.1402b60e0
mov rcx, qword [r14 + 8]
lea rdx, [rsp + 0x20]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140213250
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.14003b8b0
mov dl, 1
mov rcx, rsi
call fcn.14021c290
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140213250
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140213250
mov word [rsi], bp
jmp 0x1402132bc
mov rcx, rbx
mov rax, rsi
cmp word [rax], bp
je 0x140213265
add rax, 2
sub rcx, 1
jne 0x140213256
test rcx, rcx
je 0x1402132bc
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, rbp
lea rcx, [rsi + rax*2]
sub rbx, rax
je 0x1402132ae
lea rdx, str.log.txt
sub rdx, rcx
nop word [rax + rax]
test rdi, rdi
je 0x1402132ae
movzx eax, word [rdx + rcx]
test ax, ax
je 0x1402132ae
mov word [rcx], ax
dec rdi
add rcx, 2
sub rbx, 1
jne 0x140213290
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.140296f70
add rsp, 0x250
pop r14
ret
Function at 0x14021b490
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 [0x1403ceac0]
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, [case.0x1400bf494.25]
call fcn.14002b770
lea rdx, [case.0x1400bf494.25]
mov rcx, rdi
call fcn.14002b770
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14021b59c
test al, 0x10
je 0x14021b59c
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.14021a2d0
test al, al
jne 0x14021b5c8
inc ebx
cmp ebx, 2
jl 0x14021b580
jmp 0x14021b5c6
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:BT0a209782_47a3_49ff_a189_59d4c06152f0WebAdvisor_XmlUpdater_srcXmlUpdaterHttpsDownloadFile.cpp
mov ecx, 1
call fcn.140213350
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140296f70
add rsp, 0x98
pop rdi
pop rbx
ret
Function at 0x14021c1d0
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1403ceac0]
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 0x14021c272
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14021c272
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.1402b60e0
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.1402c7a30
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.1402b5254
test rax, rax
je 0x14021c244
xor ecx, ecx
mov word [rax], cx
lea rcx, [rsp + 0x20]
call fcn.14021c1d0
test al, al
jne 0x14021c256
xor al, al
jmp 0x14021c274
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14021c272
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14021c252
mov al, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140296f70
add rsp, 0x240
pop rbx
ret

Function at 0x14021c290
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 [0x1403ceac0]
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 0x14021c2f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
xor ecx, ecx
cmp eax, ebx
setbe cl
mov eax, ecx
jmp 0x14021c3c5
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]
call qword [vtable.std::_Func_impl_no_alloc_class__lambda_b41b04a0a7a7f7312e941055e7b10b38___void___.0]
mov rcx, rax
mov qword [rbp - 0x48], rax
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x14021c368
mov rax, qword [r8]
lea rcx, [rsp + 0x28]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x48]
test dword [rbp - 0x40], 0x400
je 0x14021c39e
mov eax, dword [rbp - 0x1c]
cmp eax, 0xa0000003
je 0x14021c382
cmp eax, 0xa000000c
jne 0x14021c39e
mov rcx, rdi
test sil, sil
je 0x14021c392
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14021c398
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbp - 0x48]
mov ebx, eax
test rcx, rcx
je 0x14021c3c3
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14021c3c3
mov rax, qword [rcx]
lea rdx, [rbp - 0x80]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
mov eax, ebx
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140296f70
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 0x1402289e0
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r14, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
add rcx, 0x10
call fcn.140228b40
nop
mov dword [rsp + 0x38], 0x208
xor ebp, ebp
mov dword [rsp + 0x3c], 0x6610
mov rdx, qword [rbx]
mov rax, qword [rbx + 8]
sub rax, rdx
mov dword [rsp + 0x40], eax
je 0x140228a4b
mov r8, rax
lea rcx, [rsp + 0x44]
call fcn.1402b53e0
mov eax, dword [rsp + 0x40]
lea r8d, [rax + 0xc]
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebp
xor r9d, r9d
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140228aef
xor r9d, r9d
mov r8, qword [r14]
lea edx, [r9 + 1]
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140228aaa
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140296f70
add rsp, 0xd0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ebx, eax
lea rdx, [0x14032abd0]
lea rcx, [rsp + 0x68]
call fcn.14002b3a0
nop
mov r8d, ebx
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x88]
call fcn.140228c90
lea rdx, [0x1403c5d28]
lea rcx, [rsp + 0x88]
call fcn.1402b5304
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, [0x14032abb0]
lea rcx, [rsp + 0x68]
call fcn.14002b3a0
nop
mov r8d, ebx
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x88]
call fcn.140228c90
lea rdx, [0x1403c5d28]
lea rcx, [rsp + 0x88]
call fcn.1402b5304
int3

Function at 0x140228b40
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rcx
mov qword [rcx], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140228baf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x140228bcb
mov dword [rsp + 0x20], 0xf0000008
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140228c09
mov rax, rbx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140296f70
add rsp, 0x90
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x30]
call fcn.14002b3a0
nop
mov r8d, ebx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140228c90
lea rdx, [0x1403c5d28]
lea rcx, [rsp + 0x50]
call fcn.1402b5304
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x30]
call fcn.14002b3a0
nop
mov r8d, ebx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140228c90
lea rdx, [0x1403c5d28]
lea rcx, [rsp + 0x50]
call fcn.1402b5304
int3
Function at 0x140229280
Capabilities:
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
mov qword [rcx], 0
add rcx, 8
call fcn.140228b40
nop
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1402292fa
mov rax, rdi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140296f70
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ebx, eax
lea rdx, [0x14032ac18]
lea rcx, [rsp + 0x38]
call fcn.14002b3a0
nop
mov r8d, ebx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.140228c90
lea rdx, [0x1403c5d28]
lea rcx, [rsp + 0x58]
call fcn.1402b5304
int3

Function at 0x1402293f0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0xc0
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x44], 0
mov rsi, qword [r8 + 8]
sub rsi, qword [r8]
and esi, 0xfffffff0
add esi, 0x10
mov byte [rsp + 0x40], 0
mov edx, esi
lea r9, [rsp + 0x41]
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.140228900
mov dword [rsp + 0x44], 1
mov rax, qword [rdi + 8]
mov rdx, qword [rdi]
mov r8, rax
sub r8, rdx
je 0x140229474
mov rcx, qword [rbx]
call fcn.1402b53e0
mov rax, qword [rdi + 8]
mov rdx, qword [rdi]
sub rax, rdx
mov dword [rsp + 0x48], eax
mov rdx, qword [rbx]
mov rax, qword [r14]
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x1402294d2
mov rax, rbx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140296f70
mov rbx, qword [rsp + 0xf8]
add rsp, 0xc0
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, [0x14032abf8]
lea rcx, [rsp + 0x58]
call fcn.14002b3a0
nop
mov r8d, ebx
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.140228c90
lea rdx, [0x1403c5d28]
lea rcx, [rsp + 0x78]
call fcn.1402b5304
int3
Function at 0x14022a320
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [r8 + 0x18], 8
mov rbx, rdx
jb 0x14022a333
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 + 0x10], rax
mov word [rbx], ax
inc r8
cmp word [rdx + r8*2], ax
jne 0x14022a365
mov rcx, rbx
call fcn.14002b640
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1402394a0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [rcx + 8]
xor ebp, ebp
test rbx, rbx
je 0x140239543
cmp qword [rbx], rbp
je 0x140239535
lea rcx, [0x14035cb50]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140239572
lea rdx, str.CreateFileTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14023953a
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 rax
jmp 0x14023956c
cmp dword [rbx + 8], ebp
jne 0x140239543
mov rax, 0xffffffffffffffff
jmp 0x14023956c
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 0x140239579
call fcn.140238830
jmp 0x14023957e
mov qword [rdi], rax
mov eax, ebp
test eax, eax
jns 0x1402395bc
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, getprotobynumber
lea r8, str.XMLUpdater::v2::CFileMemMap::Init
lea rdx, str.E:BT0a209782_47a3_49ff_a189_59d4c06152f0WebAdvisor_XmlUpdater_srcXmlUpdaterFileMemMap.h
lea ecx, [r9 - 0x31]
call fcn.140213350
xor al, al
jmp 0x140239686
mov rbx, qword [rdi]
lea rdx, [rsp + 0x54]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x50], eax
mov r9, qword [rsp + 0x50]
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 0x140239607
call fcn.140238830
mov ebx, eax
jmp 0x140239653
mov rax, qword [rsp + 0x50]
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 0x140239684
call fcn.140238830
mov ebx, eax
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x20], rbp
test ebx, ebx
jns 0x140239684
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:BT0a209782_47a3_49ff_a189_59d4c06152f0WebAdvisor_XmlUpdater_srcXmlUpdaterFileMemMap.h
lea ecx, [r9 - 0x37]
call fcn.140213350
xor al, al
jmp 0x140239686
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140296f70
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140239790
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1403ceac0]
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 0x140239806
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:BT0a209782_47a3_49ff_a189_59d4c06152f0WebAdvisor_XmlUpdater_srcXmlUpdaterCabParser.h
mov qword [rsp + 0x20], rax
lea ecx, [r9 - 0x5c]
call fcn.140213350
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140296f70
add rsp, 0x48
ret
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140296f70
add rsp, 0x48
ret
Function at 0x14023c730
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 0x14023d690
Capabilities:
Set http header

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

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

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

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xd0
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rcx, qword [rcx + 0x10]
mov rbx, rdx
test rcx, rcx
je 0x14023da1a
test rdx, rdx
je 0x14023da1a
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 0x14023da1a
lea rcx, [rsp + 0x40]
call fcn.1402c9a8c
mov dword [rbx], eax
mov al, 1
jmp 0x14023da1c
xor al, al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140296f70
add rsp, 0xd0
pop rbx
ret
Function at 0x14023da40
Capabilities:
Read http header

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x14023dab6
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x100
call fcn.1402b60e0
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 0x14023dab6
lea rcx, [rsp + 0x40]
call fcn.1402c9a8c
jmp 0x14023dab8
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140296f70
add rsp, 0x150
pop rbx
ret

Function at 0x14023dae0
Capabilities:
Receive http response

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

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x14023db24
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 0x14023dc60
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r9, rdx
mov byte [rsp + 0x20], cl
mov edx, 1
lea rcx, [rsp + 0x20]
mov r8d, edx
call fcn.1402cc658
cmp rax, 1
sete al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140296f70
add rsp, 0x38
ret