joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f778
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor r11d, r11d
lea r8, [0x140000000]
mov r9, rdx
test rdx, rdx
jne 0x14000f7a9
mov r9, r8
not r9
mov rdx, r9
mov rcx, r8
call fcn.14000f4cc
test eax, eax
je 0x14000f9ad
mov edx, 0x40
call fcn.14000f4cc
test eax, eax
je 0x14000f9ad
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000f9ad
movsxd rax, dword [0x14000003c]
cmp rax, r9
jae 0x14000f9ad
lea rcx, [rax + r8]
mov edx, 0x108
call fcn.14000f4cc
test eax, eax
je 0x14000f9ad
cmp dword [rcx], 0x4550
jne 0x14000f9ad
movzx eax, word [rcx + 0x14]
cmp rax, r9
jae 0x14000f9ad
add rcx, 0x18
mov edx, 0x10b
cmp word [rcx], dx
jne 0x14000f852
cmp rax, 0x60
jb 0x14000f9ad
mov edx, 0xe0
call fcn.14000f4cc
test eax, eax
je 0x14000f9ad
mov eax, dword [rcx + 0x5c]
add rcx, 0x70
jmp 0x14000f883
mov edx, 0x20b
cmp word [rcx], dx
jne 0x14000f9ad
cmp rax, 0x70
jb 0x14000f9ad
mov edx, pe_nt_image_headers64
call fcn.14000f4cc
test eax, eax
je 0x14000f9ad
mov eax, dword [rcx + 0x6c]
sub rcx, 0xffffffffffffff80
cmp eax, 2
jbe 0x14000f9ad
mov eax, dword [rcx]
test rax, rax
je 0x14000f9ad
mov edx, dword [rcx + 4]
test rdx, rdx
je 0x14000f9ad
lea rdi, [rax + r8]
test rdi, rdi
je 0x14000f9ad
mov rcx, rdi
call fcn.14000f4cc
test eax, eax
je 0x14000f9ad
mov ebp, 0x10
cmp rdx, rbp
jb 0x14000f9ad
movzx ebx, word [rdi + 0xe]
test rbx, rbx
je 0x14000f9ad
movzx ecx, word [rdi + 0xc]
lea r14d, [rbp - 8]
add rcx, 2
mov rsi, r11
lea rcx, [rdi + rcx*8]
test rbx, rbx
je 0x14000f913
mov rdx, r14
call fcn.14000f4cc
test eax, eax
je 0x14000f9ad
cmp word [rcx], bp
je 0x14000f913
add rcx, r14
inc rsi
cmp rsi, rbx
jb 0x14000f8f3
cmp rsi, rbx
je 0x14000f9ad
mov ebx, dword [rcx + 4]
test ebx, ebx
jns 0x14000f995
mov esi, 0x7fffffff
mov rdx, rbp
and rbx, rsi
add rbx, rdi
mov rcx, rbx
call fcn.14000f4cc
test eax, eax
je 0x14000f9ad
cmp word [rbx + 0xe], r11w
jne 0x14000f94b
cmp word [rbx + 0xc], r11w
je 0x14000f9ad
lea rcx, [rbx + 0x10]
mov rdx, r14
call fcn.14000f4cc
test eax, eax
je 0x14000f9ad
mov ebx, dword [rcx + 4]
test ebx, ebx
jns 0x14000f995
and rbx, rsi
mov rdx, rbp
add rbx, rdi
mov rcx, rbx
call fcn.14000f4cc
test eax, eax
je 0x14000f9ad
cmp word [rbx + 0xe], r11w
jne 0x14000f985
cmp word [rbx + 0xc], r11w
je 0x14000f9ad
lea rcx, [rbx + 0x10]
mov rdx, r14
call fcn.14000f4cc
test eax, eax
je 0x14000f9ad
mov ecx, dword [rcx + 4]
mov rdx, rbp
add rcx, rdi
call fcn.14000f4cc
test eax, eax
je 0x14000f9ad
mov r11d, dword [rcx]
add r11, r8
mov rbx, qword [rsp + 0x30]
mov rax, r11
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000ff20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x270
mov rax, qword [0x140032370]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
lea rdx, [0x140022658]
add rcx, 8
call fcn.14000ed98
lea rcx, [rbx + 0x10]
lea rdx, str.UpgradeRemediation
call fcn.14000ed98
lea rcx, [rbx + 0x18]
lea rdx, str.RemediationShell
call fcn.14000ed98
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion_rempl_settings
lea rcx, [rbx + 0x20]
call fcn.14000ed98
mov rcx, rbx
mov qword [rbx + 0x70], 0xffffffff80000002
call fcn.140011d0c
xor r14d, r14d
mov edi, eax
test eax, eax
js 0x140010034
mov rcx, rbx
call fcn.140011b28
mov edi, eax
test eax, eax
js 0x140010034
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rdx, qword [rbx + 0x20]
lea rax, [rsp + 0x40]
mov rcx, qword [rbx + 0x70]
lea r9d, [r14 + 2]
mov qword [rsp + 0x30], rax
lea r8, str.Endpoint
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x140010025
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140010011
lea rdx, [rsp + 0x50]
test rax, rax
jne 0x14001002c
lea rdx, str.settings_win.data.microsoft.com
mov rcx, rbx
call fcn.14000ed98
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14001c430
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140010060
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 0x1400100b6
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 0x14001010a
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
cmp edi, 0x80070002
jne 0x140010118
xor edi, edi
xor ebx, ebx
jmp 0x140010164
test edi, edi
js 0x140010146
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 0x14001015a
lea rdx, str.OneSettings_IsTimeToRequery_failed
mov ecx, edi
call fcn.140008a40
cmp r14d, 1
jne 0x1400101f6
test r15b, r15b
jne 0x1400101f6
lea rdx, str.OneSettings_requery_is_TRUE
mov ecx, edi
call fcn.140008c60
test edi, edi
js 0x1400101fb
cmp qword [rsi + 0x78], 0
je 0x14001019a
cmp qword [rsi + 0x80], 0
je 0x14001019a
cmp qword [rsi + 0x88], 0
jne 0x1400101b4
mov rdx, qword [rsi]
mov rcx, rsi
call fcn.140010890
mov ebx, eax
test eax, eax
jns 0x1400101b4
lea rdx, str.OneSettings_OpenWebRequest_failed
jmp 0x1400101cd
mov rdx, qword [rsi]
mov rcx, rsi
call fcn.140010fa0
mov ebx, eax
cmp eax, 1
jbe 0x1400101d6
lea rdx, str.OneSettings_GetCloudSettings_failed
mov ecx, eax
call fcn.140008a40
jmp 0x1400101fb
mov rcx, rsi
call fcn.140011590
mov ebx, eax
test eax, eax
jns 0x1400101fb
lea rdx, str.OneSettings_UpdateNextRefreshTime_failed
mov ecx, eax
call fcn.140008a40
xor ebx, ebx
jmp 0x1400101fb
mov ebx, 1
mov rcx, rsi
call fcn.140012160
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400107e0
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rdx, qword [rcx + 0x20]
lea rax, [rsp + 0x48]
mov rcx, qword [rcx + 0x70]
xor ebx, ebx
and qword [rsp + 0x48], rbx
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x140010824
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010876
mov rcx, qword [rsp + 0x48]
lea rdx, str.ETag
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, 0xfffffffd
je 0x14001084b
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010876
mov rcx, qword [rsp + 0x48]
lea rdx, str.RefreshAfter
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, 0xfffffffd
je 0x140010876
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140010886
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140010890
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
mov eax, 0x1050
call fcn.14001d560
sub rsp, rax
mov rax, qword [0x140032370]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
call fcn.140011740
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 0x14001091f
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 0x140010a1d
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 0x140010957
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 0x140010a1d
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 0x14001099c
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 0x140010a1d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140010a44
lea r8, [rsp + 0x40]
xor ecx, ecx
lea rdx, str.The_following_query_string_will_be_used:__s
mov ebx, eax
call fcn.140008c60
test ebx, ebx
js 0x140010a1d
mov rcx, qword [rdi + 0x80]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x30], 0x800000
lea rdx, [0x1400242c8]
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 0x140010a1d
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.14001c430
mov rbx, qword [rsp + 0x1080]
add rsp, 0x1050
pop r14
pop rdi
pop rsi
ret
Function at 0x140010e34
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 0x140010f5d
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 0x140010ea9
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 0x140010f5d
mov r8d, dword [rsp + 0x80]
mov ecx, ebx
test r8d, r8d
je 0x140010f51
lea rdx, str.You_are_reading__d_bytes
call fcn.140008c60
mov ecx, dword [rsp + 0x80]
inc ecx
lea rdx, [0x140032de2]
call fcn.14001d4b4
mov rsi, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x140010ef1
mov ebx, 0x8007000e
jmp 0x140010f5d
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 0x140010e86
mov eax, dword [rsp + 0x80]
mov byte [rax + rsi], 0
mov rdx, rsi
mov rcx, qword [rsp + 0x78]
call fcn.1400098c4
nop
jmp 0x140010f44
mov rcx, rsi
call fcn.14001cb10
jmp 0x140010e58
lea rdx, str.You_have_completed_reading_as_dataSize_is_0
call fcn.140008c60
test edi, edi
jne 0x140010f81
cmp dword [rsp + 0x80], edi
jbe 0x140010f81
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.140008c60
test ebx, ebx
je 0x140010f93
lea rdx, str.An_error_occurrred_during_the_read_of_OneSettings_data
mov ecx, ebx
call fcn.140008c60
mov eax, ebx
add rsp, 0x48
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400113b0
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 0x14001142c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x7a
je 0x14001142c
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, [0x140032de2]
call fcn.14001d4b4
mov r14, rax
mov eax, 0x8007000e
test r14, r14
cmove edi, eax
test edi, edi
js 0x140011496
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 0x140011496
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.14000ed98
mov rax, qword [r12]
or rbp, 0xffffffffffffffff
test rax, rax
jne 0x1400114b2
mov esi, ebx
jmp 0x1400114d3
mov rsi, rbp
inc rsi
cmp word [rax + rsi*2], bx
jne 0x1400114b5
mov eax, esi
cmp rax, rsi
je 0x1400114d3
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 0x1400114e4
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 0x140011513
mov esi, ecx
cmp rsi, rcx
jne 0x140011513
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 0x140011513
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 0x140011566
mov rax, qword [r12]
test rax, rax
je 0x140011542
inc rbp
cmp word [rax + rbp*2], bx
jne 0x140011520
mov eax, ebp
cmp rax, rbp
je 0x140011540
mov ecx, 0x216
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
or ebx, 0xffffffff
jmp 0x140011542
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.14001d464
cmp eax, 1
mov ecx, 0x8000ffff
cmovle edi, ecx
mov rcx, r14
call fcn.14001cb10
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 0x140011590
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 0x14001161d
movzx edi, ax
or edi, ebx
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140011656
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 0x140011656
movzx edi, ax
or edi, ebx
test eax, eax
cmovle edi, eax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140011665
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 0x140011670
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 0x1400116d1
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001171b
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], si
jne 0x1400116d5
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 0x14001171b
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001172b
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
Function at 0x140011990
Capabilities:
Set http header

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140032370]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rdx
xor r14d, r14d
mov qword [rbp - 0x39], r14
lea rdx, [rbp - 0x39]
call fcn.140017964
mov ebx, eax
test eax, eax
jns 0x1400119ef
lea rdx, str.Failed_to_get_MSA_ticket
mov ecx, eax
call fcn.140008c60
mov ebx, r14d
jmp 0x140011af2
lea rdx, str.Finish_get_MSA_ticket
xor ecx, ecx
call fcn.140008c60
xor edx, edx
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
mov rdx, rax
lea rcx, [rbp + 0x17]
call fcn.140009758
mov rdi, rax
lea rdx, str.Authorization:_MsaToken
lea rcx, [rbp - 9]
call fcn.140009758
nop
mov rcx, qword [rax + 0x18]
sub rcx, qword [rax + 0x10]
cmp qword [rdi + 0x10], rcx
jbe 0x140011a52
mov rcx, qword [rdi + 0x18]
sub rcx, qword [rdi + 0x10]
cmp rcx, qword [rax + 0x10]
jb 0x140011a52
mov r8, rax
mov rcx, rdi
call fcn.140013428
jmp 0x140011a5d
mov rdx, rdi
mov rcx, rax
call fcn.1400096c8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x29], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x19], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea rcx, [rbp - 9]
call fcn.14000b958
nop
lea rcx, [rbp + 0x17]
call fcn.14000b958
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rdx, qword [rbp - 0x29]
mov r9d, 0x20000000
or r8d, 0xffffffff
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x140011ae8
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
lea rdx, str.Failed_to_add_MSA_token_header_to_request
mov ecx, ebx
call fcn.140008a40
lea rcx, [rbp - 0x29]
call fcn.14000b958
nop
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x140011b01
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14001c430
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140012a10
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
cmp qword [r8 + 0x18], 8
mov rdi, rdx
mov r11, qword [r8 + 0x10]
mov rbx, rcx
mov r10, r8
jb 0x140012a40
mov r10, qword [r8]
lea rdx, [r11 + r11]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test rdx, rdx
je 0x140012a73
movzx eax, byte [rcx + r10]
movabs rsi, 0x100000001b3
xor r9, rax
inc rcx
imul r9, rsi
cmp rcx, rdx
jb 0x140012a55
mov rcx, qword [rbx + 0x30]
mov r15, qword [rbx + 0x18]
and rcx, r9
mov r10, qword [rbx + 8]
mov rax, rcx
add rax, rax
lea r12, [rcx + rcx]
mov rax, qword [r15 + rax*8]
cmp qword [r15 + r12*8], r10
jne 0x140012a9b
mov rcx, r10
jmp 0x140012aa3
mov rcx, qword [r15 + r12*8 + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x140012b60
cmp qword [r8 + 0x18], 8
lea rcx, [rax + 0x10]
mov rdx, r8
jb 0x140012abd
mov rdx, qword [r8]
mov r14, qword [rcx + 0x18]
mov r9, rcx
cmp r14, 8
jb 0x140012acd
mov r9, qword [rcx]
mov rbp, qword [rcx + 0x10]
cmp rbp, r11
jne 0x140012afe
mov rsi, rbp
test rbp, rbp
je 0x140012af8
sub r9, rdx
movzx ecx, word [rdx + r9]
movzx ebx, word [rdx]
cmp cx, bx
jne 0x140012b03
add rdx, 2
sub rsi, 1
jne 0x140012ae1
xor ecx, ecx
test ecx, ecx
je 0x140012b0c
mov rax, qword [rax]
jmp 0x140012a90
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jmp 0x140012afa
lea rcx, [rax + 0x10]
cmp r14, 8
jb 0x140012b19
mov rcx, qword [rcx]
cmp qword [r8 + 0x18], 8
jb 0x140012b23
mov r8, qword [r8]
cmp r11, rbp
jne 0x140012b4f
test r11, r11
je 0x140012b49
sub r8, rcx
movzx edx, word [rcx + r8]
movzx r9d, word [rcx]
cmp dx, r9w
jne 0x140012b57
add rcx, 2
sub r11, 1
jne 0x140012b30
xor ecx, ecx
test ecx, ecx
je 0x140012b52
mov rax, r10
mov qword [rdi], rax
jmp 0x140012b63
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jmp 0x140012b4b
mov qword [rdi], r10
mov rbx, qword [rsp + 0x20]
mov rax, rdi
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
pop r15
pop r14
pop r12
ret