joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400531b0
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 0x1400532b0
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.1400ce80c
dec qword [rsi + 0x10]
cmp rdi, r13
je 0x1400532bc
cmp rbx, rbp
jne 0x140053260
cmp qword [rsp + 0x68], r14
jne 0x14005328b
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 0x1400532cb
mov qword [r15], r12
mov rax, r12
jmp 0x1400532d0
mov rax, qword [rsp + 0x70]
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x14005328b
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.1400ce80c
dec qword [rsi + 0x10]
cmp rdi, r14
je 0x140053358
cmp rbx, rbp
jne 0x140053332
jmp 0x140053288
mov qword [r15], r12
mov qword [r15 + 8], r12
cmp rbx, rbp
jne 0x1400532e0
jmp 0x14005328b
Function at 0x1400548c0
Capabilities:
Delete file

Disassembly:
mov rcx, qword [rcx + 0x58]
xor edx, edx
jmp 0x1400548c0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x1400fe4a8]
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 0x1400548fb
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.1400290f0
mov rax, qword [rdi + 0x28]
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x14005495a
test sil, sil
je 0x14005495a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x28], 0xffffffffffffffff
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140054950
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rdi + 0x28]
xor esi, esi
cmp rcx, 0xffffffffffffffff
jne 0x1400549a2
cmp qword [rbx + 0x18], 8
jb 0x14005496c
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 0x1400549a2
xor bl, bl
jmp 0x1400549d2
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 0x140054a15
mov rcx, qword [rsp + 0x70]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054a10
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140054a10
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ce80c
movzx eax, bl
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400ce8e0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140054a90
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 [0x1401341d4]
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140054ad3
mov byte [rsp + 0x44], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x1401341d4]
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 0x140054afb
mov rcx, qword [0x1401341d8]
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.140054ff0
mov rcx, qword [0x1401341d8]
mov r8, rdi
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov rbx, rax
call fcn.140054ff0
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140054b30
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 [0x1401341d4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140054b73
mov byte [rsp + 0x3c], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x1401341d4]
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 0x140054b98
mov rcx, qword [0x1401341d8]
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.140054ff0
mov rcx, qword [0x1401341d8]
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.140054ff0

Function at 0x140054bd0
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 [0x1401341d4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140054c13
mov byte [rsp + 0x3c], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x1401341d4]
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 0x140054c38
mov rcx, qword [0x1401341d8]
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.140054ff0
mov rcx, qword [0x1401341d8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov rbx, rax
call fcn.140054ff0
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140054c70
Capabilities:
Get thread local storage value
Read file via mapping
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, rcx
mov rdi, rdx
mov ecx, dword [0x1401341d4]
mov rbp, r8
shr rdi, 0x20
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140054cc8
mov byte [rsp + 0x5c], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x1401341d4]
mov dword [rsp + 0x58], eax
mov rbx, qword [rsp + 0x58]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
shr rbx, 0x20
test bl, bl
je 0x140054ceb
mov r9d, esi
mov qword [rsp + 0x20], rbp
mov r8d, edi
mov edx, 6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
jmp 0x140054d18
mov cl, 1
call fcn.140054ff0
mov r9d, esi
mov qword [rsp + 0x20], rbp
mov r8d, edi
mov edx, 6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
mov rbx, rax
call fcn.140054ff0
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140054d30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rdi, rdx
mov ecx, dword [0x1401341d4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140054d7b
mov byte [rsp + 0x44], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x1401341d4]
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 0x140054db6
test rsi, rsi
je 0x140054d91
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140054de5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov cl, 1
call fcn.140054ff0
test rsi, rsi
je 0x140054dcb
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140054dde
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call fcn.140054ff0
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rdi
sub rsp, 0x20
movzx edi, cl
mov ecx, dword [0x1401341d4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14005503d
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x3c], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x1401341d4]
mov dword [rsp + 0x38], eax
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [rsp + 0x38], rbx
mov rbx, qword [rsp + 0x30]
jmp 0x140055042
mov qword [rsp + 0x38], rax
mov ecx, dword [0x1401341d4]
mov byte [rsp + 0x3c], dil
mov rdx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x140055a90
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
lea rbx, [rdx - 1]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r8d, dword [rsp + 0x34]
cmp r8d, dword [rsp + 0x58]
mov rcx, qword [rdi + 0x18]
cmovb r8d, dword [rsp + 0x58]
mov eax, r8d
add rbx, rax
dec rax
not rax
and rbx, rax
mov rdx, rbx
call fcn.140056780
test al, al
jne 0x140055af7
lea rcx, str.Matrix_realloc_ftruncate_failed
call fcn.14004e5f0
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov rcx, qword [rdi + 0x38]
xor r9d, r9d
mov qword [rsp + 0x70], rbp
xor edx, edx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x78], rsi
lea r8d, [r9 + 4]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r8, rbx
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.140054c70
mov rsi, rax
test rax, rax
jne 0x140055b49
lea rcx, str.Matrix_realloc_mmap_failed
call fcn.14004e5f0
xor eax, eax
jmp 0x140055b65
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rax, rsi
mov qword [rdi + 0x20], rbx
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x30], rbp
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140055e60
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rax, qword gs:[0x58]
mov rbx, rcx
mov r8d, dword [0x140134780]
mov edi, edx
mov ecx, 0x80
mov r8, qword [rax + r8*8]
mov eax, dword [rcx + r8]
cmp dword [0x140134430], eax
jg 0x140055f8d
mov r8, qword [rbx + 0x18]
lea eax, [rdi - 1]
mov r9, qword [rbx + 0x10]
xor edx, edx
div r8
mov rdx, qword [0x140134428]
add rdx, 0x800000
mov qword [rsp + 0x70], rbp
mov r14, rax
mov rsi, rax
shl r14, 0x17
add rdx, r14
cmp rdx, r9
ja 0x140055f6f
cmp rax, qword [rbx + 0x58]
jne 0x140055eeb
mov rcx, qword [rbx + 0x60]
test rcx, rcx
jne 0x140055f5d
mov rcx, qword [rbx + 0x60]
xor ebp, ebp
test rcx, rcx
je 0x140055f0b
mov rdx, qword [rbx + 0x68]
call fcn.140054d30
mov r9d, dword [rbx + 0x10]
mov qword [rbx + 0x60], rbp
mov qword [rbx + 0x68], rbp
mov rax, qword [rbx]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r9d
xor r9d, r9d
mov rcx, qword [rax]
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdx, qword [0x140134428]
mov r8d, 0x800000
add rdx, r14
mov rcx, rax
mov rbp, rax
call fcn.140054c70
mov rcx, rax
test rax, rax
je 0x140055f6f
mov r8d, dword [rbx + 0x18]
mov qword [rbx + 0x60], rax
mov qword [rbx + 0x68], rbp
mov qword [rbx + 0x58], rsi
imul r8d, esi
sub edi, r8d
mov eax, edi
shl rax, 4
add rax, rcx
jmp 0x140055f71
xor eax, eax
mov rbp, qword [rsp + 0x70]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
lea rcx, [0x140134430]
call fcn.1400cecc4
cmp dword [0x140134430], 0xffffffff
jne 0x140055ea3
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x34]
lea rcx, [0x140134430]
cmp edx, dword [rsp + 0x58]
cmovb edx, dword [rsp + 0x58]
mov eax, edx
dec rdx
not rdx
add rax, 0x6f
and rdx, rax
mov qword [0x140134428], rdx
call fcn.1400cec64
jmp 0x140055ea3
Function at 0x140055ff0
Capabilities:
Get system information on windows

Disassembly:
push rbx
push r14
sub rsp, 0x68
mov rax, qword gs:[0x58]
mov rbx, rcx
mov edx, dword [0x140134780]
mov ecx, 0x80
mov rdx, qword [rax + rdx*8]
mov eax, dword [rcx + rdx]
cmp dword [0x140134420], eax
jg 0x140056226
mov qword [rsp + 0x80], rbp
lea rdx, str.stack_frames_entry.dat
mov qword [rsp + 0x88], rsi
mov rcx, rbx
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x60], r15
call fcn.140054e00
mov rbx, rax
mov r14, qword [rax]
cmp r14, 0xffffffffffffffff
jne 0x14005606b
mov dword [0x1401341d0], 0x32
xor eax, eax
jmp 0x140056143
mov rcx, rbx
call fcn.140056750
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14005608b
mov dword [0x1401341d0], 0x33
jmp 0x14005620a
mov rdx, qword [0x140134418]
cmp rsi, rdx
jbe 0x140056168
sub rax, rdx
test rax, 0x7fffff
jne 0x140056168
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x28], rbp
mov rcx, r14
mov dword [rsp + 0x20], edx
xor edx, edx
lea r8d, [rbp + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r8, qword [0x140134418]
xor edx, edx
mov rcx, rax
mov r15, rax
call fcn.140054c70
mov rdi, rax
test rax, rax
jne 0x1400560f2
mov dword [0x1401341d0], 0x35
jmp 0x14005620a
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rax + 8], r15
mov rcx, r14
mov qword [rax], rbx
mov qword [rax + 0x10], rsi
lea r8d, [r9 + 4]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea rdx, [rsi - 0x800000]
mov r8d, 0x800000
mov rcx, rax
mov rbx, rax
call fcn.140054c70
mov qword [rdi + 0x48], rax
mov qword [rdi + 0x50], rbx
mov qword [rdi + 0x60], rbp
mov rax, rdi
mov qword [rdi + 0x58], rbp
mov r15, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
add rsp, 0x68
pop r14
pop rbx
ret
mov rcx, rbx
call fcn.140056780
test al, al
jne 0x140056183
mov dword [0x1401341d0], 0x34
jmp 0x14005620a
mov eax, dword [0x140134418]
xor ebp, ebp
mov qword [rsp + 0x28], rbp
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
mov rcx, r14
lea r8d, [rbp + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r8, qword [0x140134418]
xor edx, edx
mov rcx, rax
call fcn.140054c70
xorps xmm0, xmm0
mov rdi, rax
mov rcx, rdi
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
mov qword [rax + 0x18], 0x7ffff
mov qword [rax + 0x20], 0x2b93
mov qword [rax], rbx
mov rax, qword [0x140134418]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x40], rax
call fcn.140055d80
test al, al
jne 0x140056138
mov rcx, rbx
call fcn.140056720
mov edx, 8
mov rcx, rbx
call fcn.1400ce80c
xor eax, eax
jmp 0x140056143
lea rcx, [0x140134420]
call fcn.1400cecc4
cmp dword [0x140134420], 0xffffffff
jne 0x140056022
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x34]
lea rcx, [0x140134420]
cmp edx, dword [rsp + 0x58]
cmovb edx, dword [rsp + 0x58]
mov eax, edx
dec rdx
not rdx
add rax, 0x6f
and rdx, rax
mov qword [0x140134418], rdx
call fcn.1400cec64
jmp 0x140056022
Function at 0x140056460
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r15
sub rsp, 0x70
mov rbx, rcx
mov r12, r9
mov rcx, qword [rcx]
mov rsi, r8
call fcn.140055e60
xor r15d, r15d
mov r11, rax
mov edi, r15d
test rax, rax
je 0x140056617
mov r10d, dword [0x140134780]
mov rdx, qword gs:[0x58]
mov qword [rsp + 0x68], r13
mov r13d, dword [rsp + 0xc0]
mov qword [rsp + 0xa8], rbp
lea rdx, [rdx + r10*8]
mov r8d, 0x80
mov qword [rsp + 0xb8], rdx
mov qword [rsp + 0x60], r14
cmp edi, r13d
jae 0x1400565f5
mov rax, qword [r11]
mov ecx, edi
inc edi
mov qword [rsi + rcx*8], rax
mov rsi, qword [r11 + 8]
test rsi, rsi
je 0x1400565f5
mov rax, qword [rdx]
mov rbx, qword [rbx]
mov ecx, r8d
mov eax, dword [rcx + rax]
cmp dword [0x140134430], eax
jg 0x140056627
mov r8, qword [rbx + 0x18]
lea eax, [rsi - 1]
mov r9, qword [rbx + 0x10]
xor edx, edx
div r8
mov rdx, qword [0x140134428]
add rdx, 0x800000
mov r14, rax
shl r14, 0x17
mov rbp, rax
add rdx, r14
cmp rdx, r9
ja 0x1400565f5
cmp rax, qword [rbx + 0x58]
jne 0x140056550
mov rax, qword [rbx + 0x60]
test rax, rax
jne 0x1400565c0
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14005656e
mov rdx, qword [rbx + 0x68]
call fcn.140054d30
mov r9d, dword [rbx + 0x10]
mov qword [rbx + 0x60], r15
mov qword [rbx + 0x68], r15
mov rax, qword [rbx]
xor edx, edx
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r9d
xor r9d, r9d
mov rcx, qword [rax]
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdx, qword [0x140134428]
mov r8d, 0x800000
add rdx, r14
mov rcx, rax
mov r15, rax
call fcn.140054c70
test rax, rax
je 0x1400565f5
mov r8d, dword [rbx + 0x18]
mov qword [rbx + 0x68], r15
xor r15d, r15d
mov qword [rbx + 0x60], rax
mov qword [rbx + 0x58], rbp
mov rbx, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0xb8]
imul r8d, ebp
sub esi, r8d
mov r8d, 0x80
mov r11d, esi
mov rsi, qword [rsp + 0xb0]
shl r11, 4
add r11, rax
jne 0x1400564d4
mov rbp, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
mov dword [r12], edi
add rsp, 0x70
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
mov dword [r12], r15d
add rsp, 0x70
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rcx, [0x140134430]
call fcn.1400cecc4
cmp dword [0x140134430], 0xffffffff
jne 0x14005650d
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x34]
cmp ecx, dword [rsp + 0x58]
cmovb ecx, dword [rsp + 0x58]
mov eax, ecx
dec rcx
not rcx
add rax, 0x6f
and rcx, rax
mov qword [0x140134428], rcx
lea rcx, [0x140134430]
call fcn.1400cec64
jmp 0x14005650d

Function at 0x140056750
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x140056771
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov rax, qword [rsp + 0x30]
jne 0x140056778
mov rax, 0xffffffffffffffff
add rsp, 0x28
ret
Function at 0x140056780
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x1400567b7
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400567b7
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400567b7
mov al, 1
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140059c70
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140059c83
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140059c97
mov al, 1
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140059cbc
cmp qword [rbx + 0x18], 8
jb 0x140059cae
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140059cc4
xor al, al
add rsp, 0x20
pop rbx
ret
shr al, 4
and al, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140059cf0
Capabilities:
Delete file

Disassembly:
push rbx
push rbp
push rdi
push r12
push r14
sub rsp, 0x90
mov rax, qword [0x1400fe4a8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r14, rdx
lea r8, [rdx + 0x10]
lea rdx, [rsp + 0x30]
mov r12, rcx
call fcn.140058ac0
xor ebp, ebp
mov rdi, qword [rax]
mov qword [rax], rbp
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x140059da4
cmp byte [rbx + 0x28], bpl
je 0x140059d45
mov rcx, rbx
call fcn.14005f5b0
mov rcx, qword [rbx]
lea rax, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
xor edx, edx
mov r8d, r9d
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_UnlockFileEx]
lea rcx, [rbx + 0x30]
call fcn.140058830
lea rcx, [rbx + 8]
call fcn.1400292c0
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140059d97
call fcn.14003ce90
mov qword [rbx], 0xffffffffffffffff
mov edx, 0x50
mov rcx, rbx
call fcn.1400ce80c
test rdi, rdi
jne 0x140059db1
lea eax, [rdi + 3]
jmp 0x140059ee3
mov qword [rsp + 0xd0], rsi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0xd8], r15
call fcn.1400292a0
movups xmm0, xmmword [r14]
mov rbx, qword [rdi + 0x30]
mov rsi, qword [rdi + 0x38]
movaps xmmword [rsp + 0x30], xmm0
cmp rbx, rsi
je 0x140059dff
lea rcx, [rbx + 4]
lea rdx, [rsp + 0x30]
call fcn.140031b00
test al, al
jne 0x140059dff
add rbx, 0x98
cmp rbx, rsi
jne 0x140059de1
mov rsi, qword [rsp + 0xd0]
cmp rbx, qword [rdi + 0x38]
jne 0x140059e14
mov ebp, 1
jmp 0x140059e62
lea rdx, [rbx + 0x18]
lea rcx, [rsp + 0x60]
call fcn.1400292d0
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rdi + 0x30]
call fcn.1400601b0
mov byte [rdi + 0x28], 1
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140059e57
lea ebp, [rax + 2]
jmp 0x140059e62
mov rdx, r14
mov rcx, r12
call fcn.14005f170
lea rcx, [rsp + 0x60]
call fcn.1400292c0
cmp byte [rdi + 0x28], 0
je 0x140059e7a
mov rcx, rdi
call fcn.14005f5b0
mov rcx, qword [rdi]
lea rax, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
xor edx, edx
mov r8d, r9d
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_UnlockFileEx]
lea rcx, [rdi + 0x30]
call fcn.140058830
lea rcx, [rdi + 8]
call fcn.1400292c0
mov rcx, qword [rdi]
mov r15, qword [rsp + 0xd8]
cmp rcx, 0xffffffffffffffff
je 0x140059ed4
call fcn.14003ce90
mov qword [rdi], 0xffffffffffffffff
mov edx, 0x50
mov rcx, rdi
call fcn.1400ce80c
mov eax, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400ce8e0
add rsp, 0x90
pop r14
pop r12
pop rdi
pop rbp
pop rbx
ret