joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c780
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x1400f4028]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14006c090
mov word [rdi], 0
lea rcx, str.PROGRAMFILES
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14002c80c
mov ebx, eax
sub rbx, 1
jb 0x14002c80c
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x14002c7dc
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002c7f6
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
call fcn.14007cf0c
test eax, eax
je 0x14002c8df
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES_X86_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x103
jae 0x14002c866
mov ebx, eax
sub rbx, 1
jb 0x14002c866
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x14002c836
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002c850
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
call fcn.14007cf0c
test eax, eax
je 0x14002c911
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMW6432
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14002c8c0
mov ebx, eax
sub rbx, 1
jb 0x14002c8c0
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x14002c890
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002c8aa
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
call fcn.14007cf0c
test eax, eax
je 0x14002c946
xor edi, edi
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.140069700
mov eax, edi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
ret
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x14002c8ee
mov rcx, qword [rsi + 8]
dec rcx
mov dil, 1
cmp rcx, rbx
je 0x14002c8c2
mov rcx, rsi
test al, al
jns 0x14002c903
mov rcx, qword [rsi]
cmp word [rcx + rbx*2 + 2], 0x5c
jne 0x14002c80c
jmp 0x14002c8c2
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x14002c920
mov rcx, qword [rsi + 8]
dec rcx
mov dil, 1
cmp rcx, rbx
je 0x14002c8c2
mov rcx, rsi
test al, al
jns 0x14002c935
mov rcx, qword [rsi]
cmp word [rcx + rbx*2 + 2], 0x5c
jne 0x14002c866
jmp 0x14002c8c2
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x14002c955
mov rcx, qword [rsi + 8]
dec rcx
mov dil, 1
cmp rcx, rbx
je 0x14002c8c2
test al, al
jns 0x14002c96b
mov rsi, qword [rsi]
cmp word [rsi + rbx*2 + 2], 0x5c
jne 0x14002c8c0
jmp 0x14002c8c2
Function at 0x14002da40
Capabilities:
Create thread

Disassembly:
jmp 0x14002da40
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov rbp, r8
mov rsi, rdx
mov r15, rcx
xor ebx, ebx
test rcx, rcx
setne bl
mov rax, qword [0x1400f4028]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebx, 0x10
mov ecx, 0x10
call fcn.140068984
mov r14, rax
mov qword [rax], rsi
test rbp, rbp
setne byte [rax + 8]
mov dword [rax + 0xc], edi
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], 0
lea r8, [0x14002dda0]
xor ecx, ecx
mov rdx, r15
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14002dae1
test rbp, rbp
je 0x14002db11
mov qword [rbp], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140069700
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14002dafa
mov ebp, eax
cmp eax, 0x5af
je 0x14002dafa
cmp ebp, 0xe
jne 0x14002db1c
mov rcx, r15
call fcn.1400b4300
test r14, r14
je 0x14002dabf
mov rcx, r14
call fcn.1400689c0
jmp 0x14002dabf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14002dabf
mov eax, dword [0x1400fa120]
mov ecx, dword [0x1400f73b4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002db8b
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov edx, ebp
call fcn.140029800
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
cmovs rax, qword [rsi + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rcx, qword [0x1400fa118]
call fcn.140057020
cmp byte [rsi + 0x17], 0
jns 0x14002db02
mov rcx, qword [rsp + 0x38]
call fcn.1400689c0
jmp 0x14002db02
lea rcx, [0x1400fa120]
call fcn.140068ae0
cmp dword [0x1400fa120], 0xffffffff
jne 0x14002db3d
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.1400358d0
mov qword [0x1400fa118], rax
lea rcx, [0x1400fa120]
call fcn.140068b78
jmp 0x14002db3d
Function at 0x14002e1c0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x14002e1fa
mov rax, qword [rdi]
mov qword [rbx], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r15
jbe 0x14002e256
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x14002e245
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.14006bc80
mov r14, qword [rsi + 8]
add rbx, r15
mov qword [rsi + 0x10], rbx
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x14002e1df
mov rax, rbx
sub rax, r15
mov rcx, rax
sar rcx, 2
test rax, rax
mov r13d, 1
cmovne r13, rcx
mov rax, r13
shr rax, 0x3d
jne 0x14002e2ec
mov r12, r13
shr r12, 2
lea rcx, [r13*8]
call fcn.140068984
lea r9, [rax + r12*8]
lea r8, [rax + r13*8]
mov r10, r9
sub rbx, r14
je 0x14002e2c0
lea r10, [r9 + rbx]
sar rbx, 3
shl rbx, 3
lea r11, [rax + r12*8]
xor edx, edx
mov rcx, qword [r14 + rdx]
mov qword [r11 + rdx], rcx
add rdx, 8
cmp rbx, rdx
jne 0x14002e2af
mov qword [rsi], rax
mov qword [rsi + 8], r9
mov qword [rsi + 0x10], r10
mov qword [rsi + 0x18], r8
mov rbx, r10
test r15, r15
je 0x14002e1df
mov rcx, r15
call fcn.1400689c0
mov rbx, qword [rsi + 0x10]
jmp 0x14002e1df
call fcn.14007a240
int3
Function at 0x140030c80
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x190
mov rax, qword [0x1400f4028]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov eax, dword [0x1400fa1c0]
mov ecx, dword [0x1400f73b4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140030ce2
lea rsi, [0x1400fa1b8]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140069700
mov rax, rsi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400fa1c0]
call fcn.140068ae0
cmp dword [0x1400fa1c0], 0xffffffff
jne 0x140030cbd
lea rsi, [rsp + 0x6c]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14006c090
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.140068984
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1400fa1f8]
mov ecx, dword [0x1400f73b4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140030da2
lea r8, [0x1400fa1c8]
lea rdx, [rsp + 0x68]
mov rcx, rsi
mov r9d, edi
call fcn.140030f20
mov qword [0x1400fa1b8], rsi
lea rcx, [0x1400fa1c0]
call fcn.140068b78
jmp 0x140030cbd
lea rcx, [0x1400fa1f8]
call fcn.140068ae0
cmp dword [0x1400fa1f8], 0xffffffff
jne 0x140030d73
xorps xmm0, xmm0
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movups xmmword [0x1400fa1e8], xmm2
movups xmmword [0x1400fa1d8], xmm1
movups xmmword [0x1400fa1c8], xmm0
lea rcx, [0x1400fa1f8]
call fcn.140068b78
jmp 0x140030d73

Function at 0x140030e30
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x1400f4028]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x1400fa1f8]
mov ecx, dword [0x1400f73b4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140030e8c
movzx eax, word [0x1400fa1c8]
cmp ax, 9
jne 0x140030eee
mov esi, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140069700
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x1400fa1f8]
call fcn.140068ae0
cmp dword [0x1400fa1f8], 0xffffffff
jne 0x140030e65
xorps xmm0, xmm0
lea rsi, [rsp + 0x20]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rsi]
movaps xmm1, xmmword [rsi + 0x10]
movaps xmm2, xmmword [rsi + 0x20]
movups xmmword [0x1400fa1e8], xmm2
movups xmmword [0x1400fa1d8], xmm1
movups xmmword [0x1400fa1c8], xmm0
lea rcx, [0x1400fa1f8]
call fcn.140068b78
jmp 0x140030e65
xor esi, esi
test ax, ax
je 0x140030e77
cmp ax, 6
jne 0x140030f05
mov esi, 2
jmp 0x140030e77
cmp ax, 0xc
jne 0x140030f15
mov esi, 3
jmp 0x140030e77
mov esi, 4
jmp 0x140030e77
Function at 0x140031460
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x14003154c
cmp qword [rsi], 0
jne 0x14003154c
cmp dword [rsi + 0x14], 0
jne 0x14003154c
cmp qword [rsi + 8], 0
jne 0x14003154c
xor eax, eax
mov rbx, qword [rdi]
cmp rax, rbx
je 0x1400314cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003151e
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400314c7
mov qword [rsi], rbx
call fcn.14004ff10
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rdi + 8]
cmp qword [rsi + 8], rbp
je 0x140031509
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140031534
lea rax, [rbp + 1]
cmp rax, 2
jb 0x140031501
mov qword [rsi + 8], rbp
call fcn.14004ff10
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 rbp
pop rdi
pop rsi
ret
call fcn.14004ff10
mov rcx, qword [rsi]
call fcn.14004ff20
mov qword [rsi], 0
jmp 0x1400314b5
call fcn.14004ff10
mov rcx, qword [rsi + 8]
call fcn.14004ff20
mov qword [rsi + 8], 0
jmp 0x1400314ee
mov rcx, rsi
call fcn.1400b1ec0
mov rax, qword [rsi]
jmp 0x140031499
Function at 0x1400318d0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
movaps xmmword [rsp + 0x20], xmm6
mov rsi, rcx
lea rax, str._0_v_
mov qword [rcx], rax
add rcx, 8
call fcn.140052fb0
lea rcx, [rsi + 0x10]
call fcn.140052fb0
xor edi, edi
mov byte [rsi + 0x18], dil
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], edi
call fcn.140052fb0
mov byte [rsi + 0x48], dil
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rdi
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
movups xmmword [rsi + 0xc0], xmm6
mov ebx, 0x3f800000
mov dword [rsi + 0xd0], ebx
mov dword [rsi + 0xd8], edi
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], ebx
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], ebx
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x150], ebx
movups xmmword [rsi + 0x158], xmm6
movups xmmword [rsi + 0x168], xmm6
mov dword [rsi + 0x178], ebx
mov qword [rsi + 0x198], rdi
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], edi
mov eax, dword [0x1400e3678]
mov dword [rsi + 0x1a0], eax
lea rcx, [rsi + 0x1a8]
call fcn.14003a9e0
lea rcx, [rsi + 0x2f0]
movups xmmword [rsi + 0x2d8], xmm6
mov qword [rsi + 0x2e8], rdi
xor edx, edx
call fcn.140036db0
lea rcx, [rsi + 0x2f8]
xor edx, edx
call fcn.140036db0
lea rcx, [rsi + 0x300]
xor edx, edx
call fcn.140036db0
movups xmmword [rsi + 0x308], xmm6
movups xmmword [rsi + 0x318], xmm6
mov dword [rsi + 0x328], ebx
movups xmmword [rsi + 0x330], xmm6
movups xmmword [rsi + 0x340], xmm6
movups xmmword [rsi + 0x350], xmm6
movups xmmword [rsi + 0x359], xmm6
movups xmmword [rsi + 0x370], xmm6
movups xmmword [rsi + 0x380], xmm6
call fcn.140019a90
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x190], eax
cdqe
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x188], rax
mov rcx, rsi
call fcn.140031ae0
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x140031ad0
call fcn.14003a140
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.14003a1f0
mov qword [0x1400fa598], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
jmp 0x140031a9f
Function at 0x140034c90
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r12, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x1400f4028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x140034cc4
mov rax, qword [r12 + 8]
test rax, rax
je 0x140034dbc
mov eax, ebx
not eax
test eax, 0x300
je 0x140034dbc
cmp edi, 2
lea rax, [0x1400fbd60]
lea rcx, [0x1400fbf60]
cmove rcx, rax
cmp word [rcx], 0
jne 0x140034dbc
xorps xmm0, xmm0
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
je 0x140034dbc
cmp byte [0x1400fbd50], 0
setne al
bt ebx, 8
jb 0x140034dbc
shr ebx, 9
and ebx, 1
or bl, al
je 0x140034dbc
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea rsi, str.SOFTWARE
cmove rsi, rax
movzx r13d, byte [r12 + 0x17]
test r13b, r13b
jns 0x140034e17
mov rbx, qword [r12]
mov r13, qword [r12 + 8]
mov r14d, 1
xor r15d, r15d
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov rdi, qword [rsi + 8]
mov rbp, r13
sub rbp, rdi
jb 0x140034da9
mov rdx, qword [rsi]
mov rcx, rbx
mov r8, rdi
call fcn.14007cf0c
test eax, eax
je 0x140034ddb
add rsi, 0x28
inc r15
cmp r15, r14
jb 0x140034d8b
cmp dword [rsp + 0x2c], 0
jne 0x140034e1f
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140069700
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, word [rbx + rdi*2]
cmp cx, 0x5c
je 0x140034dea
test cx, cx
jne 0x140034da9
lea rax, [rbx + rdi*2]
mov edx, dword [rsi + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x140034e47
cmp dword [rsp + 0x2c], 2
jne 0x140034e58
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x140034e58
mov rbx, r12
jmp 0x140034d6c
cmp byte [r12 + 0x17], 0
js 0x140034e87
mov rax, r12
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, r12
mov r8, qword [rsp + 0x38]
call fcn.140025250
jmp 0x140034dbc
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbx
cmp cx, 0x5c
jne 0x140034e71
lea rbx, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, rbx
je 0x140034e5e
jmp 0x140034e74
mov rbx, rax
mov r14, qword [rsi + 0x20]
mov rsi, qword [rsi + 0x18]
xor r15d, r15d
mov r13, rbp
jmp 0x140034db0
mov rax, qword [r12]
jmp 0x140034e2a

Function at 0x140035b00
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x1400fc390]
cmp rdi, 1
jbe 0x140035b29
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400587a0
lea rcx, [0x1400fc390]
call fcn.14003d910
test al, al
je 0x140035b6f
mov qword [0x1400fc398], 0
lea rbx, [0x1400fc390]
lea rdi, [0x1400fc398]
mov rcx, rdi
xor edx, edx
call fcn.140036db0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14003d9b0
jmp 0x140035b17
mov rdi, qword [0x1400fc390]
jmp 0x140035b17
Function at 0x140036a10
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400f7218]
cmp ecx, 0xffffffff
je 0x140036a35
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 0x140036a30

Function at 0x140036a40
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
mov ecx, dword [0x1400f7218]
cmp ecx, 0xffffffff
je 0x140036b1e
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x140036b1e
mov eax, dword [0x1400fdbf8]
mov ecx, dword [0x1400f73b4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140036b28
mov rbx, qword [0x1400fdbf0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140036b6e
mov rax, qword [0x1400fc3e0]
inc rax
xor ecx, ecx
lea rdx, [0x1400fc3f0]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x140036b7b
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x1400fc3e0], rdi
mov dword [r15], edi
mov eax, dword [rax + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x140036b90
cmp eax, 0x100
jge 0x140036b93
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140036ba0
jmp 0x140036a6e
lea rcx, [0x1400fdbf8]
call fcn.140068ae0
cmp dword [0x1400fdbf8], 0xffffffff
jne 0x140036a93
mov ecx, 8
call fcn.140068984
mov rbx, rax
mov rcx, rax
call fcn.140052fb0
mov qword [0x1400fdbf0], rbx
lea rcx, [0x1400fdbf8]
call fcn.140068b78
jmp 0x140036a93
mov rcx, rbx
call fcn.140052fc0
jmp 0x140036aab
inc rcx
cmp rcx, 0x100
jne 0x140036abe
jmp 0x140036af2
int3
int3
Function at 0x140036ba0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140069690
sub rsp, rax
mov rax, qword [0x1400f4028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1400f7218]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140036c54
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140036c92
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14006c090
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400689fc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14006bc80
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.140069700
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.14003de00
test al, al
je 0x140036c95
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140036c98
mov eax, 0xffffffff
lock cmpxchg dword [0x1400f7218], ecx
je 0x140036bd8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1400f7218]
mov dword [rsp + 0x2c], ecx
jmp 0x140036bd8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.14003de00
test al, al
je 0x140036cbd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140036cbd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140036c6b
int3
Function at 0x14003bc20
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r14, r8
mov ebx, edx
mov rdi, rcx
mov esi, dword [0x1400fde78]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test ebp, ebp
jne 0x14003bd32
cmp rsi, 1
je 0x14003bd2e
mov eax, dword [rdi + 0x1518]
test eax, eax
jne 0x14003bd2e
mov eax, 1
lock xadd dword [rdi + 0x1518], eax
cmp eax, 0x7fffffff
je 0x14003bd3f
mov rcx, rdi
call fcn.14003c040
lock dec dword [rdi + 0x1518]
mov rdi, rax
inc qword [rax + 0x5a0]
cmp word [0x1400f7260], bx
jb 0x14003bd20
movzx edx, bx
mov rsi, rdx
shl rsi, 4
mov rbx, rdi
add rbx, rsi
mov rax, qword [rdi + rsi]
test rax, rax
jne 0x14003bd42
inc qword [rdi + 0x5b8]
inc qword [rdi + 0x5b0]
mov rcx, rdi
call fcn.14005fd10
mov rax, qword [rbx]
test rax, rax
je 0x14003bd2e
mov rcx, qword [rax]
test rcx, rcx
je 0x14003bd4b
mov rdx, rcx
not rdx
cmp qword [rax + 8], rdx
jne 0x14003bd4f
bswap rcx
prefetcht0 byte [rcx]
dec byte [rdi + rsi + 8]
mov qword [rbx], rcx
movzx ecx, word [rdi + rsi + 0xa]
mov qword [r14], rcx
movzx ecx, word [rdi + rsi + 0xa]
sub qword [rdi + 0x590], rcx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
inc qword [rdi + 0x5c0]
inc qword [rdi + 0x5b0]
xor eax, eax
jmp 0x14003bd15
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14003bc53
int3
inc qword [rdi + 0x5a8]
jmp 0x14003bce0
xor ecx, ecx
jmp 0x14003bcfa
call fcn.140094b70
int3

Function at 0x14003c040
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x1400f4028]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x14003c16f
mov rsi, rcx
mov byte [rsp + 0x3f], 0xaa
lea rbx, [rcx + 0x858]
lea r14, [rcx + 8]
mov edi, 1
xor ebp, ebp
mov r15, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, r14
call r15
test al, al
jne 0x14003c0b9
jmp 0x14003c160
pause
dec eax
jne 0x14003c094
add ebp, edi
add edi, edi
cmp edi, 0x40
mov eax, 0x40
cmovge edi, eax
cmp ebp, 0x3e8
jl 0x14003c085
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rbx]
mov rdi, qword [rax]
test rdi, rdi
je 0x14003c11a
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
jne 0x14003c149
xor ecx, ecx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rdi
mov rdx, rsi
call fcn.14005fb60
mov ecx, dword [0x1400fde78]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140069700
mov rax, rdi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov r9d, 0x610
mov rcx, rbx
mov rdx, rsi
mov r8d, 2
call fcn.140043190
mov rdi, rax
jmp 0x14003c0da
mov rdx, rcx
not rdx
cmp qword [rdi + 8], rdx
jne 0x14003c172
bswap rcx
prefetcht0 byte [rcx]
jmp 0x14003c0d3
mov eax, edi
test edi, edi
jg 0x14003c094
jmp 0x14003c09c
int3
call fcn.140094b70
int3