joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180375950
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 8]
mov rdi, r9
mov r9, qword [rcx + 0x40]
mov rbx, rcx
xor ecx, ecx
mov rbp, r8
mov r11, rdx
test r10, r10
je 0x180375a97
cmp r10, 8
jb 0x1803759ff
lea rax, [r11 - 4]
lea rax, [rax + r10*4]
lea rdx, [r10 - 1]
lea rdx, [r9 + rdx*8]
cmp r9, rax
ja 0x18037599e
cmp rdx, r11
jae 0x1803759ff
mov r8, r10
mov qword [rsp + 0x40], rsi
and r8, 0xfffffffffffffff8
lea rax, [r9 + 0x20]
lea rdx, [r11 + 0x10]
nop dword [rax]
nop word [rax + rax]
cvtps2pd xmm0, qword [rdx - 0x10]
add rcx, 8
lea rax, [rax + 0x40]
lea rdx, [rdx + 0x20]
movups xmmword [rax - 0x60], xmm0
cvtps2pd xmm0, qword [rdx - 0x28]
movups xmmword [rax - 0x50], xmm0
cvtps2pd xmm0, qword [rdx - 0x20]
movups xmmword [rax - 0x40], xmm0
cvtps2pd xmm0, qword [rdx - 0x18]
movups xmmword [rax - 0x30], xmm0
cmp rcx, r8
jb 0x1803759c0
mov rsi, qword [rsp + 0x40]
cmp rcx, r10
jae 0x180375a97
mov rax, r10
sub rax, rcx
cmp rax, 4
jb 0x180375a80
mov r8, r10
lea rax, [r9 + 0x10]
sub r8, rcx
lea rdx, [r11 + 8]
sub r8, 4
lea rax, [rax + rcx*8]
shr r8, 2
lea rdx, [rdx + rcx*4]
inc r8
lea rcx, [rcx + r8*4]
movss xmm0, dword [rdx - 8]
lea rax, [rax + 0x20]
lea rdx, [rdx + 0x10]
cvtps2pd xmm0, xmm0
movsd qword [rax - 0x30], xmm0
movss xmm1, dword [rdx - 0x14]
cvtps2pd xmm1, xmm1
movsd qword [rax - 0x28], xmm1
movss xmm0, dword [rdx - 0x10]
cvtps2pd xmm0, xmm0
movsd qword [rax - 0x20], xmm0
movss xmm1, dword [rdx - 0xc]
cvtps2pd xmm1, xmm1
movsd qword [rax - 0x18], xmm1
sub r8, 1
jne 0x180375a30
cmp rcx, r10
jae 0x180375a97
nop word [rax + rax]
movss xmm0, dword [r11 + rcx*4]
cvtps2pd xmm0, xmm0
movsd qword [r9 + rcx*8], xmm0
inc rcx
cmp rcx, r10
jb 0x180375a80
mov rax, qword [rbx + 0x28]
mov r8d, 1
mov edx, dword [rbx + 8]
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x20], rax
call fcn.180375560
mov rcx, qword [rbx + 0x40]
mov rdx, rdi
mov rax, qword [rbx + 8]
lea r8, [rcx + rax*8]
mov rax, rbp
cmp rcx, r8
je 0x180375b12
movsd xmm2, qword [0x1805cab60]
nop dword [rax]
movsd xmm0, qword [rcx]
lea rdx, [rdx + 4]
cvtpd2ps xmm0, xmm0
lea rax, [rax + 4]
movss dword [rax - 4], xmm0
xorps xmm0, xmm0
movsd xmm1, qword [rcx + 8]
add rcx, 0x10
xorps xmm1, xmm2
cvtsd2ss xmm0, xmm1
movss dword [rdx - 4], xmm0
cmp rcx, r8
jne 0x180375ae0
mov rax, qword [rbx + 8]
movss xmm0, dword [rdi]
xorps xmm0, xmmword [0x1805cab70]
mov rbx, qword [rsp + 0x48]
shr rax, 1
movss dword [rbp + rax*4], xmm0
mov rbp, qword [rsp + 0x50]
mov dword [rdi], 0
mov dword [rdi + rax*4], 0
add rsp, 0x30
pop rdi
ret
Function at 0x140001846
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r12, rcx
test edx, edx
je 0x1400019ba
mov r13d, edx
mov edi, 0
lea r14, [0x140001530]
lea rbx, [0x1438ad081]
jmp 0x1400018ac
mov byte [0x1438ad081], 0
mov edx, esi
sar edx, 0x1f
shr edx, 0x1b
lea eax, [rsi + rdx]
and eax, 0x1f
sub eax, edx
cdqe
lea rdx, [0x1438ad060]
xor bpl, byte [rdx + rax]
mov byte [r12 + rdi], bpl
add rdi, 1
cmp r13, rdi
je 0x1400019ba
mov esi, edi
movzx ebp, byte [r12 + rdi]
mov byte [rsp + 0x20], 0x42
mov byte [rsp + 0x21], 0x3b
mov byte [rsp + 0x22], 0x42
mov byte [rsp + 0x23], 0x31
mov byte [rsp + 0x24], 0x46
mov byte [rsp + 0x25], 0x3e
mov byte [rsp + 0x26], 0x33
mov byte [rsp + 0x27], 0x45
mov byte [rsp + 0x28], 0x3e
mov byte [rsp + 0x29], 0x38
mov byte [rsp + 0x2a], 0x45
mov byte [rsp + 0x2b], 0x31
mov byte [rsp + 0x2c], 0x3f
mov byte [rsp + 0x2d], 0x32
mov byte [rsp + 0x2e], 0x3f
mov byte [rsp + 0x2f], 0x35
mov byte [rsp + 0x30], 0x48
mov byte [rsp + 0x31], 0x44
mov byte [rsp + 0x32], 0x35
mov byte [rsp + 0x33], 0x48
mov byte [rsp + 0x34], 0x32
mov byte [rsp + 0x35], 0x3e
mov byte [rsp + 0x36], 0x3d
mov byte [rsp + 0x37], 0x42
mov byte [rsp + 0x38], 0x30
mov byte [rsp + 0x39], 0x30
mov byte [rsp + 0x3a], 0x31
mov byte [rsp + 0x3b], 0x3a
mov byte [rsp + 0x3c], 0x42
mov byte [rsp + 0x3d], 0x34
mov byte [rsp + 0x3e], 0x32
mov byte [rsp + 0x3f], 0x42
mov byte [rsp + 0x40], 0xcf
cmp byte [0x1438ad040], 0
jne 0x140001995
mov byte [0x1438ad081], 1
mov eax, 0
lea rcx, [0x1438ad060]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140001974
mov byte [0x1438ad040], 1
mov rcx, r14
call fcn.1400014f0
cmp byte [0x1438ad081], 0
je 0x14000187e
lea rax, [0x1438ad060]
add byte [rax], 0x31
add rax, 1
cmp rbx, rax
jne 0x1400019a9
jmp 0x140001877
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x1400058f0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140005920
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x14000591f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140005925
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x14000591f
mov eax, 0
jmp 0x14000591f

Function at 0x140005fa0
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.140005f50
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 0x140010180
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1438a8350]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400101ef
mov rcx, r9
call fcn.140010050
test eax, eax
je 0x1400101ef
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400101ed
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400101e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400101ef
add rdx, 0x28
cmp rdx, r9
jne 0x1400101d0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140003920
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov eax, dword [rsp + 0x78]
mov ecx, eax
call fcn.14000b9bc
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov rdi, qword [rsp + 0x20]
xor eax, eax
mov rcx, qword [rsp + 0x30]
rep stosb byte [rdi], al
xor r8d, r8d
mov edx, dword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1401a34d4
mov eax, dword [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov ecx, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
mov r9, qword [rdx + 8]
mov r8d, ecx
mov edx, 1
mov rcx, qword [rsp + 0x20]
call fcn.1401a3c68
mov rcx, qword [rsp + 0x38]
cmp rcx, rax
je 0x1400039b7
xor eax, eax
jmp 0x1400039ce
mov eax, dword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x20]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov eax, 1
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140008ce0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x80], 0xfffffffffffffffe
lea r8, [0x14022cc70]
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [0x1402791d8], rax
cmp qword [0x1402791d8], 0
je 0x140008e61
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [0x1402791d8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140008e52
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x50]
add rax, 4
mov r8d, dword [rsp + 0x48]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140009420
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x68]
call fcn.140003520
mov rdx, rax
xor ecx, ecx
call fcn.140009bd0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140008e48
mov rcx, qword [rsp + 0x60]
call fcn.140009b90
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140008e48
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x140008df6
mov edx, 9
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_ShowWindow]
mov dword [rsp + 0x30], 0x43
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetActiveWindow]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_FlashWindow]
nop
lea rcx, [rsp + 0x68]
call fcn.140002e20
mov eax, 1
jmp 0x140008f40
lea rax, str.Data_Recovery_Wizard_PDFViewer
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
xor r9d, r9d
mov r8d, 4
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [0x1402791d8], rax
cmp qword [0x1402791d8], 0
je 0x140008f3e
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov rcx, qword [0x1402791d8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140008f3e
mov rcx, qword [rsp + 0xa8]
call fcn.140009310
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x70]
mov dword [rax], ecx
mov rcx, qword [rsp + 0xa8]
call fcn.140009310
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0xa8]
call fcn.1400047c0
mov rcx, qword [rsp + 0x58]
add rcx, 4
mov rdx, qword [rsp + 0x78]
mov r9, rdx
mov r8, rax
mov edx, 0x1fe
call fcn.1401a3f38
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x58], 0
xor eax, eax
add rsp, 0x98
ret
Function at 0x1400091f0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x90]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14000923b
cmp dword [rsp + 0x20], 4
jge 0x140009242
xor al, al
jmp 0x140009303
mov eax, 8
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + rax]
call fcn.1401a513c
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
mov rax, qword [rsp + 0x60]
cmp dword [rax], 0
jne 0x140009271
xor al, al
jmp 0x140009303
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + rax]
call fcn.1401a513c
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx + rax]
mov rcx, qword [rsp + 0x50]
call fcn.140009330
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx + rax]
mov rcx, qword [rsp + 0x58]
call fcn.140009330
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [rsp + 0x20], 5
jne 0x140009301
mov eax, 8
imul rax, rax, 4
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + rax]
call fcn.1401a513c
mov rcx, qword [rsp + 0x68]
mov dword [rcx], eax
mov al, 1
add rsp, 0x38
ret
Function at 0x14000b520
Capabilities:
Read file via mapping

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.140003d50
mov rax, qword [rsp + 0x40]
lea rcx, vtable.CSharedMemStream.0
mov qword [rax], rcx
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x50]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x20], 0
mov rcx, qword [rsp + 0x48]
call fcn.1400047c0
mov r8, rax
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x14000b5da
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x14000fab4
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x160
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1402688f8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
call fcn.14001ddf8
nop
lea rax, vtable.CWinApp.0
mov qword [rbx], rax
xor esi, esi
test rdi, rdi
je 0x14000fb0e
mov rcx, rdi
call fcn.1401a577c
jmp 0x14000fb11
mov rax, rsi
mov qword [rbx + 0xa0], rax
call fcn.1400202e4
mov rdi, rax
test rax, rax
je 0x14000fc92
lea rcx, [rax + 0xc0]
lea rdx, [0x1400103e8]
call fcn.1400230d4
mov ecx, esi
test rax, rax
setne cl
test rax, rax
je 0x14000fc92
test ecx, ecx
je 0x14000fc92
mov qword [rax + 8], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbx + 0x60], eax
mov qword [rdi + 8], rbx
mov qword [rbx + 0x88], rsi
mov qword [rbx + 0x100], rsi
mov qword [rbx + 0xd0], rsi
mov qword [rbx + 0xd8], rsi
mov qword [rbx + 0xb0], rsi
mov qword [rbx + 0xc8], rsi
mov qword [rbx + 0xa8], rsi
mov qword [rbx + 0x118], rsi
mov qword [rbx + 0xb8], rsi
mov qword [rbx + 0x130], rsi
mov qword [rbx + 0x90], rsi
mov qword [rbx + 0x128], rsi
mov qword [rbx + 0x120], rsi
mov dword [rbx + 0x108], esi
mov qword [rbx + 0x110], rsi
mov qword [rbx + 0xe8], rsi
mov qword [rbx + 0xf0], rsi
mov qword [rbx + 0x140], rsi
mov dword [rbx + 0xc0], esi
mov dword [rbx + 0xe0], esi
mov qword [rbx + 0x138], 0x200
mov dword [rbx + 0x14c], esi
mov dword [rbx + 0x150], 0x493e0
mov edi, 1
mov dword [rbx + 0x154], edi
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x34], 6
jne 0x14000fc44
cmp dword [rsp + 0x38], edi
jae 0x14000fc48
cmp dword [rsp + 0x34], 6
mov eax, esi
jbe 0x14000fc4a
mov eax, edi
mov dword [rbx + 0x158], eax
mov dword [rbx + 0x15c], esi
mov qword [rbx + 0x168], rsi
mov qword [rbx + 0x170], rsi
mov dword [rbx + 0x160], edi
mov rax, rbx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14019cf10
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14000ec78
nop
Function at 0x140015f64
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
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x140015fcc
call fcn.1400202e4
mov r8d, 0xf0
mov rdx, rsi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140015fcc
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140015fee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, r14
call fcn.140064968
mov esi, eax
test rdi, rdi
je 0x140015fec
test rbx, rbx
je 0x140015fec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
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 0x140016194
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, [0x1401ca9ec]
mov esi, edx
call fcn.1401a51b8
mov r8d, eax
lea rdx, [0x1401ca9ec]
mov rcx, rbx
call fcn.14000e558
xor ebp, ebp
mov edx, esi
cmp qword [rdi + 0xc8], rbp
jne 0x14001627b
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rsi, rax
test rax, rax
je 0x140016293
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdi, eax
test eax, eax
js 0x1400162ae
mov r9, qword [rbx]
lea edx, [rbp + 1]
mov ecx, dword [r9 - 0xc]
sub edx, dword [r9 - 8]
sub ecx, edi
or edx, ecx
jge 0x14001622a
mov edx, edi
mov rcx, rbx
call fcn.140003170
mov r9, qword [rbx]
cmp edi, dword [r9 - 0xc]
jg 0x1400162ae
mov dword [r9 - 0x10], edi
lea r8d, [rdi + 1]
mov rax, qword [rbx]
mov rdx, r9
mov rcx, rsi
mov word [rax + rdi*2], bp
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140016257
mov eax, ebp
jmp 0x140016264
movsxd rdx, dword [rcx - 0xc]
call fcn.1401a52e4
test eax, eax
js 0x1400162ae
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1400162ae
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x140016293
mov rcx, rdi
call fcn.140020564
test rax, rax
je 0x140016293
mov rdx, rbx
mov rcx, rax
call fcn.140016738
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.140003370
int3
Function at 0x140016738
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 0x1400167ec
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdi, eax
test eax, eax
js 0x140016811
mov r9, qword [rbx]
lea edx, [rbp + 1]
mov ecx, dword [r9 - 0xc]
sub edx, dword [r9 - 8]
sub ecx, edi
or edx, ecx
jge 0x14001679a
mov edx, edi
mov rcx, rbx
call fcn.140003170
mov r9, qword [rbx]
cmp edi, dword [r9 - 0xc]
jg 0x140016811
mov dword [r9 - 0x10], edi
lea r8d, [rdi + 1]
mov rax, qword [rbx]
mov rdx, r9
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 0x1400167c8
mov eax, ebp
jmp 0x1400167d5
movsxd rdx, dword [rcx - 0xc]
call fcn.1401a52e4
test eax, eax
js 0x140016811
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140016811
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x1400167fc
mov rax, qword [rcx]
mov rax, qword [rax + 0x118]
call qword [case.0x140048382.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.140003370
int3

Function at 0x140016dc0
Capabilities:
Extract resource via kernel32 functions

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, rdx
mov rbx, rcx
test rcx, rcx
je 0x140016e98
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x140016e98
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140016e98
test rsi, rsi
je 0x140016e98
xor r15d, r15d
xor ebp, ebp
xor edi, edi
call fcn.1400202e4
lea r8, str.AFX_DIALOG_LAYOUT
mov rdx, rsi
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x140016e65
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rsi
mov rcx, r14
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140016e98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
mov r8d, r15d
mov rdx, rbp
mov rcx, rbx
call fcn.1400655d8
mov esi, eax
test rbp, rbp
je 0x140016e88
test rdi, rdi
je 0x140016e88
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
je 0x140016e94
mov rcx, rbx
call fcn.140016a80
mov eax, esi
jmp 0x140016e9a
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140017e20
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.140021c10
mov rdi, rax
test rax, rax
je 0x140017e9c
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x140017e97
cmp dword [rbx], 0x40
jb 0x140017e97
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 0x140017e97
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x140017ea0
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 0x14001c508
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, qword [rcx + 0x100]
xor r14d, r14d
mov rsi, rcx
mov rbp, qword [rcx + 0xf8]
cmp qword [rcx + 0xf0], r14
je 0x14001c56a
call fcn.1400202e4
mov rdx, qword [rsi + 0xf0]
lea r8d, [r14 + 5]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rbp, rbp
je 0x14001c57b
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov ebx, 1
test rdi, rdi
je 0x14001c5bf
mov eax, dword [rdi]
mov edx, 0xffff
mov ecx, eax
shr ecx, 0x10
cmp cx, dx
jne 0x14001c5a3
mov eax, dword [rdi + 0xc]
movzx edx, word [rdi + 0x12]
movzx ecx, word [rdi + 0x14]
jmp 0x14001c5ab
movzx edx, word [rdi + 0xa]
movzx ecx, word [rdi + 0xc]
test eax, 0x1801
jne 0x14001c5bc
test dx, dx
jne 0x14001c5bc
test cx, cx
je 0x14001c5bf
mov ebx, r14d
cmp qword [rsi + 0xf0], r14
je 0x14001c5d1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
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 0x14001c5f0
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 rsi, rcx
cmp rdx, 0x10000
jae 0x14001c62f
cmp dword [rcx + 0xe8], 0
jne 0x14001c62f
movzx eax, di
mov dword [rcx + 0xe8], eax
call fcn.1400202e4
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.14001c9b4
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret