joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003a60
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003a94
cmp word [rcx], 0x5a4d
jne 0x140003a94
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003a94
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003a94
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400039a0
test eax, eax
jne 0x140003ab0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003a10
test rax, rax
je 0x140003aa5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004259
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004160
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.140004100
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 0x140009764
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14057a1b8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14057a1b4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400097b2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400097aa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140009899
inc ebx
add rax, 0x28
jmp 0x14000978a
mov rcx, r12
call fcn.140009f91
mov rbp, rax
test rax, rax
jne 0x1400097d1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140009700
movsxd rbx, ebx
mov rax, qword [0x14057a1b8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000a03f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14057a1b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140009833
mov rax, qword [0x14057a1b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140009700
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140009893
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140009893
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14057a1b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140009893
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140009700
inc dword [0x14057a1b4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140009cc0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14057a220]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14057a200]
test rbx, rbx
je 0x140009d0c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140009d06
test eax, eax
jne 0x140009d06
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140009cde
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140009ec0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140009ee3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140009ee3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140009ee4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140009f1e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140009f15
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140009f20
inc r8d
add rax, 0x28
jmp 0x140009efc
xor eax, eax
ret

Function at 0x140009f91
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14056fbd0]
mov r8, rcx
mov rcx, r9
call fcn.140009ec0
test eax, eax
je 0x140009fbd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140009ee4
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000ea13
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14056bd38], eax
inc eax
jne 0x14000ea2d
call sub.msvcrt.dll_abort
nop
add rsp, 0x28
ret

Function at 0x14000eba1
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
mov rbx, rcx
test rcx, rcx
je 0x14000ec3d
call fcn.1400111ca
dec eax
jne 0x14000ec36
xor eax, eax
lea rdi, [rsp + 0x25]
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x4d]
mov ecx, 0x43
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x4c]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
mov eax, 0x27
lea rcx, [rsp + 0x25]
cmp byte [rcx + rax], 0
je 0x14000ec15
inc rax
cmp rax, 0x6b
jne 0x14000ec04
jmp 0x14000ec2b
cmp eax, 0x6a
je 0x14000ec2b
movsxd rdx, eax
inc eax
cdqe
mov byte [rsp + rdx + 0x25], 0xa
mov byte [rsp + rax + 0x25], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
call fcn.14000ec48
mov ecx, dword [0x14056bd38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x14000edee
call fcn.14000eaf5
cmp qword [0x14057d048], 0
mov rbx, rax
je 0x14000edee
test rax, rax
je 0x14000edee
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14000eba1
xor edx, edx
xor ecx, ecx
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], edx
mov qword [rbx + 0x28], rcx
call rdi
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rdi
xor r8d, r8d
mov dword [rsp + 0x30], 2
mov rdx, rsi
mov dword [rsp + 0x28], r8d
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], r8d
mov r8, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x14000edb4
call sub.msvcrt.dll_abort
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x14056bd38]
mov rdx, rbx
mov dword [rbx + 0xc0], eax
xor eax, eax
mov dword [rbx + 0xbc], eax
mov al, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000edaf
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
Function at 0x14000f96f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
call fcn.14000ecdf
mov qword [rax + 8], rsi
mov rcx, qword [rax + 0x1d8]
mov rbx, rax
call fcn.14000f447
test byte [rbx + 0x40], 0x30
jne 0x14000f9a8
lea rcx, [rbx + 0xd0]
mov edx, 1
call qword [sym.imp.msvcrt.dll_longjmp]
mov ecx, dword [0x14056bd38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14000fa33
cmp qword [rax + 0x28], 0
mov rcx, qword [rax + 0x30]
jne 0x14000f9e3
mov dword [rax], 0xdeadbeef
test rcx, rcx
je 0x14000f9d8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov esi, dword [rbx + 8]
mov qword [rbx + 0x30], rcx
jmp 0x14000fa1d
mov dword [rax + 0xbc], 1
mov esi, dword [rax + 8]
test rcx, rcx
je 0x14000f9fb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov qword [rbx + 0x30], rdx
test byte [rbx + 0x44], 4
je 0x14000fa33
mov dword [rbx], 0xdeadbeef
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov qword [rbx + 0x28], rax
mov rcx, rbx
call fcn.14000edf9
mov ecx, dword [0x14056bd38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call qword [sym.imp.msvcrt.dll__endthreadex]
nop
Function at 0x140011f50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140011f81
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x140011ffb
mov rdi, r14
mov rcx, rbx
call fcn.140010ff0
test rax, rax
jle 0x140011fd3
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140069ca0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140011feb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140011ff3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140011f95
sub r14, rdi
jmp 0x1400120e8
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140012012
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140012014
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140012049
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140069ca0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400120e5
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140012084
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x1400120c0
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14006e980
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x140012106
cmp rbp, rax
ja 0x140012090
mov r8, rdi
test rdi, rdi
je 0x1400120e5
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14006e980
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub r14, rbp
jmp 0x1400120e8
Function at 0x1400121c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001225a
mov rbx, r8
test r8, r8
jle 0x140012252
mov rcx, rdi
call fcn.1400111a0
test rax, rax
jle 0x140012230
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.140069ca0
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x14001224a
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140012252
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x1400121f2
sub r14, rbx
mov rax, r14
jmp 0x1400122d1
mov rax, qword [rcx + 0x40]
mov rsi, r14
mov r9, qword [rax]
test r9, r9
je 0x140012271
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140012273
xor ecx, ecx
movsxd rbx, ecx
test r14, r14
jle 0x1400122cb
test ecx, ecx
jle 0x1400122a7
cmp r14, rbx
mov rcx, r9
cmovl rbx, r14
mov r8, rbx
call fcn.140069ca0
mov rax, qword [rdi + 0x58]
add rbp, rbx
sub r14, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x40]
movsxd rax, ebx
add qword [rcx], rax
test r14, r14
jle 0x1400122cb
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400122cb
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.14007418c
sub r14, rax
sub rsi, r14
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400134a0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov r11, rsp
sub rsp, 0x1e8
mov rax, qword [0x1400c5518]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rax, qword [0x1400c69f0]
test rax, rax
jne 0x1400135aa
mov qword [r11 + 8], rbx
lea ecx, [rax + 0x10]
mov qword [r11 - 8], rdi
call fcn.1400676b8
mov qword [rsp + 0x20], rax
mov rbx, rax
test rax, rax
je 0x140013552
mov ecx, 0x202
mov qword [rax], 0
lea rdx, [rsp + 0x30]
mov byte [rax + 8], 0
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140013554
lea ecx, [rax + 3]
call fcn.140023a60
test eax, eax
jne 0x140013554
call fcn.1400237f0
mov rcx, qword [str.internalcheck.corp.blizzard.net]
mov qword [rbx], rax
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x14001354b
cmp word [rax + 0x10], 2
jne 0x14001354b
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
cmp dword [rcx], 0x100007f
jne 0x14001354b
mov al, 1
mov byte [rbx + 8], al
jmp 0x140013554
xor al, al
mov byte [rbx + 8], al
jmp 0x140013554
xor ebx, ebx
mov rdi, qword [0x1400c69f0]
mov qword [0x1400c69f0], rbx
test rdi, rdi
je 0x140013597
mov rcx, qword [rdi]
call fcn.1400237b0
mov qword [rdi], 0
call fcn.140023a00
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov edx, reloc.WS2_32.dll_recv
mov rcx, rdi
call fcn.1400676f4
mov rax, qword [0x1400c69f0]
jmp 0x14001359a
mov rax, rbx
mov rbx, qword [rsp + 0x1f0]
mov rdi, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140067810
add rsp, 0x1e8
ret
Function at 0x140015700
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400c5518]
xor rax, rsp
mov qword [rsp + 0xb8], rax
cmp qword [rcx], 0
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
je 0x14001580c
mov rax, qword [rcx + 8]
test rax, rax
jne 0x140015750
mov ecx, 0x100000
call fcn.140067ec4
mov qword [rdi + 8], rax
test rax, rax
je 0x14001580c
xorps xmm0, xmm0
lea rcx, [rsp + 0x90]
xor eax, eax
mov rdx, rbx
movups xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0xb0], eax
movups xmmword [rsp + 0xa0], xmm0
call fcn.1400210f0
lea rdx, [0x140098dec]
mov rcx, rbx
call fcn.140020f20
mov rbx, rax
test rax, rax
je 0x14001580c
mov rcx, qword [rdi]
lea r8, [rsp + 0x90]
mov dword [rsp + 0x88], 0x800
xor eax, eax
mov dword [rsp + 0x80], eax
xor r9d, r9d
mov dword [rsp + 0x78], eax
mov rdx, rsi
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], 8
mov dword [rsp + 0x58], 0xfffffff1
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], 0xffffffff
mov dword [rsp + 0x40], 8
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
call fcn.14005deb0
test eax, eax
je 0x140015829
mov rcx, rbx
call fcn.14006e4d8
xor al, al
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140067810
add rsp, 0xc0
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0xf8], rbp
mov bpl, 1
mov rcx, rbx
call fcn.140074b38
test eax, eax
jne 0x140015882
mov rcx, qword [rdi + 8]
lea edx, [rax + 1]
mov r9, rbx
mov r8d, 0x100000
call fcn.14006e980
mov rsi, rax
cmp rax, 0x100000
jae 0x14001586c
mov rcx, rbx
call fcn.140074b38
test eax, eax
je 0x14001587f
mov rdx, qword [rdi + 8]
mov r8d, esi
mov rcx, qword [rdi]
call fcn.14005e5d0
test eax, eax
je 0x140015834
xor bpl, bpl
mov rcx, rbx
call fcn.14006e4d8
mov rcx, qword [rdi]
call fcn.14005d7a0
movzx eax, bpl
mov rbp, qword [rsp + 0xf8]
jmp 0x14001580e
Function at 0x140016de0
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x560
mov rax, qword [0x1400c5518]
xor rax, rsp
mov qword [rsp + 0x550], rax
mov ebx, edx
mov rdi, rcx
mov edx, 0x104
lea rcx, [rsp + 0x340]
call fcn.1400209d0
test rax, rax
je 0x140016f2a
xorps xmm0, xmm0
lea rcx, [rsp + 0x340]
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x70], rax
movups xmmword [rsp + 0x40], xmm0
lea edx, [rax + 0x2f]
mov dword [rsp + 0x34], ebx
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call fcn.14006a688
mov edx, 0x5c
lea rcx, [rsp + 0x340]
mov rbx, rax
call fcn.14006a688
cmp rbx, rax
cmova rax, rbx
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140016e84
cmp word [rax + 2], 0
je 0x140016e84
add rax, 2
jmp 0x140016e8c
lea rax, [rsp + 0x340]
or dword [rsp + 0x30], 1
xor r9d, r9d
mov edx, 0x1002
mov qword [rsp + 0x48], rax
mov rcx, rdi
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
test rax, rax
je 0x140016f14
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x101
lea r8, [rsp + 0x80]
xor edx, edx
lea rcx, [rsp + 0x340]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x140016f14
mov r8, qword [rsp + 0x80]
test r8, r8
je 0x140016f14
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
test eax, eax
js 0x140016f06
or dword [rsp + 0x30], 2
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_DestroyIcon]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x104d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.140067810
mov rbx, qword [rsp + 0x588]
add rsp, 0x560
pop rdi
ret
Function at 0x140019070
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2140
call fcn.140067870
sub rsp, rax
mov rax, qword [0x1400c5518]
xor rax, rsp
mov qword [rsp + 0x2130], rax
mov ebx, edx
mov rdi, rcx
mov edx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov rsi, rax
cmp ebx, 0x7546
jg 0x140019282
je 0x140019278
sub ebx, 1
je 0x140019181
sub ebx, 1
je 0x14001912c
cmp ebx, 4
jne 0x140019294
lea edx, [rbx + 2]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r8d, 0x1000
lea rdx, [rsp + 0x130]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [0x14009c2c8]
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov rcx, rdi
test eax, eax
jne 0x140019122
mov rdx, rsi
call fcn.140016f50
jmp 0x1400192b4
call fcn.140018ec0
jmp 0x1400192b4
mov eax, dword [rax]
shr eax, 4
test al, 1
jne 0x1400192b4
mov r9d, 0x100
lea r8, [rsp + 0x30]
mov edx, 0x754f
mov rcx, rdi
call fcn.140017f90
lea rcx, [rsp + 0x30]
call fcn.140015c10
mov r9d, 0xffffffff
mov r8, rax
mov edx, 2
mov rcx, rsi
call fcn.140004790
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_EndDialog]
jmp 0x1400192b4
mov rdx, rsi
mov rcx, rdi
call fcn.140017c50
mov edx, 7
mov rcx, rsi
call fcn.140003890
cmp byte [rax], 0
jne 0x1400191ac
lea rdx, str.Must_enter_a_summary.
mov ebx, 0x753b
jmp 0x140019225
cmp qword [0x1400c53e0], 0
je 0x140019268
mov rbx, qword [rsi + 0x900]
lea r8, [0x1400c53d0]
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0x900]
call fcn.140004b70
cmp qword [rax], rbx
je 0x140019219
lea r8, [0x1400c53d0]
lea rdx, [rsp + 0x28]
lea rcx, [rsi + 0x900]
call fcn.140004b70
mov rcx, qword [rax]
mov rax, qword [rcx + 0x40]
test rax, rax
je 0x140019219
mov rax, qword [rax + 0x50]
cmp qword [rax + 0x10], 0
lea rcx, [rax + 0x20]
je 0x140019214
mov rcx, qword [rcx]
cmp byte [rcx], 0
jne 0x140019268
lea rdx, str.Must_enter_expected_steps.
mov ebx, 0x753f
mov r9d, reloc.WS2_32.dll_recv
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.USER32.dll_MessageBoxW]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_SetFocus]
mov r9, 0xffffffffffffffff
xor r8d, r8d
mov edx, 0xb1
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1400192b4
mov edx, 1
mov rcx, rdi
call qword [sym.imp.USER32.dll_EndDialog]
jmp 0x1400192b4
mov rcx, rdi
call fcn.140016a20
jmp 0x1400192b4
sub ebx, 0x7547
je 0x1400192ac
sub ebx, 1
je 0x1400192a2
cmp ebx, 1
je 0x140019298
xor eax, eax
jmp 0x1400192b9
mov rcx, rdi
call fcn.140018b30
jmp 0x1400192b4
mov rcx, rdi
call fcn.14001ac60
jmp 0x1400192b4
mov rcx, rdi
call fcn.14001cb30
mov eax, 1
mov rcx, qword [rsp + 0x2130]
xor rcx, rsp
call fcn.140067810
lea r11, [rsp + 0x2140]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140019910
Capabilities:
Get graphical window text

Disassembly:
push rdi
mov eax, 0x2050
call fcn.140067870
sub rsp, rax
mov rax, qword [0x1400c5518]
xor rax, rsp
mov qword [rsp + 0x2040], rax
cmp dword [rdx], 5
mov rdi, rdx
jne 0x140019a69
mov rcx, qword [rdi + 0x18]
mov edx, 0xfffffff0
mov qword [rsp + 0x2060], rbx
mov qword [rsp + 0x2070], rsi
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov r8d, eax
mov ecx, eax
and r8d, 0x80
mov esi, eax
or r8d, 1
shl r8d, 4
mov ebx, r8d
bts ebx, 0xd
and ecx, 0x2000
cmove ebx, r8d
and eax, 0xc000
cmp eax, 0x4000
je 0x1400199a9
cmp eax, 0x8000
je 0x1400199a3
cmp eax, 0xc000
jne 0x1400199ad
bts ebx, 0x12
jmp 0x1400199ad
bts ebx, 0xe
jmp 0x1400199ad
bts ebx, 0xf
movups xmm0, xmmword [rdi + 0x28]
mov rcx, qword [rdi + 0x18]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
movups xmmword [rsp + 0x30], xmm0
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi + 0x20]
lea r9, [rsp + 0x30]
mov eax, ebx
lea rdx, [rsp + 0x40]
bts eax, 0xa
mov r8d, 0xffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [rdi + 0x34]
sub ecx, dword [rdi + 0x2c]
sub ecx, dword [rsp + 0x3c]
add ecx, dword [rsp + 0x34]
movups xmm0, xmmword [rdi + 0x28]
bt esi, 9
mov rsi, qword [rsp + 0x2070]
movups xmmword [rsp + 0x30], xmm0
jb 0x140019a25
mov rax, qword [rsp + 0x30]
shr rax, 0x20
add eax, ecx
mov dword [rsp + 0x34], eax
jmp 0x140019a43
test ecx, ecx
jle 0x140019a43
mov eax, ecx
mov rcx, qword [rsp + 0x38]
cdq
shr rcx, 0x20
sub eax, edx
sar eax, 1
add dword [rsp + 0x34], eax
add ecx, eax
mov dword [rsp + 0x3c], ecx
mov rcx, qword [rdi + 0x20]
lea r9, [rsp + 0x30]
mov r8d, 0xffffffff
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_DrawTextW]
mov rbx, qword [rsp + 0x2060]
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.140067810
add rsp, 0x2050
pop rdi
ret