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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rdi, r8
lea r9, [rsp + 0x160]
mov ebp, 0xffffffff
mov rsi, rdx
cmp r8, rbp
mov rbx, rcx
cmova edi, ebp
xor r14d, r14d
mov r8d, edi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003f54f
nop word [rax + rax]
mov dword [rsp + 0x168], ebp
cmp dword [rsp + 0x160], ebp
je 0x14003f4c5
mov rax, r14
jmp 0x14003f4e1
lea r8, str.bytes_read___static_cast_DWORD___1_
lea rdx, [rsp + 0x168]
lea rcx, [rsp + 0x160]
call fcn.14003ab90
test rax, rax
je 0x14003f513
mov r9d, 0x7e
mov qword [rsp + 0x20], rax
lea r8, str..._.._.._util_file_file_io_win.cc
lea rdx, str.__int64___cdecl_crashpad::ReadFile_void__void__unsigned___int64_
lea rcx, [rsp + 0x30]
call fcn.14002d9e0
lea rcx, [rsp + 0x30]
call fcn.14002dc50
cmp dword [rsp + 0x160], r14d
jne 0x14003f575
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x14003f575
lea r9, [rsp + 0x160]
mov qword [rsp + 0x20], r14
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14003f4b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x6d
neg eax
sbb rax, rax
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov eax, dword [rsp + 0x160]
jmp 0x14003f55d
Function at 0x1400425e0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov r9d, 0x23456789
mov dword [rdx], 0x12345678
mov dword [rdx + 4], r9d
mov rbx, r8
mov dword [rdx + 8], 0x34567890
mov r10, rcx
movzx eax, byte [rcx]
test al, al
je 0x140042673
mov r8d, 0x12345678
mov r11d, 0x34567890
nop word [rax + rax]
mov rcx, r8
lea r10, [r10 + 1]
xor rcx, rax
movzx eax, cl
mov ecx, r8d
shr ecx, 8
xor ecx, dword [rbx + rax*4]
movzx eax, cl
mov r8d, ecx
add eax, r9d
mov dword [rdx], ecx
imul r9d, eax, 0x8088405
mov ecx, r11d
shr ecx, 8
inc r9d
mov dword [rdx + 4], r9d
mov eax, r9d
shr rax, 0x18
xor rax, r11
movzx eax, al
xor ecx, dword [rbx + rax*4]
mov dword [rdx + 8], ecx
mov r11d, ecx
movzx eax, byte [r10]
test al, al
jne 0x140042620
mov rbx, qword [rsp + 8]
ret

Function at 0x140042680
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x10108], 0
mov rbx, rcx
je 0x140042746
xor r11d, r11d
cmp dword [rcx + 0xd4], r11d
jbe 0x140042746
nop word [rax + rax]
movzx eax, byte [r11 + rbx + 0x100]
mov edx, dword [rbx + 0x10128]
mov ecx, edx
mov r8, qword [rbx + 0x10138]
xor rcx, rax
mov r10d, dword [rbx + 0x10130]
movzx eax, cl
and r10d, 0xfffd
mov ecx, dword [rbx + 0x10130]
or r10d, 2
shr edx, 8
xor edx, dword [r8 + rax*4]
mov dword [rbx + 0x10128], edx
movzx eax, dl
add eax, dword [rbx + 0x1012c]
imul eax, eax, 0x8088405
inc eax
mov dword [rbx + 0x1012c], eax
shr rax, 0x18
xor rax, rcx
shr ecx, 8
movzx eax, al
xor ecx, dword [r8 + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 0x10130], ecx
imul eax, r10d
shr eax, 8
xor byte [r11 + rbx + 0x100], al
inc r11d
cmp r11d, dword [rbx + 0xd4]
jb 0x1400426b0
mov r9d, dword [rbx + 0xd4]
lea r8, [rbx + 0x100]
mov rdx, qword [rbx + 0x58]
mov rcx, qword [rbx + 0x38]
mov edi, dword [rbx + 0xd4]
call qword [rbx + 0x10]
xor edx, edx
mov dword [rbx + 0xd4], 0
cmp eax, edi
mov ecx, 0xffffffff
cmovne edx, ecx
mov ecx, dword [rbx + 0x84]
add qword [rbx + 0x10118], rdi
mov eax, edx
add qword [rbx + 0x10120], rcx
mov dword [rbx + 0x84], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14004bfb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1401114a8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x70], rsi
cmp qword [rcx + 0x18], 8
mov rsi, qword [rcx + 0x10]
mov qword [rsp + 0x50], rdi
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
jb 0x14004bfef
mov rdi, qword [rcx]
mov qword [rsp + 0x68], rbx
lea rcx, [rsp + 0x20]
cmp rsi, 8
jae 0x14004c012
movups xmm0, xmmword [rdi]
mov qword [rsp + 0x38], 7
movups xmmword [rsp + 0x20], xmm0
jmp 0x14004c05f
movabs rax, 0x7ffffffffffffffe
mov rbx, rsi
or rbx, 7
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
call fcn.140020960
lea r8, [rsi*2 + 2]
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
cmp rbx, 8
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x70]
cmp eax, 0xffffffff
je 0x14004c081
test al, 0x10
je 0x14004c081
mov bl, 1
jmp 0x14004c083
xor bl, bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14004c0c8
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c0c3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004c0c3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d4a4c
movzx eax, bl
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400d4b20
add rsp, 0x58
ret

Function at 0x14004c160
Capabilities:
Create directory

Disassembly:
mov r8b, 1
movzx edx, r8b
jmp fcn.140034d40
Function at 0x14004e000
Capabilities:
Delete file

Disassembly:
mov rcx, qword [rcx + 0x58]
xor edx, edx
jmp 0x140055940
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x1401114a8]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp qword [rcx + 0x20], 8
lea rbx, [rcx + 8]
movzx esi, dl
mov rdi, rcx
mov rax, rbx
jb 0x14005597b
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
mov rax, qword [rbx + 0x10]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
call fcn.14002c1f0
mov rax, qword [rdi + 0x28]
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x1400559da
test sil, sil
je 0x1400559da
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x28], 0xffffffffffffffff
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400559d0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rdi + 0x28]
xor esi, esi
cmp rcx, 0xffffffffffffffff
jne 0x140055a22
cmp qword [rbx + 0x18], 8
jb 0x1400559ec
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x28], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x140055a22
xor bl, bl
jmp 0x140055a52
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x20], esi
movups xmmword [rsp + 0x50], xmm0
lea edx, [r9 + 3]
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_LockFileEx]
test eax, eax
setne bl
mov rdx, qword [rsp + 0x88]
cmp rdx, 0x10
jb 0x140055a95
mov rcx, qword [rsp + 0x70]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055a90
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055a90
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d4a4c
movzx eax, bl
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400d4b20
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140050710
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
lea rdx, str.image_infos.dat
call fcn.140055ef0
lea rcx, [rsp + 0x30]
mov rdi, rax
mov r15, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x34]
mov ecx, 0x3c048
cmp edx, dword [rsp + 0x58]
cmovb edx, dword [rsp + 0x58]
lea esi, [rdx + 0x3c047]
neg edx
and esi, edx
call fcn.140055c50
mov rbx, rax
cmp r15, 0xffffffffffffffff
jne 0x140050788
mov rcx, rax
mov dword [0x140147120], 0x1e
call fcn.140055bb0
xor eax, eax
jmp 0x1400508ec
mov rcx, rdi
call fcn.1400578a0
cmp rax, 0xffffffffffffffff
jne 0x1400507a5
mov dword [0x140147120], 0x1f
jmp 0x14005089a
movsxd rbp, esi
test rax, rax
je 0x14005083f
cmp rax, rbp
jne 0x14005083f
xor r14d, r14d
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, r15
mov dword [rsp + 0x20], esi
lea r8d, [r14 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r8, rbp
xor edx, edx
mov rcx, rax
mov r15, rax
call fcn.140055cf0
mov rbp, rax
test rax, rax
je 0x140050890
mov r8d, 0x3c048
mov rdx, rax
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rbx + 0x14]
mov qword [rbx], rdi
mov dword [rbx + 0x10], esi
mov qword [rbx + 0x18], rbp
mov qword [rbx + 8], r15
test eax, eax
js 0x140050825
cmp eax, 0x300
jbe 0x1400508df
lea rcx, [rbx + 0x48]
mov dword [rbx + 0x14], r14d
xor edx, edx
mov r8d, 0x3c000
call sub.VCRUNTIME140.dll_memset
jmp 0x1400508df
mov rdx, rbp
mov rcx, rdi
call fcn.1400578d0
test al, al
jne 0x14005085a
mov dword [0x140147120], 0x20
jmp 0x14005089a
xor r14d, r14d
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, r15
mov dword [rsp + 0x20], esi
lea r8d, [r14 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r8, rbp
xor edx, edx
mov rcx, rax
mov r14, rax
call fcn.140055cf0
mov rbp, rax
test rax, rax
jne 0x1400508bb
mov dword [0x140147120], 0x21
mov rcx, rdi
call fcn.140057870
mov edx, 8
mov rcx, rdi
call fcn.1400d4a4c
mov rcx, rbx
call fcn.140055bb0
xor eax, eax
jmp 0x1400508ec
xor eax, eax
lea rcx, [rbx + 0x20]
xor edx, edx
mov dword [rbx + 0x14], eax
mov r8d, 0x3c028
call sub.VCRUNTIME140.dll_memset
mov qword [rbx], rdi
mov dword [rbx + 0x10], esi
mov qword [rbx + 8], r14
mov qword [rbx + 0x18], rbp
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140053e50
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140054001
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1400132b0
mov rcx, qword [rsi + 8]
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rdi
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x140053fc6
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + 0x11]
movzx r9d, byte [rcx + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rdx, qword [rdx]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x12]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x13]
imul r9, rdi
xor r9, rax
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140053f40
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x140053fb5
mov rax, qword [r11 + 8]
mov r8d, dword [rcx + 0x10]
cmp r8d, dword [rax + 0x10]
jne 0x140053f7d
mov r8, qword [rax]
cmp r8, rcx
je 0x140053f77
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x140053fb5
cmp r9, rax
je 0x140053f91
mov rax, qword [rax + 8]
cmp r8d, dword [rax + 0x10]
je 0x140053fdb
cmp r9, rax
jne 0x140053f82
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rax
mov r8, qword [rax + 8]
mov qword [r8], rcx
mov qword [rax + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], r8
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x140053ef0
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x140053fb5
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x140054010
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x1400541ef
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1400132b0
mov rcx, qword [rsi + 8]
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rdi
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x1400541b4
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + 0x11]
movzx r9d, byte [rcx + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rdx, qword [rdx]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x12]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x13]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x14]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x15]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x16]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x17]
imul r9, rdi
xor r9, rax
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14005412c
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x1400541a3
mov rax, qword [r11 + 8]
mov r8, qword [rcx + 0x10]
cmp r8, qword [rax + 0x10]
jne 0x140054169
mov r8, qword [rax]
cmp r8, rcx
je 0x140054163
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x1400541a3
cmp r9, rax
je 0x14005417f
nop
mov rax, qword [rax + 8]
cmp r8, qword [rax + 0x10]
je 0x1400541c9
cmp r9, rax
jne 0x140054170
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rax
mov r8, qword [rax + 8]
mov qword [r8], rcx
mov qword [rax + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], r8
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x1400540b0
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x1400541a3
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x140054230
Capabilities:
Hash data using fnv

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x40
mov rbp, r8
mov r14, rdx
mov rsi, rcx
cmp rdx, r8
je 0x140054330
mov rdx, qword [rcx + 0x18]
movabs r8, 0x100000001b3
mov rax, qword [r14 + 8]
mov qword [rsp + 0x60], rbx
mov rbx, r14
mov qword [rsp + 0x70], rax
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r12
mov r12, qword [rcx + 8]
movzx ecx, byte [r14 + 0x10]
xor rcx, rax
mov qword [rsp + 0x28], r13
movzx eax, byte [r14 + 0x11]
imul rcx, r8
mov qword [rsp + 0x20], r15
mov r15, qword [rsi + 0x30]
xor rcx, rax
movzx eax, byte [r14 + 0x12]
imul rcx, r8
mov qword [rsp + 0x78], rdx
xor rcx, rax
movzx eax, byte [r14 + 0x13]
imul rcx, r8
xor rcx, rax
imul rcx, r8
and r15, rcx
shl r15, 4
add r15, rdx
mov rax, qword [r15]
mov r13, qword [r15 + 8]
mov qword [rsp + 0x68], rax
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x20
call fcn.1400d4a4c
dec qword [rsi + 0x10]
cmp rdi, r13
je 0x14005433c
cmp rbx, rbp
jne 0x1400542e0
cmp qword [rsp + 0x68], r14
jne 0x14005430b
mov qword [r15], rbx
mov rax, qword [rsp + 0x70]
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov qword [rax], rbx
mov qword [rbx + 8], rax
mov rbx, qword [rsp + 0x60]
mov rax, rbp
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
cmp qword [rsp + 0x68], r14
jne 0x14005434b
mov qword [r15], r12
mov rax, r12
jmp 0x140054350
mov rax, qword [rsp + 0x70]
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x14005430b
mov r13, qword [rsp + 0x78]
nop
movzx ecx, byte [rbx + 0x10]
movabs rdx, 0x100000001b3
mov r15, qword [rsi + 0x30]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movzx eax, byte [rbx + 0x11]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x12]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x13]
imul rcx, rdx
xor rcx, rax
imul rcx, rdx
and r15, rcx
shl r15, 4
add r15, r13
mov r14, qword [r15 + 8]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x20
call fcn.1400d4a4c
dec qword [rsi + 0x10]
cmp rdi, r14
je 0x1400543d8
cmp rbx, rbp
jne 0x1400543b2
jmp 0x140054308
mov qword [r15], r12
mov qword [r15 + 8], r12
cmp rbx, rbp
jne 0x140054360
jmp 0x14005430b
Function at 0x140055940
Capabilities:
Delete file

Disassembly:
mov rcx, qword [rcx + 0x58]
xor edx, edx
jmp 0x140055940
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x1401114a8]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp qword [rcx + 0x20], 8
lea rbx, [rcx + 8]
movzx esi, dl
mov rdi, rcx
mov rax, rbx
jb 0x14005597b
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
mov rax, qword [rbx + 0x10]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
call fcn.14002c1f0
mov rax, qword [rdi + 0x28]
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x1400559da
test sil, sil
je 0x1400559da
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x28], 0xffffffffffffffff
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400559d0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rdi + 0x28]
xor esi, esi
cmp rcx, 0xffffffffffffffff
jne 0x140055a22
cmp qword [rbx + 0x18], 8
jb 0x1400559ec
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x28], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x140055a22
xor bl, bl
jmp 0x140055a52
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x20], esi
movups xmmword [rsp + 0x50], xmm0
lea edx, [r9 + 3]
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_LockFileEx]
test eax, eax
setne bl
mov rdx, qword [rsp + 0x88]
cmp rdx, 0x10
jb 0x140055a95
mov rcx, qword [rsp + 0x70]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055a90
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055a90
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d4a4c
movzx eax, bl
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400d4b20
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, dword [0x140147124]
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140055b53
mov byte [rsp + 0x44], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x140147124]
mov dword [rsp + 0x40], eax
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
shr rbx, 0x20
test bl, bl
je 0x140055b7b
mov rcx, qword [0x140147128]
mov r8, rdi
mov edx, 8
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov cl, 1
call fcn.1400560e0
mov rcx, qword [0x140147128]
mov r8, rdi
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov rbx, rax
call fcn.1400560e0
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140055bb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, dword [0x140147124]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140055bf3
mov byte [rsp + 0x3c], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x140147124]
mov dword [rsp + 0x38], eax
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
shr rbx, 0x20
test bl, bl
je 0x140055c18
mov rcx, qword [0x140147128]
mov r8, rdi
xor edx, edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
mov cl, 1
call fcn.1400560e0
mov rcx, qword [0x140147128]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400560e0

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, dword [0x140147124]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140055c93
mov byte [rsp + 0x3c], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x140147124]
mov dword [rsp + 0x38], eax
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
shr rbx, 0x20
test bl, bl
je 0x140055cb8
mov rcx, qword [0x140147128]
mov r8, rdi
xor edx, edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov cl, 1
call fcn.1400560e0
mov rcx, qword [0x140147128]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov rbx, rax
call fcn.1400560e0
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret