joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a8350
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x14023e038]
xor rax, rsp
mov qword [rsp + 0xc8], rax
test rcx, rcx
je 0x1400a850e
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor r8d, r8d
call fcn.140172588
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x80]
mov qword [r14 + 0x40], rax
movaps xmm6, xmmword [0x140215460]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.ReadStreamToSpanWithMaxSize
lea r8, str....._base_files_file_util.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, VarR8FromUI1
call fcn.14011b550
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14010e6d0
xorps xmm0, xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov dword [r15 + 0x30], 0
mov rcx, rbx
call fcn.1401682c4
mov ecx, eax
call fcn.14016831c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1400a8512
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov r14d, 0xffff
cmovg r14, rax
cmp r14, rdi
cmovae r14, rdi
inc r14
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm6
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
mov r8, r14
call qword [case.0x1401bb600.0]
xor r12d, r12d
mov rcx, qword [rsp + 0x38]
add rcx, r12
mov edx, 1
mov r8, r14
mov r9, rbx
call fcn.140172308
test rax, rax
je 0x1400a84b1
mov r15, rax
mov rax, rdi
sub rax, r12
cmp rax, r15
jb 0x1400a851d
add r15, r12
mov rcx, rbx
call fcn.140171874
test eax, eax
je 0x1400a8521
mov r12, r15
mov rcx, rbx
call fcn.1401718a0
test eax, eax
sete bl
mov rdi, r12
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [case.0x1401bb600.0]
lea rcx, [rsp + 0x80]
call fcn.14010e910
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1401513b0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x1400a84e3
mov r14d, 0xffff
jmp 0x1400a844f
xor ebx, ebx
jmp 0x1400a84c1
test r12, r12
mov eax, 0x10000
cmove r14, rax
lea r8, [r15 + r14]
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea r12, [rsp + 0x20]
mov rcx, r12
call qword [case.0x1401bb600.0]
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
mov r12, r15
jmp 0x1400a8474
Function at 0x1400b2500
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.1400b25c0
mov eax, dword [rsi]
mov dword [reloc.WS2_32.dll_accept], eax
test al, 1
jne 0x1400b2521
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x140256bb0]
test rcx, rcx
jne 0x1400b253b
mov rcx, qword [0x140256b88]
test rcx, rcx
je 0x1400b255f
jmp 0x1400b2581
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140256bb0], 0
mov rcx, qword [0x140256b88]
test rcx, rcx
jne 0x1400b2581
and byte [reloc.WS2_32.dll_accept], 0xfe
mov ecx, SafeArrayCopy
call fcn.1401507f0
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x140256b88], rax
mov rdx, qword [rsi + 8]
call fcn.1400b32e0
cmp dword [rsi + 0x14], 0
jne 0x1400b25a6
mov rcx, qword [0x140256b88]
cmp byte [rcx + 0x17], 0
jns 0x1400b25a0
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1401c25c0
Function at 0x1400b6350
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x14023e038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x58]
mov rcx, rdi
call fcn.140110430
cmp byte [rdi + 0x17], 0
jns 0x1400b6391
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x6f], 0
jns 0x1400b63b2
mov rcx, qword [rsp + 0x58]
call fcn.14015082c
test rsi, rsi
je 0x1400b6459
test edi, edi
je 0x1400b6459
mov ecx, edi
add rcx, rcx
call fcn.14015086c
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x58]
mov rcx, r14
call fcn.140110430
cmp byte [r14 + 0x17], 0
jns 0x1400b63f5
mov r14, qword [rsp + 0x58]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x6f], 0
jns 0x1400b6415
mov rcx, qword [rsp + 0x58]
call fcn.14015082c
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x1400b6477
mov rcx, rbx
call fcn.1401791e4
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.1401108f0
cmp byte [rsi + 0x17], 0
js 0x1400b647a
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.140150874
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401513b0
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
mov rcx, qword [rsi]
call fcn.14015082c
jmp 0x1400b6440

Function at 0x1400b6890
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x14023e038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140256c70]
test rdi, rdi
jne 0x1400b6943
mov ecx, 0x50
call fcn.1401507f0
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, SafeArrayCopy
call fcn.1401507f0
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x1400b6965
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x140256c70], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400b6991
mov rcx, rax
call fcn.1401791e4
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.1400b69a0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401513b0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
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, 0x25
call fcn.140191960
int3
Function at 0x1400b69a0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14023e038]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.1400a1ef0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x1400b6b2c
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x1402261f4]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x1400b6b7d
lea rdx, [0x140226244]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400b6b90
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [case.0x1401bb600.0]
mov r14, rax
movsxd r12, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test r12, r12
je 0x1400b6b98
shl r12, 3
movabs rax, 0x5555555555555551
cmp r12, rax
jae 0x1400b6ba2
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.1401507f0
mov rbx, rax
mov qword [rsp + 0x30], rax
add rax, r15
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov r15, rbx
test r15, r15
je 0x1400b6b51
mov rdx, qword [r14 + r13]
mov rcx, r15
call fcn.14018f050
add r15, 0x18
add r13, 8
cmp r12, r13
jne 0x1400b6aac
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400b66b0
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x1400b6afa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x1400b6b2c
cmp r15, rbx
je 0x1400b6b24
lea rsi, [r15 - 0x18]
cmp byte [r15 - 1], 0
js 0x1400b6b19
mov r15, rsi
cmp rsi, rbx
jne 0x1400b6b04
jmp 0x1400b6b24
mov rcx, qword [r15 - 0x18]
call fcn.14015082c
jmp 0x1400b6b0f
mov rcx, rbx
call fcn.14015082c
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401513b0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
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, 0x25
call fcn.140191960
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x1400b6a51
xor r14d, r14d
jmp 0x1400b6a54
xor r15d, r15d
xor ebx, ebx
jmp 0x1400b6ad3
lea rcx, [rsp + 0x30]
call fcn.14018f280
int3
Function at 0x1400b9430
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 [0x14023e038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x1400b9677
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140242180], rax
jne 0x1400b967a
mov rsi, rcx
mov r14d, dword [rcx + 0xc]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
cmp byte [rcx + 2], 0
sete al
bsr rdx, r14
xor rdx, 0xffffffffffffffc0
lea rcx, [0x140225cb0]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x140225d00]
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, reloc.WS2_32.dll_recv
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 rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400b966a
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x1400b95f8
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400b9663
lea rdx, [rsi + 0x48]
bswap rcx
mov r14d, dword [rdx + r12*8 + 0x18]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x1400b967d
mov edx, ecx
and edx, 0x1fc000
je 0x1400b967d
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.14011f840
mov ecx, dword [0x140256ca4]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14024e434]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x180], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401513b0
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.140130fb0
test rax, rax
je 0x1400b96ae
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 0x1400b9573
xor ecx, ecx
jmp 0x1400b9559
mov rcx, rbx
call fcn.1401204b0
jmp 0x1400b9509
int3
int3
movaps xmm0, xmmword [0x140215460]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.1401c24c0
mov rcx, rsi
call fcn.140038260
mov rcx, r14
call fcn.1401c2530
xor edi, edi
jmp 0x1400b959d
Function at 0x1400b9e00
Capabilities:
Initialize winsock library

Disassembly:
push rsi
sub rsp, 0x1c0
mov rax, qword [0x14023e038]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
mov rax, qword [0x140256d10]
cmp rax, 1
jbe 0x1400b9e41
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.1401513b0
nop
add rsp, 0x1c0
pop rsi
ret
lea rcx, [0x140256d10]
call fcn.14011b580
test al, al
je 0x1400b9e98
lea rsi, [rsp + 0x20]
mov r8d, 0x198
mov rcx, rsi
mov dl, 0xaa
call fcn.140154340
mov cx, 0x202
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400b9e7d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x140256d18]
lea rcx, [0x140256d10]
xor r8d, r8d
mov r9, rcx
call fcn.1400b3b50
jmp 0x1400b9e27
mov rax, qword [0x140256d10]
jmp 0x1400b9e27

Function at 0x1400bc1f0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov ebx, r9d
mov rsi, rcx
mov rax, qword [0x14023e038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
test r8b, r8b
jne 0x1400bc2c6
or ebx, 8
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400bc38c
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1400bc2c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x1400bc37e
call fcn.14011b570
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov qword [rsi + 8], 0
cmp rbx, 0xffffffffffffffff
je 0x1400bc282
test rbx, rbx
je 0x1400bc2a5
call fcn.14011b570
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400bc29d
mov qword [rsi + 8], rbx
call fcn.14011b570
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401513b0
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x1400bc267
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400bc38c
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x1400bc37a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rdi, 0xffffffffffffffff
je 0x1400bc385
call fcn.14011b570
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x38]
mov qword [r14], rax
or ebx, 8
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 2
xor r15d, r15d
mov rcx, rdi
mov edx, ebx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
mov rbx, qword [r14]
cmovne r15, rbx
mov qword [rsp + 0x30], r15
test r15, r15
je 0x1400bc394
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400bc248
call fcn.14011b570
mov rcx, rdi
call fcn.140104cf0
jmp 0x1400bc23e
xor edi, edi
jmp 0x1400bc30e
xor ebx, ebx
jmp 0x1400bc25f
xor edi, edi
jmp 0x1400bc306
mov byte [rsi], 0
jmp 0x1400bc2a5
mov byte [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400bc2a5
call fcn.14011b570
mov rcx, rdi
call fcn.140104cf0
jmp 0x1400bc2a5
Function at 0x1400bf3f0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14023e038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x1400bf53d
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x140215460]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [case.0x1401bb600.0]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [case.0x1401bb600.0]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [case.0x1401bb600.0]
test r14, r14
je 0x1400bf4d3
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x1400bf4c3
lea r14, [rsi + 0xf8]
mov eax, dword [0x140257074]
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1400bf541
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x1400bf50e
lea rcx, section..text
mov qword [r14], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401513b0
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400bf520
bt eax, 9
jae 0x1400bf561
call fcn.140004350
lea rax, [0x140004820]
test r14, r14
je 0x1400bf50e
lea rcx, [0x140004520]
jmp 0x1400bf50b
call fcn.1401cacb0
lea rax, [0x1401cb4b0]
test r14, r14
je 0x1400bf50e
lea rcx, [0x1401cab70]
jmp 0x1400bf50b
Function at 0x1400bf800
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 0x1400bf8ee
cmp qword [rsi], 0
jne 0x1400bf8ee
cmp dword [rsi + 0x14], 0
jne 0x1400bf8ee
cmp qword [rsi + 8], 0
jne 0x1400bf8ee
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x1400bf870
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400bf8c0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400bf868
mov qword [rsi], r14
call fcn.14011b570
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x1400bf8aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400bf8d6
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400bf8a2
mov qword [rsi + 8], r14
call fcn.14011b570
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.14011b570
mov rcx, qword [rsi]
call fcn.140104cf0
mov qword [rsi], 0
jmp 0x1400bf856
call fcn.14011b570
mov rcx, qword [rsi + 8]
call fcn.140104cf0
mov qword [rsi + 8], 0
jmp 0x1400bf88f
mov rcx, rsi
call fcn.1401cc470
mov rax, qword [rsi]
jmp 0x1400bf83a

Function at 0x1400cce00
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14025bef8], 0
jne 0x1400cce3d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400cce30
mov dword [rdi], eax
mov dword [0x14025bf00], eax
mov qword [0x14025bef8], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x1400d22d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x14023e038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x1400d22a0]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x14025cc40]
lea rdx, [0x1400d2120]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400d23c8
cmp dword [0x14025cc48], 0
jne 0x1400d23d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14025cc4c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x1400d237c
mov ecx, 1
mov edx, 0x28
call fcn.14010b560
test rax, rax
je 0x1400d23d5
mov r14, rax
mov ecx, dword [0x14025cc4c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400d23cd
lea r15, [0x14025cc50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x14025cc60]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401513b0
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14016adf0
mov rcx, r14
call fcn.14010b4c0
mov rcx, rsi
mov rax, rdi
call qword [case.0x1401bb600.0]
xor esi, esi
jmp 0x1400d23ac

Function at 0x1400d27b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400d27ec
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 0x1400d27f6
add rdi, rbx
sub rsi, rbx
jne 0x1400d27ca
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14016adf0
int3
Function at 0x1400d3190
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x1400d31a0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x1400d31c1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400d31e1
cmp byte [r14 + 0x68], 0
jne 0x1400d32a5
or edi, 0x20000000
test dil, 8
jne 0x1400d325b
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x1400d31fb
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x1400d320c
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x1400d3270
cmp byte [r14], 0
jne 0x1400d327e
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1400d328f
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x1400d329b
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [r14 + 0x88], 0
je 0x1400d32c2
or edi, 0x40000000
jmp 0x1400d31e7
lea rcx, [r14 + 0x30]
call fcn.1400a4c10
mov r15, rax
jmp 0x1400d3213
add r14, 8
mov rcx, r14
call fcn.1400a4c10
mov r9, rax
jmp 0x1400d321c
cmp ebx, 4
jne 0x1400d32b0
mov edx, 6
jmp 0x1400d3225
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400d3246
or edi, 0x80000000
jmp 0x1400d31e1
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1400d32cd
mov edx, 7
jmp 0x1400d3225
or edi, 0x10000000
jmp 0x1400d31e7
cmp ebx, 1
jne 0x1400d32dc
mov edx, 4
jmp 0x1400d3225
xor edx, edx
jmp 0x1400d3225