joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007cf70
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r12, rdx
mov rsi, rcx
mov rbx, qword [rdx]
mov qword [rdx], 0
lea rbp, [rbx + 1]
cmp rbp, 2
jb 0x14007cf9d
call fcn.140071760
mov qword [rsi], 0
test rbx, rbx
je 0x14007cfd9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14007d08f
cmp rbp, 2
jb 0x14007cfd0
mov qword [rsi], rbx
call fcn.140071760
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
cmp byte [r12 + 0x1f], 0
jns 0x14007d074
mov r14, qword [r12 + 8]
mov rbp, qword [r12 + 0x10]
cmp rbp, 0xa
jbe 0x14007d089
movabs rbx, 0x7fffffffffffffef
cmp rbp, rbx
ja 0x14007d0c5
lea rdi, [rbp + 8]
and rdi, 0xfffffffffffffff8
lea rcx, [rdi + rdi]
call fcn.1400c9cbc
mov rcx, rax
mov qword [rsi + 8], rax
add rbx, 0x11
or rbx, rdi
mov qword [rsi + 0x18], rbx
mov qword [rsi + 0x10], rbp
lea r8, [rbp + 2]
add r8, rbp
mov rdx, r14
call fcn.1400cf0a0
mov eax, dword [r12 + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [r12 + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [r12 + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, [r12 + 8]
mov rdx, qword [rax + 0x10]
mov qword [rcx + 0x10], rdx
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
jmp 0x14007d04a
mov byte [rcx + 0x17], bpl
jmp 0x14007d037
call fcn.140071760
mov r14, qword [rsi]
mov rcx, qword [0x1402980e0]
test rcx, rcx
je 0x14007d0b7
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x14007cfc2
call fcn.140122340
mov rcx, qword [0x1402980e0]
jmp 0x14007d0a3
call fcn.140113fe4
int3
Function at 0x14007d470
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x190
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov eax, dword [0x140297940]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007d4d2
mov rsi, qword [0x140297938]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.1400ccfe0
mov rax, rsi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140297940]
call fcn.1400c9d58
cmp dword [0x140297940], 0xffffffff
jne 0x14007d4ad
lea rsi, [rsp + 0x6c]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400cf750
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.1400c9cbc
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140297978]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007d58b
lea rdx, [rsp + 0x68]
mov rcx, rsi
mov r8d, edi
call fcn.140005170
mov qword [0x140297938], rsi
lea rcx, [0x140297940]
call fcn.1400c9cf8
jmp 0x14007d4ad
lea rcx, [0x140297978]
call fcn.1400c9d58
cmp dword [0x140297978], 0xffffffff
jne 0x14007d563
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 [0x140297968], xmm2
movups xmmword [0x140297958], xmm1
movups xmmword [0x140297948], xmm0
lea rcx, [0x140297978]
call fcn.1400c9cf8
jmp 0x14007d563
Function at 0x14007e076
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
movaps xmmword [rsp + 0x90], xmm6
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x88], rax
cmp qword [rcx + 0x18], 0
je 0x14007e202
mov rsi, rcx
call fcn.140101d9d
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x60]
mov qword [rcx + 0x10], r15
movaps xmm6, xmmword [0x140257270]
movaps xmmword [rcx], xmm6
mov rdx, qword [rsi + 0x30]
call fcn.14007e2f0
mov r14, qword [rsi + 8]
mov rax, qword [rsi + 0x38]
mov r12, qword [rsi + 0x40]
mov eax, dword [rax]
mov rbx, qword [rsi + 0x38]
test rbx, rbx
je 0x14007e0ff
lock inc dword [rbx]
lock inc dword [rbx]
lock dec dword [rbx]
je 0x14007e2c3
mov ecx, 0x48
call fcn.1400c9cbc
mov rdi, rax
mov dword [rax], 1
lea rax, [0x14005d3d0]
mov qword [rdi + 8], rax
lea rax, [0x14007e040]
mov qword [rdi + 0x10], rax
lea rax, [0x1400bd7e0]
mov qword [rdi + 0x18], rax
lea rax, [0x14007dd20]
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rbx
mov qword [rdi + 0x30], r12
mov eax, dword [rsi + 0x24]
mov dword [rdi + 0x38], eax
mov dword [rdi + 0x3c], 0xaaaaaaaa
mov qword [rdi + 0x40], 0
lea rdx, str.ArmOrNotify
lea r8, str..._.._mojo_public_cpp_system_simple_watcher.cc
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov r9d, 0xee
call fcn.14007e2d0
lea r8, [rsp + 0x80]
mov qword [r8], rdi
mov rax, qword [r14]
mov rcx, r14
mov rdx, rsi
xor r9d, r9d
call qword [rax]
mov eax, dword [0x140295ff0]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007e26d
mov rsi, qword [rsp + 0x60]
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14007e2b0
movsxd rcx, dword [0x140295fe8]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x140295fec]
movsxd rdx, dword [0x140295fe8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
test byte [0x140291180], 0x19
jne 0x14007e22b
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400ccfe0
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x10], r15
movaps xmmword [rsi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x140291180]
lea r9, [0x14025c911]
mov rcx, rsi
mov dl, 0x45
call fcn.140086650
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x14007e202
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14007e202
lea rcx, [0x140295ff0]
call fcn.1400c9d58
cmp dword [0x140295ff0], 0xffffffff
jne 0x14007e1ba
mov qword [0x140295fe8], 0
lea rcx, [0x140295fe8]
xor edx, edx
call fcn.1400721e0
lea rcx, [0x140295ff0]
call fcn.1400c9cf8
jmp 0x14007e1ba
test rsi, rsi
je 0x14007e1f9
call fcn.140008460
jmp 0x14007e1d5
mov rcx, rbx
call fcn.1400c9cac
jmp 0x14007e0ff
Function at 0x14007e2f0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov r15, rdx
mov rsi, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rcx], 0
mov dword [rcx + 8], 0
mov qword [rcx + 0x10], 0
test byte [0x140291180], 0x19
jne 0x14007e3f5
mov eax, dword [0x140295ff0]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007e519
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14007e56f
movsxd rcx, dword [0x140295fe8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140295fec]
jne 0x14007e56f
mov rax, qword [rax + rcx]
mov qword [rsi], rax
mov dword [rsi + 8], 0
mov qword [rsi + 0x10], r15
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14007e55c
movsxd rcx, dword [0x140295fe8]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x140295fec]
movsxd rdx, dword [0x140295fe8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400ccfe0
mov rax, rsi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x140257270]
movaps xmmword [rsp + 0x40], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x140291180]
lea r9, str.ScopedSetIpcHash
lea rcx, [rsp + 0x40]
mov dl, 0x42
call fcn.140086650
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14007e4ef
mov edx, 0x26
call fcn.140086662
test r15, r15
je 0x14007e4ef
mov r14, rax
mov rcx, r15
call fcn.1400ed270
cmp rax, 0xfffffffffffffff0
jae 0x14007e576
mov rdi, rax
cmp rax, 0x17
jb 0x14007e508
mov rbx, rdi
add rbx, 0x10
and rbx, 0xfffffffffffffff0
mov rcx, rbx
call fcn.1400c9cbc
mov r12, rax
mov qword [rsp + 0x58], rax
bts rbx, 0x3f
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rdi
mov rcx, r12
mov rdx, r15
mov r8, rdi
call fcn.1400cf0a0
mov byte [r12 + rdi], 0
movzx r9d, byte [rsp + 0x6f]
test r9b, r9b
cmovs r9, qword [rsp + 0x60]
lea r8, [rsp + 0x58]
cmovs r8, qword [rsp + 0x58]
mov rcx, r14
mov edx, 3
call fcn.14008ebac
cmp byte [rsp + 0x6f], 0
jns 0x14007e4ef
mov rcx, qword [rsp + 0x58]
call fcn.1400c9cac
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14007e335
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14007e335
lea r12, [rsp + 0x58]
mov byte [r12 + 0x17], dil
test rdi, rdi
jne 0x14007e4a4
jmp 0x14007e4b2
lea rcx, [0x140295ff0]
call fcn.1400c9d58
cmp dword [0x140295ff0], 0xffffffff
jne 0x14007e35a
mov qword [0x140295fe8], 0
lea rcx, [0x140295fe8]
xor edx, edx
call fcn.1400721e0
lea rcx, [0x140295ff0]
call fcn.1400c9cf8
jmp 0x14007e35a
test rsi, rsi
je 0x14007e3d7
call fcn.140008460
jmp 0x14007e3b3
xor eax, eax
jmp 0x14007e38f
lea rcx, [rsp + 0x58]
call fcn.140113fe4
int3
Function at 0x14007e780
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x190
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov eax, dword [0x140297940]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007e7e3
mov rax, qword [0x140297938]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, esi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140297940]
call fcn.1400c9d58
cmp dword [0x140297940], 0xffffffff
jne 0x14007e7bd
lea rsi, [rsp + 0x6c]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400cf750
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.1400c9cbc
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140297978]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007e89c
lea rdx, [rsp + 0x68]
mov rcx, rsi
mov r8d, edi
call fcn.140005170
mov qword [0x140297938], rsi
lea rcx, [0x140297940]
call fcn.1400c9cf8
jmp 0x14007e7bd
lea rcx, [0x140297978]
call fcn.1400c9d58
cmp dword [0x140297978], 0xffffffff
jne 0x14007e874
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 [0x140297968], xmm2
movups xmmword [0x140297958], xmm1
movups xmmword [0x140297948], xmm0
lea rcx, [0x140297978]
call fcn.1400c9cf8
jmp 0x14007e874
Function at 0x140084870
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x140297f88]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008494c
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14008498f
movsxd rcx, dword [0x140297f80]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140297f84]
jne 0x14008498f
mov rdi, qword [rax + rcx]
cmp byte [rsi], 0
jne 0x1400848e1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rdi]
test rax, rax
js 0x140084996
cmp dword [rdi + 0x14], 1
jne 0x1400849a0
mov rcx, qword [rdi + 8]
test rcx, rcx
jne 0x1400849df
movabs rax, 0xbfffffffffffffff
lock and qword [rdi], rax
mov rsi, qword [rsi + 8]
mov rcx, qword [rdi + 8]
test rcx, rcx
jne 0x1400849fd
mov rax, qword [rdi]
movabs rcx, 0x6000000000000000
and rcx, rax
movabs rax, 0xffffffffffffff
and rsi, rax
or rsi, rcx
mov qword [rdi], rsi
add dword [rdi + 0x14], 0xffffffff
jmp 0x1400848d9
lea rcx, [0x140297f88]
call fcn.1400c9d58
cmp dword [0x140297f88], 0xffffffff
jne 0x14008489f
mov qword [0x140297f80], 0
lea rcx, [0x140297f80]
xor edx, edx
call fcn.1400721e0
lea rcx, [0x140297f88]
call fcn.1400c9cf8
jmp 0x14008489f
xor edi, edi
jmp 0x1400848d4
call fcn.140191b20
jmp 0x1400848ed
cmp byte [rsi + 0x10], 0
je 0x140084912
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400849cc
mov rbx, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rbx
or rcx, rax
mov qword [rdi], rcx
movabs rax, 0x4000000000000000
lock or qword [rdi], rax
jmp 0x140084912
mov rbx, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rbx
or rcx, rax
mov qword [rdi], rcx
jmp 0x140084904
mov rbx, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rbx
or rcx, rax
mov qword [rdi], rcx
jmp 0x140084923
Function at 0x14008bd20
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [0x140297f88]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008bdab
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14008bd7c
movsxd rcx, dword [0x140297f80]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140297f84]
jne 0x14008bd7c
mov rdi, qword [rax + rcx]
test rdi, rdi
jne 0x14008bd83
add rsp, 0x28
pop rdi
pop rsi
ret
cmp byte [rsi], 0
je 0x14008bd7c
cmp dword [rdi + 0x14], 0
je 0x14008bdea
mov rcx, qword [rdi + 8]
test rcx, rcx
jne 0x14008be1f
movabs rax, 0xdfffffffffffffff
lock and qword [rdi], rax
jmp 0x14008bd7c
lea rcx, [0x140297f88]
call fcn.1400c9d58
cmp dword [0x140297f88], 0xffffffff
jne 0x14008bd4a
mov qword [0x140297f80], 0
lea rcx, [0x140297f80]
xor edx, edx
call fcn.1400721e0
lea rcx, [0x140297f88]
call fcn.1400c9cf8
jmp 0x14008bd4a
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14008be0c
mov rsi, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rsi
or rcx, rax
mov qword [rdi], rcx
movabs rax, 0xbfffffffffffffff
lock and qword [rdi], rax
jmp 0x14008bd8e
mov rsi, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rsi
or rcx, rax
mov qword [rdi], rcx
jmp 0x14008bd9b

Function at 0x14008c110
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov byte [rcx], 1
mov eax, dword [0x140297f88]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008c1b3
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14008c172
movsxd rcx, dword [0x140297f80]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140297f84]
jne 0x14008c172
mov rdi, qword [rax + rcx]
test rdi, rdi
jne 0x14008c182
mov byte [rsi], 0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rax, qword [rdi]
bt rax, 0x3d
jb 0x14008c172
mov rcx, qword [rdi + 8]
test rcx, rcx
jne 0x14008c1f6
movabs rax, 0x4000000000000000
lock or qword [rdi], rax
movabs rax, 0x2000000000000000
lock or qword [rdi], rax
jmp 0x14008c175
lea rcx, [0x140297f88]
call fcn.1400c9d58
cmp dword [0x140297f88], 0xffffffff
jne 0x14008c140
mov qword [0x140297f80], 0
lea rcx, [0x140297f80]
xor edx, edx
call fcn.1400721e0
lea rcx, [0x140297f88]
call fcn.1400c9cf8
jmp 0x14008c140
movabs r14, 0xff00000000000000
mov rbx, qword [rdi]
call qword [rcx + 8]
and rbx, r14
or rbx, rax
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
movabs rax, 0x4000000000000000
lock or qword [rdi], rax
test rcx, rcx
je 0x14008c1a3
mov rbx, qword [rdi]
call qword [rcx + 8]
and rbx, r14
or rbx, rax
mov qword [rdi], rbx
jmp 0x14008c1a3
Function at 0x14008e7f0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd0
movaps xmmword [rsp + 0xc0], xmm6
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], r15
movaps xmm6, xmmword [0x140257270]
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
lea rdx, str.ReadAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x57
call fcn.14007e2d0
lea rcx, [rsp + 0x60]
mov rdx, rdi
xor r8d, r8d
call fcn.14008e970
test esi, esi
js 0x14008e944
mov dword [rsp + 0x40], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008e94e
mov esi, dword [rsp + 0x40]
test byte [0x140291180], 0x19
jne 0x14008e902
lea rcx, [rsp + 0x60]
call fcn.14007d180
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], r15
movaps xmmword [rdi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x140291180]
lea r9, [0x14025c94b]
mov rcx, rdi
mov dl, 0x45
call fcn.140086650
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14008e8cf
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14008e8cf
mov esi, 0xffffffff
jmp 0x14008e8c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x14008e8c6
Function at 0x140092510
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [rcx + 0x18], 0
je 0x1400925d1
mov eax, dword [0x14029bfe0]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140092635
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [0x14029bfe0]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140092678
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400925c5
movsxd rcx, dword [0x14029bfd8]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x14029bfdc]
movsxd rdx, dword [0x14029bfd8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rbx, qword [rsi]
mov rdi, qword [rsi + 8]
cmp rbx, rdi
jne 0x1400925ef
cmp qword [rsi], 0
jne 0x140092623
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400ccfe0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
lea r14, [rsp + 0x28]
mov r9, qword [rbx + 0x30]
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0x28], rax
mov qword [rbx + 0x28], 0
mov rax, qword [rcx]
lea rdx, [rbx + 8]
mov r8, r14
call qword [rax]
add rbx, 0x38
cmp rbx, rdi
je 0x1400925d1
jmp 0x1400925f4
mov rcx, rsi
call fcn.1401100d0
mov rcx, qword [rsi]
call fcn.1400c9cac
jmp 0x1400925d7
lea rcx, [0x14029bfe0]
call fcn.1400c9d58
cmp dword [0x14029bfe0], 0xffffffff
jne 0x14009255a
mov qword [0x14029bfd8], 0
lea rcx, [0x14029bfd8]
xor edx, edx
call fcn.1400721e0
lea rcx, [0x14029bfe0]
call fcn.1400c9cf8
jmp 0x14009255a
lea rcx, [0x14029bfe0]
call fcn.1400c9d58
cmp dword [0x14029bfe0], 0xffffffff
jne 0x14009258b
mov qword [0x14029bfd8], 0
lea rcx, [0x14029bfd8]
xor edx, edx
call fcn.1400721e0
lea rcx, [0x14029bfe0]
call fcn.1400c9cf8
jmp 0x14009258b
Function at 0x140098d50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140098d8e
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x140098d87
call fcn.140008460
jmp 0x140098d6e
Function at 0x1400a07e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x28], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x20]
mov qword [rcx], rax
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400a0855
movabs rax, 0x1fffffffffffff
and rax, qword [rsp + 0x20]
cvtsi2sd xmm0, rax
mov edx, 0xffffffcb
call fcn.1400ca65c
movapd xmm6, xmm0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400ccfe0
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
int3

Function at 0x1400a08a0
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [0x140299978]
cmp rbx, 1
jbe 0x1400a08f4
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400a093a
movsxd rcx, dword [rbx]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rbx + 4]
movsxd rdx, dword [rbx]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140299978]
call fcn.14008f690
test al, al
je 0x1400a0946
mov qword [0x140299980], 0
lea r14, [0x140299978]
lea rbx, [0x140299980]
mov rcx, rbx
xor edx, edx
call fcn.1400721e0
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9, r14
call fcn.14008f670
jmp 0x1400a08bc
test rdi, rdi
je 0x1400a08e7
call fcn.140008460
jmp 0x1400a08ce
mov rbx, qword [0x140299978]
jmp 0x1400a08bc

Function at 0x1400a0960
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400a0994
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x1400a0994
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x1400a098e