joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140127f50
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rax, qword [0x14028e6b0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, rdx
mov rsi, rcx
xor r15d, r15d
mov edi, r15d
mov dword [rsp + 0x20], r15d
mov rcx, rdx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140128095
lea ecx, [r15 + 0xd]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbp, rax
test rax, rax
je 0x14012808f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rbx, rax
test rax, rax
je 0x140128029
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r15
mov word [rsp + 0x30], r15w
cmp word [rax], di
jne 0x140127fed
mov r8d, r15d
jmp 0x140127ffb
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x140127ff1
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140006f10
nop
mov edi, 1
mov dword [rsp + 0x20], edi
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140129850
test al, al
je 0x140128029
movzx esi, dil
jmp 0x14012802c
xor sil, sil
test dil, 1
je 0x14012806a
and edi, 0xfffffffe
mov dword [rsp + 0x20], edi
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x140128056
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140007680
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r15
mov word [rsp + 0x30], r15w
test sil, sil
je 0x140128086
mov r9, rbx
mov edx, 0xc2
mov r8d, 1
mov rcx, r14
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140168660
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401296a0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x20
mov r9, r8
mov r10, rcx
movzx r8d, byte [r8 + 0x10]
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
mov rdi, rdx
xor r8, rax
movzx eax, byte [r9 + 0x11]
mov rdx, qword [r10 + 0x30]
imul r8, rcx
xor r8, rax
movzx eax, byte [r9 + 0x12]
imul r8, rcx
xor r8, rax
movzx eax, byte [r9 + 0x13]
imul r8, rcx
xor r8, rax
imul r8, rcx
mov rcx, qword [r10 + 0x18]
and rdx, r8
shl rdx, 4
add rcx, rdx
cmp qword [rcx + 8], r9
jne 0x140129739
cmp qword [rcx], r9
jne 0x14012972f
mov rax, qword [r10 + 8]
mov qword [rcx], rax
mov rcx, qword [r10 + 0x18]
mov rax, qword [r10 + 8]
mov qword [rdx + rcx + 8], rax
jmp 0x140129744
mov rax, qword [r9 + 8]
mov qword [rcx + 8], rax
jmp 0x140129744
cmp qword [rcx], r9
jne 0x140129749
mov rax, qword [r9]
mov qword [rcx], rax
mov r9, qword [rsp + 0x40]
mov rax, qword [r9 + 8]
mov rcx, r9
mov rbx, qword [r9]
mov qword [rax], rbx
mov rdx, qword [r9]
mov rax, qword [r9 + 8]
mov qword [rdx + 8], rax
dec qword [r10 + 0x10]
call fcn.140167f5c
mov qword [rdi], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140129900
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
movzx r9d, byte [r8]
mov r10, rcx
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r9, rax
mov rbx, rdx
movzx eax, byte [r8 + 1]
mov r11, r8
mov rdx, qword [r10 + 0x18]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 2]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 3]
mov r8, qword [r10 + 8]
imul r9, rcx
xor r9, rax
imul r9, rcx
mov rcx, qword [r10 + 0x30]
and rcx, r9
mov rax, rcx
add rax, rax
add rcx, rcx
mov rax, qword [rdx + rax*8]
mov r9, qword [rdx + rcx*8]
lea r10, [rdx + rcx*8]
cmp r9, r8
jne 0x14012997f
mov rcx, r8
jmp 0x140129986
mov rcx, qword [r10 + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x1401299ae
mov ecx, dword [r11]
cmp dword [rax + 0x10], ecx
je 0x140129998
mov rax, qword [rax]
jmp 0x140129975
mov ecx, dword [rax + 0x10]
cmp dword [r11], ecx
cmovne rax, r8
mov qword [rbx], rax
mov rax, rbx
mov rbx, qword [rsp + 8]
ret
mov qword [rbx], r8
mov rax, rbx
mov rbx, qword [rsp + 8]
ret

Function at 0x14012eaf0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
mov eax, 0x20070
call fcn.1401686c0
sub rsp, rax
mov rax, qword [0x14028e6b0]
xor rax, rsp
mov qword [rsp + 0x20050], rax
mov r9, qword [rcx + 8]
mov rdi, r8
mov rbx, rdx
mov r15, rcx
test r9, r9
jne 0x14012eb2d
xor eax, eax
jmp 0x14012ec7f
mov qword [rsp + 0x20068], rsi
xor esi, esi
cmp byte [rcx + 0x20], sil
je 0x14012eb74
movsxd rcx, dword [rcx]
cmp ecx, 1
je 0x14012eb52
lea eax, [rcx - 2]
cmp eax, 1
ja 0x14012eb70
lea edx, [rsi + 2]
jmp 0x14012eb57
mov edx, 3
lea rax, [0x140221de0]
mov r8d, 1
lea rcx, [rcx + rcx*2]
add rcx, rax
call fcn.140199688
mov byte [r15 + 0x20], sil
movsxd r10, dword [r15]
mov qword [rsp + 0x200a8], rbp
mov qword [rsp + 0x20060], r14
cmp r10d, 7
ja case.default.0x14012eba3
lea rcx, [0x140000000]
mov r9d, dword [rcx + r10*4 + 0x12eca0]
add r9, rcx
jmp r9
mov r9, qword [r15 + 8]
mov r8d, 1
mov rdx, rdi
mov rcx, rbx
call fcn.140199688
mov rsi, rax
jmp case.default.0x14012eba3
lea rax, [rdi + rbx]
mov dword [rsp + 0x24], esi
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x40], rax
mov word [rsp + 0x28], si
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x20], r10d
call fcn.14012e510
mov rax, qword [rsp + 0x40]
mov ebx, esi
cmp qword [rsp + 0x38], rax
ja 0x14012ec5f
mov rdi, rsi
nop
cmp dword [rsp + 0x24], esi
jne 0x14012ec15
movzx eax, word [rsp + 0x28]
inc ebx
mov word [rsp + rdi*2 + 0x50], ax
inc rdi
lea rcx, [rsp + 0x20]
call fcn.14012e510
mov rbp, qword [rsp + 0x40]
mov r14, qword [rsp + 0x38]
cmp ebx, 0x10000
je 0x14012ec36
cmp r14, rbp
jbe 0x14012ec00
mov r9, qword [r15 + 8]
lea rcx, [rsp + 0x50]
movsxd rdx, ebx
mov r8d, 1
add rdx, rdx
call fcn.140199688
test rax, rax
je 0x14012ec9b
mov ebx, esi
mov rdi, rsi
cmp r14, rbp
jbe 0x14012ec00
mov esi, 1
mov rax, rsi
mov rbp, qword [rsp + 0x200a8]
mov r14, qword [rsp + 0x20060]
mov rsi, qword [rsp + 0x20068]
mov rcx, qword [rsp + 0x20050]
xor rcx, rsp
call fcn.140168660
add rsp, 0x20070
pop r15
pop rdi
pop rbx
ret
jmp 0x14012ec67
Function at 0x1401359e0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x788]
sub rsp, 0x880
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x14028e6b0]
xor rax, rsp
mov qword [rbp + 0x770], rax
mov rbx, rcx
call fcn.140130df0
mov r9d, 0x40
lea r8, str.Recovery_initiating
lea rdx, str.Notepad_will_attempt_to_save_any_unsaved_data._However__dataloss_is_very_likely.
mov rcx, qword [0x1402a3a60]
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rdx, [rsp + 0x70]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x48], di
cmp word [rsp + 0x70], di
jne 0x140135a78
mov r8d, edi
jmp 0x140135a8b
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x140135a81
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140006f10
nop
mov r8d, 9
lea rdx, str.NRECOV
lea rcx, [rsp + 0x48]
call fcn.140006a00
lea rcx, [rbx + 0x20]
lea rdx, [rsp + 0x48]
call fcn.140080640
test al, al
je 0x140135b71
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
mov r8d, 0x8a
lea rdx, str.Notepad_was_able_to_successfully_recover_some_unsaved_documents__or_nothing_to_be_saved_could_be_found._r_nYou_can_find_the_results_at_:_r_n
lea rcx, [rsp + 0x28]
call fcn.140006f10
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.1400068d0
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov r9d, 0x40
lea r8, str.Recovery_success
mov rcx, qword [0x1402a3a60]
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140135b5c
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140007680
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
jmp 0x140135b93
mov r9d, InitCommonControls
lea r8, str.Recovery_failure
lea rdx, str.Unfortunatly__Notepad_was_not_able_to_save_your_work._We_are_sorry_for_any_lost_data.
mov rcx, qword [0x1402a3a60]
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x140135bb0
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140007680
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x48], di
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.140168660
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1401366f0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rax, rdx
mov rbx, rcx
xor ecx, ecx
mov dword [rsp + 0x20], ecx
mov qword [rbx], rcx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rcx
mov dword [rsp + 0x20], 1
cmp word [rdx], cx
je 0x14013675f
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
je 0x14013675f
movsxd rcx, dword [rsp + 0x48]
lea r8, [rax + rcx*8]
mov rdx, rax
mov rcx, rbx
call fcn.140135400
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140138dc0
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rsi
sub rsp, 0x2b8
mov rax, qword [0x14028e6b0]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rsi, rdx
mov rbx, rcx
cmp r8d, 0xf
je 0x140138e04
mov rax, qword [rsp + 0x2f0]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_CallWindowProcW]
jmp 0x140138eb0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x2b0], rdi
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.USER32.dll_BeginPaint]
mov edx, dword [rbx]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov r8d, 0x104
lea rdx, [rsp + 0x90]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 0
or r8d, 0xffffffff
lea rdx, [rsp + 0x90]
mov rcx, rdi
call qword [sym.imp.USER32.dll_DrawTextW]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.USER32.dll_EndPaint]
mov rdi, qword [rsp + 0x2b0]
mov eax, 1
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140168660
add rsp, 0x2b8
pop rsi
pop rbx
ret

Function at 0x140138ed0
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.14010ffe0
call fcn.14000cdd0
cmp qword [rax + 0x32e38], 0
je 0x140138fb7
mov rcx, qword [rbx + 0x18]
mov edx, 0x8ff
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x18]
mov edx, 0x8fe
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov edx, 0x8fe
mov qword [rsp + 0x20], 0xc80014
mov r8d, 0x406
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [rbx + 0x18]
mov edx, 0x8fe
mov r9d, 1
mov qword [rsp + 0x20], 0x96
mov r8d, 0x405
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov edx, 0x8fe
mov qword [rsp + 0x20], 0
mov r8d, 0xf0
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 1
je 0x140138fb7
mov rcx, qword [rbx + 0x18]
mov edx, 0x8fe
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_EnableWindow]
add rsp, 0x30
pop rbx
ret
Function at 0x1401417d0
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rax, qword [0x14028e6b0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
xor r9d, r9d
mov edx, 0x110a
lea r8d, [r9 + 9]
mov rcx, qword [rcx + 0xb0]
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x1401418bf
mov r8, rax
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.1401402e0
nop
lea rbx, [rdi + 0x148]
mov rdx, rax
mov rcx, rbx
call fcn.140003d30
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140141859
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140007680
mov qword [rsp + 0x40], 7
xor eax, eax
mov qword [rsp + 0x38], rax
mov word [rsp + 0x28], ax
cmp qword [rbx + 0x18], 8
jb 0x14014187a
mov rcx, qword [rbx]
jmp 0x14014187d
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1401418bf
cmp qword [rbx + 0x18], 8
jb 0x140141893
mov rcx, qword [rbx]
jmp 0x140141896
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1401418bf
cmp qword [rbx + 0x18], 8
jb 0x1401418aa
mov rbx, qword [rbx]
mov r9, rbx
xor r8d, r8d
mov edx, 0x835
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140168660
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1401438c0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor r9d, r9d
mov rbx, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x88], rax
mov r9, rbx
xor eax, eax
lea r8, [0x140143950]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x80], rax
add rsp, 0x30
pop rbx
ret

Function at 0x140144270
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov esi, r9d
mov ebp, r8d
mov r14, rdx
mov rbx, rcx
xor edi, edi
cmp qword [rcx + 8], rdi
jne 0x1401442c4
lea rax, [rcx + 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, qword [rcx]
lea r8, [0x1401445c0]
xor edx, edx
xor ecx, ecx
call fcn.14019c8f0
mov qword [rbx + 8], rax
mov ecx, 0x88
call fcn.140167f20
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1401442fb
mov ecx, dword [rsp + 0x80]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], esi
mov r9d, ebp
mov r8, r14
mov rdx, qword [rbx]
mov rcx, rax
call fcn.140144c30
mov rdi, rax
mov r8, rdi
mov rdx, qword [rbx + 8]
lea rcx, [0x140144330]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_QueueUserAPC]

Function at 0x14016a67c
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14016a68f
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14016acf4
lea rdx, [0x1402854f8]
lea rcx, [rsp + 0x20]
call fcn.140187700
int3

Function at 0x1401769c0
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1402a61a8]
xor edx, edx
jmp fcn.14016a67c

Function at 0x1401773a8
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1402a61a8]
jmp fcn.14016a67c
Function at 0x1401a5fc4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1401a5c80
call fcn.14019451c
mov dword [rax], 0x16
call fcn.14018acdc
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401a5c68
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1401a5c68
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1401a5cb2
lock or dword [rax + 0x14], 0x10
jmp 0x1401a5c68
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1401a5ccf
mov rcx, qword [rbp + 0x10]
call fcn.1401a94ac
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401a43a0
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1401a56b8
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1401a5d26
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1401a5c68
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1401a5d92
mov rcx, qword [rbp + 0x10]
call fcn.1401a43a0
cmp eax, 0xffffffff
je 0x1401a5d79
mov rcx, qword [rbp + 0x10]
call fcn.1401a43a0
cmp eax, 0xfffffffe
je 0x1401a5d79
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401a43a0
movsxd rdi, eax
lea rsi, [0x1402a6960]
mov rcx, rbx
sar rdi, 6
call fcn.1401a43a0
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1401a5d80
lea rax, [0x14028eba0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401a5d92
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1401a5dc8
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401a5dc4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401a5dc4
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1401a5c6b
jmp 0x1401a5c38
Function at 0x1401a5fcc
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1401a5e32
call fcn.14019451c
mov dword [rax], 0x16
call fcn.14018acdc
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401a5e14
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1401a5e14
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x1401a5e64
lock or dword [rax + 0x14], 0x10
jmp 0x1401a5e14
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1401a5e81
mov rcx, qword [rbp + 0x20]
call fcn.1401a94ac
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x1401a5e96
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x1401a5e9c
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.1401a43a0
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1401a56b8
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x1401a5eef
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x1401a5e14
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1401a5f5b
mov rcx, qword [rbp + 0x20]
call fcn.1401a43a0
cmp eax, 0xffffffff
je 0x1401a5f42
mov rcx, qword [rbp + 0x20]
call fcn.1401a43a0
cmp eax, 0xfffffffe
je 0x1401a5f42
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.1401a43a0
movsxd rdi, eax
lea r15, [0x1402a6960]
mov rcx, rbx
sar rdi, 6
call fcn.1401a43a0
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x1401a5f49
lea rax, [0x14028eba0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401a5f5b
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x1401a5f91
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401a5f8d
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401a5f8d
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x1401a5faf
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x1401a5fba
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x1401a5e19
jmp 0x1401a5de0
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400c5800]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400c5810]
mov dword [rax], 1
mov rax, qword [0x1400c5820]
mov dword [rax], 1
mov rax, qword [0x1400c57a0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400c57f0]
mov dword [0x1400ef020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400c58e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400c58c0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400c4bb0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a