joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003a5e0
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 0x14003a5f5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x14003d040
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140106eb0], 0
jne 0x14003d07d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14003d070
mov dword [rdi], eax
mov dword [0x140106eb8], eax
mov qword [0x140106eb0], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

Function at 0x14003fef0
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x140040012
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x140040048
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr r10b, 3
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x140040050
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
test edi, edi
setne cl
and cl, al
mov byte [r8 + 0x16], cl
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x140040054
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x14004005a
pop rdi
pop rsi
ret
xor r10d, r10d
jmp 0x14003ff4c
xor eax, eax
jmp 0x14003ffe1
mov dl, byte [r8 + 0x19]
jmp 0x140040041
cmp byte [r8 + 0x1a], 0
je 0x140040045
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x140040045
cmp ecx, 0x666f736f
jne 0x140040045
cmp edx, 0x76482074
jne 0x140040045
mov byte [r8 + 0x19], 1
jmp 0x140040045
Function at 0x140040410
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140106ff0]
cmp rdi, 1
jbe 0x140040439
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140055400
lea rcx, [0x140106ff0]
call fcn.14003a630
test al, al
je 0x14004047e
xorps xmm0, xmm0
movups xmmword [0x140106ff8], xmm0
lea rbx, [0x140106ff0]
lea rdi, [0x140106ff8]
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 0x140040427
mov rdi, qword [0x140106ff0]
jmp 0x140040427

Function at 0x1400412b0
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov rbx, qword [rsi + 8]
sub rbx, rcx
sar rbx, 3
lea rdx, [rbx + 1]
mov rax, rdx
shr rax, 0x3d
jne 0x1400413f3
movabs rax, 0x1fffffffffffffff
mov r8, qword [rsi + 0x10]
sub r8, rcx
mov r14, r8
sar r14, 2
cmp r14, rdx
cmovbe r14, rdx
movabs rcx, 0x7ffffffffffffff8
cmp r8, rcx
cmovae r14, rax
test r14, r14
je 0x1400413ec
cmp r14, rax
ja 0x1400413f8
lea rcx, [r14*8]
call fcn.140067374
shl rbx, 3
add rbx, rax
je 0x1400413fd
mov rcx, qword [rdi]
mov qword [rbx], rcx
test rcx, rcx
je 0x140041349
lock inc dword [rcx + 8]
lea rax, [rax + r14*8]
lea rcx, [rbx + 8]
mov rdi, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, rdi
je 0x1400413d5
mov r8, qword [rdx - 8]
mov qword [rbx - 8], r8
mov qword [rdx - 8], 0
lea r8, [rdx - 8]
add rbx, 0xfffffffffffffff8
mov rdx, r8
cmp r8, rdi
jne 0x14004135d
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
cmp r14, rdi
je 0x1400413bf
add r14, 0xfffffffffffffff8
test r14, r14
je 0x140041429
mov rcx, qword [r14]
test rcx, rcx
je 0x1400413b3
lock dec dword [rcx + 8]
je 0x140041455
lea rax, [r14 - 8]
cmp r14, rdi
mov r14, rax
jne 0x140041398
test rdi, rdi
je 0x1400413e2
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400673b0
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
jmp 0x1400413bf
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x14004132d
call fcn.14007afa0
call fcn.140095700
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
lea rax, str.null_pointer_given_to_destroy_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.__loc___nullptr
mov r8d, 0x3f
call fcn.1400959c0
mov edx, 1
call fcn.140042f90
jmp 0x1400413b3
Function at 0x1400425a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400425dc
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400425e6
add rdi, rbx
sub rsi, rbx
jne 0x1400425ba
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x14004c010
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14004c057
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14004c071
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14004c04f
mov qword [rsi], rdi
call fcn.14004f650
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14004c087
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14004f650
mov rcx, qword [rsi]
call fcn.140051920
mov qword [rsi], 0
jmp 0x14004c03d
int3

Function at 0x14004f660
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1400ed028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1400ff4c0]
mov ecx, dword [0x1400fc89c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004f6c0
lea rsi, [0x1400ff4b8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400686c0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1400ff4c0]
call fcn.1400674d0
cmp dword [0x1400ff4c0], 0xffffffff
jne 0x14004f69c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14006a7e0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
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.140067374
mov rsi, rax
mov edi, dword [rdi]
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 0x14004f780
lea r8, [0x1400ff4d8]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.1400302f0
mov qword [0x1400ff4b8], rsi
lea rcx, [0x1400ff4c0]
call fcn.140067568
jmp 0x14004f69c
lea rcx, [0x1400ff508]
call fcn.1400674d0
cmp dword [0x1400ff508], 0xffffffff
jne 0x14004f751
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 0x14004f751
Function at 0x14004f7d0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1400ed028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1400ff4c0]
mov ecx, dword [0x1400fc89c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004f830
mov rsi, qword [0x1400ff4b8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400686c0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1400ff4c0]
call fcn.1400674d0
cmp dword [0x1400ff4c0], 0xffffffff
jne 0x14004f80c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14006a7e0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
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.140067374
mov rsi, rax
mov edi, dword [rdi]
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 0x14004f8f0
lea r8, [0x1400ff4d8]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.1400302f0
mov qword [0x1400ff4b8], rsi
lea rcx, [0x1400ff4c0]
call fcn.140067568
jmp 0x14004f80c
lea rcx, [0x1400ff508]
call fcn.1400674d0
cmp dword [0x1400ff508], 0xffffffff
jne 0x14004f8c1
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 0x14004f8c1
Function at 0x14004feb0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x1400ed028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.14004dd80
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x1400ff520]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14004ff0e
jnp 0x14004ff74
ucomisd xmm0, xmm6
jne 0x14004ff1a
jnp 0x140050089
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1400dc420]
subpd xmm1, xmmword [0x1400dc430]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1400dc440]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400686c0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1400ff530]
mov ecx, dword [0x1400fc89c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140050090
mov eax, dword [0x1400ff540]
mov ecx, dword [0x1400fc89c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400500ca
rdtsc
mov rbx, rax
mov r14, rdx
xor r12d, r12d
lea r15, [rsp + 0x30]
mov qword [r15], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r13, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r15], r12
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r13, qword [0x1400ff538]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1400dc418]
ucomisd xmm2, xmm1
ja 0x14004ff0e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x1400ff528]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1400dc420]
subpd xmm0, xmmword [0x1400dc430]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x1400ff520], xmm0
jmp 0x14004ff0e
xor eax, eax
jmp 0x14004ff4c
lea rcx, [0x1400ff530]
call fcn.1400674d0
cmp dword [0x1400ff530], 0xffffffff
jne 0x14004ffbd
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1400ff528], rdx
lea rcx, [0x1400ff530]
call fcn.140067568
jmp 0x14004ffbd
lea rcx, [0x1400ff540]
call fcn.1400674d0
cmp dword [0x1400ff540], 0xffffffff
jne 0x14004ffe2
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x1400ff538], rax
lea rcx, [0x1400ff540]
call fcn.140067568
jmp 0x14004ffe2
Function at 0x1400553c0
Capabilities:
Get thread local storage value

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

Function at 0x140055400
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1400f05e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14005543e
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 0x140055437
call fcn.140035cf0
jmp 0x14005541e
Function at 0x14005d000
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140106ef0]
cmp rsi, 1
jbe 0x14005d023
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140055400
lea rcx, [0x140106ef0]
call fcn.14003a630
test al, al
je 0x14005d068
xorps xmm0, xmm0
movups xmmword [0x140106ef8], xmm0
lea rdi, [0x140106ef0]
lea rsi, [0x140106ef8]
mov rcx, rsi
xor edx, edx
call fcn.140035f00
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14003a6f0
jmp 0x14005d013
mov rsi, qword [0x140106ef0]
jmp 0x14005d013

Function at 0x14005d190
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140106f20]
mov ecx, dword [0x1400fc89c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005d1c5
lea rcx, [0x140106f10]
add rsp, 0x28
jmp fcn.1400553c0
lea rcx, [0x140106f20]
call fcn.1400674d0
cmp dword [0x140106f20], 0xffffffff
jne 0x14005d1b5
xorps xmm0, xmm0
movups xmmword [0x140106f10], xmm0
lea rcx, [0x140106f10]
xor edx, edx
call fcn.140035f00
lea rcx, [0x140106f20]
call fcn.140067568
jmp 0x14005d1b5
Function at 0x14005d200
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov rbx, qword [rsi + 8]
sub rbx, rcx
sar rbx, 3
lea rdx, [rbx + 1]
mov rax, rdx
shr rax, 0x3d
jne 0x14005d353
movabs rax, 0x1fffffffffffffff
mov r8, qword [rsi + 0x10]
sub r8, rcx
mov r14, r8
sar r14, 2
cmp r14, rdx
cmovbe r14, rdx
movabs rcx, 0x7ffffffffffffff8
cmp r8, rcx
cmovae r14, rax
test r14, r14
je 0x14005d34c
cmp r14, rax
ja 0x14005d358
lea rcx, [r14*8]
call fcn.140067374
shl rbx, 3
add rbx, rax
je 0x14005d35d
lea rax, [rax + r14*8]
mov rcx, qword [rdi]
mov qword [rbx], rcx
mov qword [rdi], 0
lea rcx, [rbx + 8]
mov rdi, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, rdi
je 0x14005d321
mov r8, qword [rdx - 8]
mov qword [rbx - 8], r8
mov qword [rdx - 8], 0
lea r8, [rdx - 8]
add rbx, 0xfffffffffffffff8
mov rdx, r8
cmp r8, rdi
jne 0x14005d2ab
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
cmp r14, rdi
je 0x14005d32c
add r14, 0xfffffffffffffff8
test r14, r14
je 0x14005d389
mov rcx, qword [r14]
mov rax, qword [0x1400f05a0]
and rax, rcx
cmp rax, qword [0x1400f0588]
je 0x14005d31a
mov qword [r14], 0
lea rax, [r14 - 8]
cmp r14, rdi
mov r14, rax
jne 0x14005d2e6
jmp 0x14005d32c
call fcn.14004eb50
jmp 0x14005d305
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
test rdi, rdi
jne 0x14005d33b
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400673b0
xor eax, eax
jmp 0x14005d27d
call fcn.14007afa0
call fcn.140095700
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
lea rax, str.null_pointer_given_to_destroy_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.__loc___nullptr
mov r8d, 0x3f
call fcn.1400959c0
int3

Function at 0x14005e4e0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x14005e57a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14005e564
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14005e541
mov qword [rsi], rdi
call fcn.14004f650
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
inc rax
cmp rax, 1
jbe 0x14005e57e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14004f650
mov rcx, qword [rsi]
call fcn.140051920
mov qword [rsi], 0
jmp 0x14005e52f
mov byte [rsi + 8], 1
int3
Function at 0x1400670d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401070f0]
mov ecx, dword [0x1400fc89c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140067136
lea rcx, [0x1401070e0]
xor edx, edx
call fcn.140055400
mov eax, dword [0x140107108]
mov ecx, dword [0x1400fc89c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140067171
lea rcx, [0x1401070f8]
xor edx, edx
add rsp, 0x28
jmp fcn.140055400
lea rcx, [0x1401070f0]
call fcn.1400674d0
cmp dword [0x1401070f0], 0xffffffff
jne 0x1400670f5
xorps xmm0, xmm0
movups xmmword [0x1401070e0], xmm0
lea rcx, [0x1401070e0]
xor edx, edx
call fcn.140035f00
lea rcx, [0x1401070f0]
call fcn.140067568
jmp 0x1400670f5
lea rcx, [0x140107108]
call fcn.1400674d0
cmp dword [0x140107108], 0xffffffff
jne 0x140067124
xorps xmm0, xmm0
movups xmmword [0x1401070f8], xmm0
lea rcx, [0x1401070f8]
xor edx, edx
call fcn.140035f00
lea rcx, [0x140107108]
call fcn.140067568
jmp 0x140067124

Function at 0x1400672c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140107110]
cmp rsi, 1
jbe 0x1400672e3
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140055400
lea rcx, [0x140107110]
call fcn.14003a630
test al, al
je 0x140067328
xorps xmm0, xmm0
movups xmmword [0x140107118], xmm0
lea rdi, [0x140107110]
lea rsi, [0x140107118]
mov rcx, rsi
xor edx, edx
call fcn.140035f00
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14003a6f0
jmp 0x1400672d3
mov rsi, qword [0x140107110]
jmp 0x1400672d3
Function at 0x14008d21c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14008d24c
xor eax, eax
jmp 0x14008d30f
mov rbp, rbx
cmp word [rax], si
je 0x14008d271
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14008d258
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14008d254
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14008d16c
movsxd r14, eax
test eax, eax
jne 0x14008d2af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14008d245
mov rcx, r14
call fcn.14002c9f0
mov rdi, rax
test rax, rax
jne 0x14008d2c8
xor ecx, ecx
call fcn.14004c140
jmp 0x14008d2a4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14008d16c
test eax, eax
jne 0x14008d2f9
mov rcx, rdi
call fcn.14004c140
jmp 0x14008d303
xor ecx, ecx
call fcn.14004c140
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14008d32c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14008d3b3
mov rsi, rbx
cmp word [rax], bp
je 0x14008d372
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14008d35c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14008d358
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002c9f0
mov rdi, rax
test rax, rax
je 0x14008d3a0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14006a130
mov rbp, rdi
xor ecx, ecx
call fcn.14004c140
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret