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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400043e0]
mov rcx, qword [0x140004390]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x1400043f0]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x140004400]
mov dword [rax], 1
jne 0x140001083
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001083
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000105e
cmp cx, 0x20b
je 0x14000106d
jmp 0x140001083
cmp dword [rax + 0x74], 0xe
jbe 0x140001083
cmp dword [rax + 0xe8], 0
jmp 0x14000107d
cmp dword [rax + 0x84], 0xe
jbe 0x140001083
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x1400043d0]
mov dword [0x14000700c], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x14000109f
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400044a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140004480]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140004340]
cmp dword [rax], 1
jne 0x1400010e1
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001604
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1400070a8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1400070a4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140001652
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000164a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001739
inc ebx
add rax, 0x28
jmp 0x14000162a
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
jne 0x140001671
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
movsxd rbx, ebx
mov rax, qword [0x1400070a8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call sym._GetPEImageBase
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400016d3
mov rax, qword [0x1400070a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001733
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001733
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 [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001733
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
inc dword [0x1400070a4]
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 0x140001b60
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140007100]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001bac
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 0x140001ba6
test eax, eax
jne 0x140001ba6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140001b7e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140001d60
Capabilities:
Parse pe header

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

Function at 0x140001d84
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 0x140001dbe
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140001db5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140001dc0
inc r8d
add rax, 0x28
jmp 0x140001d9c
xor eax, eax
ret

Function at 0x140001e31
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140004390]
mov r8, rcx
mov rcx, r9
call sym._ValidateImageBase
test eax, eax
je 0x140001e5d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp sym._FindPESection
xor eax, eax
add rsp, 0x28
ret
Function at 0x140002fe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov dil, 1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000302d
xor esi, esi
test al, 0x10
jne 0x14000303f
test dil, dil
je 0x14000302d
mov rcx, rbx
call fcn.140001d70
cmp rax, rbx
jbe 0x14000302d
mov rcx, rbx
mov word [rax - 2], si
xor dil, dil
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140003002
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140003240
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbp, rdx
mov r8, rdx
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rdi, rcx
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, rdi
call fcn.14008f9a0
xor esi, esi
cmp word [rbp], si
je 0x14000328d
mov r8, rbp
jmp 0x14000334c
lea rcx, [rsp + 0x20]
call fcn.14001b530
test al, al
jne 0x140003347
cmp word [0x1400e29c0], si
je 0x14000335a
lea r8, [0x1400e29c0]
mov edx, 0x104
lea rax, [rsp + 0x20]
sub r8, rax
lea rcx, [rsp + 0x20]
nop word [rax + rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400032f3
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400032f3
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400032d0
lea rax, [rcx - 2]
test rdx, rdx
mov bl, 1
cmovne rax, rcx
lea rcx, [rsp + 0x20]
mov word [rax], si
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000335a
test al, 0x10
jne 0x140003347
test bl, bl
je 0x14000335a
lea rcx, [rsp + 0x20]
call fcn.140001d70
lea rcx, [rsp + 0x20]
cmp rax, rcx
jbe 0x14000335a
lea rcx, [rsp + 0x20]
mov word [rax - 2], si
xor bl, bl
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140003313
jmp 0x14000335a
lea r8, [rsp + 0x20]
mov edx, 0x484
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov r8d, dword [rbp + 0x220]
mov edx, 0x485
shr r8d, 1
mov rcx, rdi
and r8d, 1
call qword [sym.imp.USER32.dll_CheckDlgButton]
cmp dword [0x1400e2ddc], esi
mov edx, 0x486
mov rcx, rdi
setne sil
mov r8d, esi
call qword [sym.imp.USER32.dll_CheckDlgButton]
mov edx, 0x490
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rbx, rax
test rax, rax
je 0x140003438
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 0xb]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x14b
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, rbx
lea rcx, [0x140003060]
call fcn.14008e5d0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x146
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x14000340d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x14e
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
mov rcx, rbx
lea edx, [r9 + 0xb]
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, rdi
call fcn.1400031a0
cmp dword [0x1400e2de4], 0x9cfa
jne 0x14000345b
xor r9d, r9d
mov edx, 0x111
mov r8d, 0x47a
mov rcx, rdi
call qword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140094850
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, qword [0x1400e1228]
lea r8, str.RT_TEXT_FILE
mov rsi, rdx
mov rcx, rbx
movzx edx, r9w
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14000463a
mov rdx, rax
mov qword [rsp + 0xe0], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rdi
mov rcx, rbx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140004632
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140004632
cmp ebp, 4
jbe 0x140004632
mov ecx, dword [rax]
mov edx, 8
mov dword [rsp + 0x20], ecx
mov r8d, ecx
mov rcx, qword [0x1400e1230]
add ebp, 0xfffffffc
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140004632
lea r8, [rdi + 4]
mov r9d, ebp
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14004bf10
cmp eax, 1
jne 0x140004620
mov edi, dword [rsp + 0x20]
test edi, edi
je 0x140004632
lea r8d, [rax + 0x2f]
mov rcx, rsi
lea rdx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rdx, str.RichEdit
lea rcx, [rsp + 0x50]
call fcn.14009b63c
test eax, eax
je 0x140004583
lea rdx, [0x1400c5c40]
lea rcx, [rsp + 0x50]
call fcn.14009b63c
test eax, eax
jne 0x140004614
cmp byte [rbx], 0x7b
jne 0x140004614
xor eax, eax
mov qword [rsp + 0x28], rbx
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x40], eax
lea r9, [rsp + 0x38]
lea rax, [0x140004400]
mov qword [rsp + 0x38], rcx
mov edx, 0x449
mov qword [rsp + 0x44], rax
mov r8d, 0x4002
mov dword [rsp + 0x30], edi
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 0x44d
mov r9d, 0x8000
mov r8d, 1
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
mov edx, 0xb1
mov rcx, rsi
lea r8, [r9 - 1]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
mov edx, 0xcf
mov rcx, rsi
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140004620
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov rcx, qword [0x1400e1230]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140094850
add rsp, 0xc0
pop rdi
pop rsi
pop rbx
ret
Function at 0x140007f60
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, qword [rcx + 0x2020]
lea rdi, str.Maps
mov rsi, rcx
xor r8d, r8d
mov rbp, rdx
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x140007feb
cmp cx, 0x5c
je 0x140007fb5
cmp cx, 0x2f
je 0x140007fb5
add rax, 2
jmp 0x140007fbc
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
jne 0x140007fa3
movzx ecx, word [rbx]
test cx, cx
je 0x140007feb
nop dword [rax]
cmp cx, 0x2e
mov rax, rbx
movzx ecx, word [rbx + 2]
cmovne rax, r8
add rbx, 2
mov r8, rax
test cx, cx
jne 0x140007fd0
test r8, r8
lea rdx, [0x1400c6378]
cmovne rbx, r8
mov rcx, rbx
call fcn.14009b63c
test eax, eax
je 0x140008018
lea rdx, [0x1400c6388]
mov rcx, rbx
call fcn.14009b63c
test eax, eax
jne 0x14000801a
xor edi, edi
mov rax, qword [rsi + 0x2020]
mov r8, rax
movzx ecx, word [rax]
test cx, cx
je 0x140008051
nop dword [rax]
cmp cx, 0x5c
je 0x140008042
cmp cx, 0x2f
je 0x140008042
add rax, 2
jmp 0x140008049
add rax, 2
mov r8, rax
movzx ecx, word [rax]
test cx, cx
jne 0x140008030
mov rdx, rdi
mov rcx, rbp
call fcn.140092eb0
mov rbx, rax
test rax, rax
jne 0x14000809e
mov eax, 8
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbx
call fcn.140062970
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140094850
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rsi + 0x2020]
mov rcx, rax
call fcn.14009b63c
test eax, eax
jne 0x140008179
mov rcx, rbx
call fcn.140062970
mov rcx, qword [rsi + 0x2020]
xor r8d, r8d
mov rdx, rcx
movzx eax, word [rcx]
test ax, ax
je 0x14000811b
cmp ax, 0x5c
je 0x1400080e4
cmp ax, 0x2f
je 0x1400080e4
add rcx, 2
jmp 0x1400080eb
add rcx, 2
mov rdx, rcx
movzx eax, word [rcx]
test ax, ax
jne 0x1400080d2
movzx eax, word [rdx]
test ax, ax
je 0x14000811b
nop dword [rax + rax]
cmp ax, 0x2e
mov rcx, rdx
movzx eax, word [rdx + 2]
cmovne rcx, r8
add rdx, 2
mov r8, rcx
test ax, ax
jne 0x140008100
test r8, r8
lea rcx, [rsp + 0x30]
mov r9d, 1
cmovne rdx, r8
lea r8, str.Map_LiveScan_02u_s
mov qword [rsp + 0x20], rdx
lea edx, [r9 + 0x3f]
call fcn.140001040
lea r8, [rsp + 0x30]
mov rcx, rbp
lea rdx, str.Maps
call fcn.140092eb0
mov rbx, rax
test rax, rax
je 0x140008064
mov rdx, qword [rsi + 0x2020]
mov rcx, rax
call fcn.14009b63c
test eax, eax
je 0x1400080b5
xor edx, edx
mov rcx, rbx
call fcn.140093040
test eax, eax
jne 0x140008069
mov rcx, qword [rsi + 0x2020]
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400081b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140008069
mov rax, rbx
jmp 0x14000807b
Function at 0x1400081c0
Capabilities:
Terminate process

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, qword [rcx]
mov rsi, rcx
mov rcx, qword [0x1400e1230]
xor edx, edx
xor r15b, r15b
mov r12d, dword [r13 + 8]
lea r8, [r12 + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x1400083f6
mov rcx, qword [rsi + 0x2038]
mov edx, 0x1f4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400083e4
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], rbp
nop word [rax + rax]
mov rax, qword [0x1400e3070]
test rax, rax
je 0x1400082b1
test byte [rax + 0x70], 1
je 0x1400082b1
mov rcx, qword [rsi + 0x2258]
lea rbp, [rsi + 0x2280]
test dword [rbp], 0x100
jne 0x140008275
mov edx, 3
mov r8d, 0x203
call fcn.140018730
cmp eax, 6
je 0x14000828a
test r15b, r15b
je 0x14000829f
jmp 0x14000828d
mov r9d, dword [rsi + 0x227c]
mov edx, 1
lea r8d, [rdx + 0x75]
call fcn.140018730
mov r15b, 1
mov rcx, qword [rsi + 0x2038]
mov edx, 3
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rax, qword [0x1400e3070]
test rax, rax
je 0x1400082b8
and dword [rax + 0x70], 0xfffffffe
jmp 0x1400082b8
lea rbp, [rsi + 0x2280]
mov rcx, qword [rsi + 0x2040]
mov edx, 0x1f4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400082f3
lea r8, [r12 + 0x10]
mov rdx, r13
mov rcx, r14
call fcn.1400b1500
mov dword [r13 + 0xc], 0
mov rcx, qword [rsi + 0x2040]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [r14 + 0xc]
test eax, eax
je 0x1400083b8
lea rbx, [r14 + 0x10]
mov qword [rsp + 0x50], 0
lea rdi, [rbx + rax]
cmp rbx, rdi
jae 0x1400083b8
nop dword [rax]
mov r8d, 6
lea rdx, str.ERROR:
mov rcx, rbx
call fcn.1400a1550
test eax, eax
je 0x140008392
mov rcx, qword [rsi + 0x2048]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rbx
call fcn.14003fb80
test al, al
je 0x140008370
mov rdx, rbx
mov rcx, rsi
call fcn.140006450
mov rcx, qword [rsp + 0x50]
call fcn.14003fa30
nop dword [rax]
movzx eax, byte [rbx]
test al, al
je 0x140008385
inc rbx
cmp rbx, rdi
jb 0x140008370
jmp 0x1400083b8
test al, al
jne 0x140008320
inc rbx
cmp rbx, rdi
jae 0x1400083b8
movzx eax, byte [rbx]
jmp 0x140008381
lea rcx, [rbx + 6]
call fcn.1400a20d4
or dword [rbp], 0x100
mov dword [rsi + 0x227c], eax
mov rax, qword [0x1400e3070]
test rax, rax
je 0x1400083b8
or dword [rax + 0x70], 1
mov rcx, qword [rsi + 0x2038]
mov edx, 0x1f4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x140008230
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov rcx, qword [0x1400e1230]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x140009650
Capabilities:
Write file on windows

Disassembly:
push rbp
push r12
push r14
push r15
sub rsp, 0x378
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r14, rcx
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
xor r12d, r12d
lea rcx, [rsp + 0x152]
xor edx, edx
mov word [rsp + 0x150], r12w
mov r8d, 0x208
mov r15, rax
call fcn.1400b1140
mov rcx, qword [r15 + 0x2268]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, qword [r15 + 0x2028]
mov rbp, rax
test r9, r9
je 0x140009715
mov r8d, 0x105
lea rdx, [rsp + 0x150]
nop dword [rax + rax]
lea rcx, [r8 + 0x7ffffef9]
test rcx, rcx
je 0x140009706
movzx eax, word [r9]
test ax, ax
je 0x140009706
mov word [rdx], ax
add r9, 2
add rdx, 2
sub r8, 1
jne 0x1400096e0
test r8, r8
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r12w
lea rcx, [rsp + 0xb0]
call fcn.140092c70
lea rax, [rsp + 0x150]
mov qword [rsp + 0x108], 0xef
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0xb0]
lea rax, [0x1400c5d08]
mov qword [rsp + 0xc8], 0xa6
mov rcx, r14
mov qword [rsp + 0x118], rax
call fcn.140092c60
cmp eax, 1
jne 0x1400098b7
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x150]
mov dword [rsp + 0x28], r12d
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov r8d, eax
mov qword [rsp + 0x3b0], rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400097cb
lea r9, [rsp + 0x150]
xor r8d, r8d
mov edx, 0xdb
mov rcx, r14
call fcn.140091750
jmp 0x1400098af
mov qword [rsp + 0x370], rdi
mov edi, r12d
test ebp, ebp
jle 0x14000989e
mov qword [rsp + 0x3a8], rbx
nop word [rax + rax]
mov dword [rsp + 0x50], 4
lea r9, [rsp + 0x50]
mov dword [rsp + 0x54], edi
xor r8d, r8d
mov dword [rsp + 0x58], r12d
mov edx, 0x104b
mov qword [rsp + 0x78], r12
mov rcx, qword [r15 + 0x2268]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x14000987a
add rdx, 0x10
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdx + rbx], r12b
jne 0x140009835
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r12
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x40], ebx
jne 0x140009886
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r12
mov r8d, 2
lea rdx, [0x1400c66cc]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
cmp edi, ebp
jl 0x1400097f0
jmp 0x140009896
xor r8d, r8d
mov edx, 0xb3
mov rcx, r14
call fcn.140091750
mov rbx, qword [rsp + 0x3a8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x370]
mov rsi, qword [rsp + 0x3b0]
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.140094850
add rsp, 0x378
pop r15
pop r14
pop r12
pop rbp
ret
Function at 0x14000ba40
Capabilities:
Get graphical window text

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x450]
sub rsp, 0x550
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov rdi, r8
mov rbx, rcx
test edx, edx
jne 0x14000bab4
cmp r8, 0x458
ja 0x14000bb4d
je 0x14000bb3e
mov rax, r8
sub rax, 1
je 0x14000bb1f
sub rax, 1
je 0x14000bb28
sub rax, 0x3fe
je 0x14000bad0
sub rax, 0x1e
je 0x14000bb3e
cmp rax, 1
je 0x14000bb3e
xor eax, eax
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.140094850
add rsp, 0x550
pop rdi
pop rbx
pop rbp
ret
lea rcx, [rbp - 0x80]
call fcn.140092c70
lea r9, [0x1400e25b0]
xor r8d, r8d
lea rcx, [rbp + 0x20]
call fcn.140018f60
lea rax, [rbp + 0x20]
mov qword [rbp - 0x50], 0x3ff
lea rdx, [rbp - 0x80]
mov qword [rbp - 0x30], rax
mov rcx, rbx
mov qword [rbp - 0x68], 0xa6
mov qword [rbp - 0x28], 0xa5
call fcn.140092c50
mov eax, 1
jmp 0x14000bab6
call fcn.14000b5a0
test eax, eax
je 0x14000bab4
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
jmp 0x14000bab6
call fcn.14000aa90
mov eax, 1
jmp 0x14000bab6
mov rax, rdi
sub rax, 0x9cb2
je 0x14000bbab
sub rax, 1
je 0x14000bbab
sub rax, 1
je 0x14000bb8a
cmp rax, 1
jne 0x14000bab4
lea edx, [rax + 0xf]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov rdx, qword [rax + 0x38]
call fcn.14000b4d0
mov eax, 1
jmp 0x14000bab6
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov rcx, rbx
mov rdx, qword [rax + 0x38]
call fcn.14000b410
mov eax, 1
jmp 0x14000bab6
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x578], rsi
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov rsi, qword [rax + 0x38]
test rsi, rsi
je 0x14000bcc4
mov r9d, 2
mov qword [rsp + 0x588], r14
mov edx, 0x100c
mov rcx, rsi
lea r8, [r9 - 3]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r14, rax
cmp eax, 0xffffffff
je 0x14000bcbc
lea ecx, [rax - 1]
mov dword [rsp + 0x20], SafeArrayGetDim
cmp rdi, 0x9cb2
mov dword [rsp + 0x30], 3
lea ebx, [rax + 1]
mov dword [rsp + 0x40], 0x104
cmovne ebx, r14d
lea rax, [rbp + 0x20]
cmovne r14d, ecx
mov qword [rsp + 0x38], rax
xor edi, edi
mov dword [rsp + 0x24], r14d
lea r9, [rsp + 0x20]
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov edx, 0x104b
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
lea rax, [rbp + 0x230]
mov dword [rbp - 0x80], SafeArrayGetDim
lea r9, [rbp - 0x80]
mov qword [rbp - 0x68], rax
xor r8d, r8d
mov dword [rbp - 0x7c], ebx
mov edx, 0x104b
mov dword [rbp - 0x78], edi
mov rcx, rsi
mov dword [rbp - 0x70], 3
mov dword [rbp - 0x60], 0x104
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [rsp + 0x20]
mov dword [rsp + 0x24], ebx
xor r8d, r8d
mov edx, 0x104c
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [rbp - 0x80]
mov dword [rbp - 0x7c], r14d
xor r8d, r8d
mov edx, 0x104c
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov r14, qword [rsp + 0x588]
mov rsi, qword [rsp + 0x578]
mov eax, 1
jmp 0x14000bab6
Function at 0x14000c060
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, r8
call qword [sym.imp.USER32.dll_GetDlgItem]
test rax, rax
je 0x14000c0ea
mov qword [rsp + 0x268], rdi
lea rdx, [rsp + 0x20]
mov edi, 0x104
mov rcx, rax
mov r8d, edi
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x20]
sub rcx, rbx
nop
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x14000c0d2
movzx eax, word [rcx + rbx]
test ax, ax
je 0x14000c0d2
mov word [rbx], ax
add rbx, 2
sub rdi, 1
jne 0x14000c0b0
test rdi, rdi
lea rax, [rbx - 2]
mov rdi, qword [rsp + 0x268]
cmovne rax, rbx
xor ecx, ecx
mov word [rax], cx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140094850
add rsp, 0x240
pop rbx
ret
Function at 0x14000dea0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rbx, rax
mov rcx, qword [rax + 0x10]
call qword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
lea r9, [rsp + 0x20]
xorps xmm0, xmm0
mov qword [rsp + 0x70], rcx
movups xmmword [rsp + 0x20], xmm0
lea ecx, [rax - 1]
mov dword [rsp + 0x20], SafeArrayGetDim
movups xmmword [rsp + 0x30], xmm0
test eax, eax
mov dword [rsp + 0x2c], 3
movups xmmword [rsp + 0x40], xmm0
cmovle ecx, eax
mov dword [rsp + 0x30], 3
lea rax, str.Mask:.ext
mov dword [rsp + 0x24], ecx
mov qword [rsp + 0x38], rax
xor r8d, r8d
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x48], 0
mov edx, 0x104d
movups xmmword [rsp + 0x60], xmm0
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.USER32.dll_SetFocus]
xor r9d, r9d
mov edx, 0x111
mov r8d, 0x42e
mov rcx, rdi
call qword [sym.imp.USER32.dll_PostMessageW]
mov rbx, qword [rsp + 0x90]
mov eax, 1
add rsp, 0x80
pop rdi
ret