joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d8d9c
Capabilities:
Set http header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rcx, qword [rcx + 0x78]
xor r12d, r12d
mov qword [rbp - 0x18], r12
mov r15, rdx
mov dword [rbp - 0x10], r12d
test rcx, rcx
je 0x1400d8de2
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x1400d8dd6
jmp 0x1400d8de5
mov rax, r12
movsxd rdx, eax
call fcn.140012fa8
mov qword [rbp - 0x20], rax
test rax, rax
je 0x1400d8f6e
mov dl, 1
lea rcx, [rbp - 0x20]
call fcn.1400dca0c
test al, al
jne 0x1400d8e48
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.1400dca0c
test al, al
jne 0x1400d8e48
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x1400d8e40
mov eax, dword [rbp - 0x10]
test eax, eax
je 0x1400d8e40
mov ecx, eax
mov rdi, rbx
add rcx, rcx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rbx
mov rbx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, r12d
jmp 0x1400d8f2d
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x1400d8f5c
mov edi, dword [rbp - 0x10]
cmp edi, 1
jbe 0x1400d8f2d
lea r14d, [rdi + 0xb]
mov ecx, r14d
add rcx, rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400d8f2d
test r14d, r14d
jle 0x1400d8e99
movsxd rdx, r14d
lea r8, str.Cookie:
or r9, 0xffffffffffffffff
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call fcn.140015450
mov r8d, r14d
lea rcx, [0x14015b35c]
mov rdx, rsi
call fcn.140015450
mov r9d, 0xa0000000
or r8d, 0xffffffff
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x1400d8f24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov r14d, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
je 0x1400d8f02
mov rcx, rdi
xor eax, eax
add rcx, rcx
mov rdi, rbx
rep stosb byte [rdi], al
mov rcx, rbx
mov rbx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1400d8f10
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400d8f1f
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, r14d
jmp 0x1400d8f70
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1400d8f5c
test edi, edi
je 0x1400d8f4e
mov ecx, edi
xor eax, eax
add rcx, rcx
mov rdi, rbx
rep stosb byte [rdi], al
mov rcx, rbx
mov rbx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1400d8f5c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rbp - 0x20]
test rax, rax
je 0x1400d8f6e
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x1400d8f90
Capabilities:
Prepare http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor r14d, r14d
mov rdi, r9
mov rbx, rcx
test r9, r9
jne 0x1400d8fc9
lea eax, [r9 + 0x57]
jmp 0x1400d9168
mov qword [r9], r14
mov al, byte [rcx + 0xd8]
neg al
sbb ecx, ecx
xor r9d, r9d
and ecx, 0x800000
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbx + 0xb8]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r15, str.SH_ErrorCode
mov esi, eax
lea r12, [0x14013c1c8]
lea r13, str.Message
lea rcx, [0x14013c2d8]
lea rdx, str._CWinHttpHelperBase__CreateRequest
test eax, eax
je 0x1400d907b
mov dword [rbp - 0x30], eax
mov r8d, 0xf
lea rax, str.Error:__CreateRequest_failed_in_WinHttpOpenRequest.
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], rax
mov ecx, 0x5c8106
lea rax, [rbp - 0x40]
mov qword [rbp - 0x38], r15
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov word [rbp - 0x2c], r14w
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x20], r13
mov word [rbp - 0x10], r14w
call fcn.1400bc658
mov rcx, qword [rdi]
test rcx, rcx
jne 0x1400d908e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400d9168
mov r8d, dword [rbx + 0xd0]
cmp byte [rbx + 0xda], r14b
je 0x1400d90af
or r8d, 0x17e0c00
mov dword [rbx + 0xd0], r8d
mov rcx, qword [rdi]
mov rdx, qword [rbx + 0xf0]
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp rax, 0xffffffffffffffff
jne 0x1400d9132
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
je 0x1400d912e
mov dword [rbp - 0x30], eax
mov ecx, 0x5c8107
lea rax, str.Error:__CreateRequest_failed_in_WinHttpSetStatusCallback.
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x18], rax
mov r8d, 0xf
lea rax, [0x14013c2d8]
mov word [rbp - 0x2c], r14w
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea rax, str._CWinHttpHelperBase__CreateRequest
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x20], r13
mov word [rbp - 0x10], r14w
call fcn.1400bc658
mov eax, ebx
jmp 0x1400d9168
mov rcx, qword [rdi]
lea r8, [rbp + 0x48]
mov r9d, 8
mov qword [rbp + 0x48], rbx
lea edx, [r9 + 0x25]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x1400d9083
cmp byte [rbp + 0x50], r14b
jne 0x1400d9166
mov rdx, qword [rdi]
mov rcx, rbx
call fcn.1400d8d9c
mov eax, esi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400e00dc
Capabilities:
Get file size

Disassembly:
mov r11, rsp
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [r11 - 0x20], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov rsi, r9
mov ebp, r8d
mov r14, rdx
mov rbx, rcx
movzx r15d, r8w
cmp r15d, 4
jae 0x1400e0209
mov eax, r8d
and eax, 0xffff0000
mov ecx, 0x7f0000
or eax, ecx
cmp eax, ecx
jne 0x1400e0209
lea rdx, [r11 - 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400e015a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jne 0x1400e020e
mov rax, qword [rsp + 0x20]
test rax, rax
jns 0x1400e016e
mov edi, 0x8000ffff
jmp 0x1400e020e
xor edi, edi
xor ecx, ecx
test r15d, r15d
setne cl
mov dword [rbx + 0x30], ecx
mov ecx, ebp
and ecx, 0x100000
mov dword [rbx + 0x34], ecx
mov qword [rbx + 0x70], rax
mov rcx, qword [rbx + 0x28]
cmp rcx, 0xffffffffffffffff
je 0x1400e01a0
or qword [rbx + 0x28], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rbx + 0x28], r14
mov rcx, qword [rbx + 0xc0]
cmp rcx, rsi
je 0x1400e01ee
test rsi, rsi
je 0x1400e01cc
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [case.0x1400ee2b6.0]
mov rcx, qword [rbx + 0xc0]
test rcx, rcx
je 0x1400e01e7
and qword [rbx + 0xc0], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400ee2b6.0]
nop
mov qword [rbx + 0xc0], rsi
bt ebp, 0x11
jb 0x1400e020e
xor r8d, r8d
xor edx, edx
lea rcx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
mov byte [rbx + 0x68], 1
jmp 0x1400e020e
mov edi, 0x80070057
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1400e0a30
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0xa0
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r15d, r9d
mov rsi, rdx
mov rdi, rcx
call fcn.1400e1664
mov r14, rax
xor r13b, r13b
mov rdx, qword [rbp + 0x7f]
lea rcx, [rbp - 0x29]
call fcn.1400e7678
lea rax, [0x1401410d0]
mov qword [rbp - 0x29], rax
mov eax, 0x10000
mov r12d, eax
cmp r15d, eax
cmovb r12d, r15d
mov rax, qword [rbp + 0x77]
mov qword [rbp - 1], rax
and dword [rbp + 0xf], 0
mov eax, r15d
mov edx, 1
test r15d, r15d
cmove eax, edx
mov qword [rbp + 7], rax
lea rcx, [rsi + r15]
mov qword [rbp + 0x5f], rcx
lea rax, [r14 + 0x10000]
cmp rcx, rax
jbe 0x1400e0af7
lea rcx, [rbp - 0x29]
call fcn.1400df628
mov ebx, eax
test eax, eax
js 0x1400e0bfb
mov rax, qword [rdi]
mov r8, qword [rbp + 0x7f]
mov rdx, qword [rbp + 0x5f]
mov rcx, rdi
mov rax, qword [rax + 0x30]
call qword [case.0x1400ee2b6.0]
test eax, eax
setns r13b
and qword [rbp - 0x39], 0
jmp 0x1400e0bb2
lea rax, [rbp - 0x51]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x6f]
mov r8d, r12d
mov rdx, qword [rbp + 0x67]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
cmp dword [rdi + 0x34], 0
je 0x1400e0b57
test eax, eax
jne 0x1400e0b73
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400e0b5b
mov r9d, 1
lea r8, [rbp + 0x6f]
lea rdx, [rbp - 0x51]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x1400e0b73
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x1400e0bde
mov ecx, dword [rbp + 0x6f]
sub r15d, ecx
mov rax, qword [rbp + 0x77]
add dword [rax], ecx
add qword [rbp + 0x67], rcx
add rsi, rcx
mov rax, rsi
cmp r14, rsi
cmova rax, r14
mov r14, rax
cmp r12d, ecx
jne 0x1400e0bd9
xor ebx, ebx
test r15d, r15d
je 0x1400e0bd4
mov eax, 0x10000
mov r12d, eax
cmp r15d, eax
cmovb r12d, r15d
and qword [rbp - 0x39], rbx
mov rax, rsi
shr rax, 0x20
mov dword [rbp - 0x41], esi
mov dword [rbp - 0x3d], eax
lea rcx, [rbp - 0x29]
call fcn.1400df628
test eax, eax
mov ebx, eax
jns 0x1400e0b01
jmp 0x1400e0bde
xor r13b, r13b
jmp 0x1400e0bde
mov ebx, 0x80004005
test r13b, r13b
je 0x1400e0bfb
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
mov rax, qword [rax + 0x30]
call qword [case.0x1400ee2b6.0]
jmp 0x1400e0bff
mov qword [rdi + 0x70], r14
lea rax, [0x1401410f8]
mov qword [rbp - 0x29], rax
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x1400e0c30
and qword [rbp - 0x21], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400ee2b6.0]
nop
nop word [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e1664
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x38], 0
mov rbx, rcx
je 0x1400e16ac
mov rcx, qword [rcx + 0x28]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400e169e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jne 0x1400e16ac
mov rax, qword [rsp + 0x30]
test rax, rax
js 0x1400e16ac
mov qword [rbx + 0x70], rax
mov rax, qword [rbx + 0x70]
add rsp, 0x20
pop rbx
ret

Function at 0x1400e5ef0
Capabilities:
Delete file
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x240
mov rax, qword [0x1401cd010]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebp, ebp
mov rbx, r9
mov rsi, rcx
cmp dword [rsp + 0x270], ebp
jg 0x1400e5f2c
xor eax, eax
jmp 0x1400e5fe6
cmp rbx, rsi
je 0x1400e5f35
mov word [r9], bp
cmp dword [rsp + 0x270], 0x104
jl 0x1400e5f57
xor r8d, r8d
lea rdx, [0x14015f470]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x1400e5fe6
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x14015f470]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, eax
test eax, eax
je 0x1400e5fe4
or r9, 0xffffffffffffffff
lea rax, [rsp + 0x20]
mov rcx, r9
inc rcx
cmp word [rax + rcx*2], bp
jne 0x1400e5f93
cmp ecx, dword [rsp + 0x270]
jl 0x1400e5fce
mov rcx, qword [0x1401cd740]
mov edx, 0x3ca797
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400ee2b6.0]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400e5f25
movsxd rdx, dword [rsp + 0x270]
lea r8, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov eax, esi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14012aa20
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rsi
ret
Function at 0x1400e8238
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx eax, byte [r8 + 0x10]
mov r10, rcx
movabs rcx, 0xcbf29ce484222325
mov rdi, rdx
xor rax, rcx
movabs rcx, 0x100000001b3
imul rax, rcx
mov r9, qword [r10 + 0x30]
mov rcx, qword [r10 + 0x18]
and r9, rax
add r9, r9
cmp qword [rcx + r9*8 + 8], r8
jne 0x1400e82a0
cmp qword [rcx + r9*8], r8
jne 0x1400e8295
mov rax, qword [r10 + 8]
mov qword [rcx + r9*8], rax
mov rcx, qword [r10 + 0x18]
mov rax, qword [r10 + 8]
jmp 0x1400e8299
mov rax, qword [r8 + 8]
mov qword [rcx + r9*8 + 8], rax
jmp 0x1400e82ad
cmp qword [rcx + r9*8], r8
jne 0x1400e82ad
mov rax, qword [r8]
mov qword [rcx + r9*8], rax
mov rax, qword [r8 + 8]
mov rbx, qword [r8]
mov qword [rax], rbx
mov rcx, qword [r8]
mov rax, qword [r8 + 8]
mov qword [rcx + 8], rax
mov rcx, r8
dec qword [r10 + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f78c0
Capabilities:
Check mutex on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x450
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1401cd010]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rcx
cmp qword [rcx], 0
je 0x1400f7900
mov eax, 0x80004005
jmp 0x1400f7a15
movsxd rax, r8d
lea rcx, [0x140162fa0]
mov r14d, dword [rcx + rax*4]
and qword [rsp + 0x30], 0
and qword [rdi], 0
mov esi, 1
mov dword [rsp + 0x20], esi
mov r9d, r14d
mov r8, rdx
lea rcx, [rsp + 0x40]
call fcn.140114b70
mov r15, rax
xor r12b, r12b
mov ebp, r14d
shr ebp, 0x1a
not bpl
and bpl, sil
nop dword [rax]
nop word [rax + rax]
test r15, r15
je 0x1400f796e
mov edx, r14d
shr edx, 0x17
and edx, esi
mov r8, r15
mov ecx, 0x120001
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov qword [rdi], rax
cmp qword [rdi], 0
jne 0x1400f79ca
test bpl, bpl
je 0x1400f79ca
mov r8d, esi
lea rdx, [rsp + 0x30]
mov ecx, r14d
call fcn.1401147c4
test eax, eax
je 0x1400f79ca
mov edx, r14d
shr edx, 0x19
and edx, esi
mov r8, r15
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, [rsp + 0x30]
mov ecx, r14d
call fcn.140114abc
cmp ebx, 5
jne 0x1400f79ca
test r12b, r12b
jne 0x1400f79ca
mov r12b, sil
jmp 0x1400f7950
mov rax, qword [rdi]
test rax, rax
je 0x1400f79d8
cmp rax, 0xffffffffffffffff
jne 0x1400f79ff
test bpl, bpl
je 0x1400f79f7
mov rcx, qword [0x1401cd740]
mov rax, qword [rcx]
mov edx, 0x1631e1
mov rax, qword [rax + 8]
call qword [case.0x1400ee2b6.0]
nop
and qword [rdi], 0
xor eax, eax
xor esi, esi
test esi, esi
je 0x1400f78f6
neg rax
sbb ecx, ecx
not ecx
mov eax, 0x80004005
and eax, ecx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14012aa20
nop
add rsp, 0x450
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400fe47c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov edi, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
test byte [0x1401d3cc0], 0x10
mov esi, eax
je 0x1400fe4bb
mov r9d, eax
lea rdx, [0x14015f8a8]
mov r8d, edi
call fcn.1401010a4
mov rcx, qword [rbx + 0x80]
mov r8, rdi
xor r9d, r9d
mov edx, esi
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x1400fe4f0
mov rax, qword [rbx]
mov r8, rbp
xor edx, edx
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [case.0x1400ee2b6.0]
mov al, 1
jmp 0x1400fe58c
test byte [0x1401d3cc0], 0x20
je 0x1400fe50b
mov r9d, esi
lea rdx, [0x14015f938]
mov r8d, edi
call fcn.1401010a4
mov rcx, qword [0x1401cd740]
mov edx, 0x1c135e
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400ee2b6.0]
prefetchw byte [rbx + 0x10]
mov rax, qword [rbx + 0x10]
mov r8d, 0x7f000
mov qword [rsp + 0x30], rax
mov edx, dword [rsp + 0x30]
mov ecx, edx
shr ecx, 0xc
dec ecx
shl ecx, 0xc
xor ecx, edx
and ecx, r8d
xor edx, ecx
mov dword [rsp + 0x30], edx
mov rcx, qword [rsp + 0x30]
lock cmpxchg qword [rbx + 0x10], rcx
je 0x1400fe58a
mov ecx, eax
mov qword [rsp + 0x30], rax
shr ecx, 0xc
mov rdx, rax
dec ecx
shl ecx, 0xc
xor ecx, eax
and ecx, r8d
xor ecx, eax
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x30]
lock cmpxchg qword [rbx + 0x10], rcx
cmp rax, rdx
jne 0x1400fe55d
xor al, al
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1401129b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
mov rbp, rsp
sub rsp, 0x60
and qword [rbp - 0x18], 0
lea rax, [rbp - 0x18]
mov rbx, rcx
mov qword [rsp + 0x20], rax
lea rsi, fcn.14000b480
mov dword [rbp - 0x20], 1
mov rcx, 0xffffffff80000001
mov qword [rbp - 0x28], rsi
mov r9d, 0x20019
mov byte [rbp - 0x10], 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140112a49
and dword [rbp + 0x20], eax
lea r9, [rbp - 0x30]
and dword [rbp - 0x30], eax
xor r8d, r8d
mov rdx, qword [str.SendTelemetry]
lea rax, [rbp + 0x28]
mov rcx, qword [rbp - 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x28], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140112a49
mov eax, dword [rbp + 0x20]
mov dword [rbx], eax
mov byte [rbx + 4], 1
jmp 0x140112a50
and dword [rbx], 0
mov byte [rbx + 4], 0
cmp byte [rbp - 0x10], 0
mov qword [rbp - 0x28], rsi
je 0x140112a69
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140112a69
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x78]
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rbp
ret
Function at 0x1401169d0
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1401cd010]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rcx
mov qword [rbp - 0x29], rcx
xor edi, edi
mov dword [rbp - 0x35], edi
mov qword [rbp + 0xf], rdi
mov qword [rbp + 0x17], 7
mov word [rbp - 1], di
lea rsi, [0x140143b10]
mov qword [rcx], rsi
add rcx, 8
call fcn.140007a9c
mov dword [rbp - 0x39], 0x10
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
nop
lea rcx, [0x14014552c]
lea rdx, [rbp + 0x1f]
test eax, eax
cmove rdx, rcx
movdqa xmm0, xmmword [0x140186810]
movdqu xmmword [rbp - 0x11], xmm0
mov word [rbp - 0x21], di
lea rcx, [rbp - 0x21]
call fcn.140007920
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbx + 0x28], xmm0
movups xmm1, xmmword [rbp - 0x11]
movups xmmword [rbx + 0x38], xmm1
mov qword [rbx], rsi
mov rax, rbx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14012aa20
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret

Function at 0x14011e328
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rax, qword [0x1401cd010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
xor esi, esi
mov ecx, dword [0x1401cec70]
cmp byte [0x1401cec74], sil
je 0x14011e36c
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x14011e372
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14011e39e
cmp qword [rax + 0x20], rsi
je 0x14011e39e
lea rbx, [rax + 0x38]
cmp qword [rbx + 0x10], rsi
jne 0x14011e38f
mov rcx, rax
call fcn.1401208a4
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140007a9c
jmp 0x14011e3b1
movdqa xmm0, xmmword [0x140186810]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], si
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140009bb8
nop
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x14011e400
mov rcx, qword [rsp + 0x28]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x14011e3fa
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x14011e3fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14012aa20
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1401207f8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rcx
cmp byte [0x1401cec74], bl
mov ecx, dword [0x1401cec70]
je 0x14012081d
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x140120823
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140120881
mov rcx, qword [rax + 0x20]
test rcx, rcx
je 0x140120881
mov rdx, qword [rax]
mov r8, qword [rax + 0x18]
mov rax, rbx
test rdx, rdx
je 0x14012084b
mov rdx, qword [rdx]
test rdx, rdx
je 0x14012084b
mov rax, qword [rdx]
lea rdx, [rcx - 1]
add rdx, r8
test rax, rax
je 0x14012086a
mov rax, qword [rax]
test rax, rax
je 0x14012086a
mov rax, qword [rax]
test rax, rax
je 0x14012086a
mov rbx, qword [rax]
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 8]
dec rcx
and rcx, rdx
mov rcx, qword [rax + rcx*8]
movups xmm0, xmmword [rcx]
jmp 0x140120892
xor eax, eax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
movdqu xmmword [rdi], xmm0
add rsp, 0x30
pop rdi
ret

Function at 0x1401209f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x1401cec70]
xor edi, edi
cmp byte [0x1401cec74], dil
je 0x140120a18
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x140120a1e
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140120abc
mov rax, qword [rax + 0x50]
cmp rax, 8
jb 0x140120a62
mov rcx, qword [rbx + 0x38]
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x140120a5c
mov rdx, qword [rcx - 8]
sub rcx, rdx
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140120aa6
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x48], rdi
lea rcx, [rbx + 0x28]
mov esi, 7
mov qword [rbx + 0x50], rsi
mov word [rbx + 0x38], di
call fcn.140096dd8
mov rcx, rbx
call fcn.1400a13b8
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [0x1401cec70]
xor edx, edx
cmp byte [0x1401cec74], dil
je 0x140120aad
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
jmp 0x140120ab3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140120abc
mov rcx, rsi
int 0x29
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret