joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400018b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001920
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400530a4]
mov rbx, rcx
test esi, esi
jle 0x140001a50
mov rax, qword [0x1400530a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000196b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400019f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001950
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001a72
mov rax, qword [0x1400530a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400530a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019ee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a00
add dword [0x1400530a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x1400530a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001978
mov rax, qword [0x1400530a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001fe0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140053100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400530e0]
test rbx, rbx
je 0x14000203c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002033
test rsi, rsi
je 0x140002033
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002018
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002250
Capabilities:
Parse pe header

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

Function at 0x140002280
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400022cd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400022c4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400022cf
add rax, 0x28
cmp rax, r9
jne 0x1400022b0
xor eax, eax
ret

Function at 0x1400022d0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002360
mov rdx, qword [0x14004fbb0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000234e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000234e
cmp word [rax + 0x18], 0x20b
jne 0x14000234e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002360
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002339
add rbx, 0x28
cmp rbx, rdi
je 0x140002360
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002330
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002370
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14004fbb0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002390
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002398
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002390
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400023ed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400023e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002390
add rax, 0x28
cmp rax, r9
jne 0x1400023d0
xor eax, eax
ret

Function at 0x1400023f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14004fbb0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000240f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002418
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000240f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002430
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14004fbb0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002450
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002458
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002450
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400024a0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002497
test rcx, rcx
je 0x140002450
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002488
xor eax, eax
ret

Function at 0x1400024b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14004fbb0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400024cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400024d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400024f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14004fbb0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002510
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002518
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002510
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002510
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002564
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002570
add rdx, 0x28
cmp r9, rdx
jne 0x140002550
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002580
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14004fbb0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400025a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400025b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400025a2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400025a2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002605
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002618
add rdx, 0x28
cmp rdx, r10
jne 0x1400025f0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002627
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002637
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000260e
test ecx, ecx
jg 0x140002620
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001460
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x140022a68]
test rcx, rcx
jne 0x140001486
call fcn.140001524
test eax, eax
je 0x1400014be
mov rcx, qword [0x140022a68]
call qword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPopEntrySList]
xor ecx, ecx
test rax, rax
je 0x1400014a2
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 0x10], ecx
mov word [rax + 0x14], cx
jmp 0x140001512
mov edx, 0x1000
mov r9d, 0x40
mov r8d, edx
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1400014c2
xor eax, eax
jmp 0x140001512
mov eax, dword [rax]
mov rcx, qword [0x140022a68]
call qword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x1400014ef
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualFree]
mov rax, rdi
jmp 0x140001512
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x140022a68]
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x1400014f6
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140004ef0
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor ebx, ebx
mov rsi, r8
mov r14, rdx
test r8, r8
jne 0x140004f1d
mov ebx, 0x80004003
jmp 0x140004f78
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [rax + 1]
mov ecx, edi
add rcx, rcx
call qword [sym.imp.msvcrt.dll_malloc]
mov rbp, rax
test rax, rax
jne 0x140004f43
mov ebx, 0x8007000e
jmp 0x140004f78
mov r8d, edi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r8, rsi
lea rdx, [0x14001c39c]
mov rcx, rbp
call sub.msvcrt.dll_swscanf_s
cmp eax, 1
mov ecx, 0x80004005
cmovne ebx, ecx
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_free]
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000797c
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
lea r9, [r11 + 8]
mov rcx, qword [rcx + 0x28]
lea r8, [r11 + 0x10]
lea rdx, [r11 + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x14001b6d8]
mov edi, eax
test eax, eax
js 0x140007a19
mov ecx, dword [rsp + 0x40]
test ecx, ecx
jne 0x1400079c3
mov rcx, qword [rbx + 0x18]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x18]
jmp 0x1400079d3
cmp ecx, 2
jne 0x1400079dd
mov rcx, qword [rbx + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x14001b6d8]
test al, al
je 0x140007a19
mov r8, qword [rsp + 0x50]
lea rdx, str.open
mov dword [rsp + 0x28], 1
xor r9d, r9d
and qword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell_shell32_l1_2_0.dll_ShellExecuteW]
cmp rax, 0x20
jae 0x140007a19
mov rcx, qword [rbx + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x14001b6d8]
mov rbx, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x30
pop rdi
ret

Function at 0x14000aaa4
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov dword [rax - 0x20], 5
and qword [rax - 0x28], 0
lea r8, str.https:__go.microsoft.com_fwlink__LinkId92748
xor ecx, ecx
lea rdx, str.open
xor r9d, r9d
call qword [sym.imp.ext_ms_win_shell_shell32_l1_2_0.dll_ShellExecuteW]
cmp rax, 0x20
ja 0x14000abd6
mov rax, qword [0x140022218]
lea rcx, [0x140022218]
mov rax, qword [rax + 0x18]
call qword [0x14001b6d8]
mov ebx, 0x226
xor edx, edx
mov ecx, ebx
lea rdi, [rax + 0x18]
mov qword [rsp + 0x30], rdi
call fcn.140002ed0
test rax, rax
je 0x14000ab2f
mov r8d, ebx
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.140007898
mov rdi, qword [rsp + 0x30]
mov rax, qword [0x140022218]
lea rcx, [0x140022218]
mov rax, qword [rax + 0x18]
call qword [0x14001b6d8]
xor edx, edx
mov ecx, 0x257
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
call fcn.140002ed0
test rax, rax
je 0x14000ab79
mov r8d, 0x257
lea rcx, [rsp + 0x38]
mov rdx, rax
call fcn.140007898
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14000abb0
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b6d8]
mov rdx, qword [rsp + 0x30]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14000abd6
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b6d8]
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14000b4d8
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x28], 0
lea r8, [0x1400065e0]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000b509
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x38
ret
Function at 0x14000b8c4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x78]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rbp, 0xffffffffffffffff
lea esi, [rax + 1]
mov eax, 2
movsxd rdx, esi
mul rdx
cmovo rax, rbp
mov rcx, rax
call fcn.1400191a8
mov rbx, rax
test rax, rax
je 0x14000b965
mov rcx, qword [rdi + 0x78]
mov r8d, esi
mov rdx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140001dd0
lea rcx, [rdi + 0x68]
mov rdx, rax
call fcn.140002524
mov rdx, qword [rsp + 0x30]
mov eax, ebp
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, ebp
test eax, eax
jg 0x14000b95d
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b6d8]
mov rcx, rbx
call fcn.14001915c
mov rcx, qword [rdi + 8]
mov edx, 1
call qword [sym.imp.USER32.dll_EndDialog]
mov rbx, qword [rsp + 0x38]
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b994
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, rcx
mov edx, 0x404
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rbx, 0xffffffffffffffff
lea r14d, [rax + 1]
mov eax, 2
movsxd rdx, r14d
mul rdx
cmovo rax, rbx
mov rcx, rax
call fcn.1400191a8
xor r15d, r15d
mov rdi, rax
test rax, rax
je 0x14000ba27
mov r8d, r14d
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
inc rbx
cmp word [rdi + rbx*2], r15w
jne 0x14000ba06
lea rcx, [rsi + 0x40]
mov r8d, ebx
mov rdx, rdi
call fcn.14000f42c
mov rcx, rdi
call fcn.14001915c
mov rcx, qword [rsi + 8]
mov edx, 1
call qword [sym.imp.USER32.dll_EndDialog]
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14000f008
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r14
sub rsp, 0x30
mov rbx, rcx
call fcn.14000ec78
movsxd r9, dword [rbx + 0x64]
xor edi, edi
mov rcx, qword [rbx + 8]
mov edx, 0x417
mov r8d, 0x149
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rsi, rax
cmp eax, 0xffffffff
jne 0x14000f05b
mov edi, 0x80004005
jmp 0x14000f12d
inc esi
mov eax, 2
mov r14d, esi
mov r12, 0xffffffffffffffff
mul r14
cmovo rax, r12
mov rcx, rax
call fcn.1400191a8
mov qword [rbx + 0x48], rax
test rax, rax
jne 0x14000f08e
mov edi, 0x8007000e
jmp 0x14000f12d
lea r8, [rsi + rsi]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbx + 0x48]
mov edx, 0x417
movsxd r9, dword [rbx + 0x64]
mov r8d, 0x148
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x20], rax
mov dword [rbx + 0x58], esi
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [rbx + 8]
mov edx, 0x419
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [rax + 1]
mov eax, 2
mov r14d, esi
mul r14
cmovo rax, r12
mov rcx, rax
call fcn.1400191a8
mov qword [rbx + 0x50], rax
test rax, rax
je 0x14000f084
lea r8, [rsi + rsi]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rcx, qword [rbx + 8]
mov edx, 0x419
mov dword [rbx + 0x5c], esi
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r8d, dword [rbx + 0x5c]
mov rcx, rax
mov rdx, qword [rbx + 0x50]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140016cb4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, rcx
xor r9d, r9d
mov rcx, qword [rcx + 0xc0]
xor r8d, r8d
mov edx, 0x147
xor edi, edi
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov r8, rax
mov eax, eax
cmp rax, qword [rbx + 0x88]
cmovbe edx, r8d
mov ecx, edx
cmp rcx, qword [rbx + 0x88]
jae 0x140016e5a
mov rax, qword [rbx + 0x80]
mov ecx, dword [rax + rdx*4]
mov dword [rbx + 0xa0], ecx
mov rcx, qword [rbx + 0xc8]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea r14, [rdi - 1]
lea ebp, [rax + 1]
movsxd rcx, ebp
lea eax, [rdi + 2]
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.1400191a8
mov rsi, rax
test rax, rax
je 0x140016e26
mov rcx, qword [rbx + 0xc8]
mov r8d, ebp
mov rdx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140001dd0
lea rcx, [rbx + 0xa8]
mov rdx, rax
call fcn.140002524
mov rdx, qword [rsp + 0x50]
mov eax, r14d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016da0
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b6d8]
mov rcx, qword [rbx + 0xd0]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebp, [rax + 1]
mov eax, 2
movsxd rcx, ebp
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.1400191a8
mov rdi, rax
test rax, rax
je 0x140016e26
mov rcx, qword [rbx + 0xd0]
mov r8d, ebp
mov rdx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140001dd0
lea rcx, [rbx + 0xb0]
mov rdx, rax
call fcn.140002524
mov rdx, qword [rsp + 0x20]
mov eax, r14d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016e26
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b6d8]
mov rcx, rsi
call fcn.14001915c
mov rcx, rdi
call fcn.14001915c
mov rcx, qword [rbx + 8]
mov edx, 1
call qword [sym.imp.USER32.dll_EndDialog]
mov rbx, qword [rsp + 0x58]
xor eax, eax
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80070057
call fcn.140001164
int3
Function at 0x140017b34
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x150
mov rax, qword [0x140022150]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbp, rcx
mov edx, 0x3ff
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 0x50
mov rbx, rax
call fcn.1400191a8
mov edi, 0x28
mov rdx, rax
mov r8d, edi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
movups xmm0, xmmword [0x14001d6f0]
xor r14d, r14d
mov byte [rbp + 0x50], 1
movdqu xmmword [rbp + 0x40], xmm0
test rsi, rsi
je 0x140017be2
mov edx, edi
mov rax, rsi
cmp word [rax], r14w
je 0x140017bbe
add rax, 2
sub rdx, 1
jne 0x140017bae
mov rax, rdx
neg rax
sbb ecx, ecx
not ecx
and ecx, 0x80070057
test rdx, rdx
je 0x140017bd8
sub rdi, rdx
jmp 0x140017bdb
mov rdi, r14
mov qword [rsp + 0x28], rdi
jmp 0x140017bec
mov rdi, qword [rsp + 0x28]
mov ecx, 0x80070057
test ecx, ecx
js 0x140017cae
test rdi, rdi
je 0x140017cae
lea rax, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.140017a84
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_IIDFromString]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
lea rax, [rsp + 0x38]
cmp rcx, rax
je 0x140017c3a
call qword [sym.imp.msvcrt.dll_free]
test ebx, ebx
jns 0x140017cae
mov rcx, qword [0x140022218]
mov rax, qword [rcx + 0x18]
lea rcx, [0x140022218]
call qword [0x14001b6d8]
mov r8d, ebx
lea rcx, [rsp + 0x20]
add rax, 0x18
mov edx, 0x259
mov qword [rsp + 0x20], rax
call fcn.140004a90
mov rbx, qword [rsp + 0x20]
xor r9d, r9d
mov rcx, qword [rbp + 8]
mov r8, rbx
mov rdx, rbx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rdx, [rbx - 0x18]
mov byte [rbp + 0x50], r14b
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140017cae
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b6d8]
mov rcx, rsi
call fcn.14001915c
mov rcx, qword [rbp + 8]
mov edx, 1
call qword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400196c0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret