joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140066ef8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov r15d, dword [rbp + 0x67]
lea r14, [0x1400b4860]
xor edi, edi
xor r12d, r12d
xor r13d, r13d
lea esi, [rdi + 5]
jmp 0x1400670d1
mov eax, dword [rdx + r13*4 + 0xb48c0]
lea r15d, [rsi + 0x18]
mov r8d, 2
lea ecx, [rax + rax*2]
mov eax, dword [0x1400c6718]
and eax, 0x7fff
add eax, ecx
mov rcx, qword [0x1400c7b80]
cdqe
mov edx, dword [rdx + rax*4 + 0xb4f40]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rbp + 0x67], rax
test rax, rax
je 0x140066ffc
mov rcx, qword [0x1400c7b80]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140066ffc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x140066ffc
mov rdx, qword [rbp + 0x67]
mov rcx, qword [0x1400c7b80]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov ecx, 2
mov edx, eax
mov qword [rbp + 0x67], rax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test rax, rax
je 0x140066ffc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140066ffc
mov r8, qword [rbp + 0x67]
mov rdx, rax
mov rcx, qword [rbp + 0x6f]
call fcn.1400a7e70
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x140067011
mov r9d, 0x1010
xor r8d, r8d
xor edx, edx
mov ecx, 0x50000
call fcn.14000e620
lea rax, [r13 - 5]
mov ebx, 0
test rax, 0xfffffffffffffff6
lea rcx, [rbp - 0x59]
sete bl
xor edx, edx
lea r8d, [rdx + 0x7f]
call sub.VCRUNTIME140.dll_memset
mov word [rbp - 0x2a], 0x100
lea rdx, [0x1400c2860]
mov byte [rbp - 0x28], 1
cmp edi, 3
mov dword [rbp - 0x1a], 1
sete byte [rbp - 0x2d]
mov qword [rbp - 2], r12
xor eax, eax
mov dword [rbp - 0x3d], esi
mov byte [rbp - 0x2c], al
mov qword [rbp - 0x26], rax
mov dword [rbp - 0x12], esi
lea ecx, [rax + 0x18]
mov dword [rbp - 0x39], 2
mov dword [rbp - 0x31], ecx
mov dword [rbp - 6], ecx
mov rcx, qword [0x1400c78e8]
add rcx, 0xc
mov dword [rbp - 0xe], 2
mov dword [rbp - 0x35], r15d
mov dword [rbp - 0xa], r15d
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call qword [0x1400b1958]
mov rcx, qword [0x1400c78e8]
lea rdx, [0x1400c26f0]
add rcx, 0xc
mov r8, rax
test ebx, ebx
jne 0x1400670bb
lea rdx, [0x1400c2860]
lea r9, [rbp - 0x59]
call fcn.14008ea18
cmp eax, edi
jne 0x140067119
inc edi
lea esi, [r15 - 1]
inc r13
lea rdx, [0x140000000]
cmp edi, dword [r14]
jl 0x140066f2f
add esi, 0xa
lea rax, [0x1400b4880]
add r14, 4
cmp r14, rax
jl 0x1400670d8
mov rax, qword [0x1400c78e8]
mov rbx, qword [rsp + 0xf0]
mov dword [rax], r15d
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x401
call fcn.140015988
int3
Function at 0x14006a7e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x1400c1010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdx, qword [0x1400c6b20]
xor r12d, r12d
mov qword [0x1400c78c8], r12
lea ecx, [r12 + 0x66]
call fcn.140091b30
mov rcx, qword [0x1400c6b20]
lea r8d, [r12 + 0x14]
lea rdx, [0x1400c78c8]
mov qword [0x1400c78c8], rax
call fcn.140093238
lea rdx, [rbp - 0x29]
lea rcx, [0x1400b64c0]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_562]
test eax, eax
mov esi, r12d
cmove rsi, qword [rbp - 0x29]
test rsi, rsi
je 0x14006aa11
mov r14d, r12d
lea r13, [0x1400c7580]
lea rax, [rbp - 0x35]
mov dword [rbp - 0x39], reloc.ODBC32.dll_SQLGetFunctions
mov qword [rsp + 0x38], rax
lea r9, [rbp - 0x39]
lea rax, [rbp + 0xf]
mov dword [rbp - 0x35], 0x20
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x21]
lea rax, [rbp - 0x31]
mov edx, r14d
mov qword [rsp + 0x28], rax
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov r15d, eax
test eax, eax
jne 0x14006a9f8
cmp dword [rbp - 0x31], 1
jne 0x14006a9f8
cmp dword [rbp - 0x39], r12d
je 0x14006a9f8
lea edx, [rax + 0x2d]
lea rcx, [rbp - 0x21]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
mov r10, rax
test rax, rax
je 0x14006a983
mov r9d, dword [0x1400c7be0]
lea rcx, [rbp - 0x21]
movzx edx, byte [rcx]
mov r8d, edx
test r9d, r9d
je 0x14006a922
cmp word [r13 + rdx*2], r12w
jge 0x14006a922
movzx eax, byte [rcx + 1]
shl ax, 8
or ax, dx
jmp 0x14006a925
movzx eax, dx
cmp ax, 0x30
jb 0x14006a963
test r9d, r9d
je 0x14006a943
cmp word [r13 + r8*2], r12w
jge 0x14006a943
movzx eax, byte [rcx + 1]
shl ax, 8
or dx, ax
cmp dx, 0x39
ja 0x14006a963
inc rcx
test r9d, r9d
je 0x14006a902
cmp word [r13 + r8*2], r12w
jge 0x14006a902
cmp byte [rcx], r12b
je 0x14006a902
inc rcx
jmp 0x14006a902
cmp rcx, r10
jb 0x14006a983
lea rbx, [rcx + 1]
test r9d, r9d
je 0x14006a987
cmp word [r13 + r8*2], r12w
jge 0x14006a987
cmp byte [rbx], r12b
je 0x14006a987
inc rbx
jmp 0x14006a987
lea rbx, [rbp - 0x21]
mov rdx, qword [0x1400c78c8]
mov rcx, qword [0x1400c6b20]
call fcn.140093014
movsxd r8, eax
lea rdx, [0x1400c78c8]
mov r9d, 1
mov dword [rsp + 0x20], r12d
call fcn.14009311c
mov rcx, qword [0x1400c6b20]
mov rdx, rbx
mov rdi, rax
call fcn.1400a1a30
mov qword [rdi], rax
mov eax, dword [rbp - 0x35]
test eax, eax
je 0x14006a9ed
cmp eax, 1
jne 0x14006a9db
cmp byte [rbp + 0xf], 0x20
je 0x14006a9ed
mov rcx, qword [0x1400c6b20]
lea rdx, [rbp + 0xf]
call fcn.1400a1a30
jmp 0x14006a9f0
mov rax, r12
mov qword [rdi + 8], rax
mov dword [rdi + 0x10], r12d
inc r14d
cmp r15d, 0x103
jne 0x14006a87d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400af450
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14006ab90
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x460
mov rax, qword [0x1400c1010]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rcx, [0x1400b64c0]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_62]
mov rdx, qword [0x1400c78c8]
mov rcx, qword [0x1400c6b20]
mov rbx, qword [rdx]
add rbx, 0x28
call fcn.140093014
mov r13d, eax
test eax, eax
je 0x14006ad5b
lea rdx, [rsp + 0x40]
lea rcx, [0x1400b64c0]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1780]
xor r14d, r14d
test eax, eax
cmove r14, qword [rsp + 0x40]
test r14, r14
je 0x14006ad5b
xor esi, esi
test r13d, r13d
jle 0x14006ad52
cmp dword [rbx + 0x10], 0
jne 0x14006ad43
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14006ac45
lea rcx, [0x1400c5304]
mov qword [rsp + 0x38], rcx
jmp 0x14006ac4d
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov rax, qword [rbx]
xor ebp, ebp
mov r15d, esi
or r12, 0xffffffffffffffff
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
inc r12
cmp byte [rcx + r12], bpl
jne 0x14006ac61
lea rdi, [rbx - 0x14]
test esi, esi
jle 0x14006ad0a
cmp dword [rdi + 0x10], 0
jne 0x14006aca5
mov rax, qword [rdi]
mov rdx, qword [rax]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x14006ac86
mov r9d, eax
mov r8d, r12d
call fcn.1400a48b0
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x14006aca5
inc ebp
dec r15d
sub rdi, 0x14
test r15d, r15d
jg 0x14006ac76
test ebp, ebp
je 0x14006ad0a
mov r8d, 0x400
lea rdx, [rsp + 0x50]
mov ecx, ebp
lea rdi, [rsp + 0x50]
call fcn.140072150
or rbp, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov rax, rbp
inc rax
cmp byte [rcx + rax], 0
jne 0x14006acd8
mov edx, eax
mov byte [rsp + rdx + 0x50], reloc.ODBC32.dll_SQLGetInfo
mov rax, qword [rbx]
mov rcx, qword [rax]
mov rax, rbp
inc rax
cmp byte [rcx + rax], 0
jne 0x14006acf1
lea r8d, [rax + 1]
lea rdx, [rsp + rdx + 0x51]
call fcn.1400a7e70
jmp 0x14006ad14
mov rax, qword [rbx]
or rbp, 0xffffffffffffffff
mov rdi, qword [rax]
mov rcx, qword [rsp + 0x38]
mov rax, rbp
inc rax
cmp byte [rcx + rax], 0
jne 0x14006ad1c
mov dword [rsp + 0x28], eax
mov r9d, 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc esi
add rbx, 0x14
cmp esi, r13d
jl 0x14006ac24
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [0x1400c78c8]
mov rcx, qword [0x1400c6b20]
call fcn.140092438
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400af450
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14007217c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
movsxd rbx, r9d
mov rsi, rdx
mov edx, r8d
xor edi, edi
cmp rdx, rbx
mov rbp, rcx
mov r14d, 0x8000
cmovle ebx, r8d
jmp 0x1400721cd
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400721f0
mov eax, dword [rsp + 0x60]
cmp eax, r14d
jne 0x1400721f9
add ebx, 0xffff8000
add rsi, r14
add edi, r14d
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov rdx, rsi
mov rcx, rbp
cmp ebx, r14d
ja 0x1400721ab
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400721f5
or eax, 0xffffffff
jmp 0x1400721fb
mov eax, dword [rsp + 0x60]
add eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x140072210
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14d, 0x8000
mov ebx, r8d
mov rdi, rdx
mov rbp, rcx
mov esi, r8d
cmp r8d, r14d
jbe 0x14007226c
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, r14d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140072294
cmp dword [rsp + 0x60], r14d
jne 0x140072294
add ebx, 0xffff8000
add rdi, r14
cmp ebx, r14d
ja 0x140072239
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, ebx
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140072294
cmp dword [rsp + 0x60], ebx
jne 0x140072294
mov eax, esi
jmp 0x140072297
or eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140084170
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rsi, qword [rcx + 0x1c]
mov r12d, r9d
mov r13, qword [rcx + 0x14]
mov r15d, r8d
movaps xmmword [rax - 0x48], xmm6
mov rbx, rdx
movups xmm6, xmmword [rcx + 0x48]
mov dword [rsi], 1
mov rdi, rcx
mov dword [rcx + 0x68], 0x1a
call fcn.1400812dc
mov rcx, qword [rdi + 4]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [rdi + 4]
call qword [sym.imp.USER32.dll_SetCapture]
mov r14d, dword [rbp + 0x73]
cmp byte [r13 + 1], 0
je 0x1400841e7
mov dword [rbp - 0x11], 0x202
jmp 0x140084212
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 0x20e
lea rcx, [rbp - 0x19]
mov r8d, 0x100
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x140084224
mov dword [rbp - 0x11], 0x200
movzx eax, bx
movzx ecx, r14w
shl ecx, 0x10
or eax, ecx
cdqe
mov qword [rbp - 1], rax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [rbp - 0x11]
mov edx, 0x8000
test dx, ax
jne 0x140084244
cmp ecx, 0x202
jne 0x140084251
sub ecx, 0x200
je 0x140084278
cmp ecx, 2
jne 0x1400841d7
call qword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [rsi], 0
je 0x1400842e0
mov rax, qword [rdi + 0xc]
cmp byte [rax + 4], 1
je 0x1400842d0
test r12d, r12d
jne 0x1400842d0
test r15d, r15d
je 0x1400842d0
xor edx, edx
jmp 0x1400842d3
movsx eax, word [rbp - 1]
lea r8, [rbp - 0x29]
mov ebx, dword [rsi]
mov rcx, rdi
mov dword [rbp + 0x67], eax
mov rax, qword [rbp - 1]
shr rax, 0x10
cwde
mov dword [rbp + 0x6b], eax
mov rdx, qword [rbp + 0x67]
movdqa xmmword [rbp - 0x29], xmm6
call fcn.1400840cc
mov dword [rsi], eax
cmp ebx, eax
je 0x1400842b0
mov rcx, rdi
call fcn.1400812dc
movsx eax, word [rbp - 1]
mov dword [rbp - 0x39], eax
mov rax, qword [rbp - 1]
shr rax, 0x10
cwde
mov dword [rbp - 0x35], eax
mov rbx, qword [rbp - 0x39]
mov qword [rbp + 0x6f], rbx
jmp 0x1400841d3
or edx, 0xffffffff
and dword [rsi], 0
mov rcx, rdi
call fcn.140084b2c
jmp 0x1400842e8
mov rcx, rdi
call fcn.1400812dc
lea r11, [rsp + 0x90]
mov eax, 1
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140084794
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
and dword [rcx + 0x68], 0x4000
xor r13d, r13d
mov rax, qword [rcx + 0xc]
or esi, 0xffffffff
or dword [rcx + 0x68], 0x1a
mov rdi, rcx
mov rbp, qword [rcx + 0x14]
mov r14d, r13d
mov r12, qword [rcx + 0x1c]
mov r15d, r13d
cmp byte [rax + 4], 2
jne 0x1400847e7
test r8d, r8d
jne 0x1400847e7
test edx, edx
cmovne esi, r13d
cmp dword [rcx + 0x78], 0xd
je 0x14008490c
cmp byte [rbp + 1], r13b
je 0x140084801
cmp byte [rbp], r13b
je 0x14008490c
mov ebx, 1
mov dword [r12], ebx
call fcn.1400812dc
mov rcx, qword [rdi + 4]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [rdi + 4]
call qword [sym.imp.USER32.dll_SetCapture]
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 0x20e
lea rcx, [rsp + 0x30]
mov r8d, 0x100
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140084823
mov eax, dword [rsp + 0x38]
sub eax, 0x100
je 0x14008486d
cmp eax, 1
jne 0x1400848ea
cmp qword [rsp + 0x40], 0x20
jne 0x1400848ea
mov r14d, ebx
jmp 0x1400848ea
mov rax, qword [rsp + 0x40]
cmp rax, 0x20
jne 0x1400848d8
cmp word [rsp + 0x48], r13w
je 0x1400848d8
cmp byte [rbp], r13b
je 0x1400848ea
mov rax, qword [rdi + 0x2c]
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
mov rcx, rdi
call qword [0x1400b1958]
test eax, eax
je 0x1400848ea
call qword [sym.imp.USER32.dll_GetFocus]
mov edx, esi
mov rcx, rdi
mov rbx, rax
call fcn.140081270
call qword [sym.imp.USER32.dll_GetFocus]
cmp rax, rbx
jne 0x1400848f3
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x1400848f3
mov ebx, 1
jmp 0x1400848ea
mov r14d, ebx
cmp rax, 0xd
je 0x1400848f3
cmp rax, 0x20
je 0x1400848f3
mov r15d, ebx
test r14d, r14d
je 0x140084823
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [r12], r13d
test r15d, r15d
je 0x14008490c
mov rcx, rdi
call fcn.1400812dc
jmp 0x140084916
mov edx, esi
mov rcx, rdi
call fcn.140084b2c
and dword [rdi + 0x68], 0x4000
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140085de0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x1400c1010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rax, qword [rcx + 0x1c]
mov rdi, qword [rax + 0x20]
mov rbx, qword [rax + 0x18]
test rdi, rdi
je 0x140085f26
lea rdx, [rbp + 0x37]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetCapture]
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 0x20e
lea rcx, [rbp + 7]
mov r8d, 0x100
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140085e30
cmp dword [rbp + 0xf], 0x202
je 0x140085f20
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x140085f20
cmp dword [rbp + 0xf], 0x200
jne 0x140085e30
mov rcx, qword [rbp + 0x1f]
movsx eax, cx
shr rcx, 0x10
mov dword [rbp - 1], eax
movsx eax, cx
lea rcx, [rbp + 0x37]
mov dword [rbp + 3], eax
mov rdx, qword [rbp - 1]
mov qword [rbp - 9], rdx
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x140085e30
lea rdx, [rbp - 9]
mov rcx, rbx
call qword [sym.imp.USER32.dll_ClientToScreen]
movsxd r9, dword [rbp - 9]
xor r8d, r8d
mov edx, 0x84
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageA]
cmp rax, 1
jne 0x140085e30
lea rdx, [rbp - 9]
mov rcx, rdi
call qword [sym.imp.USER32.dll_ScreenToClient]
call qword [sym.imp.USER32.dll_ReleaseCapture]
movzx ecx, word [rbp - 5]
mov edx, 0x201
movzx eax, word [rbp - 9]
mov r8d, 1
shl ecx, 0x10
or ecx, eax
movsxd r9, ecx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageA]
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, rdi
je 0x140085f26
jmp 0x140085e27
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400af450
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140094b24
Capabilities:
Write clipboard data

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
lea r9, [rax + 8]
xor r13d, r13d
mov dword [rax + 8], r13d
mov r12d, edx
mov rax, qword [rcx + 0x14]
mov r15, rcx
call qword [0x1400b1958]
mov rbx, rax
mov eax, dword [rsp + 0x60]
test eax, eax
jne 0x140094c94
cmp r12d, dword [r15 + 0x9c]
jne 0x140094c44
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, eax
cmp rsi, rax
jne 0x140094c27
mov edx, esi
lea ecx, [r13 + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x140094c27
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rdi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rbp, rax
test r14, r14
je 0x140094bdc
test rax, rax
je 0x140094bdc
mov r8d, esi
mov rdx, rax
mov rcx, r14
call fcn.1400a7e70
mov qword [r15 + 0x94], rdi
jmp 0x140094bf9
mov r9d, 0x1010
mov dword [rsp + 0x60], 0x401
xor r8d, r8d
xor edx, edx
mov ecx, 0x50000
call fcn.14000e620
test r14, r14
je 0x140094c07
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test rbp, rbp
je 0x140094c44
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [rsp + 0x60], r13d
je 0x140094c44
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140094c44
mov r9d, 0x1010
mov dword [rsp + 0x60], 0x401
xor r8d, r8d
xor edx, edx
mov ecx, 0x50000
call fcn.14000e620
test rbx, rbx
je 0x140094c57
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
jmp 0x140094c5a
mov rdi, r13
mov rcx, qword [0x1400c74b0]
test rcx, rcx
je 0x140094c7a
mov rdx, qword [0x1400c6a38]
test rdx, rdx
je 0x140094c7a
mov r8, rdi
call fcn.140092228
mov rcx, rdi
call fcn.1400a3218
mov rdx, rbx
mov ecx, r12d
call qword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [rsp + 0x60]
jmp 0x140094c9d
cmp eax, 0x508
cmove eax, r13d
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140095154
Capabilities:
Open clipboard

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x1400c7444]
mov ebx, ecx
test eax, eax
jne 0x140095198
mov rcx, qword [0x1400c6010]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140095192
test ebx, ebx
je 0x14009518e
lea r9d, [rax + 0x30]
xor r8d, r8d
xor edx, edx
mov ecx, 0x80005
call fcn.14000e620
xor eax, eax
jmp 0x1400951a5
mov eax, dword [0x1400c7444]
inc eax
mov dword [0x1400c7444], eax
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140095594
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400c1010]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rax, qword [0x1400c6040]
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x50], edx
mov rdx, rsp
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x70]
mov qword [0x1400c6040], rax
call sub.VCRUNTIME140.dll___intrinsic_setjmp
mov edi, eax
test eax, eax
jne 0x14009570d
mov edx, dword [rsp + 0x50]
lea r8d, [rax + 2]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x140095791
mov rcx, qword [rsp + 0x58]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140095791
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140095791
mov rax, qword [rsp + 0x30]
mov r9, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x30]
add rbx, 0x28
mov ecx, dword [rax]
add r9, rcx
mov rcx, qword [rsp + 0x30]
call fcn.140095840
mov r8d, eax
mov eax, 0xff00
add rbx, r8
jmp 0x1400956b1
cmp r9, rbx
jae 0x1400956b6
add r9, 4
cmp dword [r9], eax
jne 0x1400956a8
xor edx, edx
xor ecx, ecx
call fcn.1400a1164
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140095791
mov rax, qword [rsp + 0x30]
mov r9, rbx
mov rdx, qword [rsp + 0x30]
mov r8d, 4
mov rcx, qword [rsp + 0x40]
and dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.GDI32.dll_CreateDIBitmap]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140095791
mov rax, qword [rsp + 0x60]
mov qword [0x1400c6040], rax
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140095728
mov rax, qword [rsp + 0x38]
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14009573d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140095759
mov rdx, qword [rsp + 0x40]
mov r8d, 2
xor ecx, ecx
call fcn.1400a11a0
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140095789
mov rax, qword [rsp + 0x48]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1400af450
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov ecx, edi
call fcn.140015988
int3
call fcn.14000e98c
int3