joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018460
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov ebx, r9d
mov r9d, dword [rdx]
mov rsi, rdx
mov rdi, rcx
cmp r9d, 0x80000000
je 0x140018651
cmp dword [0x140117470], 2
jne 0x1400184cd
movzx ebx, byte [rsp + 0x80]
mov r8d, dword [rdi]
movzx eax, bl
neg al
sbb ecx, ecx
xor edx, edx
and ecx, 0x80000000
or ecx, 1
call fcn.140018850
call fcn.140018f20
test bl, bl
je 0x140018651
mov dword [rdi], 0x80000000
mov dword [rsi], 0x80000000
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
or dword [r8], 0x8001
cmp byte [rsp + 0x80], 0
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r14
je 0x140018542
cmp dword [0x140117470], 1
jne 0x140018527
mov eax, dword [0x140115610]
cmp eax, 0x80000000
jne 0x14001851b
lea rcx, [0x140115610]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x140115610]
add dword [rdi], eax
mov eax, dword [0x140115614]
add dword [rsi], eax
jmp 0x14001854d
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r11d, dword [rsp + 0x68]
mov eax, dword [rsp + 0x6c]
add dword [rdi], r11d
add dword [rsi], eax
jmp 0x14001854d
mov r8d, 2
call fcn.1400ad420
cmp dword [0x140117470], 1
jne 0x140018566
mov eax, dword [rdi]
mov dword [0x140115610], eax
mov eax, dword [rsi]
mov dword [0x140115614], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebp, 1
mov ecx, ebp
mov r12d, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r8d, dword [rdi]
or r14d, 0xffffffff
mov r13d, eax
mov eax, r8d
mov ecx, ebp
shl eax, 0x10
cdq
idiv r12d
test r8d, r8d
cmovs ecx, r14d
add eax, ecx
mov ecx, ebp
mov dword [rdi], eax
mov r8d, dword [rsi]
mov eax, r8d
shl eax, 0x10
cdq
idiv r13d
test r8d, r8d
cmovs ecx, r14d
lea r9d, [rax + rcx]
mov dword [rsi], r9d
test ebx, ebx
js 0x140018629
cmp ebx, 0x64
jle 0x1400185ca
lea ebx, [rbp + 0x63]
jmp 0x1400185ce
test ebx, ebx
je 0x140018629
cmp dword [0x140117470], ebp
je 0x140018629
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r11d, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x68]
mov r9d, dword [rsi]
mov r8d, dword [rdi]
mov eax, r11d
shl eax, 0x10
mov r10d, ebp
mov dword [rsp + 0x20], ebx
cdq
idiv r13d
test r11d, r11d
cmovs r10d, r14d
add r10d, eax
mov eax, ecx
shl eax, 0x10
cdq
idiv r12d
test ecx, ecx
mov edx, r10d
cmovs ebp, r14d
lea ecx, [rbp + rax]
call fcn.140081260
jmp 0x14001863d
mov r8d, dword [rdi]
xor edx, edx
mov ecx, 0x8001
call fcn.140018660
call fcn.140018f20
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140019040
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140117338]
test r9, r9
je 0x140019198
movsxd rax, dword [0x140117334]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
imul rax, rax, 0xd4
mov byte [rax + r9 + 6], cl
mov byte [rax + r9], dl
mov ecx, 0x69
mov word [rax + r9 + 2], r8w
mov word [rax + r9 + 4], cx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
movsxd rdx, dword [0x140117334]
mov ecx, eax
pxor xmm0, xmm0
imul rdx, rdx, 0xd4
sub ecx, dword [0x1401181d8]
mov dword [0x140117340], eax
mov dword [0x1401181d8], eax
cvtsi2ss xmm0, rcx
mov rcx, qword [0x140117338]
divss xmm0, dword [0x1400ffd80]
movss dword [rdx + rcx + 8], xmm0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140019134
cmp rax, qword [0x140117348]
je 0x140019115
mov rcx, qword [0x140117338]
movsxd rdx, dword [0x140117334]
lea r8d, [rdi + 0x64]
imul rdx, rdx, 0xd4
lea rdx, [rdx + rcx + 0xc]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r11d, dword [0x140117334]
jmp 0x140019172
movsxd r11, dword [0x140117334]
mov rax, qword [0x140117338]
mov rcx, r11
imul rcx, rcx, 0xd4
mov word [rcx + rax + 0xc], di
jmp 0x140019172
movsxd r11, dword [0x140117334]
mov rax, qword [0x140117338]
lea rdx, [0x1400e3858]
mov rcx, r11
imul rcx, rcx, 0xd4
sub rcx, rdx
lea r8, [rcx + rax + 0xc]
nop dword [rax + rax]
movzx eax, word [rdx]
add rdx, 2
mov word [r8 + rdx - 2], ax
test ax, ax
jne 0x140019160
inc r11d
mov qword [0x140117348], rbx
mov rbx, qword [rsp + 0x30]
cmp r11d, dword [0x140111458]
cmovge r11d, edi
mov rdi, qword [rsp + 0x20]
mov dword [0x140117334], r11d
add rsp, 0x28
ret
Function at 0x14001a4c0
Capabilities:
Get keyboard layout

Disassembly:
push rbx
push rsi
sub rsp, 0x158
movzx esi, cl
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
lea edx, [rsi - 0x41]
mov rbx, rax
cmp dl, 0x19
ja 0x14001a63d
mov qword [rsp + 0x150], rbp
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x100
mov qword [rsp + 0x148], rdi
mov qword [rsp + 0x140], r12
call fcn.1400cf1c0
xor edi, edi
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x180]
lea r8, [rsp + 0x40]
lea ecx, [rdi + 0x6e]
xor edx, edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov qword [rsp + 0x30], rbx
movzx ebp, di
cmp eax, 2
lea r9, [rsp + 0x180]
lea r8, [rsp + 0x40]
cmove bp, word [rsp + 0x180]
movzx ecx, sil
xor edx, edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov r12d, eax
test eax, eax
jns 0x14001a5a2
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x40]
lea ecx, [rdi + 0x6e]
xor edx, edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test bp, bp
je 0x14001a60b
cmp bp, 0xa
jne 0x14001a5b2
mov sil, SafeArrayDestroy
jmp 0x14001a5cf
lea rdx, [rsp + 0x170]
mov r9b, 1
mov r8, rbx
movzx ecx, bp
call fcn.14001a900
movzx esi, al
test al, al
je 0x14001a60b
movzx edx, byte [rsp + 0x170]
lea rcx, [rsp + 0x40]
call fcn.140019c90
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x40]
movzx ecx, sil
xor edx, edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov rbp, qword [rsp + 0x150]
test r12d, r12d
mov r12, qword [rsp + 0x140]
je 0x14001a628
movzx edi, word [rsp + 0x180]
movzx eax, di
mov rdi, qword [rsp + 0x148]
add rsp, 0x158
pop rsi
pop rbx
ret
movzx ecx, sil
mov r8, rax
mov edx, 2
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
add rsp, 0x158
pop rsi
pop rbx
ret
Function at 0x14001a780
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push r12
sub rsp, 0x38
cmp word [rcx + 2], 0
mov rax, r9
movzx r12d, r8b
mov rbp, rcx
jne 0x14001a7be
movzx ecx, word [rcx]
cmp cx, 0xa
jne 0x14001a7ac
mov al, 0xd
add rsp, 0x38
pop r12
pop rbp
ret
mov r9b, 1
mov r8, rax
add rsp, 0x38
pop r12
pop rbp
jmp fcn.14001a900
mov qword [rsp + 0x58], rbx
movzx ebx, word [rcx]
test ebx, 0xffffff80
jne 0x14001a7e1
mov edx, 2
mov ecx, ebx
call fcn.1400ca558
test eax, eax
je 0x14001a7e1
and ebx, 0xffffffdf
mov qword [rsp + 0x30], rdi
cmp bx, 0x56
jne 0x14001a861
movzx ebx, word [rbp + 2]
test ebx, 0xffffff80
jne 0x14001a80b
mov edx, 2
mov ecx, ebx
call fcn.1400ca558
test eax, eax
je 0x14001a80b
and ebx, 0xffffffdf
cmp bx, 0x4b
jne 0x14001a861
lea rcx, [rbp + 4]
lea rdx, [rsp + 0x50]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.1400caae0
mov rcx, qword [rsp + 0x50]
cmp word [rcx], 0
je 0x14001a848
mov rbx, qword [rsp + 0x58]
xor edi, edi
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r12
pop rbp
ret
mov rbx, qword [rsp + 0x58]
movzx edi, al
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r12
pop rbp
ret
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
lea r14, [0x140112680]
xor edi, edi
lea r13, [0x140112d50]
mov rbx, r14
mov esi, edi
mov rcx, qword [rbx]
mov rdx, rbp
call fcn.1400c900c
test eax, eax
je 0x14001a8c8
add rbx, 0x10
inc esi
cmp rbx, r13
jl 0x14001a885
test r12b, r12b
je 0x14001a8a8
xor al, al
jmp 0x14001a8d5
xor edx, edx
mov rcx, rbp
call fcn.14001a660
test ax, ax
je 0x14001a8c2
movzx ecx, ax
call fcn.14001b1f0
movzx edi, al
movzx eax, dil
jmp 0x14001a8d5
movsxd rax, esi
shl rax, 4
movzx eax, byte [rax + r14 + 8]
mov r13, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
add rsp, 0x38
pop r12
pop rbp
ret

Function at 0x14001a900
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdx, r8
movzx edi, r9b
movzx ebp, cx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rsi, ax
mov rdx, rsi
shr rdx, 8
cmp dl, 0xff
jne 0x14001a979
cmp sil, 0xff
jne 0x14001a979
test dil, dil
je 0x14001a991
movzx edi, bp
test edi, 0xffffff80
jne 0x14001a991
mov edx, 0x103
mov ecx, edi
call fcn.1400ca558
test eax, eax
je 0x14001a991
movzx ecx, bp
call fcn.14000c1f0
mov edx, 1
mov ecx, edi
movzx esi, al
call fcn.1400ca558
test eax, eax
setne dl
test dl, 0x38
jne 0x14001a991
test rbx, rbx
je 0x14001a9c5
movzx eax, dl
and al, 6
cmp al, 6
jne 0x14001a995
or byte [rbx], 8
jmp 0x14001a9b5
xor al, al
jmp 0x14001a9c9
test dl, 2
je 0x14001a9a5
movzx eax, byte [rbx]
test al, 3
jne 0x14001a9a5
or al, 1
mov byte [rbx], al
test dl, 4
je 0x14001a9b5
movzx eax, byte [rbx]
test al, 0xc
jne 0x14001a9b5
or al, 4
mov byte [rbx], al
test dl, 1
je 0x14001a9c5
movzx eax, byte [rbx]
test al, 0x30
jne 0x14001a9c5
or al, 0x10
mov byte [rbx], al
movzx eax, sil
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b4d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140117474], 0
lea rbx, [0x140115640]
jne 0x14001b52f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 1
lea r8, [0x140115644]
mov dword [0x140115640], eax
nop
mov eax, dword [r8 - 4]
add r8, 4
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul ecx, ecx, 0x6c078965
add ecx, edx
inc edx
mov dword [r8 - 4], ecx
cmp edx, 0x270
jl 0x14001b500
mov dword [0x140117474], 1
mov dword [0x140110a04], 0x270
mov qword [0x140115638], rbx
mov r8d, 0xe3
nop word [rax + rax]
mov eax, dword [rbx + 4]
mov ecx, eax
and al, 1
xor ecx, dword [rbx]
and ecx, 0x7ffffffe
xor ecx, dword [rbx]
shr ecx, 1
neg al
sbb eax, eax
add rbx, 4
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [rbx + 0x630]
dec r8d
mov dword [rbx - 4], ecx
jne 0x14001b550
mov r8d, 0x18c
nop word [rax + rax]
mov eax, dword [rbx + 4]
lea rdx, [rbx + 4]
mov ecx, eax
and al, 1
xor ecx, dword [rbx]
and ecx, 0x7ffffffe
xor ecx, dword [rbx]
shr ecx, 1
neg al
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [rbx - 0x38c]
dec r8d
mov dword [rbx], ecx
mov rbx, rdx
jne 0x14001b590
mov eax, dword [0x140115640]
mov ecx, dword [rdx]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
xor ecx, dword [rdx]
shr ecx, 1
neg al
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [rdx - 0x38c]
mov dword [rdx], ecx
add rsp, 0x20
pop rbx
ret

Function at 0x14001b600
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
dec dword [0x140110a04]
jne 0x14001b611
call fcn.14001b4d0
mov rax, qword [0x140115638]
add rax, 4
mov ecx, dword [rax - 4]
mov qword [0x140115638], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
add rsp, 0x28
ret

Function at 0x14001b660
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
dec dword [0x140110a04]
jne 0x14001b671
call fcn.14001b4d0
mov rax, qword [0x140115638]
pxor xmm0, xmm0
add rax, 4
mov ecx, dword [rax - 4]
mov qword [0x140115638], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x1400ffe28]
add rsp, 0x28
ret
Function at 0x14001f9b0
Capabilities:
Set current directory

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x160
cmp byte [0x140119013], 0
mov ebp, r8d
mov esi, edx
mov rdi, rcx
mov dword [rcx + 0xb44], edx
jne 0x14001fb94
cmp byte [rcx + 0xbb0], 0
je 0x14001fb94
mov rcx, qword [0x140117318]
mov qword [rax + 8], rbx
mov dword [0x14011a12c], r8d
xor r8d, r8d
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r13
lea edx, [r8 + 1]
call fcn.140001820
lea rcx, [rsp + 0x60]
mov r8d, 0x7f
mov rdx, rax
call fcn.1400cc204
mov rbx, qword [0x140111488]
inc dword [0x140116948]
add rbx, 0x150
lea rdx, [0x140115240]
xor r13d, r13d
mov rcx, rbx
mov r8d, 0x150
mov word [rsp + 0x15e], r13w
mov qword [0x140111488], rbx
call fcn.1400c9cf0
lea rcx, [0x1401181e0]
xor edx, edx
mov dword [rbx + 0x3c], r13d
call fcn.14001f2a0
cmp dword [0x140116994], r13d
mov qword [0x140118d98], r13
je 0x14001fa9f
mov rax, qword [0x140112e30]
lea rcx, [0x1400e14ec]
test rax, rax
je 0x14001fa99
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, qword [rdi + 0xb30]
mov r12d, dword [0x140111454]
mov byte [0x140119013], 1
mov dword [0x140111454], r13d
mov bl, 1
mov byte [0x14011337c], r13b
test rcx, rcx
je 0x14001fae0
call fcn.1400a6530
test eax, eax
je 0x14001fae0
cmp byte [0x14011337c], r13b
movzx ebx, bl
cmove ebx, r13d
mov byte [0x14011337c], 1
test bl, bl
je 0x14001fb3d
mov dword [rsp + 0x30], r13d
call fcn.1400688d0
mov r9d, r13d
cmp qword [rdi + 0xb30], r9
mov qword [rsp + 0x20], rax
movsxd rax, dword [0x14011a12c]
lea rcx, [rdi + 0xae0]
lea rdx, [rsp + 0x20]
sete r9b
mov r8d, 2
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x50], 1
call fcn.1400a6700
movzx ebx, bl
cmp eax, 3
cmove ebx, r13d
mov byte [0x140119013], r13b
mov r13, qword [rsp + 0x190]
test bl, bl
mov rbx, qword [rsp + 0x180]
jne 0x14001fb86
cmp esi, 0xffffffff
jle 0x14001fb86
lea rcx, [rsp + 0x60]
call fcn.140004aa0
mov dword [0x140111454], r12d
mov r12, qword [rsp + 0x188]
mov eax, 8
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
mov r8d, ebp
mov edx, esi
mov rcx, rdi
call fcn.14001fbe0
int3
cmp byte [0x14011337c], 0
jne 0x14001fbd2
cmp edx, 6
jne 0x14001fbd2
mov rax, qword [0x1401166f0]
mov ecx, dword [0x14011a12c]
mov byte [0x14011337c], 1
cmp word [rax], 0
lea eax, [rdx + 2]
cmovne ecx, r8d
mov dword [0x14011a12c], ecx
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
call fcn.14001fbe0
int3
Function at 0x140020480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor r12d, r12d
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
lea rdx, [0x1400e68c8]
lea r8d, [r12 + 0xa]
xor ecx, ecx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], r12d
mov byte [rsp + 0x3c], r12b
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x1400204e9
lea r8d, [r12 + 0xa]
lea rdx, str._AHK_WITH_ICON_
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140020570
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x38], eax
test eax, eax
je 0x140020570
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140020570
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140020570
mov rax, qword [rbx]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov dword [rsp + 0x78], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov dword [rbx + 0xc], r12d
call qword [rax + VariantCopy]
test al, al
je 0x140020555
lea rdx, [rsp + 0x78]
mov r8d, 0xfde9
mov rcx, rbx
call fcn.1400a9690
mov rax, qword [rsi + 0xb80]
inc dword [0x14011747c]
mov qword [0x1401166e0], rax
mov eax, 3
jmp 0x14002058c
xorpd xmm3, xmm3
lea rcx, [0x1400e6910]
mov r8, rbp
xor edx, edx
mov qword [rsp + 0x20], r12
call fcn.1400b26b0
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x140040c90
Capabilities:
Print debug messages

Disassembly:
test edx, edx
je 0x140040de5
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
mov eax, 0x4030
call fcn.1400d1340
sub rsp, rax
mov qword [rsp + 0x4050], rbx
mov rbx, qword [rsp + 0x4070]
mov rbp, r9
mov r12, r8
mov esi, edx
mov rdi, rcx
mov qword [rsp + 0x4058], r13
test rbx, rbx
jne 0x140040cf1
mov rbx, qword [rcx + 0x6a0]
test rbx, rbx
jne 0x140040cf1
mov ecx, dword [rcx + 0x2c8]
movzx eax, word [rdi + 0x2cc]
jmp 0x140040cf9
movzx ecx, word [rbx + 2]
movzx eax, word [rbx + 4]
movsxd r9, ecx
mov qword [rsp + 0x28], r8
lea rcx, [0x1401166e0]
mov r9, qword [rcx + r9*8]
movzx eax, ax
mov r13d, 0x2000
lea rcx, [rsp + 0x30]
lea r8, [0x1400e9d70]
mov edx, r13d
mov dword [rsp + 0x20], eax
call fcn.1400abd10
cmp word [rbp], 0
movsxd rcx, eax
lea rcx, [rsp + rcx*2 + 0x30]
je 0x140040d5f
lea rdx, [rsp + 0x30]
mov rax, rcx
lea r8, [0x1400e9968]
sub rax, rdx
mov r9, rbp
sar rax, 1
sub r13d, eax
mov edx, r13d
call fcn.1400abd10
mov r13, qword [rsp + 0x4058]
cmp esi, 3
jne 0x140040d85
lea r9, [0x1400e6840]
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov rcx, rdi
call fcn.14003fc40
jmp 0x140040dca
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x140040dca
test rbx, rbx
jne 0x140040db6
mov rbx, qword [rdi + 0x6a0]
test rbx, rbx
jne 0x140040db6
mov r8, rbp
mov rdx, r12
mov rcx, rdi
call fcn.1400401e0
jmp 0x140040dca
mov r9, rbp
mov r8d, 1
mov rdx, r12
mov rcx, rbx
call fcn.14003fe90
mov rbx, qword [rsp + 0x4050]
mov rbp, qword [rsp + 0x4060]
add rsp, 0x4030
pop r12
pop rdi
pop rsi
repz ret
Function at 0x1400413e0
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, 0x450
mov rbp, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test rax, rax
je 0x14004141e
lea r8d, [rsi + 0x64]
lea rdx, [rsp + 0x180]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140041426
mov word [rsp + 0x180], si
mov rdi, qword [0x140118d28]
mov word [rsp + 0x80], si
test rdi, rdi
je 0x1400414e4
nop
cmp byte [rdi + 0x15], sil
je 0x14004147f
mov rcx, qword [rdi]
call fcn.1400a6580
test eax, eax
je 0x14004145f
dec eax
je 0x14004145f
lea r9, [0x1400e90a8]
jmp 0x140041466
mov rax, qword [rdi]
mov r9, qword [rax + 8]
lea r8, [0x1400ea088]
lea rcx, [rsp + 0x80]
mov edx, 0x7d
call fcn.1400abd80
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x140041440
cmp word [rsp + 0x80], si
je 0x1400414e4
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x80]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 0x7b
jbe 0x1400414d7
lea rbx, [rsp + rcx*2 + 0x80]
mov edi, 0x7f
lea rdx, [0x1400e6058]
sub rdi, rcx
mov rcx, rbx
mov r8, rdi
call fcn.1400cc204
mov word [rbx + rdi*2], si
jmp 0x1400414e4
cmp word [rsp + rcx*2 + 0x7e], 0x20
jne 0x1400414e4
mov word [rsp + rcx*2 + 0x7e], si
mov rax, qword [0x1401150e0]
cmp byte [rax + 0x138], sil
je 0x140041502
cmp byte [0x140118d91], sil
mov edi, 1
je 0x140041504
mov edi, esi
mov eax, dword [0x140116948]
cmp eax, 1
jle 0x140041512
lea esi, [rax - 1]
mov cl, 1
call fcn.140019b40
lea rdx, [rsp + 0x250]
movzx ecx, al
call fcn.140019f10
mov edx, dword [0x140116948]
mov r9d, dword [0x14011694c]
mov qword [rsp + 0x70], rax
mov eax, dword [0x140116944]
sub r9d, edi
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], edx
mov dword [rsp + 0x58], r9d
cmp edx, 1
lea rax, [rsp + 0x80]
lea r10, [0x1400e39c0]
lea rdi, [0x1400ea090]
lea r8, [0x1400e39b8]
lea rcx, [0x1400e14ec]
cmovg rcx, rdi
cmp qword [0x140116900], 0
mov rdi, r8
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x40], rax
mov eax, dword [0x140118d38]
cmove rdi, r10
cmp qword [0x1401168f8], 0
mov dword [rsp + 0x38], eax
mov eax, dword [0x140118d3c]
cmove r8, r10
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r8
mov esi, 0xfffe
lea r8, [0x1400ea110]
lea r9, [rsp + 0x180]
mov edx, esi
mov rcx, rbp
call fcn.1400abd10
movsxd rdx, eax
lea rbx, [rbp + rdx*2]
mov edx, esi
mov rax, rbx
mov rcx, rbx
sub rax, rbp
sar rax, 1
sub edx, eax
call fcn.14000be80
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
lea r8, [0x1400ea280]
repne scasw ax, word [rdi]
cmp qword [0x140117338], 0
lea rax, [0x1400e9748]
cmovne r8, rax
not rcx
lea rdi, [rbx + rcx*2 - 2]
mov rax, rdi
mov rcx, rdi
sub rax, rbp
sar rax, 1
sub esi, eax
mov edx, esi
call fcn.1400abd10
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
movsxd rcx, eax
lea rax, [rdi + rcx*2]
mov rsp, r11
pop rdi
ret
Function at 0x14004f520
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
mov eax, 0x11ce0
call fcn.1400d1340
sub rsp, rax
xor eax, eax
mov rbx, rcx
cmp edx, 6
mov rdx, qword [0x140111488]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x1884], eax
mov qword [rsp + 0x1888], rax
mov qword [rsp + 0x1890], rax
mov qword [rsp + 0x1898], rax
mov dword [rsp + 0x18a0], eax
mov qword [rsp + 0x18a8], rax
mov qword [rsp + 0x18c0], rax
cmove rax, rbx
lea rcx, [0x1400e14ec]
mov byte [rsp + 0x1881], 1
mov qword [rsp + 0x18b8], rax
mov rax, qword [rsp + 0x11d18]
mov qword [rsp + 0x1048], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x11d10]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.1400b2ce0
test eax, eax
je 0x14004f5d5
lea rdx, [rsp + 0x30]
lea rcx, [0x1400b16d0]
call qword [sym.imp.USER32.dll_EnumWindows]
movsxd rdx, dword [rsp + 0x1884]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rbx
call fcn.140001090
mov eax, 1
add rsp, 0x11ce0
pop rbx
ret
Function at 0x140056530
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
mov eax, 0x2260
call fcn.1400d1340
sub rsp, rax
mov r9, qword [0x140118d80]
mov rdi, rcx
mov qword [rsp + 0x20], rcx
movzx esi, dl
lea rcx, [rsp + 0x260]
lea r8, [0x1400ebcf8]
mov edx, 0x800
lea rbp, [rsp + 0x260]
lea r12, [0x1400e14ec]
call fcn.1400abd10
movsxd rbx, eax
lea r8d, [rbx + 1]
cmp r8d, 0x800
jg 0x1400565b9
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400565b9
mov r9, qword [0x140118d80]
jmp 0x14005661c
lea rcx, [rsp + 0x50]
call fcn.140056c40
test eax, eax
je 0x1400566db
lea r9, [rsp + 0x50]
lea r8, [0x1400ebcf8]
lea rcx, [rsp + 0x260]
mov edx, 0x800
mov qword [rsp + 0x20], rdi
call fcn.1400abd10
movsxd rbx, eax
lea ecx, [rbx + 1]
cmp ecx, 0x800
jg 0x1400566db
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400566db
lea r9, [rsp + 0x50]
mov rax, rbx
mov edi, SafeArrayAllocDescriptor
mov word [rsp + rbx*2 + 0x260], di
xor ebx, ebx
mov word [rsp + rax*2 + 0x262], bx
test sil, sil
je 0x1400566a1
lea rax, [0x1400ebd08]
lea r8, [0x1400ebcf8]
lea rcx, [rsp + 0x1260]
mov edx, 0x800
mov qword [rsp + 0x20], rax
call fcn.1400abd10
movsxd rsi, eax
lea ecx, [rsi + 1]
cmp ecx, 0x800
jg 0x1400566a1
lea rcx, [rsp + 0x1262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400566a1
mov word [rsp + rsi*2 + 0x1260], di
lea rbp, [rsp + 0x1260]
lea r12, [rsp + 0x260]
mov word [rsp + rsi*2 + 0x1262], bx
mov qword [rsp + 0x48], rbx
mov byte [rsp + 0x40], 0
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x30], rbx
lea rcx, [0x1401181e0]
xor r9d, r9d
mov r8, r12
mov rdx, rbp
mov qword [rsp + 0x28], rbx
mov byte [rsp + 0x20], 0
call fcn.140041670
test eax, eax
setne al
jmp 0x1400566dd
xor al, al
lea r11, [rsp + 0x2260]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret