joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015a50
Capabilities:
Get thread local storage value
Hijack thread execution

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4f8
mov rsi, rcx
test rcx, rcx
je 0x140015b40
lea rdi, [0x140029108]
mov rcx, rdi
call dbg.pthread_mutex_lock
mov rcx, rsi
call dbg.__pthread_get_pointer
mov rcx, rdi
mov rbx, rax
call dbg.pthread_mutex_unlock
test rbx, rbx
je 0x140015b40
mov rcx, qword [rbx + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140015b40
lea rdi, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_GetHandleInformation]
test eax, eax
je 0x140015b40
lea rbp, [rbx + 0x38]
mov rcx, rbp
call dbg.pthread_mutex_lock
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140029118]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140015c50
movzx edx, byte [rbx + 0x40]
cmp rsi, qword [rax + 0x1d8]
je 0x140015b58
mov eax, dword [rbx + 0x44]
and eax, 3
cmp eax, 3
je 0x140015bb0
test dl, 3
jne 0x140015b30
and edx, 0xfffffffc
or edx, 1
mov byte [rbx + 0x40], dl
lock add dword [0x140039c88], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140015b21
call qword [sym.imp.KERNEL32.DLL_SetEvent]
mov rcx, rbp
call dbg.pthread_mutex_unlock
xor eax, eax
jmp 0x140015b45
mov rcx, rbp
call dbg.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
je 0x140015b29
nop
mov eax, 3
add rsp, 0x4f8
pop rbx
pop rsi
pop rdi
pop rbp
ret
test dl, 3
jne 0x140015b30
and edx, 0xfffffffc
or edx, 1
mov byte [rbx + 0x40], dl
lock add dword [0x140039c88], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140015b7d
call qword [sym.imp.KERNEL32.DLL_SetEvent]
mov eax, dword [rbx + 0x44]
mov edx, eax
and edx, 3
cmp edx, 3
jne 0x140015b21
and eax, 0xfffffffe
mov rcx, rbp
mov dword [rbx + 0x44], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xfffffff3
or eax, 4
mov byte [rbx + 0x40], al
call dbg.pthread_mutex_unlock
call dbg._pthread_invoke_cancel
nop word [rax + rax]
test dl, 0xc
jne 0x140015b30
and edx, 0xf
jne 0x140015b40
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x50], 0x100001
call qword [sym.imp.KERNEL32.DLL_SuspendThread]
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x140015b21
mov rcx, qword [rbx + 0x28]
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_GetThreadContext]
lea rax, [dbg._pthread_invoke_cancel]
mov rcx, qword [rbx + 0x28]
mov rdx, rdi
mov qword [rsp + 0x118], rax
call qword [sym.imp.KERNEL32.DLL_SetThreadContext]
movzx eax, byte [rbx + 0x40]
and dword [rbx + 0x44], 0xfffffffe
and eax, 0xfffffff0
or eax, 5
mov byte [rbx + 0x40], al
lock add dword [0x140039c88], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140015c38
call qword [sym.imp.KERNEL32.DLL_SetEvent]
mov rcx, rbp
call dbg.pthread_mutex_unlock
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.DLL_ResumeThread]
jmp 0x140015b21
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x140015ae0
movzx edx, byte [rbx + 0x40]
jmp 0x140015aed
Function at 0x140015c70
Capabilities:
Get thread local storage value
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140029108]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call dbg.pthread_mutex_lock
mov rcx, rbx
call dbg.__pthread_get_pointer
test rax, rax
je 0x140015ce8
cmp qword [rax + 0x1d8], rbx
jne 0x140015ce8
test byte [rax + 0x40], 0xc
jne 0x140015ce8
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140015ce8
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140015ce8
mov rcx, rdi
call dbg.pthread_mutex_unlock
test esi, esi
je 0x140015d00
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x140015d08
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp dbg.pthread_cancel
mov rcx, rdi
call dbg.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor eax, eax
jmp 0x140015cf5
mov eax, 0x16
jmp 0x140015cf5

