joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002df50
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r12d, dword [rsp + 0xc0]
mov rax, qword [0x1400ed028]
xor rax, rsp
mov qword [rsp + 0x58], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.140067374
mov rsi, rax
mov rax, qword [0x1400f05a0]
and rax, r15
cmp rax, qword [0x1400f0588]
je 0x14002e014
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r12d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x14002e440]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14002e01e
test r14, r14
je 0x14002e069
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400686c0
mov eax, ebx
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, r15
call fcn.14004e4e0
jmp 0x14002dfad
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14002e037
mov ebp, eax
cmp eax, 0x5af
je 0x14002e037
cmp ebp, 0xe
jne 0x14002e077
mov rcx, rbx
call fcn.1400b7600
test rsi, rsi
je 0x14002dff0
mov rcx, qword [rsi]
mov rax, qword [0x1400f05a0]
and rax, rcx
cmp rax, qword [0x1400f0588]
jne 0x14002e05f
call fcn.14004e630
mov rcx, rsi
call fcn.1400673b0
jmp 0x14002dff0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14002dff0
mov eax, dword [0x1400ff480]
mov ecx, dword [0x1400fc89c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002e0ef
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov edx, ebp
call fcn.1400357f0
movzx eax, byte [rbx + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rbx]
cmovns rax, rbx
cmovs rcx, qword [rbx + 8]
lea rdx, [rsp + 0x48]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
mov rcx, qword [0x1400ff478]
call fcn.14004e480
cmp byte [rbx + 0x17], 0
jns 0x14002e03f
mov rcx, qword [rsp + 0x30]
call fcn.1400673b0
jmp 0x14002e03f
lea rcx, [0x1400ff480]
call fcn.1400674d0
cmp dword [0x1400ff480], 0xffffffff
jne 0x14002e098
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.14002e630
mov qword [0x1400ff478], rax
lea rcx, [0x1400ff480]
call fcn.140067568
jmp 0x14002e098
Function at 0x14002e950
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x10]
cmp r15, qword [rcx + 0x18]
je 0x14002e98f
test r15, r15
je 0x14002ea7d
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x14002e9d9
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r14, [rax + rcx]
inc r14
shr r14, 1
shl r14, 3
mov rcx, rbx
sub rcx, r14
mov r8, r15
sub r8, rbx
mov rdx, rbx
call fcn.14006a130
sub r15, r14
mov qword [rsi + 0x10], r15
sub qword [rsi + 8], r14
jmp 0x14002e96d
mov rax, r15
sub rax, r14
sar rax, 2
cmp r15, r14
mov r12d, 1
cmovne r12, rax
mov rax, r12
shr rax, 0x3d
jne 0x14002eaa9
lea rcx, [r12*8]
call fcn.140067374
mov rcx, r12
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rcx
sub r15, rbx
je 0x14002ea4d
mov r8, r15
sar r8, 3
and r15, 0xfffffffffffffff8
mov rdx, r15
add rdx, rcx
shl r8, 3
xor r9d, r9d
mov r10, rcx
add r10, r9
je 0x14002ea7d
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp r8, r9
jne 0x14002ea35
lea r8, [rax + r12*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], r8
mov r15, rdx
test r14, r14
je 0x14002e96d
mov rcx, r14
call fcn.1400673b0
mov r15, qword [rsi + 0x10]
jmp 0x14002e96d
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1400959c0
call fcn.140095700
int3

Function at 0x14002f090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x1400ed028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1400d7af0]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1c9
call fcn.14004f630
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14004f960
cmp byte [rdi + 0x17], 0
jns 0x14002f114
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14004f9c0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400686c0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002f150
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1400ed028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14006a7e0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
add edi, 0xfffffefc
cmp edi, 0xfffffefd
jb 0x14002f1f3
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400818f8
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14004a500
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140029a00
mov rcx, rsi
mov rdx, r14
call fcn.1400292d0
mov rcx, r14
call fcn.14004a680
mov rcx, rbx
call fcn.14004a680
cmp edi, 0xfffffefd
setae bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400686c0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14002f220
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1400ed028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14006a7e0
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14002f2b5
cmp word [rsp + 0x70], 0
je 0x14002f2b5
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400818f8
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.14004a500
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400686c0
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400d7af0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14004a4c0
mov rcx, rdi
call fcn.14002f150
test al, al
je 0x14002f2f5
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14004a4e0
jmp 0x14002f314
lea rax, [0x1400dc1dc]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14004a500
lea rcx, [rsp + 0x40]
call fcn.14004a680
jmp 0x14002f297
Function at 0x140030240
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400ff508]
mov ecx, dword [0x1400fc89c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003027b
movzx eax, word [0x1400ff4d8]
cmp eax, 9
jne 0x1400302c3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x1400ff508]
call fcn.1400674d0
cmp dword [0x1400ff508], 0xffffffff
jne 0x140030265
xorps xmm0, xmm0
movups xmmword [0x1400ff4f8], xmm0
movups xmmword [0x1400ff4e8], xmm0
movups xmmword [0x1400ff4d8], xmm0
lea rcx, [0x1400ff4d8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400ff508]
call fcn.140067568
jmp 0x140030265
test eax, eax
je 0x140030276
cmp eax, 6
jne 0x1400302d3
mov eax, 2
jmp 0x140030276
cmp eax, 0xc
jne 0x1400302df
mov eax, 3
jmp 0x140030276
mov eax, 4
jmp 0x140030276

