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

Disassembly:
push r14
sub rsp, 0x250
mov rax, qword [0x140214ba0]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp byte [rcx], 0
mov r14, rcx
jne 0x1400f2d8d
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 0x1400f2d85
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 0x1400f2bf8
add rax, 2
sub rcx, 1
jne 0x1400f2be8
xor ebp, ebp
mov rax, rbx
sub rax, rcx
mov edi, 0x7ffffffe
test rcx, rcx
cmove rax, rbp
je 0x1400f2c55
mov rdx, rbx
lea rcx, [rsi + rax*2]
sub rdx, rax
je 0x1400f2c47
lea r9, str.McAfee_
mov eax, edi
sub r9, rcx
test rax, rax
je 0x1400f2c47
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x1400f2c47
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x1400f2c26
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bp
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400f2c75
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400f2d03
lea r8, [r14 + 0x10]
mov rdx, rbx
mov rcx, rsi
call fcn.1400f2ab0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400f2ca0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400f2d03
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140152110
mov rcx, qword [r14 + 8]
lea rdx, [rsp + 0x20]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400f2d08
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.1400f2ab0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400f2d08
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400f2d08
mov word [rsi], bp
jmp 0x1400f2d6d
mov rcx, rbx
mov rax, rsi
nop
cmp word [rax], bp
je 0x1400f2d1f
add rax, 2
sub rcx, 1
jne 0x1400f2d10
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, rbp
je 0x1400f2d6d
lea rcx, [rsi + rax*2]
sub rbx, rax
je 0x1400f2d5f
lea rdx, str.log.txt
sub rdx, rcx
test rdi, rdi
je 0x1400f2d5f
movzx eax, word [rdx + rcx]
test ax, ax
je 0x1400f2d5f
mov word [rcx], ax
dec rdi
add rcx, 2
sub rbx, 1
jne 0x1400f2d41
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.14014f8e0
add rsp, 0x250
pop r14
ret
Function at 0x1400f79a0
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 [0x140214ba0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, qword [rsp + 0xd8]
xor r8d, r8d
mov qword [rsp + 0x80], rdx
mov rcx, r9
lea rdx, [0x1401e63d8]
mov rbx, r9
call fcn.1400260f0
xor r8d, r8d
lea rdx, [0x1401e63d8]
mov rcx, rdi
call fcn.1400260f0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f7aac
test al, 0x10
je 0x1400f7aac
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
test ebx, ebx
lea rcx, [rsp + 0x30]
setne dl
call fcn.1400f6c90
test al, al
jne 0x1400f7ad8
inc ebx
cmp ebx, 2
jl 0x1400f7a90
jmp 0x1400f7ad6
lea rax, str.Destination_directory_does_not_exist
mov r9d, 0xc0
lea r8, str.NWebAdvisor::NHttp::NDownloadFile::StoreOnDisk
mov qword [rsp + 0x20], rax
lea rdx, str.c:jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterHttpsDownloadFile.cpp
mov ecx, 1
call fcn.1400ebbc0
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14014f8e0
add rsp, 0x98
pop rdi
pop rbx
ret
Function at 0x1400fcd60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x1400fcef4
mov r15, qword [rsp + 0x60]
lea r9d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x1400fcef4
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r9w, dx
jae 0x1400fcdfb
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x1400fcf1b
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x1400fce12
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x1400fce12
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x1400fce25
movzx r8d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x1400fce72
mov r8d, eax
cmp eax, 0x800
jae 0x1400fce3f
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x1400fce72
cmp eax, 0x10000
jae 0x1400fce59
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x1400fce72
shr r8d, 0x12
mov r10d, 3
movzx r11d, sil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r9d
cmp rdx, rcx
jl 0x1400fcef4
add qword [r14], 2
test sil, sil
jne 0x1400fce93
cmp r10d, 3
jae 0x1400fce9f
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
test r9d, r9d
je 0x1400fced1
lea r8d, [r10 + r10*2]
add r8d, r8d
nop dword [rax + rax]
sub r8d, 6
mov edx, eax
mov ecx, r8d
dec r9d
shr edx, cl
mov rcx, qword [rbx]
and dl, 0x3f
or dl, 0x80
mov byte [rcx], dl
inc qword [rbx]
test r9d, r9d
jg 0x1400fceb0
shr eax, 0xa
mov r9d, 1
test sil, sil
mov ecx, r9d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x1400fcdaf
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x1400fcf02
Function at 0x1400ff510
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140214ba0]
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 0x1400ff5b3
cmp qword [rbx], rbp
je 0x1400ff5a5
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ff5e2
lea rdx, str.CreateFileTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400ff5aa
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 0x1400ff5dc
cmp dword [rbx + 8], ebp
jne 0x1400ff5b3
mov rax, 0xffffffffffffffff
jmp 0x1400ff5dc
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 0x1400ff5e9
call fcn.1400429e0
jmp 0x1400ff5ee
mov qword [rdi], rax
mov eax, ebp
test eax, eax
jns 0x1400ff62c
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, 0x2d
lea r8, str.NWebAdvisor::CFileMemMap::Init
lea rdx, str.c:jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterFileMemMap.h
lea ecx, [r9 - 0x2c]
call fcn.1400ebbc0
xor al, al
jmp 0x1400ff6f6
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 0x1400ff677
call fcn.1400429e0
mov ebx, eax
jmp 0x1400ff6c3
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 0x1400ff6f4
call fcn.1400429e0
mov ebx, eax
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x20], rbp
test ebx, ebx
jns 0x1400ff6f4
lea rax, [0x1401cc4e8]
mov qword [rsp + 0x20], rax
mov r9d, 0x33
lea r8, str.NWebAdvisor::CFileMemMap::Init
lea rdx, str.c:jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterFileMemMap.h
lea ecx, [r9 - 0x32]
call fcn.1400ebbc0
xor al, al
jmp 0x1400ff6f6
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014f8e0
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400ff720
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140214ba0]
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 0x1400ff796
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov r9d, 0x57
lea r8, str.NWebAdvisor::CCabParser::Write
lea rax, str.WriteFile_failed:__d
lea rdx, str.c:jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterCabParser.h
mov qword [rsp + 0x20], rax
lea ecx, [r9 - 0x56]
call fcn.1400ebbc0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14014f8e0
add rsp, 0x48
ret
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14014f8e0
add rsp, 0x48
ret
Function at 0x14010d8a0
Capabilities:
Set http header

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

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

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

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xd0
mov rax, qword [0x140214ba0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rcx, qword [rcx + 0x10]
mov rbx, rdx
test rcx, rcx
je 0x14010dc2a
test rdx, rdx
je 0x14010dc2a
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 0x14010dc2a
lea rcx, [rsp + 0x40]
call fcn.140170050
mov dword [rbx], eax
mov al, 1
jmp 0x14010dc2c
xor al, al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14014f8e0
add rsp, 0xd0
pop rbx
ret

Function at 0x14010dc50
Capabilities:
Receive http response

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

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x14010dc94
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 0x14010e420
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r9
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x14010e590
test rbx, rbx
je 0x14010e590
mov rcx, rdx
call fcn.14010e5b0
cmp rbp, rax
jb 0x14010e590
xor edx, edx
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r9d, edx
cmp rsi, 2
jbe 0x14010e4f9
lea r8, [rdi + 2]
nop dword [rax]
movzx eax, byte [r8 - 2]
add rdx, 4
shr rax, 2
add r9, 3
movzx eax, byte [rax + r10]
mov byte [rbx], al
movzx ecx, byte [r8 - 2]
movzx eax, byte [r8 - 1]
and ecx, 3
shr rax, 4
shl rcx, 4
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [rbx + 1], al
movzx ecx, byte [r8 - 1]
movzx eax, byte [r8]
and ecx, 0xf
shr rax, 6
shl rcx, 2
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [rbx + 2], al
movzx eax, byte [r8]
add r8, 3
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [rbx + 3], al
mov rax, r8
sub rax, rdi
add rbx, 4
cmp rax, rsi
jb 0x14010e480
add rdi, r9
sub rsi, r9
test sil, 2
je 0x14010e554
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rbx], al
movzx ecx, byte [rdi]
movzx eax, byte [rdi + 1]
and ecx, 3
shr rax, 4
shl rcx, 4
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [rbx + 1], al
movzx eax, byte [rdi + 1]
and eax, 0xf
movzx eax, byte [r10 + rax*4]
mov byte [rbx + 2], al
mov byte [rbx + 3], 0x3d
add rbx, 4
add rdx, 4
mov byte [rbx], 0
lea rax, [rdx + 1]
jmp 0x14010e592
test sil, 1
je 0x14010e587
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rbx], al
movzx eax, byte [rdi]
and eax, 3
add rax, rax
movzx eax, byte [r10 + rax*8]
mov byte [rbx + 1], al
mov word [rbx + 2], 0x3d3d
add rbx, 4
add rdx, 4
mov byte [rbx], 0
lea rax, [rdx + 1]
jmp 0x14010e592
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14010e760
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140214ba0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov eax, r8d
mov edi, r8d
xor edi, 8
and al, 8
cmove edi, r8d
test rcx, rcx
jne 0x14010e799
xor eax, eax
jmp 0x14010e83f
xor ebp, ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401d25b0]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rbx
test eax, eax
jns 0x14010e7c8
mov edi, ebp
jmp 0x14010e82e
mov r9, rsi
mov r8, rbx
lea rdx, [0x1401d02a8]
lea rcx, [rsp + 0x30]
call fcn.14010e5f0
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r8d, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14010e81b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
call fcn.140020aa0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
test rbx, rbx
je 0x14010e83c
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14014f8e0
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
xor edx, edx
jmp 0x14010e760

Function at 0x14010e860
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140214ba0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov eax, r8d
mov edi, r8d
xor edi, 8
and al, 8
cmove edi, r8d
test rcx, rcx
jne 0x14010e799
xor eax, eax
jmp 0x14010e83f
xor ebp, ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401d25b0]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rbx
test eax, eax
jns 0x14010e7c8
mov edi, ebp
jmp 0x14010e82e
mov r9, rsi
mov r8, rbx
lea rdx, [0x1401d02a8]
lea rcx, [rsp + 0x30]
call fcn.14010e5f0
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r8d, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14010e81b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
call fcn.140020aa0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
test rbx, rbx
je 0x14010e83c
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14014f8e0
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
xor edx, edx
jmp 0x14010e760
Function at 0x140110050
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, rcx
mov rbp, r9
lea rcx, [rsp + 0x50]
mov rdi, r8
call fcn.14010ef40
mov rax, qword [rdi]
mov r9, rbp
mov rsi, qword [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [r14 + 8]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
cmp eax, 0xea
jne 0x1401100e6
mov rcx, qword [rdi]
call fcn.14014f900
mov qword [rdi], 0
lea rdx, [0x1401d367e]
mov ecx, dword [rsi]
call fcn.14014fc20
mov rdx, qword [rsp + 0x50]
mov r9, rbp
mov qword [rdi], rax
xor r8d, r8d
mov rcx, qword [r14 + 8]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov rdx, qword [rsp + 0x50]
mov eax, 0xffffffff
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140110107
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x140110170
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, r9
mov ebp, r8d
mov r12, rdx
mov r14, rcx
test r9, r9
je 0x1401102ca
mov edi, dword [rsp + 0x90]
cmp edi, 1
jb 0x1401102ca
xor eax, eax
mov dword [r11 + 0x20], eax
mov qword [r11 - 0x38], rax
cmp r8d, 1
jne 0x1401101d5
lea rax, [r11 + 0x20]
mov qword [r11 - 0x48], rax
lea r9, [r11 - 0x38]
mov r8d, edi
mov rdx, rsi
call fcn.14010f6e0
jmp 0x1401101f7
cmp ebp, 7
jne 0x14011020f
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, edi
mov rdx, rsi
call fcn.14010f4d0
mov edi, eax
test eax, eax
jne 0x1401102bc
mov rsi, qword [rsp + 0x30]
mov edi, dword [rsp + 0x88]
jmp 0x140110216
mov dword [rsp + 0x88], edi
lea r15d, [rdi + 0x20]
mov ecx, r15d
call fcn.14014ff50
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140110234
lea edi, [rax + 8]
jmp 0x1401102b3
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rbx
mov r9d, ebp
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call fcn.14010fbe0
mov edi, eax
test eax, eax
jne 0x1401102b3
mov rdx, r12
lea rcx, [rsp + 0x88]
call fcn.14010ef40
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rbx
lea r9d, [rdi + 3]
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, qword [r14 + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401102ae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.14014f900
nop
mov rcx, qword [rsp + 0x30]
call fcn.14014f900
mov eax, edi
jmp 0x1401102cf
mov eax, 0x57
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140110420
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140110446
xor eax, eax
cmp ax, word [rcx]
je 0x140110446
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140110446
test al, 0x10
je 0x140110446
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x140111110
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
call fcn.140023a30
mov rcx, rax
test rax, rax
je 0x1401112a5
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
xor ebp, ebp
mov edi, ebp
nop dword [rax + rax]
lea edx, [rdi + 1]
test edx, edx
js 0x14011129a
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x14011117b
lea rcx, [rsp + 0x48]
call fcn.14007edc0
mov rbx, qword [rsp + 0x48]
cmp dword [rbx - 8], 1
jle 0x140111193
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.14007ee80
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
mov ecx, dword [rbx - 0xc]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
je 0x14011121c
test rbx, rbx
jne 0x1401111ae
mov eax, ebp
jmp 0x1401111c2
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14016f570
test eax, eax
js 0x14011129a
cmp eax, dword [rbx - 0xc]
jg 0x14011129a
mov dword [rbx - 0x10], eax
mov eax, eax
mov word [rbx + rax*2], bp
cmp edi, dword [rbx - 0x10]
ja 0x140111150
lea rcx, [rbx - 0x18]
call fcn.140042290
add rax, 0x18
mov qword [rsi], rax
mov rdi, 0xffffffffffffffff
lock xadd dword [rbx - 8], edi
sub edi, 1
jg 0x14011120c
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + VariantCopy]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
call fcn.140023a30
nop
mov rcx, rax
test rax, rax
je 0x14011128f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
lea rdx, [0x1401e63d8]
mov rdi, 0xffffffffffffffff
cmp rdx, 0x10000
jae 0x14011125b
movzx edx, dx
mov rcx, rsi
call fcn.14007eb20
jmp 0x140111276
mov rax, rdi
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x140111260
mov r8d, eax
mov rcx, rsi
call fcn.14007eca0
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14011120c
mov rcx, qword [rdx]
mov rax, qword [rcx]
jmp 0x140111209
mov ecx, 0x80004005
call fcn.140026320
int3
mov ecx, 0x80070057
call fcn.140026320
nop
mov ecx, 0x80004005
call fcn.140026320
int3

Function at 0x1401145e0
Capabilities:
Delete registry key

Disassembly:
lea rax, vtable.CoreTech::internal::CRegKeyImpl.0
mov qword [rcx], rax
jmp fcn.140114600

Function at 0x140114600
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140114648
cmp byte [rbx + 0x14], 0
je 0x14011462d
lea rdx, [0x1401e63d8]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov rcx, qword [rbx + 8]
mov byte [rbx + 0x14], 0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbx + 8], 0
mov dword [rbx + 0x10], 0
add rsp, 0x20
pop rbx
ret
xor eax, eax
mov dword [rbx + 0x10], eax
add rsp, 0x20
pop rbx
ret