Function at 0x140015ea0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov rdi, rdx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140029118]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140015f10
cmp esi, 1
ja 0x140015f1d
lea rbp, [rbx + 0x38]
mov rcx, rbp
call dbg.pthread_mutex_lock
test rdi, rdi
je 0x140015ee4
mov eax, dword [rbx + 0x44]
and eax, 1
mov dword [rdi], eax
mov eax, dword [rbx + 0x44]
mov rcx, qword [rbx + 0x1d8]
and eax, 0xfffffffe
or eax, esi
mov dword [rbx + 0x44], eax
call dbg.test_cancel_locked
mov rcx, rbp
call dbg.pthread_mutex_unlock
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
test rax, rax
jne 0x140015ec6
mov eax, 0x16
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140015f30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
mov rdi, rdx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140029118]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140015fa8
mov ebp, esi
and ebp, 0xfffffffd
jne 0x140015fb5
lea r12, [rbx + 0x38]
mov rcx, r12
call dbg.pthread_mutex_lock
test rdi, rdi
je 0x140015f78
mov eax, dword [rbx + 0x44]
and eax, 2
mov dword [rdi], eax
mov eax, dword [rbx + 0x44]
mov rcx, qword [rbx + 0x1d8]
and eax, 0xfffffffd
or eax, esi
mov dword [rbx + 0x44], eax
call dbg.test_cancel_locked
mov rcx, r12
call dbg.pthread_mutex_unlock
mov eax, ebp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
test rax, rax
jne 0x140015f58
mov ebp, 0x16
mov eax, ebp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140016260
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rbp, rdx
test rcx, rcx
je 0x140016380
lea rdi, [0x140029108]
mov rcx, rdi
call dbg.pthread_mutex_lock
mov rcx, rsi
call dbg.__pthread_get_pointer
mov rcx, rdi
mov rbx, rax
call dbg.pthread_mutex_unlock
test rbx, rbx
je 0x140016380
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140016380
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.DLL_GetHandleInformation]
test eax, eax
je 0x140016380
test byte [rbx + 0x44], 4
jne 0x140016390
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140029118]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x1400163b0
cmp rsi, qword [rax + 0x1d8]
je 0x1400163d8
mov eax, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test eax, eax
je 0x14001630b
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001631a
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.DLL_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001632e
call rsi
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
test rbp, rbp
je 0x1400163c8
mov rax, qword [rbx + 8]
mov qword [rbp], rax
call dbg.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x1400163df
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x1400163a0
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbx
call sym.push_pthread_mem.part.0
xor eax, eax
jmp 0x140016376
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x1400162e6
jmp 0x1400162f3
call dbg.pthread_mutex_destroy
jmp 0x140016350
mov eax, 0x24
jmp 0x140016385
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
Function at 0x1400163f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [0x140029108]
mov rsi, rcx
mov rcx, rbp
mov rdi, rdx
call dbg.pthread_mutex_lock
mov rcx, rsi
call dbg.__pthread_get_pointer
mov rbx, rax
test rax, rax
je 0x140016510
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140016510
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.DLL_GetHandleInformation]
test eax, eax
je 0x140016510
test byte [rbx + 0x44], 4
jne 0x140016530
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140029118]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140016570
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x1400165a8
mov edx, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test edx, edx
jne 0x140016497
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x140016550
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.DLL_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400164ab
call rsi
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
test rdi, rdi
je 0x140016588
mov rax, qword [rbx + 8]
mov qword [rdi], rax
call dbg.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x1400165ba
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x140016598
mov rcx, rbp
call dbg.pthread_mutex_unlock
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call dbg.pthread_mutex_unlock
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call dbg.pthread_mutex_unlock
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x140016493
mov rcx, rbp
call dbg.pthread_mutex_unlock
mov eax, 0x10
jmp 0x1400164fe
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
jne 0x140016465
jmp 0x14001646c
call dbg.pthread_mutex_destroy
jmp 0x1400164cc
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x1400164f4
mov rcx, rbp
call dbg.pthread_mutex_unlock
mov eax, 0x24
jmp 0x1400164fe
call sym.replace_spin_keys.part.0
nop
Function at 0x14001aa00
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x140029680], 0
jne 0x14001ab03
mov byte [0x140029680], 1
call dbg.__cxa_current_exception_type
test rax, rax
je 0x14001aad8
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call dbg.__cxa_demangle
mov ecx, 2
mov rsi, qword [dbg.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x14001aac9
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x14002a471]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140026df7
jmp 0x140026def
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x14001aa97
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
nop
jmp 0x140026dea
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
nop
nop
nop
Function at 0x140021920
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x140021948
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x140021990
cdqe
add rsi, rax
sub rbx, rax
jne 0x140021960
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14002199c
call rbp
cmp dword [rax], 4
je 0x140021960
lea rcx, str.random_device_could_not_be_read
call dbg.std::__throw_runtime_error(char const*)
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140025a30
Capabilities:
Encode data using xor

Disassembly:
mov r11, rdx
mov rax, rcx
mov r10, rdx
and r11, 0xfffffffffffffff8
add r11, rcx
movabs rcx, 0xc6a4a7935bd1e995
imul r10, rcx
xor r10, r8
cmp rax, r11
je 0x140025a88
nop word cs:[rax + rax]
mov r9, qword [rax]
add rax, 8
imul r9, rcx
mov r8, r9
shr r8, 0x2f
xor r8, r9
imul r8, rcx
xor r8, r10
mov r10, r8
imul r10, rcx
cmp r11, rax
jne 0x140025a60
and edx, 7
je 0x140025abd
sub edx, 1
movsxd rax, edx
xor edx, edx
nop dword [rax]
movzx ecx, byte [r11 + rax]
shl rdx, 8
sub rax, 1
add rdx, rcx
test eax, eax
jns 0x140025a98
xor rdx, r10
movabs r10, 0xc6a4a7935bd1e995
imul r10, rdx
movabs rax, 0xc6a4a7935bd1e995
mov rdx, r10
shr rdx, 0x2f
xor rdx, r10
imul rdx, rax
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
ret

Function at 0x140025b40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, r8
test rdx, rdx
je 0x140025b6c
movabs r9, 0x100000001b3
add rdx, rcx
nop dword [rax]
movsx r8, byte [rcx]
add rcx, 1
xor rax, r8
imul rax, r9
cmp rcx, rdx
jne 0x140025b58
ret
Function at 0x140026d80
Capabilities:
Write file on windows

Disassembly:
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x140026dfc
call dbg.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call dbg.__cxa_end_catch
call sym.abort
mov rcx, rdi
call sym.free
call dbg.__cxa_rethrow
call dbg.__cxa_begin_catch
call dbg.__cxa_end_catch
jmp 0x140026dea

Function at 0x140027b80
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor edx, edx
lea rcx, [0x1400291c0]
movabs rdi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call dbg.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x1400291d8], 0
movups xmmword [0x1400291c8], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x140027c35
jmp 0x140027cdf
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x140027c90
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rdi
jne 0x140027c20
cmp qword [rbx + 7], r12
jne 0x140027c20
cmp byte [rbx + 0xf], 0x2e
jne 0x140027c20
add rbx, 0x10
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
test rsi, rsi
je 0x140027c7b
mov r8, rsi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x140027c85
cmp byte [rbx + rsi], 0x3d
je 0x140027d15
add rbp, 0x18
cmp rbp, r13
jne 0x140027c5f
jmp 0x140027c20
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x1400291d8], rbx
jne 0x140027cef
lea rcx, [dbg.__tcf_0]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp dbg.atexit
mov qword [0x1400291d8], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x1400291d0], rax
test rax, rax
je 0x140027d4c
xor edx, edx
mov qword [0x1400291c8], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x140027cc7
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rsi + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x140027d3c
test dl, dl
jne 0x140027c20
test eax, eax
js 0x140027c20
mov dword [rbp + 0x10], eax
jmp 0x140027c20
xor ecx, ecx
mov qword [0x1400291d8], rcx
jmp 0x140027cc7
Function at 0x14001ae6c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001ae82
mov al, 1
jmp 0x14001aee2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001ae93
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001aee0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140018fc0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001aee0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001aee0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001aee0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001aee2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f100
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f128
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f128
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140597c00
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword gs:[0x60]
movabs r11, 0x597c70
movabs r10, 0x597c74
mov r9, qword [rax + 0x10]
xor eax, eax
movsxd rcx, dword [r9 + 0x3c]
movsxd r11, dword [r9 + r11]
add rcx, r9
mov r10d, dword [r9 + r10]
movzx r8d, word [rcx + 0x14]
add r8, rcx
cmp dword [r8 + 0x20], eax
jbe 0x140597c66
mov edx, eax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r8 + 0x24]
inc eax
add rcx, rdx
inc rdx
xor byte [rcx + r9], r10b
cmp eax, dword [r8 + 0x20]
jb 0x140597c50
lea rax, [r9 + r11]
jmp rax
Function at 0x140001060
Capabilities:
Create directory
Get common file path

Disassembly:
push rbx
sub rsp, 0x4a0
mov rax, qword [0x140021020]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rbx, rcx
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1400010a3
lea rcx, str.Unable_to_obtain_current_directory_during_crash_dump
call fcn.140001280
jmp 0x14000120c
lea r8, str.minidump
lea rcx, [rsp + 0x70]
mov edx, 0x104
mov qword [rsp + 0x4b8], rdi
call fcn.14000617c
lea rcx, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x6c]
movzx edx, word [rsp + 0x6a]
movzx r8d, word [rsp + 0x68]
movzx eax, word [rsp + 0x6e]
movzx r10d, word [rsp + 0x60]
movzx r11d, word [rsp + 0x62]
movzx r9d, word [rsp + 0x66]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r10d
lea r8, [rsp + 0x70]
lea rdx, str._wsdump__02d_02d_04d__02d_02d_02d_04d.dmp
lea rcx, [rsp + 0x280]
mov dword [rsp + 0x20], r11d
call fcn.140001030
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x280]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001185
lea rdx, [rsp + 0x280]
lea rcx, str.Failed_to_open_file_path__ws_while_generating_crash_dump
call fcn.140001280
jmp 0x140001204
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rsp + 0x54], rbx
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x30], 0
mov rcx, rax
lea rax, [rsp + 0x50]
xor r9d, r9d
mov r8, rdi
mov edx, ebx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call qword [0x140022a20]
test eax, eax
jne 0x1400011fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.MiniDumpWriteDump_failed._Error:__u
mov edx, eax
call fcn.140001280
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x4b8]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140006c80
add rsp, 0x4a0
pop rbx
ret
Function at 0x1400015b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov rax, qword [0x140021020]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov qword [rbp - 0x10], 7
xor ebx, ebx
mov qword [rbp - 0x18], rbx
mov word [rbp - 0x28], bx
lea rdx, [0x140022a50]
cmp word [0x140022a50], bx
jne 0x140001608
mov r8d, ebx
jmp 0x14000161a
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], bx
jne 0x140001610
lea rcx, [rbp - 0x28]
call fcn.140003400
nop
or rax, 0xffffffffffffffff
mov rcx, qword [rbp - 0x18]
sub rax, rcx
cmp rax, 1
ja 0x140001642
lea rcx, str.string_too_long
call fcn.1400060bc
int3
lea rsi, [rcx + 1]
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
jbe 0x140001662
lea rcx, str.string_too_long
call fcn.1400060bc
int3
mov rdx, qword [rbp - 0x10]
cmp rdx, rsi
jae 0x14000167c
mov r8, rcx
mov rdx, rsi
lea rcx, [rbp - 0x28]
call fcn.140002840
jmp 0x140001695
test rsi, rsi
jne 0x1400016a2
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp rdx, 8
cmovae rax, qword [rbp - 0x28]
mov word [rax], bx
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
test rsi, rsi
je 0x1400016ce
lea rax, [rbp - 0x28]
cmp rdx, 8
cmovae rax, qword [rbp - 0x28]
mov edx, 0x5c
mov word [rax + rcx*2], dx
mov qword [rbp - 0x18], rsi
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rax, qword [rbp - 0x28]
mov word [rax + rsi*2], bx
cmp word [rdi], 0
je 0x1400016ea
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400016e0
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x28]
call fcn.140002da0
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001722
test al, 0x10
jne 0x140001722
mov dl, 1
mov rcx, rdi
call sym.x64dbg.exe_LoadLibraryCheckedW
jmp 0x14000172c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop
cmp qword [rbp - 0x10], 8
jb 0x14000173c
mov rcx, qword [rbp - 0x28]
call fcn.140006d0c
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140006c80
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret