joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401b4a40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x170], rax
cmp byte [rcx + 0x17], 0
jns 0x1401b4a67
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401b4a97
test eax, 0x410
sete sil
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14012f6f0
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400ba0d0
test al, al
jne 0x1401b4aa9
xor esi, esi
jmp 0x1401b4a7b
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x73
mov r9d, 2
call fcn.140192850
lea rcx, [rsp + 0x40]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140167a60
mov rcx, rax
mov rdx, rsi
call fcn.140193560
mov rcx, rdi
call fcn.1401928d0
jmp 0x1401b4aa5

Function at 0x1401b4b00
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x170], rax
cmp byte [rcx + 0x17], 0
jns 0x1401b4b27
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401b4b3e
and eax, 0x410
cmp eax, 0x410
je 0x1401b4b83
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1401b4b4a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
jne 0x1401b4b67
mov ecx, 2
call fcn.1400ba0d0
test al, al
jne 0x1401b4ba4
xor edi, edi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14012f6f0
mov eax, edi
add rsp, 0x178
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14012f6f0
mov rcx, rsi
add rsp, 0x178
pop rdi
pop rsi
jmp fcn.1401b4c00
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x93
mov r9d, 2
call fcn.140192850
lea rcx, [rsp + 0x40]
lea rdx, str.DeleteFile
mov r8d, 0xb
call fcn.140167a60
mov rcx, rax
mov rdx, rsi
call fcn.140193560
mov rcx, rdi
call fcn.1401928d0
jmp 0x1401b4b65

Function at 0x1401b4c00
Capabilities:
Delete directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x170
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x168], rax
cmp byte [rcx + 0x17], 0
jns 0x1401b4c28
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
test eax, eax
jne 0x1401b4c42
mov ecx, 2
call fcn.1400ba0d0
test al, al
jne 0x1401b4c64
test edi, edi
setne bl
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.14012f6f0
mov eax, ebx
add rsp, 0x170
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r8d, 0x2f
mov r9d, 2
call fcn.140192850
lea rcx, [rsp + 0x38]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.140167a60
mov rcx, rax
mov rdx, rsi
call fcn.140193560
mov rcx, rbx
call fcn.1401928d0
jmp 0x1401b4c42
Function at 0x1401b9760
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x180
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov qword [rcx + 8], rdx
mov eax, dword [0x1402344c8]
mov ecx, dword [0x140228d28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401b99c9
mov rax, qword [0x1402344c0]
test rax, rax
je 0x1401b9847
lea rdx, [rsp + 0x174]
mov dword [rdx], 0xaaaaaaaa
mov rcx, rdi
call qword [0x140243008]
test eax, eax
je 0x1401b97f5
cmp dword [rsp + 0x174], 0
setne byte [rsi + 0x81]
je 0x1401b984e
mov byte [rsi + 0x80], 0
mov dl, 1
jmp 0x1401b9883
cmp dword [0x140231b60], 2
jg 0x1401b9847
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r8d, 0x4c
mov r9d, 2
call fcn.140192850
lea rcx, [rsp + 0x40]
lea rdx, [0x1402011c0]
mov r8d, 0xe
call fcn.140167a60
mov rcx, rbx
call fcn.1401928d0
mov byte [rsi + 0x81], 0
movaps xmm0, xmmword [0x1401ee3a0]
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [rbx], 9
sete byte [rsi + 0x80]
cmp byte [rsi + 0x81], 0
setne dl
lea rax, [rsi + 0x30]
lea r9, [rsi + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov r8, rsi
call fcn.1401b9a10
test al, al
jne 0x1401b9906
cmp dword [0x140231b60], 2
jg 0x1401b98e7
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x21f
mov r9d, 2
call fcn.140006710
lea rcx, [rsp + 0x40]
lea rdx, str.GetProcessBasicInformation_failed
mov r8d, 0x21
call fcn.140167a60
mov rcx, rsi
call fcn.140006910
xor esi, esi
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.14012f6f0
mov eax, esi
add rsp, 0x180
pop rbx
pop rdi
pop rsi
ret
cmp byte [rsi + 0x80], 0
mov rdx, qword [rsi + 0x28]
mov rcx, rdi
mov r8, rsi
jne 0x1401b9920
call fcn.1401ba280
jmp 0x1401b9925
call fcn.1401b9c30
test al, al
jne 0x1401b9969
cmp dword [0x140231b60], 2
jg 0x1401b98e7
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x228
mov r9d, 2
call fcn.140006710
lea rcx, [rsp + 0x40]
lea rdx, str.ReadProcessData_failed
mov r8d, 0x16
jmp 0x1401b98da
mov dl, byte [rsi + 0x80]
mov rcx, rdi
mov r8, rsi
call fcn.1400a0ca0
mov sil, 1
test al, al
jne 0x1401b98e9
cmp dword [0x140231b60], 2
jg 0x1401b98e7
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x22d
mov r9d, 2
call fcn.140006710
lea rcx, [rsp + 0x40]
lea rdx, str.ReadMemoryInfo_failed
mov r8d, 0x15
jmp 0x1401b98da
lea rcx, [0x1402344c8]
call fcn.14012ce30
cmp dword [0x1402344c8], 0xffffffff
jne 0x1401b97ab
lea rcx, [0x1401f5a36]
lea rdx, str.::IsWow64Process
xor r8d, r8d
call fcn.1400a0b80
mov qword [0x1402344c0], rax
lea rcx, [0x1402344c8]
call fcn.14012ce98
jmp 0x1401b97ab
Function at 0x1401c5840
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r8
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 0xaaaaaaaa
lea rdi, [rsp + 0x44]
mov dword [rdi], eax
lea r8, [rsp + 0x40]
mov dword [r8], eax
lea rax, [rsp + 0x3c]
mov dword [rax], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rdi]
xor ecx, 4
or ecx, eax
sete bl
jne 0x1401c58a0
mov eax, dword [rsp + 0x40]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14012f6f0
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x1401d2d40
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x1401ee3a0]
lea r15, [rsp + 0x160]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.14016a4f0
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.1401db7b0
test al, al
je 0x1401d2e95
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x1401d2e0d
mov rcx, r14
call fcn.14016a4f0
movsxd r14, dword [rsp + 0x19c]
add r14, rax
mov r8d, 0x108
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.1401db7b0
test al, al
je 0x1401d2e56
cmp dword [rbx], 0x4550
jne 0x1401d2ec6
mov sil, 1
test rdi, rdi
je 0x1401d2ea5
mov qword [rdi], r14
jmp 0x1401d2ea5
mov ecx, 1
call fcn.1400ba0d0
test al, al
je 0x1401d2ea3
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.140006710
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x1401d2f3a
mov ecx, 1
call fcn.1400ba0d0
test al, al
je 0x1401d2ea3
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.140006710
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x1401d2f34
mov ecx, 1
call fcn.1400ba0d0
test al, al
jne 0x1401d2f08
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14012f6f0
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.1400ba0d0
test al, al
je 0x1401d2ea3
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.140006710
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x1401d2f3a
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.140006710
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.140167a60
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1401d2f4f
and r8d, 0x7f
jmp 0x1401d2f56
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.140167a60
mov rcx, rdi
call fcn.140006910
jmp 0x1401d2ea3
Function at 0x1401d2f70
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x1401ee3a0]
lea r15, [rsp + 0x160]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.14016a4f0
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.1401db7b0
test al, al
je 0x1401d30c5
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x1401d303d
mov rcx, r14
call fcn.14016a4f0
movsxd r14, dword [rsp + 0x19c]
add r14, rax
mov r8d, 0xf8
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.1401db7b0
test al, al
je 0x1401d3086
cmp dword [rbx], 0x4550
jne 0x1401d30f6
mov sil, 1
test rdi, rdi
je 0x1401d30d5
mov qword [rdi], r14
jmp 0x1401d30d5
mov ecx, 1
call fcn.1400ba0d0
test al, al
je 0x1401d30d3
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.140006710
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x1401d316a
mov ecx, 1
call fcn.1400ba0d0
test al, al
je 0x1401d30d3
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.140006710
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x1401d3164
mov ecx, 1
call fcn.1400ba0d0
test al, al
jne 0x1401d3138
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14012f6f0
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.1400ba0d0
test al, al
je 0x1401d30d3
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.140006710
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x1401d316a
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.140006710
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.140167a60
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1401d317f
and r8d, 0x7f
jmp 0x1401d3186
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.140167a60
mov rcx, rdi
call fcn.140006910
jmp 0x1401d30d3
Function at 0x140006b10
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140006b40
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x140006b3f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140006b45
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x140006b3f
mov eax, 0
jmp 0x140006b3f

Function at 0x1400071c0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140007170
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400107e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.140019320
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140019320
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140010850
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140595934]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x1400109e0
mov rax, qword [0x140595938]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14001089c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140010925
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140010880
mov rcx, rdi
call fcn.1400113b0
test rax, rax
mov r12, rax
je 0x140010a32
mov rax, qword [0x140595938]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.1400114f0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140595938]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140010a15
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001091e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140010990
add dword [0x140595934], 1
cmp ebx, 8
jae 0x140010951
test bl, 4
jne 0x1400109f0
test ebx, ebx
je 0x140010946
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140010a04
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140010946
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14001096a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x140595938]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001091e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400107e0
xor esi, esi
jmp 0x1400108a7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140010946
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140010946
mov rax, qword [0x140595938]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.1400107e0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.1400107e0
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140011000
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1405959a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140595980]
test rbx, rbx
je 0x140011054
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14001104b
test rsi, rsi
je 0x14001104b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140011030
lea rcx, [0x1405959a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400113b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140590530]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14001141f
mov rcx, r9
call fcn.140011280
test eax, eax
je 0x14001141f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14001141d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140011414
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001141f
add rdx, 0x28
cmp rdx, r9
jne 0x140011400
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001b720
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14058cfc0]
jmp 0x1400121e0

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

Disassembly:
lea rcx, [0x14058cfc0]
jmp 0x1400121e0
Function at 0x100401250
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sub.msys_2.0.dll_perror
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop word cs:[rax + rax]
nop

Function at 0x1004025e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor ebx, ebx
mov eax, dword [rcx + 0x48]
mov rdi, rcx
mov rbp, rdx
lea rsi, [rcx + 0x50]
test eax, eax
jne 0x10040260b
jmp 0x100402648
add ebx, 1
add rsi, 0x18
cmp ebx, eax
jae 0x10040263b
mov rcx, qword [rsi]
mov rdx, rbp
call sub.msys_2.0.dll_fputs
mov eax, dword [rdi + 0x48]
lea ecx, [rax - 1]
cmp ecx, ebx
jbe 0x100402600
mov rdx, rbp
mov ecx, 0x20
add ebx, 1
add rsi, 0x18
call sub.msys_2.0.dll_fputc
mov eax, dword [rdi + 0x48]
cmp ebx, eax
jb 0x10040260b
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r9, rdx
mov r8d, 4
mov edx, 1
lea rcx, str.NULL
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.msys_2.0.dll_fwrite

Function at 0x100402670
Capabilities:
Query environment variable
Terminate process
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [sym.imp.msys_2.0.dll_optarg]
xor r8d, r8d
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x28]
call sub.msys_2.0.dll_strtol
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x1004026af
cmp rdx, qword [rbx]
je 0x1004026af
cmp byte [rdx], 0
jne 0x1004026af
add rsp, 0x30
pop rbx
ret
mov rbx, qword [rbx]
call sub.msys_2.0.dll___getreent
lea rdx, str.Expected_a_number__not___s__n
mov rcx, qword [rax + 0x18]
mov r8, rbx
call sub.msys_2.0.dll_fprintf
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop word cs:[rax + rax]

Function at 0x1004026e0
Capabilities:
Query environment variable
Terminate process
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.TERM
call sub.msys_2.0.dll_getenv
test rax, rax
je 0x1004026fc
add rsp, 0x20
pop rbx
ret
mov rbx, qword [str.infocmp]
call sub.msys_2.0.dll___getreent
lea rdx, str._s:_environment_variable_TERM_not_set_n
mov rcx, qword [rax + 0x18]
mov r8, rbx
call sub.msys_2.0.dll_fprintf
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop word cs:[rax + rax]
Function at 0x1004039c0
Capabilities:
Terminate process

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [rcx + 8]
lea rdi, [r8 + 1]
mov rsi, r8
mov r8, qword [rcx + 0x10]
mov r12, rdx
lea rdx, [rax + rdi]
mov rbx, rcx
mov rcx, qword [rcx]
cmp r8, rdx
jae 0x100403a0b
lea rdx, [r8 + rdx + 0x400]
mov qword [rbx + 0x10], rdx
call qword [sym.imp.msys_ncursesw6.dll__nc_doalloc]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x100403a32
mov rax, qword [rbx + 8]
add rcx, rax
mov r8, rdi
mov rdx, r12
call sub.msys_2.0.dll_strncpy
mov rax, qword [rbx]
add rsi, qword [rbx + 8]
mov qword [rbx + 8], rsi
mov byte [rax + rsi], 0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
ret
lea rcx, str.strncpy_DYN
call sub.msys_2.0.dll_perror
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop dword [rax]

Function at 0x100403b00
Capabilities:
Terminate process

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, qword [sym.imp.msys_ncursesw6.dll__nc_doalloc]
xor ebx, ebx
lea rsi, [0x100411080]
mov ebp, ecx
test ecx, ecx
jle 0x100403b87
nop
mov rax, qword [0x100411088]
mov rdx, qword [0x100411090]
mov rcx, qword [rsi]
lea r8, [rax + 2]
cmp r8, rdx
jbe 0x100403b5d
lea rdx, [r8 + rdx + 0x400]
mov qword [0x100411090], rdx
call rdi
mov qword [rsi], rax
mov rcx, rax
test rax, rax
je 0x100403b90
mov rax, qword [0x100411088]
mov edx, 9
add ebx, 1
mov word [rcx + rax], dx
mov rax, qword [0x100411088]
lea rdx, [rax + 1]
mov qword [0x100411088], rdx
mov rdx, qword [rsi]
mov byte [rdx + rax + 1], 0
cmp ebx, ebp
jne 0x100403b20
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, str.strncpy_DYN
call sub.msys_2.0.dll_perror
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop word [rax + rax]
Function at 0x140011249
Capabilities:
Terminate process

Disassembly:
jmp 0x1400139e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret