joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025a40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x130
mov rbp, r8
mov ecx, edx
xor edi, edi
xor r8d, r8d
xor edx, edx
mov r13, r9
xor esi, esi
xor r12d, r12d
xor r15b, r15b
lea r14d, [rdi + 1]
call sub.msvcrt.dll__lseek
cmp eax, 0xffffffff
jne 0x140025a8a
jmp 0x140025be3
mov qword [rsp + 0x188], rbx
xor ebx, ebx
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x178]
lea rdx, [rsp + 0x30]
movsxd rax, esi
mov r8d, 0x100
sub r8d, esi
add rdx, rax
call sub.msvcrt.dll__read
test eax, eax
jg 0x140025ad1
mov r15b, 1
cmp edi, esi
je 0x140025bd7
jmp 0x140025ad3
add esi, eax
movsxd rcx, esi
lea rax, [rsp + 0x30]
nop dword [rax + rax]
cmp rbx, rcx
jge 0x140025b5c
inc rbx
inc edi
cmp byte [rax + rbx - 1], 0xa
jne 0x140025ae0
cmp byte [rsp + 0x30], 0x23
movsxd rbx, edi
jne 0x140025aff
xor ebp, ebp
jmp 0x140025b23
mov rcx, qword [rsp + 0x170]
lea rax, [rbx - 1]
or r14d, 2
mov qword [rsp + 0x20], rax
mov r8d, r14d
lea r9, [rsp + 0x30]
mov rdx, r13
call rbp
mov ebp, eax
sub esi, edi
lea rdx, [rsp + 0x30]
movsxd r8, esi
lea rcx, [rsp + 0x30]
add rdx, rbx
mov r14d, 1
xor r12d, r12d
call sub.msvcrt.dll_memmove
xor edi, edi
xor ebx, ebx
test ebp, ebp
jne 0x140025bd9
mov rbp, qword [rsp + 0x180]
jmp 0x140025aa0
test edi, edi
je 0x140025bc6
test r12d, r12d
jne 0x140025bbd
cmp r14d, 1
jne 0x140025b76
test esi, esi
je 0x140025b87
cmp byte [rsp + 0x30], 0x23
je 0x140025bbd
cmp esi, edi
jne 0x140025b87
test r15b, r15b
je 0x140025b87
mov r8d, 2
jmp 0x140025b8a
xor r8d, r8d
mov rcx, qword [rsp + 0x170]
lea r9, [rsp + 0x30]
movsxd rax, edi
or r8d, r14d
mov rdx, r13
mov qword [rsp + 0x20], rax
call rbp
xor edi, edi
xor ebx, ebx
xor esi, esi
mov ebp, eax
test eax, eax
jne 0x140025bd9
mov rbp, qword [rsp + 0x180]
jmp 0x140025bc3
mov r12d, 1
xor r14d, r14d
test r15b, r15b
je 0x140025aa0
cmp esi, edi
jne 0x140025aa0
xor ebp, ebp
mov rbx, qword [rsp + 0x188]
mov eax, ebp
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002cab0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r15
sub rsp, 0x30
mov r9, qword [rcx + 0x10]
xor r10d, r10d
mov rax, qword [rdx]
mov rdi, r8
mov r15, rdx
mov rbx, rcx
mov ebp, r10d
mov r8, qword [r9 + 0x18]
test r8, r8
jne 0x14002caeb
mov rcx, qword [rcx]
mov r8d, dword [rcx + 0x7ec]
mov rsi, qword [rbx + 0xd0]
mov ecx, r8d
mov rdx, qword [rsi + 0x130]
cmp rcx, rdx
cmovbe edx, r8d
mov ecx, edx
cmp rcx, rdi
cmovbe edi, edx
test edi, edi
jne 0x14002cb16
xor eax, eax
jmp 0x14002ccd9
test byte [rsi + 0x124], 4
mov qword [rsp + 0x58], r14
mov r14, rax
jne 0x14002cbdd
movzx edx, byte [rsi + 0x141]
mov ecx, edx
and ecx, 3
movzx r8d, byte [rcx + rsi + 0x128]
lea rcx, [rdx + 1]
and ecx, 3
mov byte [rsp + 0x50], r8b
movzx r9d, byte [rcx + rsi + 0x128]
lea rcx, [rdx - 2]
and ecx, 3
mov byte [rsp + 0x51], r9b
movzx r11d, byte [rcx + rsi + 0x128]
lea rcx, [rdx - 1]
and ecx, 3
mov byte [rsp + 0x52], r11b
movzx edx, byte [rcx + rsi + 0x128]
mov ecx, edi
shr ecx, 2
mov byte [rsp + 0x53], dl
test ecx, ecx
je 0x14002cba7
nop dword [rax + rax]
xor byte [rax], r8b
xor byte [rax + 1], r9b
xor byte [rax + 2], r11b
xor byte [rax + 3], dl
add rax, 4
sub ecx, 1
jne 0x14002cb90
mov edx, edi
and edx, 3
je 0x14002cbc4
mov ebp, edx
movzx ecx, byte [rsp + r10 + 0x50]
inc r10
xor byte [rax], cl
lea rax, [rax + 1]
cmp r10, rdx
jl 0x14002cbb0
mov rcx, qword [rbx + 0xd0]
movzx eax, dil
add al, byte [rcx + 0x141]
and al, 3
mov byte [rcx + 0x141], al
mov esi, edi
add qword [r15], rsi
mov rax, qword [rbx + 0xd0]
sub qword [rax + 0x130], rsi
mov rcx, qword [rbx + 0xd0]
mov eax, dword [rcx + 0x124]
bt eax, 0xa
jae 0x14002cc88
bt eax, 0xb
jb 0x14002cc88
add rcx, 0x146
mov r8d, esi
mov rdx, r14
call fcn.140014b80
test eax, eax
je 0x14002cc32
lea r8, str.bad_utf8
mov r9d, 8
jmp 0x14002cc64
mov rax, qword [rbx + 0xd0]
cmp qword [rax + 0x130], 0
jne 0x14002cc88
test byte [rax + 0x124], 1
je 0x14002cc88
cmp byte [rax + 0x146], 0
je 0x14002cc88
test ebp, ebp
jne 0x14002cc88
lea r8, str.partial_utf8
lea r9d, [rbp + 0xc]
mov edx, 0x3ef
mov rcx, rbx
call fcn.14001f1e0
movsxd r8, edi
mov rdx, r14
mov ecx, 8
call fcn.1400112d0
mov eax, 0xffffffff
jmp 0x14002ccd4
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14002ccc1
cmp dword [rbx + 0x404], 0
jne 0x14002ccc1
mov r9, qword [rbx + 0x3d8]
mov r8d, 6
mov qword [rsp + 0x28], rsi
mov rdx, rbx
mov qword [rsp + 0x20], r14
call fcn.14000ed10
test eax, eax
jne 0x14002cc81
mov rax, qword [rbx + 0xd0]
and dword [rax + 0x124], 0xffffbfff
mov eax, edi
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x14002ccf0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov r15d, dword [rsp + 0x38]
xor ebp, ebp
mov r11, rdx
mov r14, rcx
test r8d, r8d
je 0x14002cdf0
lea esi, [rbp + 4]
xor r10d, r10d
test r8d, r8d
je 0x14002cd5c
movzx edi, byte [r11]
mov r10d, 1
inc r11
sub r8d, r10d
je 0x14002cd5f
movzx ecx, byte [r11]
inc r10d
inc r11
mov rdx, r11
sub r8d, 1
je 0x14002cd61
movzx edx, byte [rdx]
inc r11
inc r10d
dec r8d
jmp 0x14002cd63
xor dil, dil
xor cl, cl
xor dl, dl
cmp esi, r15d
jge 0x14002cdf8
movzx ebx, cl
movzx ecx, dil
and ecx, 3
movzx eax, dil
shr rax, 2
shl ecx, 4
movzx eax, byte [rax + r14]
mov byte [r9], al
mov eax, ebx
shr rax, 4
or rcx, rax
movzx eax, byte [rcx + r14]
mov byte [r9 + 1], al
cmp r10d, 1
jbe 0x14002cdd0
and ebx, 0xf
movzx eax, dl
shr rax, 6
shl ebx, 2
mov ecx, ebx
or rcx, rax
movzx eax, byte [rcx + r14]
mov byte [r9 + 2], al
add r9, 3
cmp r10d, 2
jbe 0x14002cdd9
and edx, 0x3f
movzx eax, byte [rdx + r14]
jmp 0x14002cddb
mov byte [r9 + 2], 0x3d
add r9, 3
mov al, 0x3d
mov byte [r9], al
add ebp, 4
inc r9
add esi, 4
test r8d, r8d
jne 0x14002cd21
lea eax, [rbp + 1]
cmp eax, r15d
jl 0x14002cdff
mov eax, 0xffffffff
jmp 0x14002ce05
mov byte [r9], 0
mov eax, ebp
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
Function at 0x14002d4c0
Capabilities:
Hash data using sha1

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rbp
push r14
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0xa0
xorps xmm0, xmm0
mov dword [rbp - 0x29], 0x67452301
xor eax, eax
mov dword [rbp - 0x25], 0xefcdab89
xor ebx, ebx
mov dword [rbp + 0x3b], eax
mov dword [rbp - 0x21], 0x98badcfe
mov r15, r8
mov dword [rbp - 0x1d], 0x10325476
mov rsi, rdx
mov dword [rbp - 0x19], 0xc3d2e1f0
mov r14, rcx
movups xmmword [rbp - 0x15], xmm0
movups xmmword [rbp - 5], xmm0
movups xmmword [rbp + 0xb], xmm0
movups xmmword [rbp + 0x1b], xmm0
movups xmmword [rbp + 0x2b], xmm0
test rdx, rdx
je 0x14002d596
mov qword [r11 + 8], rdi
nop
movzx ecx, byte [rbp + 0x37]
lea rdx, [rbx + r14]
and ecx, 0x3f
mov edi, 0x40
sub rdi, rcx
mov rax, rsi
sub rax, rbx
cmp rdi, rax
cmovae rdi, rax
lea rax, [rbp - 9]
add rcx, rax
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp - 0x11]
movzx edx, dil
add dl, byte [rbp + 0x37]
and dl, 0x3f
mov byte [rbp + 0x37], dl
lea rcx, [rax + rdi*8]
mov qword [rbp - 0x11], rcx
test dl, 0x3f
jne 0x14002d586
lea rcx, [rbp - 0x29]
call fcn.14002d830
add rbx, rdi
cmp rbx, rsi
jb 0x14002d530
mov rdi, qword [rsp + 0xc0]
lea rcx, [rbp - 0x29]
call fcn.14002d660
movzx eax, byte [rbp - 0x1d]
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov byte [rbp - 0x2a], al
movzx eax, byte [rbp - 0x1c]
mov byte [rbp - 0x2b], al
movzx eax, byte [rbp - 0x1b]
mov byte [rbp - 0x2c], al
movzx eax, byte [rbp - 0x1a]
mov byte [rbp - 0x2d], al
movzx eax, byte [rbp - 0x21]
mov byte [rbp - 0x2e], al
movzx eax, byte [rbp - 0x20]
mov byte [rbp - 0x2f], al
movzx eax, byte [rbp - 0x1f]
mov byte [rbp - 0x30], al
movzx eax, byte [rbp - 0x1e]
mov byte [rbp - 0x31], al
movzx eax, byte [rbp - 0x25]
mov byte [rbp - 0x32], al
movzx eax, byte [rbp - 0x24]
mov byte [rbp - 0x33], al
movzx eax, byte [rbp - 0x23]
mov byte [rbp - 0x34], al
movzx eax, byte [rbp - 0x22]
mov byte [rbp - 0x35], al
movzx eax, byte [rbp - 0x29]
mov byte [rbp - 0x36], al
movzx eax, byte [rbp - 0x28]
mov byte [rbp - 0x37], al
movzx eax, byte [rbp - 0x27]
mov byte [rbp - 0x38], al
movzx eax, byte [rbp - 0x26]
mov byte [rbp - 0x39], al
movzx eax, byte [rbp - 0x16]
movdqa xmm0, xmmword [rbp - 0x39]
mov byte [r15 + 0x10], al
movzx eax, byte [rbp - 0x17]
mov byte [r15 + 0x11], al
movzx eax, byte [rbp - 0x18]
mov byte [r15 + 0x12], al
movzx eax, byte [rbp - 0x19]
mov byte [r15 + 0x13], al
mov rax, r15
movdqu xmmword [r15], xmm0
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400302c8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140030312
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140030312
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140030312
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140030312
cmp dword [rcx + 0x84], 0xe
jbe 0x140030312
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140030314
xor al, al
add rsp, 0x28
ret
Function at 0x140031f7c
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 0x140031ff3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140031ff3
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140031fe0
cmp rbx, rcx
jae 0x140031ff3
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140031fcb
cmp rbx, rcx
jae 0x140031ff3
movzx eax, word [rbx]
neg ax
sbb rax, rax
and rax, rbx
jmp 0x140031ff5
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 0x1400340fc
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140034163
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140034177
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140034177
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call qword [case.0x140058dea.0]
jmp 0x14003417c
cmp dword [rcx + 8], 0
je 0x140034177
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14003417c
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400372f0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140037316
mov r8, rdx
mov rdx, qword [rbx]
call fcn.1400340fc
jmp 0x140037382
cmp byte [0x140261790], 0
jne 0x14003735a
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003734a
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140261788], rax
jmp 0x140037351
mov rax, qword [0x140261788]
mov byte [0x140261790], 1
jmp 0x140037361
mov rax, qword [0x140261788]
mov rdx, rdi
mov rcx, qword [rbx]
test rax, rax
je 0x14003737b
xor r9d, r9d
mov r8d, dword [rbx + 8]
call qword [case.0x140058dea.0]
jmp 0x140037382
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140037c74
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rsp + 0x34]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
cmp eax, 0xffffffff
jne 0x140037c9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140037caa
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.14000e1f0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.140043e88
int3
Function at 0x140037fd0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test r8d, r8d
jne 0x140037fe2
xor eax, eax
jmp 0x140037fff
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140038005
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.14000e1f0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.140043e88
int3

Function at 0x140038158
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x140038196
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdi, rcx
mov ebx, r8d
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140038197
cmp dword [rsp + 0x50], ebx
jne 0x1400381b4
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, [rdi + 0x18]
call fcn.14000e1f0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.140043e88
int3
lea rcx, [rdi + 0x18]
call fcn.14000e1f0
or edx, 0xffffffff
mov r8, rax
lea ecx, [rdx + 0xe]
call fcn.1400439e4
int3
Function at 0x1400388d4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x1402594c0]
xor rax, rsp
mov qword [rsp + 0x220], rax
xor ebp, ebp
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x14003898f
test rdx, rdx
je 0x14003898f
mov rcx, rdx
call sub.msvcrt.dll_wcslen
xor edx, edx
mov word [rsp + 0x20], bp
mov r8d, 0x1fe
lea rcx, [rsp + 0x22]
mov rsi, rax
call sub.msvcrt.dll_memset
mov r8d, 0x100
cmp rsi, r8
ja 0x140038960
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x140038960
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14003896c
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.14002f800
mov rbx, qword [rsp + 0x260]
add rsp, 0x230
pop rdi
pop rsi
pop rbp
ret
call fcn.140030a20
int3

Function at 0x14003953c
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x78
test rdx, rdx
je 0x1400395a4
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x14003958e
cmp qword [rcx + 0x18], 0
jne 0x140039589
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x1400395aa
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 0x1400395a4
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp fcn.1400388d4
call fcn.140030a20
int3
call fcn.140030a20
int3

Function at 0x14003c054
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 0x14003c0b2
call fcn.140032b74
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 0x14003c0b2
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14003c0bd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rdx, rbx
mov rcx, rsi
call fcn.140047a5c
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003c25c
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, [0x14021d5cc]
mov esi, edx
call sub.msvcrt.dll_wcslen
mov r8d, eax
lea rdx, [0x14021d5cc]
mov rcx, rbx
call fcn.14003174c
xor ebp, ebp
mov edx, esi
cmp qword [rdi + 0xc8], rbp
jne 0x14003c33e
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rsi, rax
test rax, rax
je 0x14003c356
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdi, eax
test eax, eax
js 0x14003c371
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 0x14003c2f0
mov edx, edi
mov rcx, rbx
call fcn.140031640
mov rdx, qword [rbx]
cmp edi, dword [rdx - 0xc]
jg 0x14003c371
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 0x14003c31b
mov eax, ebp
jmp 0x14003c328
movsxd rdx, dword [rcx - 0xc]
call fcn.1401ba250
test eax, eax
js 0x14003c371
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14003c371
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x14003c356
mov rcx, rdi
call fcn.140042398
test rax, rax
je 0x14003c356
mov rdx, rbx
mov rcx, rax
call fcn.14003c7f4
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.1400306ec
int3

Function at 0x14003c7f4
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 0x14003c8a3
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdi, eax
test eax, eax
js 0x14003c8c8
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 0x14003c854
mov edx, edi
mov rcx, rbx
call fcn.140031640
mov rdx, qword [rbx]
cmp edi, dword [rdx - 0xc]
jg 0x14003c8c8
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 0x14003c880
mov eax, ebp
jmp 0x14003c88d
movsxd rdx, dword [rcx - 0xc]
call fcn.1401ba250
test eax, eax
js 0x14003c8c8
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14003c8c8
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x14003c8b3
mov rax, qword [rcx]
mov rax, qword [rax + 0x118]
call qword [case.0x140058dea.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.1400306ec
int3
Function at 0x14003ce68
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 0x14003cf21
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x14003cf21
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14003cf21
test rdi, rdi
je 0x14003cf21
xor r14d, r14d
xor esi, esi
call fcn.140032b74
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 0x14003cf01
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 0x14003cf21
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call fcn.1400486a0
mov edi, eax
test eax, eax
je 0x14003cf1d
mov rcx, rbx
call fcn.14003cb30
mov eax, edi
jmp 0x14003cf23
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 0x14003dea0
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.140038c14
mov rdi, rax
test rax, rax
je 0x14003df1c
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x14003df17
cmp dword [rbx], 0x40
jb 0x14003df17
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 0x14003df17
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x14003df20
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 0x14004249c
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 0x1400424d6
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14004257a
call fcn.140033aa4
mov rcx, rax
test rax, rax
je 0x140042595
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140058dea.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.0x140058dea.0]
mov rdx, rsi
or rdi, 0xffffffffffffffff
mov r9, rdi
mov r8, qword [rsp + 0x30]
mov rcx, rbx
call fcn.1401b9ee0
test eax, eax
je 0x14004253e
cmp eax, 0xc
je 0x14004258f
cmp eax, 0x50
jne 0x1400425a0
test rbx, rbx
jne 0x140042547
mov ebx, ebp
jmp 0x140042552
mov rcx, rbx
call sub.msvcrt.dll_wcslen
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 0x140042578
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140058dea.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.140030a44
nop
mov ecx, 0x80004005
call fcn.1400306ec
nop
call fcn.140030a20
int3

Function at 0x140043440
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.140043580
xor r14d, r14d
mov esi, 1
mov rbp, rax
mov dword [rbx + 0x14], esi
mov rcx, rax
cmp dword [rbx], r14d
je 0x1400434f5
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rbx, eax
test eax, eax
js 0x140043518
mov rcx, qword [rdi]
mov edx, dword [rcx - 0xc]
sub esi, dword [rcx - 8]
sub edx, ebx
or esi, edx
jge 0x1400434a4
mov edx, ebx
mov rcx, rdi
call fcn.140031640
mov rdx, qword [rdi]
cmp ebx, dword [rdx - 0xc]
jg 0x140043518
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 0x1400434d1
mov eax, r14d
jmp 0x1400434de
movsxd rdx, dword [rcx - 0xc]
call fcn.1401ba250
test eax, eax
js 0x140043518
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x140043518
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], r14w
jmp 0x1400434fd
mov rdx, qword [rdi]
call fcn.1400388d4
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.1400306ec
int3