joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ec50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140060078]
test ecx, ecx
je 0x14001ec7d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14001ec96
cmp qword [rax + 8], 0
je 0x14001ec96
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140060060]
call fcn.14001ca30
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14001ec6c
mov ecx, dword [0x140060078]
test ecx, ecx
je 0x14001ed41
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14001ed5e
mov rsi, rax
test rax, rax
jne 0x14001ed23
movzx eax, byte [0x140181040]
mov rcx, qword [0x140181128]
test rcx, rcx
jne 0x14001ece8
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x14001ed76
mov rcx, rax
mov qword [0x140181128], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x14001ed76
mov rsi, rax
lea rax, [0x140060060]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140060078]
test ecx, ecx
je 0x14001ed66
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140060060]
call fcn.14001ca30
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14001ecb5
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140060060]
call fcn.14001ca30
mov ecx, eax
jmp 0x14001ed1b
mov ecx, 8
mov edx, 0x20
call fcn.1400051a0
ud2
Function at 0x140022110
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm6
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x40], 0
xorps xmm6, xmm6
movups xmmword [rsp + 0x48], xmm6
mov dword [rsp + 0x58], 7
mov qword [rsp + 0x5c], 0
mov word [rsp + 0x64], 0
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.14003b3a0
mov rdi, rdx
test rax, rax
je 0x140022187
mov rcx, rdi
call fcn.14001bf40
mov qword [rsi], 0
jmp 0x14002231a
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x70], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x14002223a
test byte [rsp + 0x41], 4
je 0x1400221df
mov qword [rsp + 0x78], 0
lea r8, [rsp + 0x78]
mov rcx, rdi
mov edx, 9
mov r9d, 8
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x14002223a
mov r12d, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x64]
test rdi, rdi
je 0x140022276
mov qword [rsp + 0x40], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x1400222f9
mov rbx, qword [rsp + 0x40]
jmp 0x140022278
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, rax
call fcn.14001bf40
mov qword [rsi], 0
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x1400222e8
mov r14, rax
shl r12, 0x20
or r12, r15
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x1400222e8
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x140022312
mov qword [rsi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x140022312
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
call fcn.14001bf40
mov qword [rsi], 0
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400439b0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140044760
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140044760
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140043a20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140181204]
mov r12, rcx
test ebx, ebx
jle 0x140043b50
mov rax, qword [0x140181208]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140043a6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140043af5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140043a50
mov rcx, r12
call fcn.1400444a0
mov rsi, rax
test rax, rax
je 0x140043b72
mov rax, qword [0x140181208]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1400445d0
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140181208]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140043b57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140043aee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140043b00
add dword [0x140181204], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x140181208]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140043aee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400439b0
nop dword [rax]
xor ebx, ebx
jmp 0x140043a78
mov rax, qword [0x140181208]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400439b0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400439b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400440f0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x140181260]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140181240]
test rbx, rbx
je 0x14004414c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140044143
test r12, r12
je 0x140044143
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140044128
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400444a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140069dd0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400444c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400444c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400444c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140044515
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14004450c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400444c0
add rax, 0x28
cmp rax, r9
jne 0x1400444f8
xor eax, eax
ret

Function at 0x140044520
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140069dd0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140044540
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140044548
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140044540
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400445d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140069dd0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400445f0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400445f8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140045060
Capabilities:
Hash data using sha256

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0xb0
movdqu xmm0, xmmword [0x1400698a0]
movabs rax, 0x7369687420726f46
mov edi, edx
mov qword [rsp + 0x60], rax
lea rsi, [rsp + 0x20]
mov rbx, rcx
movabs rdx, 0x2c656c706d617320
movups xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
movabs rax, 0x3336207369687420
mov qword [rsp + 0x68], rdx
movabs rdx, 0x747320657479622d
movdqu xmm0, xmmword [0x1400698b0]
mov qword [rsp + 0x78], rdx
movabs rdx, 0x657375206562206c
mov qword [rsp + 0x88], rdx
movabs rdx, 0x6174616420747570
mov qword [rsp + 0x70], rax
movabs rax, 0x6c697720676e6972
mov qword [rsp + 0x80], rax
movabs rax, 0x6e69207361206465
mov qword [rsp + 0x97], rdx
mov rdx, rsi
mov qword [rsp + 0x8f], rax
mov qword [rsp + 0xa0], 0x3f
movups xmmword [rsp + 0x50], xmm0
call fcn.14005b2e0
xor r8d, r8d
lea rax, [0x14006a040]
jmp 0x14004514a
add r8, 1
cmp r8, 0x20
je 0x140045163
movzx ecx, byte [rax + r8]
cmp byte [rsi + r8], cl
je 0x140045140
xor edx, edx
lea rcx, str.self_test_failed
call fcn.14001b350
cmp dil, 1
jne 0x1400451d0
and edi, 0x400
jne 0x1400451eb
mov rax, qword [fcn.14001b2a0]
xor edx, edx
mov rcx, rbx
mov qword [rbx + 0xb0], 0
mov qword [rbx + 0xc0], 0
mov qword [rbx + 0xa8], rax
mov rax, qword [fcn.14001b350]
mov qword [rbx + 0xb8], rax
call fcn.14004d4c0
mov rax, rbx
mov dword [rbx], 1
mov dword [rbx + 0xc8], 0
add rsp, 0xb0
pop rbx
pop rsi
pop rdi
ret
xor edx, edx
lea rcx, str.Invalid_flags
call fcn.14001b2a0
xor eax, eax
add rsp, 0xb0
pop rbx
pop rsi
pop rdi
ret
xor edx, edx
lea rcx, str.Declassify_flag_requires_running_with_memory_checking
call fcn.14001b2a0
xor eax, eax
jmp 0x1400451e0
Function at 0x140057330
Capabilities:
Hash data using murmur3
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0x70
movups xmmword [rsp + 0x60], xmm6
movdqu xmm2, xmmword [str.6666666666666666]
movabs rax, 0x5c5c5c5c5c5c5c5c
movdqu xmm4, xmmword [0x1400698a0]
movdqu xmm3, xmmword [0x1400698b0]
movdqu xmm1, xmmword [rdx]
movdqu xmm0, xmmword [rdx + 0x10]
movabs rdx, 0x5c5c5c5c5c5c5c5c
movdqa xmm6, xmm1
movdqa xmm5, xmm0
pxor xmm6, xmm2
pxor xmm5, xmm2
mov qword [rcx + 0xa8], rax
mov rbx, rcx
lea rcx, [rcx + 0x68]
mov qword [rcx + 0x48], rdx
mov qword [rcx + 0x50], rax
mov qword [rcx + 0x58], rdx
lea rdx, [rbx + 0x88]
mov qword [rcx + 0x60], 0x40
movups xmmword [rcx], xmm4
movups xmmword [rcx + 0x10], xmm3
movups xmmword [rcx + 0x20], xmm6
movups xmmword [rcx + 0x30], xmm5
movups xmmword [rsp + 0x20], xmm6
movups xmmword [rsp + 0x40], xmm2
movups xmmword [rsp + 0x50], xmm2
movups xmmword [rsp + 0x30], xmm5
call fcn.14005ba00
movdqu xmm2, xmmword [0x140069990]
movups xmmword [rbx], xmm4
mov rcx, rbx
movabs rax, 0x3636363636363636
mov qword [rbx + 0x60], 0x40
movabs rdx, 0x3636363636363636
pxor xmm1, xmm2
pxor xmm0, xmm2
mov qword [rbx + 0x48], rdx
mov qword [rbx + 0x58], rdx
lea rdx, [rbx + 0x20]
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x50], rax
movups xmmword [rbx + 0x10], xmm3
movups xmmword [rbx + 0x20], xmm1
movups xmmword [rbx + 0x30], xmm0
movups xmm6, xmmword [rsp + 0x60]
movups xmmword [rsp + 0x20], xmm1
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm2
movups xmmword [rsp + 0x50], xmm2
add rsp, 0x70
pop rbx
jmp fcn.14005ba00
Function at 0x140006240
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14004f018]
xor rax, rsp
mov qword [rsp + 0x68], rax
call fcn.140002a60
test al, al
je 0x14000627c
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140025ac0
add rsp, 0x70
pop rbx
ret
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140002d24
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.140008eb0
lea rcx, [rsp + 0x28]
call fcn.140002a6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400063d0
lea rcx, [rsp + 0x48]
call fcn.140002d0c
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140015900
test al, al
je 0x1400062ea
lea rcx, [rsp + 0x48]
call fcn.140002a6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140002b70
cmp ebx, 0xffffffff
jne 0x1400063d0
lea rcx, [rsp + 0x28]
call fcn.140002e74
cmp rax, 2
jbe 0x1400063cc
lea rcx, [rsp + 0x28]
call fcn.140002e74
mov r8, rax
lea rcx, [rsp + 0x28]
call fcn.140002de0
mov rdx, rax
mov rcx, rax
mov r9, qword [rax + 0x18]
cmp r9, 8
jb 0x14000633b
mov rcx, qword [rax]
cmp word [rcx + r8*2 - 2], 0x5c
je 0x140006361
lea rcx, [rsp + 0x28]
call fcn.140002e74
dec rax
cmp r9, 8
jb 0x14000635a
mov rdx, qword [rdx]
cmp word [rdx + rax*2], 0x2f
jne 0x1400063cc
mov edx, 0x20
lea rcx, [rsp + 0x28]
call fcn.140008eb0
lea rcx, [rsp + 0x28]
call fcn.140002a6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400063d0
lea rcx, [rsp + 0x48]
call fcn.140002d0c
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140015900
test al, al
je 0x1400063bd
lea rcx, [rsp + 0x48]
call fcn.140002a6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140002b70
cmp ebx, 0xffffffff
jne 0x1400063d0
xor bl, bl
jmp 0x1400063d2
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.140002b70
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140025ac0
add rsp, 0x70
pop rbx
ret
Function at 0x140006400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14004f018]
xor rax, rsp
mov qword [rsp + 0x68], rax
call fcn.140002a60
test al, al
je 0x14000643c
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140025ac0
add rsp, 0x70
pop rbx
ret
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140002d24
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.140008eb0
lea rcx, [rsp + 0x28]
call fcn.140002a6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400064b5
lea rcx, [rsp + 0x48]
call fcn.140002d0c
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140015900
test al, al
je 0x1400064a6
lea rcx, [rsp + 0x48]
call fcn.140002a6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140002b70
cmp ebx, 0xffffffff
je 0x1400064be
test bl, 0x10
je 0x140006596
lea rcx, [rsp + 0x28]
call fcn.140002e74
cmp rax, 2
jbe 0x140006592
lea rcx, [rsp + 0x28]
call fcn.140002e74
mov r8, rax
lea rcx, [rsp + 0x28]
call fcn.140002de0
mov rdx, rax
mov rcx, rax
mov r9, qword [rax + 0x18]
cmp r9, 8
jb 0x1400064fc
mov rcx, qword [rax]
cmp word [rcx + r8*2 - 2], 0x5c
je 0x140006522
lea rcx, [rsp + 0x28]
call fcn.140002e74
dec rax
cmp r9, 8
jb 0x14000651b
mov rdx, qword [rdx]
cmp word [rdx + rax*2], 0x2f
jne 0x140006592
mov edx, 0x20
lea rcx, [rsp + 0x28]
call fcn.140008eb0
lea rcx, [rsp + 0x28]
call fcn.140002a6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000658d
lea rcx, [rsp + 0x48]
call fcn.140002d0c
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140015900
test al, al
je 0x14000657e
lea rcx, [rsp + 0x48]
call fcn.140002a6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140002b70
cmp ebx, 0xffffffff
je 0x140006592
test bl, 0x10
je 0x140006596
xor bl, bl
jmp 0x140006598
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.140002b70
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140025ac0
add rsp, 0x70
pop rbx
ret
Function at 0x1400065c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14004f018]
xor rax, rsp
mov qword [rsp + 0x68], rax
call fcn.140002a60
test al, al
je 0x1400065fc
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140025ac0
add rsp, 0x70
pop rbx
ret
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140002d24
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.140008eb0
lea rcx, [rsp + 0x28]
call fcn.140002a6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140006675
lea rcx, [rsp + 0x48]
call fcn.140002d0c
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140015900
test al, al
je 0x140006666
lea rcx, [rsp + 0x48]
call fcn.140002a6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140002b70
cmp ebx, 0xffffffff
je 0x14000667e
test bl, 0x10
je 0x14000667e
mov bl, 1
jmp 0x140006680
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.140002b70
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140025ac0
add rsp, 0x70
pop rbx
ret
Function at 0x140006cd0
Capabilities:
Copy file

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14004f018]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rdx
mov rbx, rcx
mov rcx, rdx
call fcn.140002a6c
mov rdx, rax
mov rcx, rbx
call fcn.140002a6c
mov rcx, rax
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140006da9
xor sil, sil
lea rcx, [rsp + 0x48]
call fcn.140002d0c
nop
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140015900
movzx ebx, sil
mov ecx, 1
test al, al
cmovne ebx, ecx
lea rcx, [rsp + 0x28]
call fcn.140002d0c
nop
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140015900
test al, al
jne 0x140006d6d
test bl, bl
je 0x140006dad
lea rcx, [rsp + 0x28]
call fcn.140002a6c
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002a6c
mov rcx, rax
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140006dad
lea rcx, [rsp + 0x28]
call fcn.140002b70
nop
lea rcx, [rsp + 0x48]
call fcn.140002b70
mov al, 1
jmp 0x140006dc4
lea rcx, [rsp + 0x28]
call fcn.140002b70
nop
lea rcx, [rsp + 0x48]
call fcn.140002b70
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140025ac0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140006df0
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14004f018]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rcx
call fcn.140002a60
test al, al
je 0x140006e33
xor al, al
jmp 0x140006ff5
call fcn.1400065c0
test al, al
je 0x140006e43
mov al, 1
jmp 0x140006ff5
mov rcx, rsi
call fcn.140002a6c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140006e92
lea rcx, [rbp - 0x48]
call fcn.140002d0c
nop
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.140015900
test al, al
je 0x140006e89
lea rcx, [rbp - 0x48]
call fcn.140002a6c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rbp - 0x48]
call fcn.140002b70
mov rcx, rsi
call fcn.1400065c0
test al, al
jne 0x140006e3c
mov rcx, rsi
call fcn.140002e74
mov r14, rax
xor ebx, ebx
test rax, rax
je 0x140006f92
call fcn.140002de0
mov rdi, rax
lea r12d, [rbx + 0x2f]
lea r15d, [rbx + 0x5c]
nop dword [rax]
nop dword [rax + rax]
mov rcx, rdi
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140006ee0
mov rcx, qword [rdi]
cmp r12w, word [rcx + rbx*2]
je 0x140006efe
mov rax, rdi
cmp rdx, 8
jb 0x140006ef3
mov rax, qword [rdi]
cmp r15w, word [rax + rbx*2]
jne 0x140006f86
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.140003df0
nop
lea rcx, [rbp - 0x48]
call fcn.140002a60
test al, al
jne 0x140006f7d
lea rcx, [rbp - 0x48]
call fcn.140006240
test al, al
jne 0x140006f7d
lea rcx, [rbp - 0x48]
call fcn.140002a6c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140006f7d
lea rcx, [rbp - 0x28]
call fcn.140002d0c
nop
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x48]
call fcn.140015900
test al, al
je 0x140006f73
lea rcx, [rbp - 0x28]
call fcn.140002a6c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rbp - 0x28]
call fcn.140002b70
nop
lea rcx, [rbp - 0x48]
call fcn.140002b70
inc rbx
cmp rbx, r14
jb 0x140006ed0
mov rcx, rsi
call fcn.140006240
test al, al
jne 0x140006fed
mov rcx, rsi
call fcn.140002a6c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140006fed
lea rcx, [rbp - 0x28]
call fcn.140002d0c
nop
lea rdx, [rbp - 0x28]
mov rcx, rsi
call fcn.140015900
test al, al
je 0x140006fe4
lea rcx, [rbp - 0x28]
call fcn.140002a6c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rbp - 0x28]
call fcn.140002b70
mov rcx, rsi
call fcn.1400065c0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140025ac0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140007b80
Capabilities:
Move file

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x90
mov qword [rax - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14004f018]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140002a6c
mov rdx, rax
mov rcx, rsi
call fcn.140002a6c
mov rcx, rax
mov r8d, 0xb
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140007cc5
xor dil, dil
lea rcx, [rsp + 0x68]
call fcn.140002d0c
nop
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.140015900
movzx edi, dil
mov ecx, 1
test al, al
cmovne edi, ecx
lea rcx, [rsp + 0x48]
call fcn.140002d0c
nop
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140015900
test al, al
jne 0x140007c27
test dil, dil
je 0x140007c51
lea rcx, [rsp + 0x48]
call fcn.140002a6c
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140002a6c
mov rcx, rax
mov r8d, 0xb
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140007cb0
mov rcx, rbx
call fcn.140014540
cmp eax, 0xffffffff
je 0x140007cdd
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140002d24
nop
lea rcx, [rsp + 0x28]
call fcn.140015340
test al, al
je 0x140007cd2
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.1400145d0
test al, al
je 0x140007cd2
mov rdx, rbx
mov rcx, rsi
call fcn.1400145d0
lea rcx, [rsp + 0x28]
test al, al
je 0x140007cc9
call fcn.140014870
nop
lea rcx, [rsp + 0x28]
call fcn.140002b70
nop
lea rcx, [rsp + 0x48]
call fcn.140002b70
nop
lea rcx, [rsp + 0x68]
call fcn.140002b70
mov al, 1
jmp 0x140007cf4
mov rdx, rbx
call fcn.1400145d0
nop
lea rcx, [rsp + 0x28]
call fcn.140002b70
nop
lea rcx, [rsp + 0x48]
call fcn.140002b70
nop
lea rcx, [rsp + 0x68]
call fcn.140002b70
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140025ac0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140008240
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
mov qword [rcx], r8
mov word [rcx + 8], r8w
mov rcx, rdx
call fcn.140002a60
test al, al
jne 0x140008268
call fcn.140002a6c
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx], rax
test rax, rax
je 0x140008294
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov rax, rbx
jne 0x140008297
mov byte [rbx + 9], 1
add rsp, 0x20
pop rbx
ret
mov rax, rbx
add rsp, 0x20
pop rbx
ret