joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010b40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1409ecdd4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140010cd0
mov rax, qword [0x1409ecdd8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x140010b8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140010c15
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140010b70
mov rcx, rdi
call fcn.1400116a0
test rax, rax
mov r12, rax
je 0x140010d22
mov rax, qword [0x1409ecdd8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.1400117e0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1409ecdd8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140010d05
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140010c0e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140010c80
add dword [0x1409ecdd4], 1
cmp ebx, 8
jae 0x140010c41
test bl, 4
jne 0x140010ce0
test ebx, ebx
je 0x140010c36
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140010cf4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140010c36
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x140010c5a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1409ecdd8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140010c0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140010ad0
xor esi, esi
jmp 0x140010b97
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140010c36
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140010c36
mov rax, qword [0x1409ecdd8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140010ad0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140010ad0
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x1400112f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1409ece40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409ece20]
test rbx, rbx
je 0x140011344
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14001133b
test rsi, rsi
je 0x14001133b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140011320
lea rcx, [0x1409ece40]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400116a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409e6910]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14001170f
mov rcx, r9
call fcn.140011570
test eax, eax
je 0x14001170f
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 0x14001170d
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 0x140011704
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001170f
add rdx, 0x28
cmp rdx, r9
jne 0x1400116f0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001bac0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1409e2920]
jmp 0x1400124d0

Function at 0x14001bad0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1409e2920]
jmp 0x1400124d0

Function at 0x141a0d058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x141a0d1df
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 0x141a0d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141a0d06f
add dl, dl
jne 0x141a0d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141a0d0f6
xor eax, eax
add dl, dl
jne 0x141a0d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141a0d1ad
add dl, dl
jne 0x141a0d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a0d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a0d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a0d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141a0d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141a0d07e
mov eax, 1
add dl, dl
jne 0x141a0d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a0d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141a0d0fb
sub eax, ebx
mov ebx, 1
jne 0x141a0d14c
mov ecx, 1
add dl, dl
jne 0x141a0d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141a0d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141a0d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141a0d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141a0d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141a0d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141a0d15d
cmp eax, 0x7d00
jae 0x141a0d19b
cmp eax, 0x500
jb 0x141a0d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141a0d07e
cmp eax, 0x7f
ja 0x141a0d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141a0d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141a0d1d2
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 0x141a0d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001196c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400119b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400119b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400119b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400119b6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400119b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400119b8
xor al, al
add rsp, 0x28
ret

Function at 0x1400150d0
Capabilities:
Parse pe header

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

Function at 0x140b2e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140b2e1df
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 0x140b2e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b2e06f
add dl, dl
jne 0x140b2e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b2e0f6
xor eax, eax
add dl, dl
jne 0x140b2e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b2e1ad
add dl, dl
jne 0x140b2e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b2e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b2e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b2e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b2e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b2e07e
mov eax, 1
add dl, dl
jne 0x140b2e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b2e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b2e0fb
sub eax, ebx
mov ebx, 1
jne 0x140b2e14c
mov ecx, 1
add dl, dl
jne 0x140b2e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b2e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b2e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b2e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b2e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b2e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b2e15d
cmp eax, 0x7d00
jae 0x140b2e19b
cmp eax, 0x500
jb 0x140b2e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b2e07e
cmp eax, 0x7f
ja 0x140b2e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b2e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b2e1d2
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 0x140b2e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140029b84
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d124
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d124
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029cd4
cmp rax, 0xffffffffffffffff
je 0x140029cd4
xor edi, edi
test rbp, rbp
jle 0x140029c7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fda4
mov rbx, rax
test rax, rax
jne 0x140029c0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029c75
mov edx, 0x8000
mov ecx, r14d
call fcn.14001aac0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001de00
cmp eax, 0xffffffff
je 0x140029c55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c1c
mov edx, r15d
mov ecx, r14d
call fcn.14001aac0
jmp 0x140029c75
cmp byte [rsi + 0x38], dil
je 0x140029c6c
cmp dword [rsi + 0x34], 5
jne 0x140029c6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029c75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b404
jmp 0x140029ce8
jns 0x140029ce8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d124
cmp rax, 0xffffffffffffffff
jne 0x140029ca0
cmp byte [rsi + 0x30], dil
je 0x140029ce8
mov edi, dword [rsi + 0x2c]
jmp 0x140029ce8
mov ecx, r14d
call fcn.1400195f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029ce8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029ce8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029ce1
mov eax, dword [rsi + 0x2c]
jmp 0x140029ce6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d124
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ade0
Capabilities:
Parse pe header

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

Function at 0x140ebbf84
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140ebbf8e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140ebbfb7
pop rbp
sub rbp, 0x33
sub rbp, 0xebbf84
sub rsp, 0x20
jmp 0x140ebbfd6
mov rax, 0xebbf84
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x18b6420c
xor byte [rax], dl
inc rax
dec rcx
jne 0x140ebbff5
jmp 0x140ebc00c
test ebp, r12d
xchg dword [rbp + 0xc0c0c30], eax
invalid
Function at 0x140810c00
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword gs:[0x60]
movabs r11, 0x810c70
movabs r10, 0x810c74
mov r9, qword [rax + 0x10]
xor eax, eax
movsxd rcx, dword [r9 + 0x3c]
movsxd r11, dword [r9 + r11]
add rcx, r9
mov r10d, dword [r9 + r10]
movzx r8d, word [rcx + 0x14]
add r8, rcx
cmp dword [r8 + 0x20], eax
jbe 0x140810c66
mov edx, eax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r8 + 0x24]
inc eax
add rcx, rdx
inc rdx
xor byte [rcx + r9], r10b
cmp eax, dword [r8 + 0x20]
jb 0x140810c50
lea rax, [r9 + r11]
jmp rax
Function at 0x14000289c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
sub rsp, 0xd70
xor ebp, ebp
mov rdi, rdx
mov r12d, 0x514
cmp dword [0x140026570], ebp
mov ebx, ebp
jle 0x14000290f
mov rsi, rbp
mov rax, qword [0x140026560]
lea rcx, [rsp + 0x550]
mov r8, r12
lea rdx, [rsi + rax]
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0x550]
mov rcx, rdi
call sub.msvcrt.dll__strcmpi
cmp eax, ebp
je 0x140002a70
add ebx, 1
add rsi, r12
cmp ebx, dword [0x140026570]
jl 0x1400028ce
lea rcx, [rsp + 0x30]
mov r8, r12
xor edx, edx
call sub.msvcrt.dll_memset
or dword [rsp + 0x540], 0xffffffff
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.14001eea4
cmp byte [rdi], bpl
je 0x1400029f5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea rdx, [rsp + 0xd90]
mov rcx, rdi
cmp eax, 0xffffffff
mov dword [rsp + 0xd90], ebp
cmove eax, ebp
mov dword [rsp + 0x53c], eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebp
jbe 0x140002982
lea rdx, [rsp + 0x550]
mov r8d, eax
mov rcx, rdi
call fcn.1400195bc
jmp 0x140002984
mov eax, ebp
cmp eax, ebp
je 0x1400029f5
or dword [rsp + 0x538], 1
mov ebx, 0xff
lea rdx, [rsp + 0x968]
lea rcx, [rsp + 0x435]
mov r8d, ebx
call fcn.1400088c8
lea rdx, [rsp + 0x568]
lea rcx, [rsp + 0x135]
mov r8d, ebx
call fcn.1400088c8
lea rdx, [rsp + 0x668]
lea rcx, [rsp + 0x235]
mov r8d, ebx
call fcn.1400088c8
lea rdx, [rsp + 0x768]
lea rcx, [rsp + 0x335]
mov r8d, ebx
call fcn.1400088c8
movsxd rbx, dword [0x140026570]
lea rcx, [rsp + 0x550]
lea rdx, [rsp + 0x30]
mov r8, r12
call sub.msvcrt.dll_memcpy
mov r11d, dword [0x14002656c]
lea r8, [0x140026568]
lea rcx, [0x140026560]
mov r9d, r12d
mov edx, ebx
mov dword [rsp + 0x20], r11d
call fcn.140008918
mov ecx, dword [0x140026570]
lea r11d, [rbx + 1]
mov rdx, rbx
mov r8, r12
cmp ecx, r11d
cmovl ecx, r11d
mov dword [0x140026570], ecx
mov rcx, qword [0x140026560]
imul rdx, rdx, 0x514
add rcx, rdx
lea rdx, [rsp + 0x550]
call sub.msvcrt.dll_memcpy
lea r11, [rsp + 0xd70]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1400046c4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x130
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0xff
mov byte [rsp + 0x30], 0
call sub.msvcrt.dll_memset
and dword [rsp + 0x140], 0
and dword [rsp + 0x20], 0
xor eax, eax
lea rdx, [rsp + 0x30]
mov r8d, 0xff
mov rcx, rbx
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], eax
call qword [sym.imp.USER32.dll_GetWindowTextA]
lea rdx, [rsp + 0x140]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetClientRect]
xor ebx, ebx
cmp dword [rdi + 0x18], ebx
jle 0x140004791
mov rax, qword [rdi]
mov edx, ebx
mov rcx, rdi
call qword [rax + 0xc0]
mov ecx, dword [rsp + 0x140]
cmp dword [rax + 0x2c], ecx
jne 0x140004789
lea rcx, [rax + 0xe4]
cmp byte [rcx], 0
je 0x140004770
cmp byte [rsp + 0x30], 0
je 0x140004789
mov eax, dword [rsp + 0x28]
cmp eax, dword [rsp + 0x20]
jne 0x14000477f
cmp byte [rcx], 0
jne 0x140004789
lea rdx, [rsp + 0x30]
call fcn.14001eea4
add ebx, 1
cmp ebx, dword [rdi + 0x18]
jl 0x140004743
mov rbx, qword [rsp + 0x148]
add rsp, 0x130
pop rdi
ret
Function at 0x140006c14
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 rdi, qword [0x140029dc0]
mov rbp, r8
mov rsi, rdx
test rdi, rdi
jne 0x140006ca0
lea r8, [0x140021078]
lea edx, [rdi + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x140006c6f
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140006c6f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
jmp 0x140006c71
xor edi, edi
test rdi, rdi
mov qword [0x140029dc0], rdi
je 0x140006cbf
jmp 0x140006ca0
lea rdx, [rdi + 1]
mov r8d, 2
mov rcx, rbp
call sub.msvcrt.dll__memicmp
test eax, eax
je 0x140006ca9
movzx eax, bl
add eax, 3
cdqe
add rdi, rax
mov bl, byte [rdi]
sub bl, 0x41
jne 0x140006c7f
jmp 0x140006cbf
movzx ebx, bl
lea rdx, [rdi + 3]
mov rcx, rsi
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov byte [rbx + rsi], 0
cmp byte [rsi], 0
jne 0x140006ccf
mov rdx, rbp
mov rcx, rsi
call fcn.14001eea4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140006cec
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 r12
sub rsp, 0x20
mov rdi, qword [0x140029dc8]
xor esi, esi
mov r12, r8
cmp rdi, rsi
mov rbp, rdx
jne 0x140006d80
lea r8, [0x140021078]
lea edx, [rsi + 0x74]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
cmp rax, rsi
je 0x140006d4e
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, rsi
je 0x140006d4e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
jmp 0x140006d51
mov rdi, rsi
cmp rdi, rsi
mov qword [0x140029dc8], rdi
je 0x140006da4
jmp 0x140006d80
lea rdx, [rdi + 1]
mov r8d, 2
mov rcx, r12
call sub.msvcrt.dll__memicmp
cmp eax, esi
je 0x140006d89
movzx eax, bl
add eax, 3
cdqe
add rdi, rax
mov bl, byte [rdi]
sub bl, 0x41
jne 0x140006d5f
jmp 0x140006da4
movzx ebx, bl
lea rdx, [rdi + 3]
mov rcx, rbp
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov byte [rbx + rbp], sil
mov esi, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
mov eax, esi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r12
ret

Function at 0x14000856c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
call sub.msvcrt.dll_strlen
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8, rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400087c8
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rbx, rcx
xor edi, edi
call qword [sym.imp.USER32.dll_EmptyClipboard]
xor edx, edx
mov rcx, rbx
call fcn.14000853c
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x140008873
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 0x2000
mov ebp, eax
lea edx, [rbp + 1]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp rax, rdi
mov rsi, rax
je 0x140008860
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
lea r9, [rsp + 0x58]
mov r8d, ebp
mov rcx, rbx
mov rdx, rax
mov qword [rsp + 0x20], rdi
mov r12, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x140008860
mov rcx, rsi
mov byte [rbp + r12], dil
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [rdi + 1]
mov rdx, rsi
call qword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x140008868
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000887b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x140008b58
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x140029dd0], 0
mov rbx, rcx
jne 0x140008b82
lea rcx, [0x140029dd0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [0x140029ed8], eax
lea rdx, [0x140029dd0]
mov rcx, rbx
call fcn.14001eea4
mov eax, dword [0x140029ed8]
add rsp, 0x20
pop rbx
ret

Function at 0x140008ec8
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
lea r9, [0x140020db0]
mov r8, rdx
lea rdx, str.open
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], r9
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp rax, 0x20
seta cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x14000944c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, rdx
mov rbx, rcx
xor edx, edx
mov rcx, rax
call fcn.14000853c
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x1400094ee
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [rbx]
test rcx, rcx
mov esi, eax
je 0x140009492
call sub.msvcrt.dll_free
and qword [rbx], 0
mov eax, dword [rbx + 0x14]
and dword [rbx + 0xc], 0
lea r8, [rbx + 8]
and dword [r8], 0
mov r9d, 1
mov edx, esi
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.140008918
mov rdx, qword [rbx]
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rbx]
mov byte [rsi + rcx], 0
mov rcx, rdi
mov dword [rbx + 0xc], esi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400094f0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret