joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18021439c
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 0x1802143cc
xor eax, eax
jmp 0x18021448f
mov rbp, rbx
cmp word [rax], si
je 0x1802143f1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1802143d8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1802143d4
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.180213e40
movsxd r14, eax
test eax, eax
jne 0x18021442f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1802143c5
mov rcx, r14
call fcn.1800d5b40
mov rdi, rax
test rax, rax
jne 0x180214448
xor ecx, ecx
call fcn.1800d59b0
jmp 0x180214424
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.180213e40
test eax, eax
jne 0x180214479
mov rcx, rdi
call fcn.1800d59b0
jmp 0x180214483
xor ecx, ecx
call fcn.1800d59b0
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 0x1802144ac
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 0x180214533
mov rsi, rbx
cmp word [rax], bp
je 0x1802144f2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1802144dc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1802144d8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1800d5b40
mov rdi, rax
test rax, rax
je 0x180214520
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1801e81b0
mov rbp, rdi
xor ecx, ecx
call fcn.1800d59b0
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
Function at 0x180216ae4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1801f346c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x180216b6e
cmp byte [rbp - 0x21], r15b
je 0x180216b69
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x180216ba4
call fcn.18020d234
test eax, eax
jne 0x180216b90
cmp byte [rbp - 0x21], r15b
je 0x180216b88
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x180216ba4
cmp byte [rbp - 0x21], r15b
je 0x180216ba1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1801f8a7c
test eax, eax
jne 0x180216c44
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1801f346c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x180216be3
cmp byte [rbp - 0x21], r15b
je 0x180216c18
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x180216c18
call fcn.18020d234
test eax, eax
jne 0x180216c04
cmp byte [rbp - 0x21], r15b
je 0x180216bfd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x180216c18
cmp byte [rbp - 0x21], r15b
je 0x180216c15
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1801f8a7c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x180216c44
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x180216c47
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x180216c55
mov rcx, rdi
call fcn.1800d59b0
cmp byte [rbp + 0x3f], r15b
je 0x180216c64
mov rcx, qword [rbp + 0x27]
call fcn.1800d59b0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180217bf8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180217c0e
mov al, 1
jmp 0x180217c6e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180217c1f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180217c6c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1801fc50c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180217c6c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180217c6c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180217c6c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180217c6e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180224160
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 [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x1802243d4
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1803c2e88], rax
jne 0x1802243d1
mov rsi, rcx
mov r14d, dword [rcx + 8]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
cmp byte [rcx + 2], 0
sete al
bsr rdx, r14
xor rdx, 0xffffffffffffffc0
lea rcx, [0x180350548]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x180350590]
mov rcx, qword [rcx + rdx*8 + 0x208]
and rcx, r14
lea rdx, [r8 + rdx*8]
add rdx, 0x208
cmp rcx, 1
sbb rdx, 0xffffffffffffffff
lea rcx, [0x180347380]
movzx ecx, word [rcx + rdx*2 + 0x400]
cmp cx, 0x6e
setb dl
and dl, al
movzx eax, dl
or eax, ecx
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rdi, [rsi + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x18022423d
mov rcx, rdi
call fcn.1800d4a10
mov rax, qword [r15]
mov rbx, qword [rax]
test rbx, rbx
je 0x180224336
mov byte [rsp + 0x3f], 0
mov r8, qword [rbx]
test r8, r8
je 0x18022432f
lea rdx, [rsi + 0x48]
mov rcx, r8
bswap rcx
mov r14d, dword [rdx + r12*8 + 0x18]
mov rdx, rcx
xor rdx, rbx
cmp rdx, 0x1fffff
ja 0x18022439c
mov edx, ecx
and edx, 0x1fc000
je 0x18022439c
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, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rbx
mov rdx, rsi
call fcn.1801454e0
mov ecx, dword [0x1803ca610]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1803c8448]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x120], rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1801e6610
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x180224290
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.1800b84e0
test rax, rax
je 0x1802243ca
mov rbx, rax
and rax, 0xffffffffffe00000
mov ecx, ebx
shr ecx, 0xe
movzx ecx, cl
shl rcx, 5
or rcx, rax
mov rax, rcx
or rax, 0x1000
or rcx, 0x101e
movzx ecx, byte [rcx]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
jmp 0x1802242aa
movaps xmm0, xmmword [0x1803467d0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
lea rdx, str.first
mov rcx, rsi
call fcn.180275130
mov rcx, rsi
call fcn.180141e80
mov rcx, r14
call fcn.180275170
xor ebx, ebx
jmp 0x1802242d4
int3
int3
Function at 0x180232d80
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov rsi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rdx]
add rax, 0xfffffffffffffffd
cmp rax, 0xfffffffffffffffd
jbe 0x180232dc9
mov edi, dword [rsp + 0x120]
cmp edi, 3
jb 0x180232dff
mov qword [rsi], 0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1801e6610
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, r8d
mov r14, rdx
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x80]
mov qword [rbx + 0x10], r12
movaps xmm6, xmmword [0x1803467d0]
movaps xmmword [rbx], xmm6
mov rdx, qword [r9]
mov r8, qword [r9 + 8]
mov rcx, rbx
call fcn.180100160
cmp byte [rbx + 0x10], 0
je 0x180232dc9
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
xor r15d, r15d
lea rcx, [rsp + r15]
add rcx, 0x60
call fcn.18010ef60
add r15, 0x10
cmp r15, 0x20
jne 0x180232e47
cmp qword [r14], 0
je 0x180232efb
xor r13d, r13d
lea r15, [rsp + 0x30]
xor r12d, r12d
mov rdx, qword [r14 + 8]
add rdx, r13
mov rcx, r15
call fcn.18018ce68
lea rcx, [rsp + r13]
add rcx, 0x60
mov rdx, r15
call fcn.18010effa
mov rcx, r15
call fcn.18010f130
inc r12
mov rax, qword [r14]
add r13, 0x10
cmp r12, rax
jb 0x180232e73
test rax, rax
movabs r12, 0xaaaaaaaaaaaaaaaa
je 0x180232efb
mov dword [rsp + 0x60], 0
mov r15, qword [rsp + 0x68]
mov qword [rsp + 0x68], 0
test r15, r15
je 0x180232efb
cmp r15, 0xffffffffffffffff
je 0x180232fca
call fcn.18010a990
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
call fcn.18010a990
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x180232efe
xor r15d, r15d
mov qword [rsp + 0x50], r12
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
cmp byte [rsp + 0x90], 0
je 0x180232fc5
mov r14d, ebp
mov qword [rsp + 0x28], 0
cmp r15, 0xffffffffffffffff
je 0x180232f37
test r15, r15
je 0x180232f5b
call fcn.18010a990
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
lea rax, [r15 + 1]
cmp rax, 2
jb 0x180232f53
mov qword [rsp + 0x28], r15
call fcn.18010a990
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x20], rbx
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov rcx, rbx
mov r8d, edi
mov r9, r14
call fcn.1801dad20
mov rcx, rbx
call fcn.1800fe720
test al, al
jne 0x180232fb6
mov qword [rsi], 0
lea rcx, [rsp + 0x30]
call fcn.1800fddc0
mov edi, 0x10
lea rcx, [rsp + rdi]
add rcx, 0x60
call fcn.18010f130
add rdi, 0xfffffffffffffff0
cmp rdi, 0xfffffffffffffff0
jne 0x180232f9a
jmp 0x180232dd0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.180151070
jmp 0x180232f8b
call fcn.180289298
xor r15d, r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x180232ef0
Function at 0x180232fe0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r9
mov r15, r8
mov r14, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rdi, [rcx + 0x10]
mov rcx, rdi
call fcn.1800fe720
mov ebx, eax
test al, al
je 0x1802330f6
mov rax, qword [r15 + 8]
mov dword [rax], 0x20
mov ecx, dword [r14 + 0x20]
mov dword [rax + 4], ecx
mov dword [rax + 0xc], 0
mov ecx, dword [r14 + 0x18]
cmp ecx, 2
ja 0x18023303d
mov dword [rax + 8], ecx
mov rcx, qword [r14 + 0x28]
mov rdx, qword [r14 + 0x30]
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x40]
mov qword [r14], rax
mov rcx, rdi
mov rdx, r14
call fcn.180180eb0
xor eax, eax
mov qword [rsp + 0x28], rax
mov r15, qword [r14]
mov qword [r14], rax
cmp r15, 0xffffffffffffffff
je 0x180233087
test r15, r15
je 0x1802330ab
call fcn.18010a990
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [r15 + 1]
cmp rax, 2
jb 0x1802330a3
mov qword [rsp + 0x28], r15
call fcn.18010a990
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
call fcn.18010f082
cmp qword [rsi], 0
je 0x180233111
mov rcx, qword [rsi + 8]
lea rsi, [rsp + 0x30]
mov rdx, rsi
call fcn.18010effa
mov rcx, rsi
call fcn.18010f130
mov rax, qword [rsp + 0x40]
inc rax
cmp rax, 2
jb 0x1802330f6
call fcn.18010a990
mov rcx, qword [rsp + 0x40]
call fcn.1800fd300
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1801e6610
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
int3
Function at 0x18023a1a0
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x288
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea r14, [rsp + 0x180]
mov r8d, 0x100
mov rcx, r14
mov dl, 0xaa
call fcn.1801e8860
lea r9, [rsp + 0x17c]
mov dword [r9], 0
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, r14
mov r8d, 0x100
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18023a29c
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x30]
mov qword [rbx], rax
mov r8d, dword [rsp + 0x17c]
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x180]
mov rcx, rbx
xor r9d, r9d
call fcn.18028e1b0
mov rcx, qword [rbx]
test rcx, rcx
je 0x18023a2fd
call fcn.1801d6a00
cmp rax, 7
jbe 0x18023a2fd
mov rcx, qword [rsp + 0x30]
call fcn.1801d6030
cmp dword [rax], edi
jne 0x18023a367
mov rax, qword [rsp + 0x30]
mov qword [rsi], rax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1801e6610
mov rax, rsi
add rsp, 0x288
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 2
call fcn.180109be0
test al, al
jne 0x18023a2b3
mov qword [rsi], 0
jmp 0x18023a27c
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....mojocore_broker_win.cc
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov r8d, 0x38
mov r9d, 2
call fcn.1801815d0
lea rcx, [rsp + 0x48]
lea rdx, str.Error_reading_broker_pipe
mov r8d, 0x19
call fcn.1800d33a5
mov rcx, rdi
call fcn.180181650
jmp 0x18023a2aa
mov ecx, 2
call fcn.180109be0
test al, al
je 0x18023a34a
lea rdx, str.....mojocore_broker_win.cc
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov r8d, 0x40
mov r9d, 2
call fcn.180180f60
lea rcx, [rsp + 0x48]
lea rdx, str.Invalid_broker_message
mov r8d, 0x16
call fcn.1800d33a5
mov rcx, rsi
call fcn.1801e3530
lea rcx, [rsp + 0x180]
call fcn.1800d2060
lea rcx, [rsp + 0x17c]
call fcn.1800d2060
int3
mov ecx, 2
call fcn.180109be0
test al, al
je 0x18023a3b4
lea rdx, str.....mojocore_broker_win.cc
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov r8d, 0x4b
mov r9d, 2
call fcn.180180f60
lea rcx, [rsp + 0x48]
lea rdx, str.Unexpected_broker_message_type
mov r8d, 0x1e
call fcn.1800d33a5
mov rcx, rsi
call fcn.1801e3530
lea rcx, [rsp + 0x180]
call fcn.1800d2060
lea rcx, [rsp + 0x17c]
call fcn.1800d2060
int3
Function at 0x18023f930
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.1801e4f08
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x1803b6e08]
jne 0x18023f99d
mov rcx, r15
call fcn.1800b7e70
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x180173b80]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x18023fa11
test r14, r14
je 0x18023fa06
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1801e6610
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18023f9e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x18023fa2a
mov ebp, eax
cmp eax, 0x5af
je 0x18023fa2a
cmp ebp, 0xe
jne 0x18023fa55
mov rcx, rbx
call fcn.180274d20
test rsi, rsi
je 0x18023f9e0
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x1803b6e08]
jne 0x18023fa4b
call fcn.1800b7f90
mov rcx, rsi
call fcn.1801e4f44
jmp 0x18023f9e0
mov eax, dword [0x1803d4788]
mov ecx, dword [0x1803c8448]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x18023fae4
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.18017cb50
movzx eax, byte [rbx + 0x17]
test al, al
js 0x18023fa92
and eax, 0x7f
jmp 0x18023fa9c
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rax
test rax, rax
js 0x18023fb26
test rbx, rbx
jne 0x18023fab9
test rax, rax
jne 0x18023fb52
mov rcx, qword [0x1803d4780]
lea rdx, [rsp + 0x50]
call fcn.180177be0
cmp byte [rsp + 0x4f], 0
jns 0x18023fa32
mov rcx, qword [rsp + 0x38]
call fcn.1801e4f44
jmp 0x18023fa32
lea rcx, [0x1803d4788]
call fcn.1801e5060
cmp dword [0x1803d4788], 0xffffffff
jne 0x18023fa76
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.180177bc0
mov qword [0x1803d4780], rax
lea rcx, [0x1803d4788]
call fcn.1801e50f8
jmp 0x18023fa76
lea rax, str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
mov r8d, 0x13a
call fcn.18027be54
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len__0____s___nullptr
mov r8d, 0x13c
call fcn.18027be54
int3
Function at 0x1802519c0
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 [0x1803c7ba4]
cmp ecx, 0xffffffff
je 0x1802519e2
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1802519e7
call fcn.180251a90
call fcn.18019a690
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x180251a04
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [0x1803d6198]
inc rax
xor ecx, ecx
lea rdx, [0x1803d61a0]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
je 0x180251a38
inc rcx
cmp rcx, 0x100
jne 0x180251a17
jmp 0x180251a67
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x1803d79a0]
inc ecx
mov dword [0x1803d79a0], ecx
mov dword [rax + 0x14], ecx
mov qword [0x1803d6198], 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 0x180251a81
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
int3

Function at 0x180251a90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1801e65b0
sub rsp, rax
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1803c7ba4]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x180251b44
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x180251ba5
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1801e8860
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1801e4f7c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1801e81b0
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.1801e6610
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.1801b5f50
test al, al
je 0x180251ba8
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x180251b7e
lea rcx, [rsp + 0x2c]
call fcn.1801b5f50
test al, al
je 0x180251bab
cmp dword [rsp + 0x2c], 0xffffffff
je 0x180251bab
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x1803c7ba4], ecx
je 0x180251ac8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1803c7ba4]
mov dword [rsp + 0x2c], ecx
jmp 0x180251ac8
int3
int3
int3
Function at 0x18025456e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rcx + 0x50]
mov r12, qword [rcx + 0x58]
mov ebx, 1
cmp rdi, r12
je 0x1802545f6
mov rsi, r8
mov r14, rcx
lea r15, [rsp + 0x20]
mov rcx, rdi
mov rdx, r15
call fcn.18018bfb8
test al, al
je 0x180254618
cmp rdi, qword [r14 + 0x58]
je 0x1802545f6
cmp byte [rdi + 0x27], 0
jns 0x1802545d0
mov rcx, qword [rdi + 0x10]
jmp 0x1802545d4
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
mov ebx, 1
cmovne ebx, ecx
test ebx, ebx
jne 0x1802545f6
mov qword [rsi], rdi
xor ebx, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1801e6610
mov eax, ebx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rdi, r12
jmp 0x1802545be
add rdi, 0x70
cmp rdi, r12
jne 0x1802545af
jmp 0x180254613

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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov r14, qword [rcx + 0x50]
mov r12, qword [rcx + 0x58]
mov esi, 1
cmp r14, r12
je 0x1802546b5
mov rdi, r9
mov ebp, r8d
mov rbx, rcx
lea r15, [rsp + 0x20]
mov rcx, r14
mov rdx, r15
call fcn.18018bfb8
test al, al
je 0x1802546d8
cmp r14, qword [rbx + 0x58]
je 0x1802546b5
mov eax, dword [r14 + 0x68]
cmp eax, ebp
jne 0x1802546e3
cmp byte [r14 + 0x27], 0
js 0x180254693
lea rcx, [r14 + 0x10]
jmp 0x180254697
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1802546b5
shr eax, 3
and eax, 2
mov esi, eax
jne 0x1802546b5
mov byte [rbx + 0x48], 1
mov qword [rdi], r14
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1801e6610
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, r12
jmp 0x180254678
add r14, 0x70
cmp r14, r12
jne 0x180254669
jmp 0x1802546d3
xor ecx, ecx
cmp eax, 1
sete cl
lea esi, [rcx + rcx*2]
inc esi
jmp 0x1802546b5