joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001d560
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18001daf0
mov qword [rsp + 0x28], 0
cmp qword [0x180051038], 0
jne 0x18001d5a8
cmp qword [0x180051030], 0
je 0x18001d5a8
mov rax, qword [0x180051030]
mov qword [0x180051038], rax
cmp qword [0x180051038], 0
je 0x18001d64e
mov rax, qword [0x180051038]
cmp qword [rax + 0x10], 0
je 0x18001d64e
mov rax, qword [0x180051038]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18001d64e
mov rax, qword [0x180051038]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18001d64e
mov rax, qword [0x180051038]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18001d614
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18001d61b
xor eax, eax
jmp 0x18001d7c9
mov rax, qword [0x180051038]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x18001d7c9
mov rax, qword [0x180051030]
mov qword [0x180051038], rax
jmp 0x18001d670
mov rax, qword [0x180051038]
mov rax, qword [rax + 8]
mov qword [0x180051038], rax
cmp qword [0x180051038], 0
je 0x18001d6bd
cmp qword [0x180051038], 0
je 0x18001d6bb
mov rax, qword [0x180051038]
cmp qword [rax + 0x10], 0
je 0x18001d6bb
mov rax, qword [0x180051038]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18001d6bb
mov rax, qword [0x180051038]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18001d6bb
jmp 0x18001d5ec
jmp 0x18001d65e
mov rcx, qword [rsp + 0x60]
call fcn.18001f740
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18001d7d0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18001d7c7
mov rax, qword [rsp + 0x48]
mov qword [0x180051038], rax
mov rax, qword [0x180051038]
mov dword [rax], 0x52727464
mov rax, qword [0x180051038]
mov qword [rax + 0x10], 0
mov rax, qword [0x180051038]
mov rcx, qword [0x180051030]
mov qword [rax + 8], rcx
mov rax, qword [0x180051038]
mov qword [0x180051030], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180051038]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18001d778
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18001d7b2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18001d76e
mov rax, qword [0x180051038]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18001d5ec
xor eax, eax
add rsp, 0x58
ret
Function at 0x18001e4e0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18001e527
xor al, al
jmp 0x18001e5c9
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x18001e551
xor al, al
jmp 0x18001e5c9
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x18001e5c1
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x18001e5c1
mov al, 1
jmp 0x18001e5c9
jmp 0x18001e5c7
xor al, al
add rsp, 0x78
ret

Function at 0x18001e8d0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180051030]
mov qword [rsp + 0x28], rax
jmp 0x18001e8f0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18001e91f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18001e91d
call sub.KERNEL32.dll_GetLastError
jmp 0x18001e921
jmp 0x18001e8e2
xor eax, eax
add rsp, 0x38
ret
Function at 0x18001efe0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180051048], eax
je 0x18001effb
mov eax, 0x10dd
jmp 0x18001f120
mov rax, qword [0x180051060]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18001f0a5
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x18001f070
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x18001f070
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.18001dc30
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.180020e10
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x18001f007
mov qword [0x180051060], 0
call fcn.18001e690
mov rax, qword [0x180051058]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18001f109
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.180020e10
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x18001f0c1
mov qword [0x180051058], 0
mov dword [0x180051048], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x18001f650
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18005104c], 0
je 0x18001f66d
mov eax, dword [0x18005104c]
jmp 0x18001f733
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x18001f680
xor eax, eax
jmp 0x18001f733
mov ecx, 0x10
call fcn.180020e18
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18001f6ee
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x18001f6d3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.180020e10
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18005104c], eax
mov qword [0x180051050], 0
mov eax, dword [rsp + 0x20]
jmp 0x18001f733
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x18001f708
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x18001f6a9
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x180051058]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x180051058], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x180020b74
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180020bf8
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800246f0]
cmp byte [rcx + rax], 0
je 0x180020bf8
dec r8
sub rdx, 1
jne 0x180020bde
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x180db8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.180db81df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180db8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180db806f
add dl, dl
jne 0x180db8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180db80f6
xor eax, eax
add dl, dl
jne 0x180db80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180db81ad
add dl, dl
jne 0x180db80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180db80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180db80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180db80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180db80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180db807e
mov eax, 1
add dl, dl
jne 0x180db8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180db8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180db80fb
sub eax, ebx
mov ebx, 1
jne 0x180db814c
mov ecx, 1
add dl, dl
jne 0x180db812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180db813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180db8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180db807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180db8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180db8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180db815d
cmp eax, 0x7d00
jae 0x180db819b
cmp eax, 0x500
jb 0x180db8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180db807e
cmp eax, 0x7f
ja 0x180db819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180db807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180db81d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x180db807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1408e9058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408e91df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1408e9089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408e906f
add dl, dl
jne 0x1408e9096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408e90f6
xor eax, eax
add dl, dl
jne 0x1408e90a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408e91ad
add dl, dl
jne 0x1408e90b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408e90c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408e90d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408e90dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408e90ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408e907e
mov eax, 1
add dl, dl
jne 0x1408e9106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408e9113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408e90fb
sub eax, ebx
mov ebx, 1
jne 0x1408e914c
mov ecx, 1
add dl, dl
jne 0x1408e912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408e913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408e9123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408e907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408e9168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408e9175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408e915d
cmp eax, 0x7d00
jae 0x1408e919b
cmp eax, 0x500
jb 0x1408e9196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408e907e
cmp eax, 0x7f
ja 0x1408e919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408e907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408e91d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1408e907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002abc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialogEx.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
cmp rdx, 0x10000
jae 0x140018033
cmp dword [rcx + 0xe8], 0
jne 0x140018033
movzx eax, dx
mov dword [rcx + 0xe8], eax
call fcn.14001ea5c
mov r8d, 5
mov rdx, rdi
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x140018077
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140018077
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.1400183a8
jmp 0x140018079
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140002f9c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140003013
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140003013
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140003000
cmp rbx, rcx
jae 0x140003013
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140002feb
cmp rbx, rcx
jae 0x140003013
movzx eax, word [rbx]
neg ax
sbb rax, rax
and rax, rbx
jmp 0x140003015
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000af5c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x14000afba
call fcn.14001ea5c
mov r8d, 0xf0
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x14000afba
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000afc5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rdx, rbx
mov rcx, rsi
call fcn.140019784
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b164
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, r8
lea rcx, [0x14023d750]
mov esi, edx
call fcn.1401b5650
mov r8d, eax
lea rdx, [0x14023d750]
mov rcx, rbx
call fcn.14000372c
cmp qword [rdi + 0xc8], 0
mov edx, esi
jne 0x14000b242
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rsi, rax
test rax, rax
je 0x14000b25a
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
movsxd rdi, eax
test eax, eax
js 0x14000b270
mov rcx, qword [rbx]
mov r8d, 1
mov edx, dword [rcx - 0xc]
sub r8d, dword [rcx - 8]
sub edx, edi
or r8d, edx
jge 0x14000b1f4
mov edx, edi
mov rcx, rbx
call fcn.1400036c8
mov rdx, qword [rbx]
cmp edi, dword [rdx - 0xc]
jg 0x14000b270
mov dword [rdx - 0x10], edi
lea r8d, [rdi + 1]
mov rax, qword [rbx]
mov rcx, rsi
mov byte [rdi + rax], 0
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14000b21f
xor eax, eax
jmp 0x14000b22c
movsxd rdx, dword [rcx - 0xc]
call fcn.1401abf70
test eax, eax
js 0x14000b270
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14000b270
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov byte [rcx + rax], 0
jmp 0x14000b25a
mov rcx, rdi
call fcn.140011764
test rax, rax
je 0x14000b25a
mov rdx, rbx
mov rcx, rax
call fcn.14000b71c
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, dword [rax - 0x10]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.140003930
int3
Function at 0x14000b71c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rbx, rdx
mov rcx, qword [rcx + 0xd0]
test rcx, rcx
jne 0x14000b7c6
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
movsxd rdi, eax
test eax, eax
js 0x14000b7e6
mov rcx, qword [rbx]
mov r8d, 1
mov edx, dword [rcx - 0xc]
sub r8d, dword [rcx - 8]
sub edx, edi
or r8d, edx
jge 0x14000b777
mov edx, edi
mov rcx, rbx
call fcn.1400036c8
mov rdx, qword [rbx]
cmp edi, dword [rdx - 0xc]
jg 0x14000b7e6
mov dword [rdx - 0x10], edi
lea r8d, [rdi + 1]
mov rax, qword [rbx]
mov byte [rdi + rax], 0
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14000b7a3
xor eax, eax
jmp 0x14000b7b0
movsxd rdx, dword [rcx - 0xc]
call fcn.1401abf70
test eax, eax
js 0x14000b7e6
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14000b7e6
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov byte [rcx + rax], 0
jmp 0x14000b7d6
mov rax, qword [rcx]
mov rax, qword [rax + 0x118]
call qword [case.0x14001eebe.0]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.140003930
int3

Function at 0x14000bd88
Capabilities:
Extract resource via kernel32 functions

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
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14000be41
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x14000be41
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14000be41
test rdi, rdi
je 0x14000be41
xor r14d, r14d
xor esi, esi
call fcn.14001ea5c
lea r8, str.AFX_DIALOG_LAYOUT
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x14000be21
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rdi
mov rcx, rbp
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000be41
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call fcn.140076574
mov edi, eax
test eax, eax
je 0x14000be3d
mov rcx, rbx
call fcn.14000ba50
mov eax, edi
jmp 0x14000be43
xor eax, eax
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 0x14000cdc0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rbx, r8
mov rcx, qword [rcx + 0x40]
call fcn.140077f10
mov rdi, rax
test rax, rax
je 0x14000ce3c
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x14000ce37
cmp dword [rbx], 0x40
jb 0x14000ce37
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
or dword [rbx + 4], 1
xor r8d, r8d
or qword [rbx + 0x30], 0xffffffffffffffff
mov edx, 0x87
mov qword [rbx + 8], rcx
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xd
jb 0x14000ce37
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x14000ce40
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140011868
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
movsxd rsi, r8d
mov rbx, rdx
mov rdi, rcx
xor ebp, ebp
cmp qword [rcx + 0xd0], rbp
jne 0x1400118a2
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x140011946
call fcn.140007bec
mov rcx, rax
test rax, rax
je 0x140011961
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14001eebe.0]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rcx, qword [rdi + 0xd0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov rax, qword [rax + 0x118]
call qword [case.0x14001eebe.0]
mov rdx, rsi
or rdi, 0xffffffffffffffff
mov r9, rdi
mov r8, qword [rsp + 0x30]
mov rcx, rbx
call fcn.1401b56f8
test eax, eax
je 0x14001190a
cmp eax, 0xc
je 0x14001195b
cmp eax, 0x50
jne 0x14001196c
test rbx, rbx
jne 0x140011913
mov ebx, ebp
jmp 0x14001191e
mov rcx, rbx
call fcn.1401b5650
mov rbx, rax
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x140011944
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001eebe.0]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
call fcn.140007508
nop
mov ecx, 0x80004005
call fcn.140003930
nop
call fcn.1400074e4
int3

Function at 0x1400123fc
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x78
test rdx, rdx
je 0x140012464
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x14001244e
cmp qword [rcx + 0x18], 0
jne 0x140012449
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x14001246a
mov qword [rsp + 0x58], rdx
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x50
mov edx, eax
mov dword [rsp + 0x24], 0x40
mov r8d, 1
mov rcx, qword [r10 + 8]
call qword [sym.imp.USER32.dll_SetMenuItemInfoA]
add rsp, 0x78
ret
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x140012464
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp fcn.140077bb4
call fcn.1400074e4
int3
call fcn.1400074e4
int3