Function at 0x140030a30
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x140030b1e
cmp qword [rsi], 0
jne 0x140030b1e
cmp dword [rsi + 0x14], 0
jne 0x140030b1e
cmp qword [rsi + 8], 0
jne 0x140030b1e
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x140030aa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140030af0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140030a98
mov qword [rsi], r14
call fcn.14004f650
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x140030ada
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140030b06
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140030ad2
mov qword [rsi + 8], r14
call fcn.14004f650
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14004f650
mov rcx, qword [rsi]
call fcn.140051920
mov qword [rsi], 0
jmp 0x140030a86
call fcn.14004f650
mov rcx, qword [rsi + 8]
call fcn.140051920
mov qword [rsi + 8], 0
jmp 0x140030abf
mov rcx, rsi
call fcn.1400b2ed0
mov rax, qword [rsi]
jmp 0x140030a6a
Function at 0x140031260
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov edi, edx
mov rsi, rcx
lea rax, str._D_v_
mov qword [rcx], rax
add rcx, 8
call fcn.14004f570
lea rcx, [rsi + 0x10]
call fcn.14004f570
xor ebx, ebx
mov byte [rsi + 0x18], bl
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], ebx
call fcn.14004f570
mov byte [rsi + 0x48], bl
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rbx
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
mov qword [rsi + 0xc0], rbx
movups xmmword [rsi + 0xc8], xmm6
movups xmmword [rsi + 0xd8], xmm6
mov ebp, 0x3f800000
mov dword [rsi + 0xe8], ebp
mov dword [rsi + 0xf0], ebx
movups xmmword [rsi + 0xf8], xmm6
movups xmmword [rsi + 0x108], xmm6
mov dword [rsi + 0x118], ebp
movups xmmword [rsi + 0x120], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x140], ebp
movups xmmword [rsi + 0x148], xmm6
movups xmmword [rsi + 0x158], xmm6
mov dword [rsi + 0x168], ebp
movups xmmword [rsi + 0x170], xmm6
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebp
mov qword [rsi + 0x1b0], rbx
movups xmmword [rsi + 0x198], xmm6
mov dword [rsi + 0x1a8], ebx
mov eax, dword [0x1400dd7ec]
mov dword [rsi + 0x1b8], eax
lea rcx, [rsi + 0x1c0]
call fcn.140038b00
lea rcx, [rsi + 0x310]
movups xmmword [rsi + 0x2f8], xmm6
mov qword [rsi + 0x308], rbx
xor edx, edx
call fcn.140035f00
lea rcx, [rsi + 0x320]
xor edx, edx
call fcn.140035f00
lea rcx, [rsi + 0x330]
xor edx, edx
call fcn.140035f00
movups xmmword [rsi + 0x340], xmm6
movups xmmword [rsi + 0x350], xmm6
mov dword [rsi + 0x360], ebp
movups xmmword [rsi + 0x368], xmm6
movups xmmword [rsi + 0x378], xmm6
movups xmmword [rsi + 0x388], xmm6
mov byte [rsi + 0x398], bl
mov dword [rsi + 0x39c], edi
mov byte [rsi + 0x3a0], bl
movups xmmword [rsi + 0x3a8], xmm6
movups xmmword [rsi + 0x3b8], xmm6
call fcn.140019c10
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x1a8], eax
mov eax, eax
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x1a0], rax
mov rcx, rsi
call fcn.140031490
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x14003147b
call fcn.1400386c0
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.140038770
mov qword [0x1400ff930], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x140110008]
jmp 0x140031449
Function at 0x140033070
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 2
cmp rdx, 1
jne 0x1400330a0
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x1400330ae
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14002b140
lea rax, [rdx - 1]
test rdx, rax
jne 0x1400330c4
mov rdi, rdx
jmp 0x140033085
jae 0x1400331b1
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x1400330d1
cvtsi2ss xmm0, rax
jmp 0x1400330e6
mov rcx, rdx
call fcn.140047440
mov rdi, rax
jmp 0x140033085
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.140094890
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x1400d85e0]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x140033199
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x140033199
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x1400331a1
mov rcx, rdx
call fcn.140047440
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x14003308e
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140034c50
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1400ed028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140034cd8
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140034cc2
cmp dword [rsp + 0x38], 4
jne 0x140034cc2
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400686c0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x140034cc2
Function at 0x140034ce0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140068660
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400ed028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14006a7e0
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140034da3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140034da7
lea rcx, [rsp + 0x840]
call fcn.1400818f8
lea rdx, [rsp + 0x840]
mov rcx, rsi
mov r8, rax
call fcn.1400260c0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400686c0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140034d84
cmp eax, 2
jne 0x140034dfc
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14006a7e0
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x140034e03
lea rcx, [rsp + 0x40]
call fcn.1400818f8
lea rdx, [rsp + 0x40]
jmp 0x140034d77
mov edi, 0x3f4
jmp 0x140034d84
mov edi, 0xea
jmp 0x140034d84

Function at 0x140035b80
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400f05e0]
cmp ecx, 0xffffffff
je 0x140035ba5
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
add rsp, 0x28
ret
xor eax, eax
jmp 0x140035ba0

Function at 0x140035bb0
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 [0x1400f05e0]
cmp ecx, 0xffffffff
je 0x140035c79
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x140035c79
mov eax, dword [0x140104558]
mov ecx, dword [0x1400fc89c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140035c83
mov rbx, qword [0x140104550]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140035cc9
mov rax, qword [0x140102d40]
inc rax
xor ecx, ecx
lea rdx, [0x140102d50]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140035cd6
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov qword [0x140102d40], 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 0x140035ceb
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140035cf0
jmp 0x140035bda
lea rcx, [0x140104558]
call fcn.1400674d0
cmp dword [0x140104558], 0xffffffff
jne 0x140035bff
mov ecx, 8
call fcn.140067374
mov rbx, rax
mov rcx, rax
call fcn.14004f570
mov qword [0x140104550], rbx
lea rcx, [0x140104558]
call fcn.140067568
jmp 0x140035bff
mov rcx, rbx
call fcn.14004f580
jmp 0x140035c17
inc rcx
cmp rcx, 0x100
jne 0x140035c2a
jmp 0x140035c5f
int3
Function at 0x140035cf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140068660
sub rsp, rax
mov rax, qword [0x1400ed028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1400f05e0]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140035da4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140035de2
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14006a7e0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400673ec
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14006a130
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.1400686c0
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.14003a5e0
test al, al
je 0x140035de5
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140035de8
mov eax, 0xffffffff
lock cmpxchg dword [0x1400f05e0], ecx
je 0x140035d28
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1400f05e0]
mov dword [rsp + 0x2c], ecx
jmp 0x140035d28
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.14003a5e0
test al, al
je 0x140035e0d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140035e0d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140035dbb
int3

Function at 0x140036b50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.140038690
test al, al
jne 0x140036bd8
call fcn.140038660
movzx edx, al
mov ecx, esi
call fcn.14002e280
mov eax, dword [0x1401045b8]
mov ecx, dword [0x1400fc89c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140036ba7
movsxd rdx, esi
inc rdx
lea rcx, [0x1401045a8]
add rsp, 0x20
pop rsi
jmp fcn.140055400
lea rcx, [0x1401045b8]
call fcn.1400674d0
cmp dword [0x1401045b8], 0xffffffff
jne 0x140036b90
lea rcx, [0x1401045a8]
xor edx, edx
call fcn.140035f00
lea rcx, [0x1401045b8]
call fcn.140067568
jmp 0x140036b90
mov edx, 3
jmp 0x140036b68

Function at 0x140036be0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.14002e280
mov eax, dword [0x1401045b8]
mov ecx, dword [0x1400fc89c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140036c24
movsxd rdx, esi
inc rdx
lea rcx, [0x1401045a8]
add rsp, 0x20
pop rsi
jmp fcn.140055400
lea rcx, [0x1401045b8]
call fcn.1400674d0
cmp dword [0x1401045b8], 0xffffffff
jne 0x140036c0d
lea rcx, [0x1401045a8]
xor edx, edx
call fcn.140035f00
lea rcx, [0x1401045b8]
call fcn.140067568
jmp 0x140036c0d
Function at 0x140036fc0
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x1400ed028]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x1400371dc
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1400f0660], rax
jne 0x1400371df
mov rsi, rcx
mov r14d, dword [rcx + 0xc]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
mov dl, byte [rcx + 2]
mov rcx, r14
call fcn.1400546a0
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14003719e
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x14003712c
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x140037197
lea rdx, [rsi + r12*8]
bswap rcx
mov r14d, dword [rdx + 0x60]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x1400371ab
mov edx, ecx
and edx, 0x1fc000
je 0x1400371ab
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rdi
mov rdx, rsi
call fcn.140058060
mov ecx, dword [0x14010469c]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1400fc89c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x120], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400686c0
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.14005b050
test rax, rax
je 0x1400371e2
mov rdi, rax
mov rcx, rax
and rcx, 0xffffffffffe00000
mov rdx, rax
shr rdx, 9
and edx, 0xfe0
lea rax, [rdx + rcx]
movzx ecx, byte [rdx + rcx + 0x101e]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
add rax, 0x1000
jmp 0x1400370a7
xor ecx, ecx
jmp 0x14003708d
mov rcx, rbx
call fcn.140058eb0
jmp 0x14003703e
movaps xmm0, xmmword [0x1400d7af0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.1400b5ba0
mov rcx, rsi
call fcn.140019c10
mov rcx, r14
call fcn.1400b5c10
int3
int3
xor edi, edi
jmp 0x1400370d1

Function at 0x140037d90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x1401053b8]
cmp rdi, 1
jbe 0x140037db9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140055400
lea rcx, [0x1401053b8]
call fcn.14003a630
test al, al
je 0x140037dfe
xorps xmm0, xmm0
movups xmmword [0x1401053c0], xmm0
lea rbx, [0x1401053b8]
lea rdi, [0x1401053c0]
mov rcx, rdi
xor edx, edx
call fcn.140035f00
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14003a6f0
jmp 0x140037da7
mov rdi, qword [0x1401053b8]
jmp 0x140037da7