joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458f00
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x458faf
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x00459000]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00461b20
xorps xmm15, xmm15
mov r14, qword [0x005f9ad0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00461c60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.00458f00
Function at 0x463a40
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x403cc3
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.004097a0
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00461c60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x403ca0
cmp byte [0x005f988b], 0
je 0x463a55
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x460ca0
jmp 0x403ca0

Function at 0x463a60
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005f9ba0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005f988b], 0
je 0x463a95
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005f9e60]
aesenc xmm0, xmmword [0x005f9e70]
aesenc xmm0, xmmword [0x005f9e80]
movq rax, xmm0
ret
jmp 0x4099c0

Function at 0x463aa0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005f9ba0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005f988b], 0
je 0x463ad6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005f9e60]
aesenc xmm0, xmmword [0x005f9e70]
aesenc xmm0, xmmword [0x005f9e80]
movq rax, xmm0
ret
jmp 0x409a20

Function at 0x4657c0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x4657f4
mov rcx, 0x28
jmp 0x4657ff
shl rcx, 3
add rcx, 0x1480
mov qword [0x005f9ad0], rcx
pop rbp
ret
Function at 0x47f680
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47f74a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00403b80
xorps xmm15, xmm15
mov r14, qword [0x005f9ad0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47f72f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004c43c0]
xor ebx, ebx
mov rcx, rdx
call fcn.0044a060
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00480580
inc rbx
cmp rcx, rbx
jae 0x47f71e
mov edi, 1
lea rsi, [0x004c43c0]
call fcn.0044a140
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x00508c88]
lea rsi, [0x005084d0]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00461c60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0047f680
Function at 0x4a6ea0
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4a6eb7
inc rax
cmp rax, 4
jge 0x4a6ecf
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4a6eb4
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x4a6ee0
inc rax
cmp rax, 4
jge 0x4a6eee
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x4a6f17
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x4a6efb
jmp 0x4a6edd
Function at 0x1400088d0
Capabilities:
Shutdown system

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rdi
mov rdi, rcx
test rcx, rcx
je 0x1400088f6
mov byte [rcx], 0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov byte [rbp - 8], 0
lea rdx, str.MicrosoftWindowsCUAssistant
lea rcx, [rbp - 0x18]
call fcn.1400160e4
mov ebx, eax
test eax, eax
jns 0x14000891f
mov edx, 0x92
jmp 0x140008942
mov byte [rbp + 0x10], 0
lea r8, [rbp + 0x10]
lea rdx, str.CUAssistantReboot
lea rcx, [rbp - 0x18]
call fcn.1400163e8
mov ebx, eax
test eax, eax
jns 0x14000895a
mov edx, 0x95
lea r8, str.onecoreenduserupgradeenablersqualityupdateassistantqualauncher_reboottoast.cpp
mov r9d, eax
mov rcx, qword [rbp + 8]
call fcn.140006f80
jmp 0x140008a22
cmp byte [rbp + 0x10], 0
je 0x1400089d6
lea rcx, [rbp - 0x18]
call fcn.140017320
mov rcx, qword [rbp + 8]
test eax, eax
jns 0x140008985
mov r9d, eax
lea r8, str.onecoreenduserupgradeenablersqualityupdateassistantqualauncher_reboottoast.cpp
mov edx, 0x99
call fcn.140006fc8
lea rcx, [rbp - 0x18]
call fcn.14001654c
mov rcx, qword [rbp + 8]
test eax, eax
jns 0x1400089aa
mov r9d, eax
lea r8, str.onecoreenduserupgradeenablersqualityupdateassistantqualauncher_reboottoast.cpp
mov edx, 0x9c
call fcn.140006fc8
lea rdx, str.CUAssistantReboot
lea rcx, [rbp - 0x18]
call fcn.1400164d8
mov rcx, qword [rbp + 8]
test eax, eax
jns 0x1400089d6
mov r9d, eax
lea r8, str.onecoreenduserupgradeenablersqualityupdateassistantqualauncher_reboottoast.cpp
mov edx, 0x9d
call fcn.140006fc8
mov dword [rsp + 0x28], 0x80020002
mov ebx, 1
mov dword [rsp + 0x20], ebx
mov r9d, ebx
xor r8d, r8d
lea rdx, str.CUAssistant_Reboot
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_shutdown_l1_1_0.dll_InitiateSystemShutdownExW]
test eax, eax
jne 0x140008a19
mov rcx, qword [rbp + 8]
lea r8, str.onecoreenduserupgradeenablersqualityupdateassistantqualauncher_reboottoast.cpp
mov edx, 0xa1
call fcn.140006fb0
mov ebx, eax
jmp 0x140008a22
test rdi, rdi
je 0x140008a20
mov byte [rdi], bl
xor ebx, ebx
lea rcx, [rbp - 0x18]
call fcn.140016094
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
Function at 0x14001063c
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file version info

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x168]
sub rsp, 0x268
mov rax, qword [0x1400363c0]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rax, qword [rbp + 0x1d0]
mov r13, rcx
mov qword [rsp + 0x30], rdx
lea rcx, [rsp + 0x40]
mov r14d, 0x104
mov qword [rsp + 0x38], rax
xor esi, esi
mov edx, r14d
and qword [rsp + 0x20], rsi
mov r12, r9
mov r15, r8
xor edi, edi
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x1400107e4
lea r8, [0x140026e10]
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.140005ab0
mov ebx, eax
test eax, eax
js 0x1400107fc
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140010710
mov edx, r14d
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x140010755
lea r8, str._ntdll.dll
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.140005ab0
mov ebx, eax
test eax, eax
js 0x1400107fc
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r14d, eax
test eax, eax
je 0x140010755
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rsi, rax
test rax, rax
je 0x140010755
mov r8d, r14d
mov edx, 8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14001075f
mov ebx, 0x8007000e
jmp 0x1400107fc
mov ebx, 0x8000ffff
jmp 0x1400107fc
mov r9, rdi
lea rcx, [rsp + 0x40]
mov r8d, r14d
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1400107e4
lea r9, [rsp + 0x28]
mov rcx, rdi
lea r8, [rsp + 0x20]
lea rdx, [0x140025854]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
je 0x1400107e4
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
movzx eax, word [rcx + 0xa]
mov dword [r13], eax
movzx eax, word [rcx + 8]
mov dword [rdx], eax
movzx r8d, word [rcx + 0xe]
mov rax, qword [rsp + 0x38]
mov dword [rax], r8d
cmp r8d, 0x23f0
jae 0x1400107d7
mov eax, 0xcccccccd
mul r8d
shr edx, 3
lea eax, [rdx + rdx*4]
add eax, eax
sub r8d, eax
jmp 0x1400107da
xor r8d, r8d
mov dword [r15], r8d
and dword [r12], 0
jmp 0x1400107e9
mov ebx, 0x8000ffff
test rdi, rdi
je 0x1400107fc
mov r8, rdi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14001f510
add rsp, 0x268
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140011728
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov rsi, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
lea rdx, str.SoftwareMicrosoftOneSettingsOffline
mov r9d, 0xf003f
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov rcx, qword [rbp - 0x10]
test eax, eax
sete r15b
test rcx, rcx
je 0x14001177e
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rdx, qword [rsi + 0x20]
lea r8, str.RefreshAfter
mov rcx, qword [rsi + 0x70]
xor eax, eax
mov qword [rbp - 8], rax
xor r14d, r14d
lea rax, [rbp + 0x38]
mov dword [rbp + 0x38], 8
mov qword [rsp + 0x30], rax
xor edi, edi
lea rax, [rbp - 8]
mov qword [rsp + 0x28], rax
lea r9d, [r14 + 0x48]
and qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x1400117d2
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
cmp edi, 0x80070002
jne 0x1400117e0
xor edi, edi
xor ebx, ebx
jmp 0x14001182c
test edi, edi
js 0x14001180e
xor eax, eax
lea rcx, [rbp + 0x40]
mov qword [rbp + 0x40], rax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
mov eax, dword [rbp + 0x44]
mov dword [rbp + 0x4c], eax
mov eax, dword [rbp + 0x40]
mov dword [rbp + 0x48], eax
mov rax, qword [rbp - 8]
cmp qword [rbp + 0x48], rax
seta r14b
xor edi, edi
mov ebx, edi
test edi, edi
jns 0x140011822
lea rdx, str.OneSettings_IsTimeToRequery_failed
mov ecx, edi
call fcn.14000dde0
cmp r14d, 1
jne 0x1400118be
test r15b, r15b
jne 0x1400118be
lea rdx, str.OneSettings_requery_is_TRUE
mov ecx, edi
call fcn.14000dff8
test edi, edi
js 0x1400118c3
cmp qword [rsi + 0x78], 0
je 0x140011862
cmp qword [rsi + 0x80], 0
je 0x140011862
cmp qword [rsi + 0x88], 0
jne 0x14001187c
mov rdx, qword [rsi]
mov rcx, rsi
call fcn.140011ed8
mov ebx, eax
test eax, eax
jns 0x14001187c
lea rdx, str.OneSettings_OpenWebRequest_failed
jmp 0x140011895
mov rdx, qword [rsi]
mov rcx, rsi
call fcn.1400125f4
mov ebx, eax
cmp eax, 1
jbe 0x14001189e
lea rdx, str.OneSettings_GetCloudSettings_failed
mov ecx, eax
call fcn.14000dde0
jmp 0x1400118c3
mov rcx, rsi
call fcn.140012be4
mov ebx, eax
test eax, eax
jns 0x1400118c3
lea rdx, str.OneSettings_UpdateNextRefreshTime_failed
mov ecx, eax
call fcn.14000dde0
xor ebx, ebx
jmp 0x1400118c3
mov ebx, 1
mov rcx, rsi
call fcn.140013724
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011ed8
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
mov eax, 0x1050
call fcn.1400207b0
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.140012d94
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, [0x140027268]
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.14001f510
mov rbx, qword [rsp + 0x1080]
add rsp, 0x1050
pop r14
pop rdi
pop rsi
ret
Function at 0x140012488
Capabilities:
Receive http response

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r14
sub rsp, 0x48
mov qword [rax - 0x38], 0xfffffffffffffffe
xor ebx, ebx
and dword [rax + 0x18], ebx
lea edi, [rbx + 0xa]
mov eax, edi
dec edi
mov dword [rsp + 0x20], edi
test eax, eax
jle 0x1400125b1
mov r14, qword [rsp + 0x70]
lea rdx, [rsp + 0x80]
mov rcx, qword [r14 + 0x88]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1400124fd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov ebx, 0x80004005
test ecx, ecx
cmovs ebx, ecx
jmp 0x1400125b1
mov r8d, dword [rsp + 0x80]
mov ecx, ebx
test r8d, r8d
je 0x1400125a5
lea rdx, str.You_are_reading__d_bytes
call fcn.14000dff8
mov ecx, dword [rsp + 0x80]
inc ecx
lea rdx, [0x140036e60]
call fcn.140020588
mov rsi, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x140012545
mov ebx, 0x8007000e
jmp 0x1400125b1
lea r9, [rsp + 0x80]
mov r8d, dword [rsp + 0x80]
mov rdx, rsi
mov rcx, qword [r14 + 0x88]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400124da
mov eax, dword [rsp + 0x80]
mov byte [rax + rsi], 0
mov rdx, rsi
mov rcx, qword [rsp + 0x78]
call fcn.1400143dc
nop
jmp 0x140012598
mov rcx, rsi
call fcn.14001fbf0
jmp 0x1400124ac
lea rdx, str.You_have_completed_reading_as_dataSize_is_0
call fcn.14000dff8
test edi, edi
jne 0x1400125d5
cmp dword [rsp + 0x80], edi
jbe 0x1400125d5
mov ebx, 0x8000ffff
lea r8d, [rdi + 0xa]
lea rdx, str.You_exceeded_the_maximum_number_of_reads_of__d._Something_is_probably_wrong_creating_a_read_loop_or_data_in_OneSettings_too_large
mov ecx, ebx
call fcn.14000dff8
test ebx, ebx
je 0x1400125e7
lea rdx, str.An_error_occurrred_during_the_read_of_OneSettings_data
mov ecx, ebx
call fcn.14000dff8
mov eax, ebx
add rsp, 0x48
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140012a04
Capabilities:
Read http header

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
lea rax, [r11 + 8]
mov r15, r9
mov qword [r11 - 0x30], rbx
mov r13, r8
mov qword [r11 - 0x38], rax
mov r12, rdx
mov rsi, rcx
mov rcx, qword [rcx + 0x88]
lea edx, [rbx + 0x36]
xor r9d, r9d
xor r8d, r8d
mov edi, ebx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebp, 0x80070000
test eax, eax
jne 0x140012a80
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x7a
je 0x140012a80
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
mov edi, 0x80004005
or ecx, ebp
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovs edi, ecx
mov ecx, dword [rsp + 0x60]
lea rdx, [0x140036e60]
call fcn.140020588
mov r14, rax
mov eax, 0x8007000e
test r14, r14
cmove edi, eax
test edi, edi
js 0x140012aea
xor r8d, r8d
mov word [r14], bx
mov rcx, qword [rsi + 0x88]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
mov r9, r14
mov qword [rsp + 0x20], rax
lea edx, [r8 + 0x36]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x140012aea
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
mov edi, 0x80004005
or ecx, ebp
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovs edi, ecx
mov rdx, r14
mov rcx, r12
call fcn.1400105a0
mov rax, qword [r12]
or rbp, 0xffffffffffffffff
test rax, rax
jne 0x140012b06
mov esi, ebx
jmp 0x140012b27
mov rsi, rbp
inc rsi
cmp word [rax + rsi*2], bx
jne 0x140012b09
mov eax, esi
cmp rax, rsi
je 0x140012b27
mov ecx, 0x216
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
or esi, 0xffffffff
cmp qword [r15], rbx
je 0x140012b38
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov qword [r15], rbx
mov eax, esi
lea rcx, [rax + rax]
cmp rcx, rax
jbe 0x140012b67
mov esi, ecx
cmp rsi, rcx
jne 0x140012b67
mov ecx, esi
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemAlloc]
mov qword [r15], rax
test rax, rax
je 0x140012b67
mov r8d, esi
xor edx, edx
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
test edi, edi
js 0x140012bba
mov rax, qword [r12]
test rax, rax
je 0x140012b96
inc rbp
cmp word [rax + rbp*2], bx
jne 0x140012b74
mov eax, ebp
cmp rax, rbp
je 0x140012b94
mov ecx, 0x216
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
or ebx, 0xffffffff
jmp 0x140012b96
mov ebx, ebp
mov r9, qword [r15]
lea rdx, str._lu:_s
mov r8, r13
mov dword [rsp + 0x20], ebx
mov rcx, r14
call fcn.140020538
cmp eax, 1
mov ecx, 0x8000ffff
cmovle edi, ecx
mov rcx, r14
call fcn.14001fbf0
mov rbx, qword [rsp + 0x68]
mov eax, edi
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140012be4
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x50
mov rbx, rcx
xor eax, eax
lea rcx, [rbp + 0x30]
mov qword [rbp + 0x30], rax
xor edi, edi
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
and qword [rsp + 0x40], rdi
xor eax, eax
and qword [rbp + 0x38], rax
xor r9d, r9d
mov eax, dword [rbp + 0x34]
xor r8d, r8d
mov rdx, qword [rbx + 0x20]
mov dword [rbp + 0x2c], eax
mov eax, dword [rbp + 0x30]
mov dword [rbp + 0x28], eax
mov eax, dword [rbx + 0x90]
imul rcx, rax, 0x23c34600
lea rax, [rbp + 0x38]
add qword [rbp + 0x28], rcx
mov rcx, qword [rbx + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov ebx, 0x80070000
test eax, eax
je 0x140012c71
movzx edi, ax
or edi, ebx
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140012caa
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x28]
mov dword [rsp + 0x28], 8
lea rdx, str.RefreshAfter
mov r9d, 0xb
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x140012caa
movzx edi, ax
or edi, ebx
test eax, eax
cmovle edi, eax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140012cb9
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
add rsp, 0x50
pop rdi
pop rbx
pop rbp
ret

Function at 0x140012cc4
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
xor esi, esi
lea rax, [r11 + 8]
mov qword [r11 - 0x18], rsi
mov rdi, rdx
mov rdx, qword [rcx + 0x20]
xor r9d, r9d
mov rcx, qword [rcx + 0x70]
xor r8d, r8d
mov qword [r11 - 0x20], rax
mov ebx, esi
mov qword [r11 - 0x28], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
mov qword [r11 + 8], rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
je 0x140012d25
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012d6f
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], si
jne 0x140012d29
mov rcx, qword [rsp + 0x60]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.ETag
mov r9d, 1
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x140012d6f
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140012d7f
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret