joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140049020
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov r13, qword [rsp + 0xb0]
mov rax, qword [0x14018f028]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
xor r15d, r15d
test r13, r13
je 0x140049090
mov ecx, dword [r13 + 0x2c]
call fcn.140091f50
test rax, rax
je 0x140049174
mov r12, rax
xor ecx, ecx
call fcn.140092020
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r13
mov r15, r12
mov rax, qword [r13 + 0x10]
lea rcx, [0x140133c80]
cmp rax, rcx
jne 0x14004915e
xorps xmm0, xmm0
movups xmmword [r15 + 0x5c], xmm0
movups xmmword [r15 + 0x50], xmm0
movups xmmword [r15 + 0x40], xmm0
movups xmmword [r15 + 0x30], xmm0
movups xmmword [r15 + 0x20], xmm0
movaps xmm0, xmmword [0x140174100]
movups xmmword [r15], xmm0
movaps xmm0, xmmword [0x140174110]
movups xmmword [r15 + 0x10], xmm0
mov dword [r15 + 0x6c], 0x20
mov rax, qword [r13 + 0x18]
lea r15, [rsp + 0x20]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call qword [0x1401b6008]
mov rax, qword [r15]
mov rax, qword [rax + 0x20]
mov rcx, r15
mov rdx, rdi
call qword [0x1401b6008]
mov rax, qword [r15]
test rsi, rsi
je 0x140049117
mov ecx, dword [rax + 4]
mov dword [rsi], ecx
mov edx, dword [rax + 0x2c]
mov rcx, qword [rsp + 0x28]
call fcn.140092060
mov r15d, 1
mov rcx, qword [rsp + 0x28]
call fcn.140092020
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140049178
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400ba050
mov eax, r15d
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r15, [rsp + 0x20]
mov rcx, r15
call qword [0x1401b6008]
mov r13, qword [r15]
jmp 0x1400490df
xor ecx, ecx
jmp 0x14004912f
mov rax, qword [rax]
mov rcx, qword [rsp + 0x30]
call qword [0x1401b6008]
jmp 0x14004913e

Function at 0x1400491e0
Capabilities:
Hash data using sha256

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx], rdx
je 0x140049212
mov ecx, dword [rdi + 0x2c]
call fcn.140091f50
test rax, rax
je 0x140049271
mov rbx, rax
mov rcx, qword [rsi + 8]
call fcn.140092020
mov qword [rsi + 8], rbx
mov qword [rsi], rdi
mov rax, qword [rdi + 0x10]
lea rcx, [0x140133c80]
cmp rax, rcx
jne 0x140049266
mov rax, qword [rsi + 8]
xorps xmm0, xmm0
movups xmmword [rax + 0x5c], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x20], xmm0
movaps xmm0, xmmword [0x140174100]
movups xmmword [rax], xmm0
movaps xmm0, xmmword [0x140174110]
movups xmmword [rax + 0x10], xmm0
mov dword [rax + 0x6c], 0x20
mov eax, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call qword [0x1401b6008]
jmp 0x140049259
xor eax, eax
jmp 0x14004925e
Function at 0x140049310
Capabilities:
Hash data using sha256

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
cmp qword [rcx + 0x10], 0
jne 0x140049347
mov rcx, qword [rsp + 0x80]
mov rdx, r9
call fcn.1400550b0
mov qword [rdi + 0x10], rax
test rax, rax
je 0x14004945a
mov ebp, dword [rsp + 0x88]
lea rcx, [0x1401a7f58]
lea rdx, [0x14004c5a0]
call fcn.140098670
lea rax, [0x1401a7f60]
mov qword [rdi + 0x18], rax
mov rcx, qword [rdi + 0x10]
cmp ebp, 1
jne 0x14004945e
call fcn.1400553b0
test eax, eax
je 0x14004945a
test rbx, rbx
je 0x14004939f
mov rcx, qword [rdi + 0x10]
mov rdx, rbx
call fcn.14004f730
test eax, eax
je 0x14004945a
mov rax, qword [rdi + 0x10]
mov rax, qword [rax]
test ebp, ebp
je 0x140049468
add rax, 0x38
cmp qword [rax], 0
je 0x140049431
test rbx, rbx
je 0x140049471
cmp qword [rdi], rbx
je 0x1400493ea
mov ecx, dword [rbx + 0x2c]
call fcn.140091f50
test rax, rax
je 0x14004945a
mov r14, rax
mov rcx, qword [rdi + 8]
call fcn.140092020
mov qword [rdi + 8], r14
mov qword [rdi], rbx
mov rax, qword [rbx + 0x10]
lea rcx, [0x140133c80]
cmp rax, rcx
jne 0x14004944f
mov rax, qword [rdi + 8]
xorps xmm0, xmm0
movups xmmword [rax + 0x5c], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x20], xmm0
movaps xmm0, xmmword [0x140174100]
movups xmmword [rax], xmm0
movaps xmm0, xmmword [0x140174110]
movups xmmword [rax + 0x10], xmm0
mov dword [rax + 0x6c], 0x20
mov ebx, 1
test rsi, rsi
je 0x140049442
mov rax, qword [rdi + 0x10]
mov qword [rsi], rax
mov eax, ebx
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rcx, rdi
call qword [0x1401b6008]
jmp 0x140049431
xor ebx, ebx
jmp 0x140049442
call fcn.14013fd50
jmp 0x14004937e
add rax, 0x28
jmp 0x1400493b2
mov dword [rsp + 0x20], 0x6d
lea r9, str....._third_party_boringssl_srccrypto_fipsmoduledigestsigndigestsign.c
xor ebx, ebx
mov ecx, 6
xor edx, edx
mov r8d, 0x77
call fcn.14013fbe0
jmp 0x140049442
Function at 0x14004ae60
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14018f028]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x14004afb1
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x140167260]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [0x1401b6008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [0x1401b6008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [0x1401b6008]
test r14, r14
je 0x14004af43
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x14004af33
lea r14, [rsi + 0xf8]
mov ecx, 1
call fcn.14008f5b0
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x14004afb5
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x14004af82
lea rcx, section..text
mov qword [r14], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400ba050
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x14004af94
bt eax, 9
jae 0x14004afd5
call fcn.140004350
lea rax, [0x140004820]
test r14, r14
je 0x14004af82
lea rcx, [0x140004520]
jmp 0x14004af7f
call fcn.14011f5e0
lea rax, [0x14011fde0]
test r14, r14
je 0x14004af82
lea rcx, [0x14011f4c0]
jmp 0x14004af7f
Function at 0x14004b000
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm8
movaps xmmword [rsp + 0xc0], xmm7
movaps xmmword [rsp + 0xb0], xmm6
mov qword [rsp + 0x28], r9
mov rax, qword [0x14018f028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov esi, 1
test rdx, rdx
je 0x14004b1cb
mov r15, r8
mov rdi, rdx
mov rbx, rcx
mov rsi, qword [rsp + 0x150]
mov r13d, dword [rsi + 4]
xor r14d, r14d
movaps xmm7, xmmword [0x140174100]
movaps xmm8, xmmword [0x140174110]
lea r12, [rsp + 0x30]
mov eax, r14d
bswap eax
mov dword [rsp + 0x5c], eax
cmp qword [rsp + 0x30], rsi
je 0x14004b0c2
mov ecx, dword [rsi + 0x2c]
call fcn.140091f50
test rax, rax
je 0x14004b22e
mov rbp, rax
mov rcx, qword [rsp + 0x38]
call fcn.140092020
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rsi
mov rax, qword [rsi + 0x10]
lea rcx, [0x140133c80]
cmp rax, rcx
jne 0x14004b21e
mov rax, qword [rsp + 0x38]
movups xmmword [rax + 0x5c], xmm6
movups xmmword [rax + 0x50], xmm6
movups xmmword [rax + 0x40], xmm6
movups xmmword [rax + 0x30], xmm6
movups xmmword [rax + 0x20], xmm6
movups xmmword [rax], xmm7
movups xmmword [rax + 0x10], xmm8
mov dword [rax + 0x6c], 0x20
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov rcx, r12
mov rdx, r15
mov r8, qword [rsp + 0x28]
call qword [0x1401b6008]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov r8d, 4
mov rcx, r12
lea rdx, [rsp + 0x5c]
call qword [0x1401b6008]
cmp rdi, r13
jb 0x14004b172
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
mov rcx, r12
mov rdx, rbx
call qword [0x1401b6008]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov edx, dword [rax + 0x2c]
call fcn.140092060
add rbx, r13
inc r14d
sub rdi, r13
jne 0x14004b08a
jmp 0x14004b1c6
movaps xmm0, xmmword [0x140167260]
lea r14, [rsp + 0x60]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea r15, [rsp + 0x30]
mov rax, qword [r15]
mov rax, qword [rax + 0x20]
mov rcx, r15
mov rdx, r14
call qword [0x1401b6008]
mov rax, qword [r15]
mov rcx, qword [r15 + 8]
mov edx, dword [rax + 0x2c]
call fcn.140092060
mov rcx, rbx
mov rdx, r14
mov r8, rdi
call fcn.1400bbaf0
mov esi, 1
mov rcx, qword [rsp + 0x38]
call fcn.140092020
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x14004b232
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400ba050
mov eax, esi
movaps xmm6, xmmword [rsp + 0xb0]
movaps xmm7, xmmword [rsp + 0xc0]
movaps xmm8, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x30]
call qword [0x1401b6008]
jmp 0x14004b0fe
xor esi, esi
jmp 0x14004b1cb
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
call qword [0x1401b6008]
jmp 0x14004b1df
Function at 0x14004cdb0
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x14004cdc0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x14004cde1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14004ce01
cmp byte [r14 + 0x50], 0
jne 0x14004ce84
or edi, 0x20000000
test dil, 8
jne 0x14004ceb4
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14004ce1f
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x14004ce30
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 0
jne 0x14004ce99
cmp byte [r14 + 0x18], 0
jne 0x14004cea7
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14004ced1
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x14004ce8f
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x14004ce01
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004ce6f
lea rcx, [r14 + 0x20]
call fcn.14002ed70
mov r15, rax
jmp 0x14004ce37
mov rcx, r14
call fcn.14002ed70
mov r9, rax
jmp 0x14004ce41
cmp byte [r14 + 0x68], 0
je 0x14004cec6
or edi, 0x40000000
jmp 0x14004ce0b
or edi, 0x10000000
jmp 0x14004ce0b
cmp ebx, 4
jne 0x14004cee0
mov edx, 6
jmp 0x14004ce4e
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14004cef2
mov edx, 7
jmp 0x14004ce4e
cmp ebx, 1
jne 0x14004cf01
mov edx, 4
jmp 0x14004ce4e
xor edx, edx
jmp 0x14004ce4e
Function at 0x14004cdc0
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x14004cdc0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x14004cde1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14004ce01
cmp byte [r14 + 0x50], 0
jne 0x14004ce84
or edi, 0x20000000
test dil, 8
jne 0x14004ceb4
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14004ce1f
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x14004ce30
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 0
jne 0x14004ce99
cmp byte [r14 + 0x18], 0
jne 0x14004cea7
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14004ced1
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x14004ce8f
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x14004ce01
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004ce6f
lea rcx, [r14 + 0x20]
call fcn.14002ed70
mov r15, rax
jmp 0x14004ce37
mov rcx, r14
call fcn.14002ed70
mov r9, rax
jmp 0x14004ce41
cmp byte [r14 + 0x68], 0
je 0x14004cec6
or edi, 0x40000000
jmp 0x14004ce0b
or edi, 0x10000000
jmp 0x14004ce0b
cmp ebx, 4
jne 0x14004cee0
mov edx, 6
jmp 0x14004ce4e
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14004cef2
mov edx, 7
jmp 0x14004ce4e
cmp ebx, 1
jne 0x14004cf01
mov edx, 4
jmp 0x14004ce4e
xor edx, edx
jmp 0x14004ce4e

Function at 0x14004cf10
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r15, rcx
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14004cf48
cmp byte [r15 + 0x50], 0
jne 0x14004cfd7
or edi, 0x20000000
test dil, 8
jne 0x14004d007
xor r14d, r14d
cmp byte [r15 + 0x60], 0
mov r12d, 0
je 0x14004cf66
mov r12, qword [r15 + 0x58]
cmp byte [r15 + 0x48], 0
mov r13d, 0
je 0x14004cf77
mov r13, qword [r15 + 0x40]
cmp byte [r15 + 0x38], 0
jne 0x14004cfec
cmp byte [r15 + 0x18], 0
jne 0x14004cffa
xor r9d, r9d
cmp ebx, 4
jne 0x14004cfc8
mov edx, 6
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
test eax, eax
jne 0x14004cfe2
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14004d024
mov edx, 7
jmp 0x14004cf92
or edi, 0x80000000
jmp 0x14004cf48
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004cfb3
lea rcx, [r15 + 0x20]
call fcn.14002ed70
mov r14, rax
jmp 0x14004cf7e
mov rcx, r15
call fcn.14002ed70
mov r9, rax
jmp 0x14004cf88
cmp byte [r15 + 0x68], 0
je 0x14004d019
or edi, 0x40000000
jmp 0x14004cf52
or edi, 0x10000000
jmp 0x14004cf52
mov edx, 1
test ebx, ebx
je 0x14004cf92
cmp ebx, 1
jne 0x14004d040
mov edx, 4
jmp 0x14004cf92
xor edx, edx
jmp 0x14004cf92
Function at 0x140054af0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x14018f028]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140054ac0]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x1401a8a90]
lea rdx, [0x140054910]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140054c00
cmp dword [0x1401a8a98], 0
jne 0x140054bf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1401a8a9c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x140054b9c
mov ecx, 1
mov edx, 0x28
call fcn.140070170
test rax, rax
je 0x140054bf0
mov r14, rax
mov ecx, dword [0x1401a8a9c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140054be8
lea r15, [0x1401a8aa0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1401a8ab0]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400ba050
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.1400700d0
mov rcx, rsi
mov rax, rdi
call qword [0x1401b6008]
xor esi, esi
jmp 0x140054bcc
call fcn.1400ce570
int3

Function at 0x14005a870
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14019e730]
cmp ecx, 0xffffffff
je 0x14005a94a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14005a94a
mov eax, dword [0x1401aa440]
mov ecx, dword [0x14019e7d0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005a954
mov rbx, qword [0x1401aa438]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005a99a
mov rax, qword [0x1401a8c20]
inc rax
xor ecx, ecx
lea rdx, [0x1401a8c30]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14005a9a7
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x1401aa430]
inc ecx
mov dword [0x1401aa430], ecx
mov dword [rax + 0x14], ecx
mov qword [0x1401a8c20], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x14005a9bc
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14005a9c0
jmp 0x14005a89a
lea rcx, [0x1401aa440]
call fcn.1400b8cf0
cmp dword [0x1401aa440], 0xffffffff
jne 0x14005a8bf
mov ecx, 8
call fcn.1400b8b9c
mov rbx, rax
mov rcx, rax
call fcn.140088fc0
mov qword [0x1401aa438], rbx
lea rcx, [0x1401aa440]
call fcn.1400b8d88
jmp 0x14005a8bf
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14005a8d7
inc rcx
cmp rcx, 0x100
jne 0x14005a8ea
jmp 0x14005a930
int3
Function at 0x14005a9c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1400b9ff0
sub rsp, rax
mov rax, qword [0x14018f028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14019e730]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14005aa74
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14005aad7
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1400bc1a0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400b8c0c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1400bbaf0
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.1400ba050
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140067fb0
test al, al
je 0x14005aada
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14005aab2
mov eax, 0xffffffff
lock cmpxchg dword [0x14019e730], ecx
je 0x14005a9f8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14019e730]
mov dword [rsp + 0x2c], ecx
jmp 0x14005a9f8
lea rcx, [rsp + 0x2c]
call fcn.140067fb0
test al, al
je 0x14005aadd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14005aadd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14005aa8b
int3
int3
int3

Function at 0x14005aaf0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14019e730]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14005ab2e
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x14005ab27
call fcn.14005a9c0
jmp 0x14005ab0e
Function at 0x140067fb0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140067fc5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x140079710
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
movdqu xmm4, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm0, r8d
pxor xmm0, xmm4
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jb 0x14007980e
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x140169f40]
nop dword [rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm3
pclmulqdq xmm7, xmm4, 0
movdqa xmm8, xmm2
pclmulqdq xmm8, xmm4, 0
movdqa xmm9, xmm1
pclmulqdq xmm9, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm1, xmm5, 0x11
movdqu xmm10, xmmword [rcx]
pxor xmm10, xmm6
pxor xmm0, xmm10
movdqu xmm6, xmmword [rcx + 0x10]
pxor xmm6, xmm7
pxor xmm3, xmm6
movdqu xmm6, xmmword [rcx + 0x20]
pxor xmm6, xmm8
pxor xmm2, xmm6
movdqu xmm6, xmmword [rcx + 0x30]
pxor xmm6, xmm9
pxor xmm1, xmm6
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x140079780
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x140169f50]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp rdx, 0x10
jb 0x14007989d
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x140079873
movdqa xmm1, xmmword [0x140169f50]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
psrldq xmm0, 4
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
pxor xmm3, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm3, 3
pclmulqdq xmm0, xmmword [0x140169f60], 0x10
pblendw xmm0, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm3
pextrd eax, xmm1, 1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret