joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180207d40
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x58]
call fcn.180004a80
nop
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jle 0x180207e38
mov eax, dword [rsp + 0x20]
shl eax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov qword [rsp + 0x38], rax
mov eax, 2
mov rcx, qword [rsp + 0x38]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180386168
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
jg 0x180207e24
movsxd rax, dword [rsp + 0x24]
xor ecx, ecx
mov rdx, qword [rsp + 0x30]
mov word [rdx + rax*2], cx
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.18000d570
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.180385c70
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
call fcn.180004a10
mov eax, dword [rsp + 0x28]
or eax, 1
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x58]
call fcn.180004990
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x88
ret
Function at 0x180208250
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x18020826d
jmp 0x18020838c
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x18020829c
mov edx, 9
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_ShowWindow]
mov dword [rsp + 0x40], 0
xor r9d, r9d
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x2000
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp dword [rsp + 0x40], 0x64
jb 0x1802082d6
mov r9d, 3
xor r8d, r8d
xor edx, edx
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x48], eax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [rsp + 0x44], eax
mov r8d, 1
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, 0xfffffffffffffffe
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
xor r8d, r8d
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x68
ret
Function at 0x18020a040
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
cmp rax, r8
je 0x18020a135
mov qword [rsp + 0x30], rbx
nop word [rax + rax]
mov rbx, qword [rax]
test rbx, rbx
je 0x18020a06d
cmp dword [rbx + 0x1c], edx
je 0x18020a080
add rax, 8
cmp rax, r8
jne 0x18020a060
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
movzx eax, byte [rbx + 0x18]
test al, al
je 0x18020a130
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 8]
xorps xmm1, xmm1
mov ecx, eax
xorps xmm0, xmm0
cvtsi2sd xmm1, rcx
mov ecx, dword [rbx + 0xc]
cvtsi2sd xmm0, rcx
divsd xmm1, xmm0
comisd xmm1, xmmword [0x1803e63f8]
movsd qword [rbx + 0x10], xmm1
jb 0x18020a0e0
movsd xmm1, qword [0x1803e63f8]
movabs rax, 0x3ff0000000000000
mov qword [rbx + 0x10], rax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x18020a107
mov eax, edi
sub eax, dword [rbx + 0x38]
cmp eax, dword [rbx + 0x20]
jb 0x18020a107
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
mov dword [rbx + 0x38], edi
movsd xmm0, qword [rbx + 0x10]
ucomisd xmm0, qword [0x1803e63f8]
mov rdi, qword [rsp + 0x20]
jp 0x18020a130
jne 0x18020a130
mov rax, qword [rbx]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
jmp qword [rax + 8]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x180213b60
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor edi, edi
mov rbx, rcx
mov qword [rcx], rdi
cmp qword [0x1804cc800], rdi
jne 0x180213beb
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x20a
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rax, [rsp + 0x30]
mov word [rsp + 0x236], di
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], di
jne 0x180213bd0
lea rdx, [rsp + 0x30]
lea rcx, [0x1804cc7f0]
call fcn.180004e70
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180385c10
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x180213c90
Capabilities:
Check os version
Get session user name

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x260
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rcx
mov eax, dword [0x1804db098]
test eax, eax
jle 0x180213cdd
inc eax
mov dword [0x1804db098], eax
mov al, 1
jmp 0x180213e3d
xor bpl, bpl
xor r14d, r14d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
lea ecx, [r14 + 1]
call fcn.180385c34
mov rbx, rax
mov qword [rsp + 0x30], rax
mov byte [rax], bpl
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x44]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], 0x11c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180213d34
cmp dword [rsp + 0x44], 6
setae al
mov byte [rbx], al
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call fcn.180176ed0
movzx ebx, al
lea rcx, [rsp + 0x30]
call fcn.180175e80
test bl, bl
je 0x180213e26
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x180213e26
lea rdx, str.ImpersonateLoggedOnUser
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call rax
test eax, eax
je 0x180213e1b
inc dword [0x1804db098]
mov rcx, qword [rsi]
test rcx, rcx
je 0x180213da7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rbx
mov rbx, r14
mov bpl, 1
cmp qword [0x1804cc820], rbx
jne 0x180213e1b
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov word [rsp + 0x246], r14w
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180213e00
lea rdx, [rsp + 0x40]
lea rcx, [0x1804cc810]
call fcn.180004e70
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x180213e2b
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x180213e39
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bpl
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180385c10
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180213ed0
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0xb8], rbx
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ebp, r8d
mov r14, rdx
mov r15, rcx
xor r12d, r12d
mov ebx, r12d
mov qword [rsp + 0x20], rbx
lea r13, [r12 - 1]
cmp r8d, 0x3fe
jbe 0x180213f9e
lea ecx, [rbp + 2]
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.180386168
mov r14, rax
mov rbx, rax
mov qword [rsp + 0x20], rax
mov rdx, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x180213f6a
cmp eax, ebp
ja 0x180213f6a
mov ecx, eax
mov word [rbx + rcx*2], r12w
lea ecx, [rax + 1]
mov word [rbx + rcx*2], r12w
mov ebp, eax
jmp 0x180213fcd
test r14, r14
je 0x180213f77
mov rcx, r14
call fcn.180385c70
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180385c10
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, rbp
add rax, rax
cmp rax, 0x800
jae 0x180214106
mov word [rax + rdx], r12w
lea ecx, [rbp + 1]
add rcx, rcx
cmp rcx, 0x800
jae 0x180214100
mov word [rcx + rdx], r12w
mov eax, r12d
mov edi, r12d
test ebp, ebp
je 0x1802140e5
mov rsi, r14
nop
cmp word [rsi], 0
jne 0x1802140d7
cmp eax, edi
je 0x1802140d7
lea rdx, [r14 + rax*2]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
mov r8, r13
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x180214020
lea rcx, [rsp + 0x30]
call fcn.180004e70
nop
mov rdx, qword [r15 + 8]
cmp qword [r15 + 0x10], rdx
je 0x180214074
mov qword [rdx + 0x10], r12
mov qword [rdx + 0x18], r12
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
add qword [r15 + 8], 0x20
jmp 0x180214082
lea r8, [rsp + 0x30]
mov rcx, r15
call fcn.18006c920
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1802140c0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802140bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1802140f9
call fcn.180385c70
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
lea eax, [rdi + 1]
inc edi
add rsi, 2
cmp edi, ebp
jb 0x180213fe0
test rbx, rbx
je 0x1802140f2
mov rcx, rbx
call fcn.180385c70
mov al, 1
jmp 0x180213f79
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386298
int3
call fcn.180386298
int3
Function at 0x180217000
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180217071
mov eax, dword [rsp + 0x24]
cmp eax, 5
jae 0x180217057
cmp eax, 4
jne 0x180217071
cmp dword [rsp + 0x28], 0x5a
jb 0x180217071
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x158
ret
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x158
ret
Function at 0x18021a600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx edx, dx
lea r8, [0x1803c2f28]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x18021a729
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x18021a729
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18021a729
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x18021a729
mov edx, esi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x18021a729
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x18021a720
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor esi, esi
lea r8, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x40], rsi
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x18021a720
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18021a720
call fcn.1801ed830
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rbx, rbx
je 0x18021a70d
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x10], esi
test ecx, ecx
je 0x18021a70d
mov rax, qword [rbx]
lea edx, [rsi + 1]
mov rcx, rbx
call qword [rax]
mov ebx, esi
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18021ee20
Capabilities:
Hide graphical window

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
mov r14, qword [rsp + 0xa8]
cmp dword [rsp + 0xb0], 0
jne 0x18021f026
cmp r8d, 0x102
jne 0x18021eedf
mov rax, qword [rcx + 0x30]
mov dword [rax + 0x34], 1
cmp r9w, 0x1b
je 0x18021eeae
cmp r9w, 0xd
je 0x18021eeb2
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x18021eec5
mov rax, qword [rcx + 0x18]
mov qword [r11 - 0x58], rax
mov r9, qword [rcx + 0x10]
mov r8d, dword [rcx + 8]
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_CallWindowProcW]
jmp 0x18021eec5
mov byte [rcx + 0x48], 1
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetFocus]
xor edi, edi
mov qword [r14], rdi
mov rcx, qword [rbx + 0x30]
cmp dword [rcx + 0x34], edi
je 0x18021f026
lea eax, [rdi + 1]
jmp 0x18021f028
cmp r8d, 8
jne 0x18021efd3
mov rax, qword [rcx + 0x30]
mov dword [rax + 0x34], 1
mov rdx, qword [rcx + 8]
lea rcx, [rsp + 0x38]
call fcn.180207d40
mov rsi, rax
lea rbp, [rbx + 0x60]
xor edi, edi
cmp rbp, rax
je 0x18021ef36
mov rcx, rbp
call fcn.180004df0
movups xmm0, xmmword [rsi]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rbp + 0x10], xmm1
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 7
mov word [rsi], di
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x18021ef7b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18021ef76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18021ef76
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], di
xor edx, edx
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_DestroyWindow]
cmp byte [rbx + 0x48], 0
jne 0x18021efbf
xor r9d, r9d
xor r8d, r8d
mov edx, 0x660
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [r14], rdi
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x34], 0
je 0x18021f026
mov eax, 1
jmp 0x18021f028
cmp r8d, 0x20
jne 0x18021f026
mov rax, qword [rcx + 0x30]
mov dword [rax + 0x34], 1
mov eax, dword [0x1804dcae4]
test al, 1
jne 0x18021f00d
or eax, 1
mov dword [0x1804dcae4], eax
mov edx, 0x7f01
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [0x1804dcae8], rax
jmp 0x18021f014
mov rax, qword [0x1804dcae8]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov qword [r14], 1
jmp 0x18021efc2
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180385c10
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1802238a0
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov rsi, qword [rsp + 0x2b8]
cmp dword [rsp + 0x2c0], 0
jne 0x180223ae6
cmp r8d, 0x20
jne 0x180223961
mov rax, qword [rcx + 0x30]
mov dword [rax + 0x34], 1
mov eax, dword [0x1804dcb18]
test al, 1
jne 0x180223921
or eax, 1
mov dword [0x1804dcb18], eax
mov edx, 0x7f01
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [0x1804dcb10], rax
jmp 0x180223928
mov rax, qword [0x1804dcb10]
test rax, rax
je 0x18022393d
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edi, 1
jmp 0x180223946
mov rcx, qword [rbx + 0x30]
xor edi, edi
mov dword [rcx + 0x34], edi
mov qword [rsi], rdi
mov rcx, qword [rbx + 0x30]
cmp dword [rcx + 0x34], 0
je 0x180223ae6
mov eax, 1
jmp 0x180223ae8
cmp r8d, 7
jne 0x1802239d6
mov rax, qword [rcx + 0x30]
mov dword [rax + 0x34], 1
lea rdx, [rcx + 0x48]
cmp qword [rdx + 0x18], 8
jb 0x180223980
mov rdx, qword [rdx]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetWindowTextW]
movsxd r8, dword [rbx + 0x58]
mov r9, r8
mov edx, 0xb1
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xb7
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rbx + 0x30]
xor edi, edi
mov dword [rax + 0x34], edi
mov qword [rsi], rdi
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x34], edi
je 0x180223ae6
lea eax, [rdi + 1]
jmp 0x180223ae8
cmp r8d, 8
jne 0x180223a82
mov rax, qword [rcx + 0x30]
mov dword [rax + 0x34], 1
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x105
lea rdx, [rsp + 0x60]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edi, edi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], di
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], di
jne 0x180223a40
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.180004e70
nop
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180223bc0
mov rax, qword [rbx + 0x30]
mov dword [rax + 0x34], edi
mov qword [rsi], rdi
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x34], 0
je 0x180223ae6
mov eax, 1
jmp 0x180223ae8
cmp r8d, 0x2133
jne 0x180223ab4
mov rax, qword [rcx + 0x30]
mov dword [rax + 0x34], 1
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov rdx, qword [rsp + 0x20]
call fcn.180223e50
mov qword [rsi], rax
jmp 0x180223a71
cmp r8d, 0x2138
jne 0x180223ae6
mov rax, qword [rcx + 0x30]
mov dword [rax + 0x34], 1
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov rdx, qword [rsp + 0x20]
call fcn.180223e50
mov qword [rsi], rax
jmp 0x180223a71
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180385c10
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180225720
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0xb0
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp qword [rcx + 0x10], 0
movzx edi, r8b
mov rbp, rdx
mov rbx, rcx
je 0x180225935
cmp qword [rcx + 0x18], 8
mov rax, rcx
jb 0x18022575f
mov rax, qword [rcx]
mov r9d, 0x2c
mov qword [rsp + 0x20], rax
mov r8, rbp
lea rdx, str.WindowPlacement
lea rcx, str.Placement
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
test eax, eax
je 0x180225935
test dil, dil
jne 0x180225798
mov eax, 1
jmp 0x180225937
movss xmm0, dword [rbx + 0x24]
mulss xmm0, dword [0x1803e65c0]
mov qword [rsp + 0xe0], rsi
mov qword [rsp + 0xe8], r12
mov qword [rsp + 0xa8], r14
addss xmm0, dword [0x1803e6300]
mov qword [rsp + 0xa0], r15
movaps xmmword [rsp + 0x90], xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_floorf
cvttss2si edx, xmm0
lea rcx, [rbp + 0x1c]
mov r8d, edx
call qword [sym.imp.USER32.dll_OffsetRect]
lea rdx, [rbp + 0x1c]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [rsp + 0x38]
mov edx, 2
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x58], 0x28
call qword [sym.imp.USER32.dll_MonitorFromPoint]
mov rcx, rax
lea rdx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x180225846
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_CopyRect]
jmp 0x180225859
xor edx, edx
lea r8, [rsp + 0x48]
xor r9d, r9d
lea ecx, [rdx + 0x30]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
movss xmm6, dword [rbx + 0x24]
mov r14d, dword [rsp + 0x40]
movaps xmm0, xmm6
mulss xmm0, dword [0x1803e6624]
mov r15d, dword [rsp + 0x44]
mov edi, dword [rsp + 0x38]
sub r14d, edi
mov esi, dword [rsp + 0x3c]
sub r15d, esi
addss xmm0, dword [0x1803e6300]
call sub.api_ms_win_crt_math_l1_1_0.dll_floorf
mov eax, dword [rsp + 0x50]
cvttss2si ecx, xmm0
sub eax, ecx
cmp edi, eax
jg 0x1802258ae
mov eax, dword [rsp + 0x54]
sub eax, ecx
cmp esi, eax
jg 0x1802258ae
test edi, edi
js 0x1802258ae
test esi, esi
jns 0x1802258d4
mulss xmm6, dword [0x1803e6598]
addss xmm6, dword [0x1803e6300]
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_floorf
cvttss2si edi, xmm0
mov dword [rsp + 0x38], edi
mov esi, edi
mov dword [rsp + 0x3c], edi
lea eax, [r14 + rdi]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x38]
lea eax, [r15 + rsi]
lea rcx, [rbp + 0x1c]
mov dword [rsp + 0x44], eax
call qword [sym.imp.USER32.dll_CopyRect]
mov rdx, rbp
mov byte [rbx + 0x21], 1
mov rcx, rbx
call fcn.1802256c0
movaps xmm6, xmmword [rsp + 0x90]
mov eax, 1
mov r15, qword [rsp + 0xa0]
mov r14, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xe8]
mov rsi, qword [rsp + 0xe0]
mov byte [rbx + 0x21], 0
jmp 0x180225937
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180385c10
add rsp, 0xb0
pop rdi
pop rbp
pop rbx
ret
Function at 0x180233d30
Capabilities:
Enumerate gui resources

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x38], xmm1
xor eax, eax
mov word [rsp + 0x28], ax
movdqu xmmword [rsp + 0x48], xmm0
mov qword [r11 - 0x20], rax
lea rax, [r11 - 0x50]
cmp rax, rcx
je 0x180233da2
mov rdx, rcx
cmp qword [rcx + 0x18], 8
jb 0x180233d94
mov rdx, qword [rcx]
mov r8, qword [rcx + 0x10]
lea rcx, [rsp + 0x28]
call fcn.180004e70
lea rdx, [rsp + 0x28]
lea rcx, [0x180233c70]
call qword [sym.imp.USER32.dll_EnumWindows]
mov r8, qword [rsp + 0x50]
mov rax, r8
mov rdx, qword [rsp + 0x48]
sub rax, rdx
sar rax, 3
test rax, rax
setne bl
lea rax, [rsp + 0x48]
cmp rdi, rax
je 0x180233de1
mov rcx, rdi
call fcn.1800675f0
nop
lea rcx, [rsp + 0x48]
call fcn.180008660
nop
lea rcx, [rsp + 0x28]
call fcn.180004df0
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180385c10
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret