joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100099260
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1000b2738], rdi
je 0x1000992b9
cmp rax, rdi
jne 0x1000992ac
mov esi, 1
jmp 0x1000992b9
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100099293
mov eax, dword [0x1000b2730]
cmp eax, 1
jne 0x1000992ce
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x100099333
mov eax, dword [0x1000b2730]
test eax, eax
jne 0x100099329
mov dword [0x1000b2730], 1
lea r12, [0x100001f30]
lea rdi, [0x100001f18]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x10009931b
test eax, eax
jne 0x10009931b
mov rcx, qword [rdi]
test rcx, rcx
je 0x100099310
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x1000992f9
test eax, eax
je 0x100099333
mov eax, 0xff
jmp 0x10009947d
mov dword [0x1000ae1c4], 1
mov eax, dword [0x1000b2730]
cmp eax, 1
jne 0x10009935b
lea rdx, [0x100001f10]
lea rcx, [0x100001e10]
call sub.msvcrt.dll__initterm
mov dword [0x1000b2730], 2
test esi, esi
jne 0x100099368
xor eax, eax
xchg qword [0x1000b2738], rax
cmp qword [0x1000b2750], 0
je 0x100099391
lea rcx, [0x1000b2750]
call fcn.10009985c
test eax, eax
je 0x100099391
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1000b2750]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x10009941c
cmp byte [rdi], 0
je 0x1000993b2
test esi, esi
jne 0x10009941c
cmp byte [rdi], 0
je 0x1000993c6
cmp byte [rdi], 0x20
ja 0x1000993c6
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x1000993b2
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x100000000]
call fcn.10002d430
mov dword [0x1000ae1c0], eax
cmp dword [0x1000ae1a4], 0
jne 0x100099405
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000ae1c4], 0
jne 0x10009941a
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000ae1c0]
jmp 0x10009947d
cmp byte [rdi], 0x22
jne 0x10009942e
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x100099443
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x1000993a4
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
sub rsp, 0x28
call fcn.100099964
add rsp, 0x28
jmp 0x100099260
Function at 0x1000995a0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1000a5140]
jne 0x1000995bb
rol rcx, 0x10
test cx, 0xffff
jne 0x1000995b7
ret 0
ror rcx, 0x10
jmp 0x100099a20
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1000ae280]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x1000ae378]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x100099aa5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1000ae280]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x100099ac7
mov rax, qword [rsp + 0x88]
mov qword [0x1000ae378], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000ae318], rax
mov rax, qword [0x1000ae378]
mov qword [0x1000ae1f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1000ae300], rax
mov dword [0x1000ae1e0], 0xc0000409
mov dword [0x1000ae1e4], 1
mov rax, qword [0x1000a5140]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1000a5148]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001f80]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x1000998bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100099909
cmp rcx, 0xffffffffffffffff
je 0x100099909
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100099901
cmp dword [rcx + 0x3c], edx
jl 0x100099901
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100099901
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100099909
mov rax, rdx
add rsp, 0x18
ret
Function at 0x100099cb0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1000a5140]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x100099d43
cmp dword [rsp + 0x24], 5
jb 0x100099d5d
jmp 0x100099d59
cmp dword [rsp + 0x30], esi
jne 0x100099d5d
cmp dword [rsp + 0x24], 4
ja 0x100099d59
jne 0x100099d5d
cmp dword [rsp + 0x28], 0
jbe 0x100099d5d
mov byte [rbx + 0x18], sil
lea rax, [0x100001fb0]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.100099b90
movzx ecx, byte [0x1000b18a8]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x1000b18a8], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1000995a0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x10009a018
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x10009a083
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x10009a0a3
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x100002038]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x140003d68
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 0x140003ddf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140003ddf
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140003dcc
cmp rbx, rcx
jae 0x140003ddf
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140003db7
cmp rbx, rcx
jae 0x140003ddf
movzx eax, word [rbx]
neg ax
sbb rax, rax
and rax, rbx
jmp 0x140003de1
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 0x14000ebb8
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rcx, qword [rcx + 0x40]
mov rsi, rdx
xor ebx, ebx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14000ec18
lea ecx, [rbx + 1]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
test rax, rax
je 0x14000ec12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14000ec12
mov rdx, rax
mov rcx, rsi
call fcn.140002704
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, 1
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001512c
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
mov word [rsp + 0x10], r8w
movsxd r9, edx
movzx r8d, r10w
test edx, edx
jle 0x14001516b
lea edx, [r10 + 1]
cmp dx, r8w
mov eax, r10d
cmovne ax, r8w
movzx r8d, ax
mov al, byte [rcx]
add al, 9
xor al, byte [rsp + r8*2 + 0x10]
add r8w, dx
mov byte [rcx], al
add rcx, rdx
sub r9, rdx
jne 0x140015144
ret
Function at 0x140019010
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x141111408]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r10, r8
lea rcx, [rsp + 0x38]
mov rax, rdx
mov qword [rsp + 0x20], rcx
mov rdi, r9
mov rcx, rax
mov r9d, 1
xor r8d, r8d
mov rdx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140019094
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x30], 0x104
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1401c5000
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401bc4c0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x14001b140
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
test rcx, rcx
je 0x14001b152
mov rcx, qword [rcx + 0x40]
mov r8, qword [rdx]
xor r9d, r9d
lea rdx, str.open
mov dword [rsp + 0x28], 5
and qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [rbx]
sub rdx, 0x18
cmp eax, 0x20
jg 0x14001b199
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001b195
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14001b1b4
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001b1af
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x14001ea54
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x78
test rdx, rdx
je 0x14001eabc
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x14001eaa6
cmp qword [rcx + 0x18], 0
jne 0x14001eaa1
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x14001eac2
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_SetMenuItemInfoW]
add rsp, 0x78
ret
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x14001eabc
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp fcn.140054720
call fcn.14001d000
int3
call fcn.14001d000
int3

Function at 0x140021518
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 0x140021576
call fcn.140029a1c
mov r8d, 0xf0
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140021576
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140021581
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rdx, rbx
mov rcx, rsi
call fcn.140056568
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140021720
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 rdi, rcx
mov rbx, r8
lea rcx, [0x1401f0830]
mov esi, edx
call fcn.1401c1d68
mov r8d, eax
lea rdx, [0x1401f0830]
mov rcx, rbx
call fcn.140003c38
xor ebp, ebp
mov edx, esi
cmp qword [rdi + 0xc8], rbp
jne 0x140021802
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rsi, rax
test rax, rax
je 0x14002181a
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdi, eax
test eax, eax
js 0x140021835
mov rcx, qword [rbx]
lea r8d, [rbp + 1]
mov edx, dword [rcx - 0xc]
sub r8d, dword [rcx - 8]
sub edx, edi
or r8d, edx
jge 0x1400217b4
mov edx, edi
mov rcx, rbx
call fcn.140002a78
mov rdx, qword [rbx]
cmp edi, dword [rdx - 0xc]
jg 0x140021835
mov dword [rdx - 0x10], edi
lea r8d, [rdi + 1]
mov rax, qword [rbx]
mov rcx, rsi
mov word [rax + rdi*2], bp
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400217df
mov eax, ebp
jmp 0x1400217ec
movsxd rdx, dword [rcx - 0xc]
call fcn.1401c1e94
test eax, eax
js 0x140021835
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140021835
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x14002181a
mov rcx, rdi
call fcn.140027c00
test rax, rax
je 0x14002181a
mov rdx, rbx
mov rcx, rax
call fcn.140021cb8
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, dword [rax - 0x10]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.14000282c
int3

Function at 0x140021cb8
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 rsi, rcx
xor ebp, ebp
mov rcx, qword [rcx + 0xd0]
mov rbx, rdx
test rcx, rcx
jne 0x140021d67
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdi, eax
test eax, eax
js 0x140021d8c
mov rcx, qword [rbx]
lea r8d, [rbp + 1]
mov edx, dword [rcx - 0xc]
sub r8d, dword [rcx - 8]
sub edx, edi
or r8d, edx
jge 0x140021d18
mov edx, edi
mov rcx, rbx
call fcn.140002a78
mov rdx, qword [rbx]
cmp edi, dword [rdx - 0xc]
jg 0x140021d8c
mov dword [rdx - 0x10], edi
lea r8d, [rdi + 1]
mov rax, qword [rbx]
mov word [rax + rdi*2], bp
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140021d44
mov eax, ebp
jmp 0x140021d51
movsxd rdx, dword [rcx - 0xc]
call fcn.1401c1e94
test eax, eax
js 0x140021d8c
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140021d8c
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x140021d77
mov rax, qword [rcx]
mov rax, qword [rax + 0x118]
call qword [case.0x14007d19e.0]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.14000282c
int3
Function at 0x14002232c
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 0x1400223e5
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x1400223e5
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400223e5
test rdi, rdi
je 0x1400223e5
xor r14d, r14d
xor esi, esi
call fcn.140029a1c
lea r8, str.AFX_DIALOG_LAYOUT
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400223c5
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 0x1400223e5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call fcn.140057150
mov edi, eax
test eax, eax
je 0x1400223e1
mov rcx, rbx
call fcn.140021ff4
mov eax, edi
jmp 0x1400223e7
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 0x140023358
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.140054a60
mov rdi, rax
test rax, rax
je 0x1400233d4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x1400233cf
cmp dword [rbx], 0x40
jb 0x1400233cf
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_SendMessageW]
bt rax, 0xd
jb 0x1400233cf
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x1400233d8
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 0x140027d04
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 0x140027d3e
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140027de2
call fcn.14001e05c
mov rcx, rax
test rax, rax
je 0x140027dfd
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14007d19e.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.0x14007d19e.0]
mov rdx, rsi
or rdi, 0xffffffffffffffff
mov r9, rdi
mov r8, qword [rsp + 0x30]
mov rcx, rbx
call fcn.1401d5918
test eax, eax
je 0x140027da6
cmp eax, 0xc
je 0x140027df7
cmp eax, 0x50
jne 0x140027e08
test rbx, rbx
jne 0x140027daf
mov ebx, ebp
jmp 0x140027dba
mov rcx, rbx
call fcn.1401c1d68
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 0x140027de0
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14007d19e.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.14001d024
nop
mov ecx, 0x80004005
call fcn.14000282c
nop
call fcn.14001d000
int3

Function at 0x14002839c
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 rbx, qword [rcx + 0x100]
xor r14d, r14d
mov rdi, rcx
mov rsi, qword [rcx + 0xf8]
cmp qword [rcx + 0xf0], r14
je 0x140028403
call fcn.140029a1c
mov rdx, qword [rdi + 0xf0]
lea r8d, [r14 + 5]
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140028403
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rsi, rsi
je 0x140028414
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov ecx, 1
test rbx, rbx
je 0x140028459
mov edx, 0xffff
lea rax, [rbx + 0xc]
cmp word [rbx + 2], dx
jne 0x140028438
movzx r8d, word [rbx + 0x12]
movzx edx, word [rbx + 0x14]
jmp 0x140028443
movzx edx, word [rax]
mov rax, rbx
movzx r8d, word [rbx + 0xa]
test dword [rax], 0x1801
jne 0x140028456
test r8w, r8w
jne 0x140028456
test dx, dx
je 0x140028459
mov ecx, r14d
mov rbx, qword [rsp + 0x30]
mov eax, ecx
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140028478
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 qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
cmp rdx, 0x10000
jae 0x1400284b7
cmp dword [rcx + 0xe8], 0
jne 0x1400284b7
movzx eax, di
mov dword [rcx + 0xe8], eax
call fcn.140029a1c
mov r8d, 5
mov rdx, rdi
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400284fb
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400284fb
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.140028830
jmp 0x1400284fd
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 0x140028514
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 rsi, r8
mov rbx, rdx
mov rbp, rcx
call fcn.140029a1c
mov r8d, 5
mov rdx, rbx
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14002857e
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002857e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r9, rdi
mov r8, rsi
mov rdx, rax
mov rcx, rbp
call fcn.140028598
jmp 0x140028580
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 0x14003e70c
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
mov rdi, r8
mov rbx, rcx
call fcn.14003e84c
xor r14d, r14d
mov esi, 1
mov rbp, rax
mov dword [rbx + 0x14], esi
mov rcx, rax
cmp dword [rbx], r14d
je 0x14003e7c1
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rbx, eax
test eax, eax
js 0x14003e7e4
mov rcx, qword [rdi]
mov edx, dword [rcx - 0xc]
sub esi, dword [rcx - 8]
sub edx, ebx
or esi, edx
jge 0x14003e770
mov edx, ebx
mov rcx, rdi
call fcn.140002a78
mov rdx, qword [rdi]
cmp ebx, dword [rdx - 0xc]
jg 0x14003e7e4
mov dword [rdx - 0x10], ebx
lea r8d, [rbx + 1]
mov rax, qword [rdi]
mov rcx, rbp
mov word [rax + rbx*2], r14w
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi]
test rcx, rcx
jne 0x14003e79d
mov eax, r14d
jmp 0x14003e7aa
movsxd rdx, dword [rcx - 0xc]
call fcn.1401c1e94
test eax, eax
js 0x14003e7e4
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x14003e7e4
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], r14w
jmp 0x14003e7c9
mov rdx, qword [rdi]
call fcn.140054720
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
mov ecx, 0x80070057
call fcn.14000282c
int3