joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001100
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.14000a544
test rax, rax
je 0x140001334
mov rbx, rax
movzx eax, word [r14 + rax*2 - 2]
cmp eax, 0x5c
je 0x14000132c
cmp eax, 0x2f
je 0x14000132c
mov rax, rbx
add rax, 2
lea r15, [rbx + rbx + 4]
mov rcx, 0xffffffffffffffff
cmovns rcx, r15
call fcn.14000a484
mov rdi, rax
xor r12d, r12d
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.14000baa0
lea r8, [rbx + 1]
mov rcx, rdi
mov rdx, r14
call fcn.14000a494
mov rcx, rdi
call fcn.14000a4dc
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
mov qword [rcx], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140001338
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edx, 0x8003
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14000136b
add ebx, ebx
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
mov r8d, ebx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14000136b
lea r9, [rsp + 0x34]
mov dword [r9], 4
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14000136b
lea r14, [rsp + 0x30]
mov r15d, dword [r14]
mov rcx, r15
call fcn.14000a484
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.14000baa0
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x20], 0
mov edx, 2
mov r8, rbx
mov r9, r14
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14000136b
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001295
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400012a7
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rdi
call fcn.14000a48c
lea rdx, str.SOFTWAREMozillaMaintenanceService_
mov r8d, 0x104
mov rcx, rsi
call fcn.14000a494
mov ebp, 1
cmp dword [rsp + 0x30], 0
je 0x140001303
add rsi, 0x48
xor r14d, r14d
lea rdi, str._.2x
mov r15, qword [sym.imp.USER32.dll_wsprintfW]
movzx r8d, byte [rbx + r14]
mov rcx, rsi
mov rdx, rdi
call r15
add rsi, 4
inc r14
mov eax, dword [rsp + 0x30]
cmp r14, rax
jb 0x1400012e5
mov rdi, rbx
mov rcx, rdi
call fcn.14000a48c
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140018440
mov eax, ebp
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
dec rbx
jmp 0x14000114c
xor ebp, ebp
jmp 0x14000130e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x14000136b
mov dword [rsp + 0x20], 0xf0000008
lea rcx, [rsp + 0x40]
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1400011c8
xor ebp, ebp
jmp 0x140001306
Function at 0x140005030
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov r15, rcx
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
mov ecx, eax
call fcn.14000a484
mov rsi, rax
mov rcx, r15
xor edx, edx
mov r8d, ebp
mov r9, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1400050cb
lea r8, [rsp + 0x28]
mov qword [r8], rsi
lea rdx, [0x14002fada]
lea r9, [rsp + 0x24]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400050fb
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x28]
movzx edx, word [rcx + 0xa]
mov dword [r14], edx
movzx edx, word [rcx + 8]
mov dword [rbx], edx
movzx edx, word [rcx + 0xe]
mov dword [rdi], edx
movzx ecx, word [rcx + 0xc]
mov dword [rax], ecx
mov edi, 1
jmp 0x140005133
mov eax, dword [0x140038330]
mov ecx, dword [0x140036d60]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005157
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_obtain_file_info_of_old_service.____lu_
jmp 0x140005129
mov eax, dword [0x140038330]
mov ecx, dword [0x140036d60]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005194
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_query_file_version_info_of_old_service.____lu_
mov r8d, eax
call fcn.140009d30
xor edi, edi
mov rcx, rsi
call fcn.14000a48c
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140018440
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x140038330]
call fcn.14000a740
cmp dword [0x140038330], 0xffffffff
jne 0x1400050ec
mov qword [0x140038120], 0
lea rcx, [fcn.140001f60]
call fcn.14000a8d8
lea rcx, [0x140038330]
call fcn.14000a7a8
jmp 0x1400050ec
lea rcx, [0x140038330]
call fcn.14000a740
cmp dword [0x140038330], 0xffffffff
jne 0x14000511c
mov qword [0x140038120], 0
lea rcx, [fcn.140001f60]
call fcn.14000a8d8
lea rcx, [0x140038330]
call fcn.14000a7a8
jmp 0x14000511c
Function at 0x140005e20
Capabilities:
Check if file exists
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp word [rcx], 0
je 0x140005ee1
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140005e9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140005e9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005e9c
mov eax, dword [0x140038330]
mov ecx, dword [0x140036d60]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005f6d
lea rdx, str.Could_not_delete_service_updater_path:__ls.
mov r8, rsi
call fcn.140009d30
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
xor edx, edx
call fcn.14000baa0
mov rcx, rsi
call fcn.14000a544
cmp rax, 0x104
ja 0x140005ee1
lea rdi, [rsp + 0x20]
mov r8d, 0x105
mov rcx, rdi
mov rdx, rsi
call fcn.14000a494
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x140005efc
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140018440
nop
add rsp, 0x238
pop rdi
pop rsi
ret
lea rdx, str.updater.ini
lea rcx, [rsp + 0x20]
call int.140025c90
test eax, eax
je 0x140005ee1
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140005ee1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140005ee1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005ee1
mov eax, dword [0x140038330]
mov ecx, dword [0x140036d60]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005fae
lea rdx, str.Could_not_delete_service_updater_INI_path:__ls.
lea r8, [rsp + 0x20]
call fcn.140009d30
jmp 0x140005ee1
lea rcx, [0x140038330]
call fcn.14000a740
cmp dword [0x140038330], 0xffffffff
jne 0x140005e8d
mov qword [0x140038120], 0
lea rcx, [fcn.140001f60]
call fcn.14000a8d8
lea rcx, [0x140038330]
call fcn.14000a7a8
jmp 0x140005e8d
lea rcx, [0x140038330]
call fcn.14000a740
cmp dword [0x140038330], 0xffffffff
jne 0x140005f57
mov qword [0x140038120], 0
lea rcx, [fcn.140001f60]
call fcn.14000a8d8
lea rcx, [0x140038330]
call fcn.14000a7a8
jmp 0x140005f57
Function at 0x140009d30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x140038120], 0
je 0x140009dca
mov rsi, rdx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov r9, qword [0x140038120]
lea rcx, str._Warning:
mov edx, 0xd
mov r8d, 1
call fcn.140013208
mov rbx, qword [rsp + 0x30]
mov rdi, qword [0x140038120]
call fcn.140001080
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov r8, rsi
xor r9d, r9d
call fcn.14000c42c
mov r9, qword [0x140038120]
lea rcx, str._n
mov edx, 4
mov r8d, 1
call fcn.140013208
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140018440
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x14000a170
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x140027010]
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x14000a1c6
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.14000a544
cmp rax, 0x105
jb 0x14000a1dd
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140018440
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.14000a494
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call int.140025c90
test eax, eax
je 0x14000a1c6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000a22a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000a1c6
lea rdx, str.UpdateLogs
mov rcx, rdi
call int.140025c90
test eax, eax
je 0x14000a1c6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000a25f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000a1c6
mov esi, 1
jmp 0x14000a1c6

Function at 0x14000a330
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x468
mov esi, edx
mov rbx, rcx
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor edi, edi
lea r14, [rsp + 0x40]
mov r8d, 0x20a
mov rcx, r14
xor edx, edx
call fcn.14000baa0
mov rcx, r14
call fcn.14000a170
test eax, eax
je 0x14000a3a6
xor edi, edi
lea r14, [rsp + 0x250]
mov r8d, 0x20a
mov rcx, r14
xor edx, edx
call fcn.14000baa0
lea rdx, str..status
mov rcx, rbx
mov r8, r14
call fcn.14000a270
test eax, eax
jne 0x14000a3c5
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140018440
mov eax, edi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x250]
call int.140025c90
test eax, eax
je 0x14000a3a6
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor edi, edi
lea rcx, [rsp + 0x40]
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14000a3a6
mov rbx, rax
lea rdi, [rsp + 0x250]
mov rcx, rdi
mov r8d, esi
call fcn.140025c20
mov rcx, rdi
call fcn.140013b50
mov rsi, rax
mov qword [rsp + 0x20], 0
lea r14, [rsp + 0x3c]
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
setne al
cmp dword [r14], esi
sete cl
and cl, al
movzx edi, cl
jmp 0x14000a3a6
Function at 0x14000f7ac
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000f8dc
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000f943
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f943
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f943
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f943
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f943
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f943
cmp dword [rcx + 0xf8], 0
je 0x14000f943
mov ecx, ebx
call fcn.14000f828
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000fa5c
cmp dword [rbp + 0x20], 0
je 0x14000f990
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f884
int3

Function at 0x140012220
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140012240
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400103e0
or eax, 0xffffffff
jmp 0x140012242
xor eax, eax
add rsp, 0x28
ret
Function at 0x140025870
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdx, [0x14002fa7c]
call fcn.140012148
test rax, rax
je 0x1400258e7
mov rsi, rax
mov rcx, rax
xor edx, edx
mov r8d, 2
call fcn.140012afc
mov ebp, 6
test eax, eax
je 0x1400258ee
mov rcx, rsi
call fcn.140012248
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140018440
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, 6
jmp 0x1400258c7
mov rcx, rsi
call fcn.140012d0c
test eax, eax
jle 0x1400258bf
mov r14d, eax
lea rcx, [r14 + 1]
call fcn.14000a484
mov rbx, rax
mov rcx, rsi
xor edx, edx
xor r8d, r8d
call fcn.140012afc
mov ebp, 6
test eax, eax
je 0x140025929
mov rcx, rbx
call fcn.14000a48c
jmp 0x1400258bf
mov edx, 1
mov rcx, rbx
mov r8, r14
mov r9, rsi
call fcn.140012868
cmp rax, r14
jne 0x14002591f
mov byte [rbx + r14], 0
lea r14, [rsp + 0x38]
mov qword [r14], rbx
lea r15, [0x14002ce96]
lea r12, [rsp + 0x30]
xor r13d, r13d
mov dword [rsp + 0x24], 0
mov rcx, r15
mov rdx, r14
call fcn.140025ad0
test rax, rax
je 0x1400259eb
mov rbp, rax
movzx eax, byte [rax]
cmp eax, 0x23
je 0x140025965
cmp eax, 0x3b
je 0x140025965
jmp 0x14002598a
mov al, byte [rbp]
inc rbp
cmp al, 9
je 0x140025987
movzx ecx, al
cmp ecx, 0x20
je 0x140025987
mov dword [rsp + 0x20], r13d
mov r13, r15
mov r15, r12
lea r12, [rbp - 1]
mov qword [rsp + 0x30], r12
test al, al
je 0x1400259db
cmp ecx, 0x5b
jne 0x1400259d4
mov qword [rsp + 0x30], rbp
lea rcx, [0x14002ce9c]
mov r12, r15
mov rdx, r15
call fcn.140025ad0
test rax, rax
jne 0x140025a06
jmp 0x1400259fc
test byte [rsp + 0x24], 1
jne 0x140025a3b
mov r12, r15
mov r15, r13
mov r13d, dword [rsp + 0x20]
jmp 0x140025965
xor eax, eax
cmp r13d, 1
setne al
lea ebp, [rax + rax*4]
jmp 0x14002591f
mov dword [rsp + 0x24], 0
jmp 0x1400259de
lea rcx, [0x14002ce99]
mov rdx, r12
call fcn.140025ad0
test rax, rax
mov r15, r13
jne 0x140025aba
mov rcx, rbp
lea rdx, str.Strings
call fcn.140013550
test eax, eax
sete al
mov dword [rsp + 0x24], eax
jmp 0x1400259e1
lea rcx, [0x14002ce9e]
mov rdx, r15
call fcn.140025ad0
test rax, rax
je 0x1400259db
mov rcx, r12
call fcn.140025b60
test eax, eax
jne 0x1400259db
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x28], rcx
call fcn.140013b50
lea rbp, [rax + 1]
mov rcx, rbp
call fcn.14000a484
mov r12, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call fcn.14000baa0
mov rcx, qword [rdi]
mov qword [rdi], r12
test rcx, rcx
je 0x140025a99
call fcn.14000a48c
mov r12, qword [rdi]
mov rcx, r12
mov rdx, qword [rsp + 0x28]
call fcn.140013670
mov eax, dword [rsp + 0x20]
inc eax
mov r12, r15
mov r15, r13
mov r13d, eax
jmp 0x140025965
mov dword [rsp + 0x24], 0
jmp 0x1400259e1
Function at 0x140011ed8
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
mov eax, 0x1050
call fcn.1400205f0
sub rsp, rax
mov rax, qword [0x1400363c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
call fcn.140012d88
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x1000
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rcx, qword [rdi + 0x18]
xor r9d, r9d
and dword [rsp + 0x20], ebx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rdi + 0x78], rax
mov r14d, 0x80070000
test rax, rax
jne 0x140011f67
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
mov ebx, 0x80004005
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovs ebx, ecx
test ebx, ebx
js 0x140012065
mov rcx, qword [rdi + 0x78]
mov edx, 0x2710
mov r9d, edx
mov dword [rsp + 0x20], edx
mov r8d, edx
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x140011f9f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
mov ebx, 0x80004005
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovs ebx, ecx
test ebx, ebx
js 0x140012065
mov rcx, qword [rdi + 0x78]
mov r8d, 0x1bb
xor r9d, r9d
mov rdx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rdi + 0x80], rax
test rax, rax
jne 0x140011fe4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
mov ebx, 0x80004005
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovs ebx, ecx
test ebx, ebx
js 0x140012065
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14001208c
lea r8, [rsp + 0x40]
xor ecx, ecx
lea rdx, str.The_following_query_string_will_be_used:__s
mov ebx, eax
call fcn.14000dff8
test ebx, ebx
js 0x140012065
mov rcx, qword [rdi + 0x80]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x30], 0x800000
lea rdx, [0x140027258]
and qword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rdi + 0x88], rax
test rax, rax
jne 0x140012065
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
mov ebx, 0x80004005
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovs ebx, ecx
mov eax, ebx
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001f340
mov rbx, qword [rsp + 0x1080]
add rsp, 0x1050
pop r14
pop rdi
pop rsi
ret
Function at 0x140017c08
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
and qword [rsp + 0x30], 0
mov rsi, rdx
cmp qword [rcx + 0x18], 8
mov rbx, rcx
mov rdx, rcx
jb 0x140017c30
mov rdx, qword [rcx]
lea rax, [rsp + 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
cmp qword [rsi + 0x18], 8
mov rdx, rsi
mov edi, eax
jb 0x140017c5f
mov rdx, qword [rsi]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test edi, edi
jne 0x140017c89
test eax, eax
jne 0x140017c89
mov dil, 1
jmp 0x140017c8c
xor dil, dil
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x140017c99
mov r8, qword [rbx]
lea rax, str.exists
test dil, dil
lea r9, str.does_not_exist
cmovne r9, rax
lea rdx, str._s_registry_key__s
xor ecx, ecx
call fcn.14000dff8
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140017ccc
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, rbx
call fcn.140009aa4
mov rcx, rsi
call fcn.140009aa4
mov rbx, qword [rsp + 0x60]
mov al, dil
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x140017cf0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x30
and qword [rsp + 0x40], 0
mov rdi, rdx
cmp qword [rcx + 0x18], 8
jb 0x140017d12
mov rcx, qword [rcx]
lea rax, [rsp + 0x40]
mov rdx, rcx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x140017d4b
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x140017d95
cmp qword [rdi + 0x18], 8
jb 0x140017d55
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], r9d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x140017d83
xor ebx, ebx
jmp 0x140017d9c
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
je 0x140017d9c
mov ecx, ebx
call fcn.14000e70c
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140017dac
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, ebx
call fcn.14000e728
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140017dc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
mov rdi, r9
mov dword [rax + 8], 4
lea rax, [rax - 0x18]
mov rsi, r8
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x140017e1b
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x140017e58
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140017e46
xor ebx, ebx
jmp 0x140017e5f
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
je 0x140017e5f
mov ecx, ebx
call fcn.14000e70c
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140017e6f
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, ebx
call fcn.14000e728
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14001950c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1400363c0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, 0x105
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetModuleFileNameW]
test eax, eax
je 0x140019613
mov edx, 0x105
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
mov edi, eax
test eax, eax
jns 0x140019594
mov edx, 0x20d
mov rcx, qword [rsp + 0x248]
lea r8, str.onecoreenduserupgradeenablers_shellhelpers_servicehelpers.cpp
mov r9d, edi
call fcn.140006f80
mov eax, edi
jmp 0x140019618
lea r9, str.cuassistant.dll
mov edx, 0x105
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombine]
mov edi, eax
test eax, eax
jns 0x1400195bd
mov edx, 0x20e
jmp 0x140019576
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
test eax, eax
je 0x1400195f8
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140009b18
cmp qword [rbx + 0x18], 8
jb 0x1400195e3
mov rbx, qword [rbx]
mov r8, rbx
lea rdx, str.Found_existing_DLL:__s
xor ecx, ecx
call fcn.14000dff8
xor eax, eax
jmp 0x140019618
cmp qword [rbx + 0x18], 8
jb 0x140019602
mov rbx, qword [rbx]
mov r8, rbx
lea rdx, str.Cound_not_find_DLL:__s
xor ecx, ecx
call fcn.14000dff8
mov eax, 2
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001f340
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret