joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005d10
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov ebx, edx
mov r12, rcx
lea rdx, str.xtract_resource_file
lea rcx, [0x140088688]
mov rsi, r9
mov rdi, r8
call fcn.140007130
lea rdx, str.INFO
mov rcx, rsi
mov r8, rax
call fcn.140018920
mov rcx, r12
call fcn.1400018c0
lea rdx, str.INFO
mov rcx, rsi
mov r8, rax
call fcn.140018920
movzx edx, bx
mov r8, rdi
xor ecx, ecx
xor r13b, r13b
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140005e69
mov rdx, rax
xor ecx, ecx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x80], r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rdi
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
xor r14d, r14d
mov rcx, r12
mov ebp, eax
mov dword [rsp + 0x78], r14d
call fcn.1400018c0
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, 0x40000000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140005e36
lea r9, [rsp + 0x78]
mov r8d, ebp
mov rdx, rbx
mov rcx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 1
movzx ebx, r13b
test eax, eax
cmovne ebx, ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rbp, qword [rsp + 0x70]
mov r14, qword [rsp + 0x80]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rdx, str.ant_create_file
lea rcx, [0x1400884c4]
call fcn.140007130
lea rdx, str.ERROR
mov rcx, rsi
mov r8, rax
call fcn.140018920
mov rcx, rsi
call fcn.140018840
movzx eax, r13b
jmp 0x140005e1d
lea rdx, str.esource_file_not_found
lea rcx, [0x1400887a8]
call fcn.140007130
lea rdx, str.ERROR
mov rcx, rsi
mov r8, rax
call fcn.140018920
movzx eax, r13b
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400060d0
Capabilities:
Create directory
Get common file path

Disassembly:
push rbx
mov eax, 0x1070
call fcn.140068770
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x1060], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14000264c
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x38]
call fcn.140006560
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.14000272c
nop
lea rcx, [rsp + 0x38]
call fcn.140001624
mov rcx, rbx
call fcn.1400018c0
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, [0x1400887bc]
mov rcx, rbx
call fcn.140002680
mov rax, rbx
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.14005ba60
add rsp, 0x1070
pop rbx
ret
Function at 0x1400062b0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
movzx ebx, cl
lea rdx, str.oftwareMicrosoftWindowsCurrentVersionRun
lea rcx, [0x140088580]
mov rsi, r8
call fcn.140007130
mov rcx, 0xffffffff80000001
mov rdx, rax
test bl, bl
je 0x140006303
mov r9, rsi
mov r8, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140004920
lea r8, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000632b
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140006340
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
xor edx, edx
mov rbx, r9
mov rsi, r8
mov rbp, rcx
lea rax, [rsp + 0x30]
lea r8d, [rdx + 1]
lea r9, [0x140083ab0]
lea rcx, [0x140083ac0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400063ff
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov rax, qword [rcx]
call qword [rax + SHCreateDirectory]
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
lea rdx, [0x140083ad0]
call qword [rax]
mov ebx, eax
test eax, eax
js 0x1400063f2
mov rcx, qword [rsp + 0x38]
mov r8d, 1
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140006870
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x238
mov rbx, rax
call fcn.140062200
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140006927
nop word [rax + rax]
lea rax, [rsp + 0x4c]
mov r8, rdi
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140006904
add rax, 2
test ecx, ecx
jne 0x1400068f0
test edx, edx
jne 0x140006911
mov eax, dword [rsp + 0x28]
cmp eax, 0xffffffff
jne 0x140006925
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400068e0
jmp 0x140006927
mov esi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14005ba60
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140006990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x98]
sub rsp, 0x198
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rbx, r9
mov r12, r8
mov rsi, rdx
mov rdi, rcx
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400069e5
test al, 0x10
jne 0x140006a5a
lea rdx, [0x140088860]
lea rcx, [0x1400884c4]
call fcn.140007130
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.14000264c
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call fcn.14000272c
mov rcx, rax
call fcn.1400018c0
mov r8, rax
lea rdx, str.INFO
mov rcx, rbx
call fcn.140018920
nop
lea rcx, [rbp + 0x30]
call fcn.140001624
mov rcx, rdi
call fcn.1400018c0
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x140006a5a
mov rcx, rbx
call fcn.140018840
lea rcx, [rsp + 0x30]
call fcn.1400082d0
nop
mov r13d, 4
nop dword [rax + rax]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x30]
call fcn.140001678
nop
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.140009a00
nop
lea rcx, [rbp + 0x30]
call fcn.140001624
mov r11, qword [rsp + 0x30]
movsxd rax, dword [r11 + 4]
lea rcx, [rsp + rax + 0x30]
xor edx, edx
cmp qword [rcx + 0x48], rdx
cmove edx, r13d
xor r8d, r8d
call fcn.140004140
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14000d1a0
mov r11, qword [rdi + 0x10]
lea rbx, [r11 - 1]
cmp r11, rbx
jbe 0x140006bc1
mov rcx, rdi
call fcn.1400016d4
cmp word [rax + rbx*2], 0x5c
je 0x140006aee
lea rcx, [rsp + 0x40]
call fcn.14000d400
lea rcx, [rbp + 0x58]
call fcn.140006560
nop
lea rdx, [rbp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.14000d1a0
mov rcx, rax
mov rdx, rsi
call fcn.14000cf40
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140008470
mov rcx, rax
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140006b40
test al, 0x10
jne 0x140006b40
mov eax, 1
jmp 0x140006b42
xor eax, eax
test al, al
sete bl
lea rcx, [rbp + 0x30]
call fcn.140001624
test bl, bl
jne 0x140006b62
lea rcx, [rbp + 0x58]
call fcn.140001624
jmp 0x140006a70
xor edx, edx
mov rcx, r12
call fcn.140001648
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140008470
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, r12
call fcn.14000272c
nop
lea rcx, [rbp + 0x30]
call fcn.140001624
nop
lea rcx, [rbp + 0x58]
call fcn.140001624
nop
lea rcx, [rbp - 0x38]
call fcn.1400083a0
lea r11, vtable.std::ios_base.0
mov qword [rbp - 0x38], r11
lea rcx, [rbp - 0x38]
call fcn.140074548
jmp 0x140006bc7
call fcn.140002bf8
nop
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14005ba60
add rsp, 0x198
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400079e0
Capabilities:
Check if file exists
Delete file
Get file attributes
Get file size
Set file attributes

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x1b0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rdi, rcx
mov sil, 1
lea rcx, [r11 - 0x68]
call fcn.140005090
nop
lea rdx, [0x140088968]
lea rcx, [rsp + 0x150]
call fcn.140002680
lea r8, [rsp + 0x150]
lea rdx, str.Try_delete_file_Zona_from
lea rcx, [rsp + 0x178]
call fcn.14000d770
nop
mov rcx, rax
call fcn.1400018c0
mov r8, rax
lea rdx, str.INFO
mov rcx, rdi
call fcn.140018920
nop
lea rcx, [rsp + 0x178]
call fcn.140001624
lea rcx, [rsp + 0x150]
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140007c42
test al, 0x10
jne 0x140007c42
lea r8, str.File_found
lea rdx, str.INFO
mov rcx, rdi
call fcn.140018920
lea rcx, [rsp + 0x150]
call fcn.1400018c0
xor edx, edx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140007b12
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], 0
jne 0x140007c29
mov rax, qword [rsp + 0x40]
shr rax, 0x20
test eax, eax
jne 0x140007c29
lea r8, str.File_is_empty
lea rdx, str.INFO
mov rcx, rdi
call fcn.140018920
lea rcx, [rsp + 0x150]
call fcn.1400018c0
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x150]
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140007c11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x50]
call fcn.1400082d0
nop
lea rdx, str.Cant_delete__last_error_is
lea rcx, [rsp + 0x60]
call fcn.14000cf40
mov rcx, rax
mov edx, ebx
call fcn.140007cf0
lea rdx, [rsp + 0x178]
lea rcx, [rsp + 0x50]
call fcn.140008470
nop
mov rcx, rax
call fcn.1400018c0
mov r8, rax
lea rdx, str.INFO
mov rcx, rdi
call fcn.140018920
nop
lea rcx, [rsp + 0x178]
call fcn.140001624
xor sil, sil
lea rcx, [rsp + 0xe8]
call fcn.1400083a0
lea r11, vtable.std::ios_base.0
mov qword [rsp + 0xe8], r11
lea rcx, [rsp + 0xe8]
call fcn.140074548
jmp 0x140007c42
lea r8, str.File_is_deleted
lea rdx, str.INFO
mov rcx, rdi
call fcn.140018920
jmp 0x140007c42
lea r8, str.File_is_NOT_empty
lea rdx, str.INFO
mov rcx, rdi
call fcn.140018920
xor sil, sil
lea rcx, [rsp + 0x150]
call fcn.140001624
movzx eax, sil
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14005ba60
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140017d90
Capabilities:
Accept command line arguments

Disassembly:
push rdi
push r12
push r14
mov eax, 0x1850
call fcn.140068770
sub rsp, rax
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x1820], rax
mov r14, rcx
mov r9, rdx
lea r8, [0x140088fa8]
mov edx, 0x4000
add rcx, 0x20
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea rdx, [rsp + 0x20]
lea rcx, [r14 + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r12, rax
test rax, rax
je 0x140017f8e
mov qword [rsp + 0x1880], rbx
xor ebx, ebx
mov qword [rsp + 0x1840], rsi
xor esi, esi
cmp dword [rsp + 0x20], ebx
jle 0x140017f7e
mov qword [rsp + 0x1848], rbp
mov qword [rsp + 0x1830], r15
or r15, 0xffffffffffffffff
mov qword [rsp + 0x1838], r13
lea ebp, [rsi + 1]
nop dword [rax]
test rbx, rbx
jne 0x140017e8f
lea rdx, [rsp + 0x50]
mov r8d, 0x3e8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140017e65
lea rdx, [rsp + 0x820]
lea rcx, [rsp + 0x50]
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov rdi, qword [r12]
lea rax, [rsp + 0x820]
sub rdi, rax
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x140017e87
add rax, 2
test ecx, ecx
jne 0x140017e74
test edx, edx
je 0x140017f55
mov rdi, qword [r12 + rbx*8]
xor eax, eax
mov rcx, r15
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx - 1]
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.14005ba80
mov r8, qword [r12 + rbx*8]
lea rdx, [0x140088fa8]
mov rcx, rax
mov r13, rax
xor edi, edi
call qword [sym.imp.USER32.dll_wsprintfW]
cmp ebp, dword [rsp + 0x20]
jge 0x140017f2e
mov rcx, qword [r12 + rbx*8 + 8]
lea rdx, [rbx + 1]
cmp word [rcx], 0x2f
je 0x140017f2e
mov rdi, qword [r12 + rdx*8]
xor eax, eax
mov rbx, rdx
mov rcx, r15
inc esi
inc ebp
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.14005ba80
mov r8, qword [r12 + rbx*8]
lea rdx, [0x140088fa8]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x28]
mov rcx, r14
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], rdi
call fcn.1400186a0
lea rdx, [rsp + 0x38]
mov r8, rax
mov rcx, r14
call fcn.1400181f0
inc esi
inc ebp
inc rbx
cmp esi, dword [rsp + 0x20]
jl 0x140017e30
mov r15, qword [rsp + 0x1830]
mov r13, qword [rsp + 0x1838]
mov rbp, qword [rsp + 0x1848]
mov rbx, qword [rsp + 0x1880]
mov rsi, qword [rsp + 0x1840]
mov rcx, qword [rsp + 0x1820]
xor rcx, rsp
call fcn.14005ba60
add rsp, 0x1850
pop r14
pop r12
pop rdi
ret
Function at 0x140018770
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
mov eax, 0x1040
call fcn.140068770
sub rsp, rax
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x1070], rbx
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rsi, rdx
mov rbp, rcx
mov qword [rsp + 0x20], rcx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x28]
call fcn.140001678
nop
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x50]
call fcn.140001678
nop
lea rdx, [rsp + 0x30]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x28]
call fcn.140002680
mov rcx, rax
mov rdx, rsi
call fcn.140002680
lea rdx, [0x140088ff0]
lea rcx, [rbp + 0x50]
call fcn.1400026b0
nop
mov rax, rbp
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14005ba60
mov rbx, qword [rsp + 0x1070]
add rsp, 0x1040
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001d870
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r12
sub rsp, 0x270
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov eax, dword [rdx + 0x10]
mov r12d, 1
mov rbp, rcx
test r12b, al
mov ebx, 0
mov ecx, 3
cmovne ebx, ecx
mov rsi, rdx
test al, 4
je 0x14001d8bc
lea r12d, [rcx + 0x1e]
or ebx, 4
mov rcx, qword [rbp + 8]
lea rdx, [rsp + 0x60]
mov r8d, 0x100
mov qword [rsp + 0x2a0], rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
call qword [sym.imp.UxTheme.dll_IsThemeActive]
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
test eax, eax
je 0x14001d936
mov rdx, qword [rsi + 0x20]
xor eax, eax
lea r10, [rsi + 0x28]
repne scasw ax, word [rdi]
mov qword [rsp + 0x40], r10
mov dword [rsp + 0x38], eax
not rcx
mov dword [rsp + 0x30], 0x25
lea rax, [rsp + 0x60]
dec rcx
mov r9d, ebx
mov r8d, 1
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.UxTheme.dll_DrawThemeText]
jmp 0x14001d9d2
xor eax, eax
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov r11d, dword [rsi + 0x34]
mov ebx, dword [rsi + 0x30]
or rcx, 0xffffffffffffffff
mov eax, r11d
mov dword [rsp + 0x48], r12d
cdq
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], ebx
sub eax, edx
lea rdi, [rsp + 0x60]
sar eax, 1
mov r10d, eax
mov eax, dword [rsp + 0x54]
cdq
sub eax, edx
sar eax, 1
sub r10d, eax
mov eax, ebx
cdq
mov dword [rsp + 0x30], r10d
sub eax, edx
sar eax, 1
mov r8d, eax
mov eax, dword [rsp + 0x50]
cdq
sub eax, edx
xor edx, edx
sar eax, 1
sub r8d, eax
xor eax, eax
repne scasw ax, word [rdi]
mov dword [rsp + 0x28], r8d
lea rax, [rsp + 0x60]
not rcx
movsxd r9, eax
xor r8d, r8d
dec rcx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.USER32.dll_DrawStateW]
mov rdi, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14005ba60
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x270
pop r12
pop rsi
pop rbp
ret
Function at 0x14001da00
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rbp
push rsi
push r12
sub rsp, 0x478
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov eax, dword [rdx + 0x10]
mov r12d, 1
mov rbp, rcx
test r12b, al
mov ebx, 0
mov ecx, 3
cmovne ebx, ecx
mov rsi, rdx
test al, 4
je 0x14001da49
lea r12d, [rcx + 0x1e]
or ebx, 4
mov rcx, qword [rbp + 8]
lea rdx, [rsp + 0x260]
mov r8d, 0x100
mov qword [rsp + 0x4b0], rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [rbp + 0x48], 0
jne 0x14001dad2
call qword [sym.imp.UxTheme.dll_IsThemeActive]
test eax, eax
je 0x14001dad2
mov rdx, qword [rsi + 0x20]
or rcx, 0xffffffffffffffff
xor eax, eax
lea r10, [rsi + 0x28]
lea rdi, [rsp + 0x260]
mov r9d, ebx
repne scasw ax, word [rdi]
mov qword [rsp + 0x40], r10
mov dword [rsp + 0x38], eax
not rcx
mov dword [rsp + 0x30], 0x25
lea rax, [rsp + 0x260]
dec rcx
mov r8d, 1
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.UxTheme.dll_DrawThemeText]
jmp 0x14001dbed
mov rcx, qword [rsi + 0x20]
mov qword [rsp + 0x470], r13
call qword [sym.imp.GDI32.dll_GetTextColor]
test byte [rsi + 0x10], 4
mov r13d, eax
je 0x14001daf4
mov edx, 0x828282
jmp 0x14001db05
cmp byte [rbp + 0x48], 0
mov edx, 8
mov eax, 0xff0000
cmovne edx, eax
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.GDI32.dll_SetTextColor]
mov rcx, qword [rsi + 0x20]
mov edx, 1
call qword [sym.imp.GDI32.dll_SetBkMode]
mov rcx, qword [rbp + 8]
lea rdx, [rsp + 0x60]
mov r8d, 0x100
call qword [sym.imp.USER32.dll_GetWindowTextW]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x60]
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov r11d, dword [rsi + 0x34]
mov ebx, dword [rsi + 0x30]
or rcx, 0xffffffffffffffff
mov eax, r11d
mov dword [rsp + 0x48], r12d
cdq
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], ebx
sub eax, edx
lea rdi, [rsp + 0x60]
sar eax, 1
mov r10d, eax
mov eax, dword [rsp + 0x54]
cdq
sub eax, edx
sar eax, 1
sub r10d, eax
mov eax, ebx
cdq
mov dword [rsp + 0x30], r10d
sub eax, edx
sar eax, 1
mov r8d, eax
mov eax, dword [rsp + 0x50]
cdq
sub eax, edx
xor edx, edx
sar eax, 1
sub r8d, eax
xor eax, eax
repne scasw ax, word [rdi]
mov dword [rsp + 0x28], r8d
lea rax, [rsp + 0x60]
not rcx
movsxd r9, eax
xor r8d, r8d
dec rcx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.USER32.dll_DrawStateW]
mov rcx, qword [rsi + 0x20]
mov edx, r13d
call qword [sym.imp.GDI32.dll_SetTextColor]
mov r13, qword [rsp + 0x470]
mov rdi, qword [rsp + 0x4b0]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14005ba60
add rsp, 0x478
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400208b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rbx, qword [r8]
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
test rbx, rbx
jne 0x1400208dc
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x50], r12
xor r12d, r12d
mov qword [rsp + 0x58], r13
mov qword [r8], r12
mov r13d, 0x400000
nop word [rax + rax]
mov rcx, qword [rbp]
mov r8d, ebx
cmp rbx, r13
lea r9, [rsp + 0x60]
mov rdx, rsi
cmova r8d, r13d
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x60]
add qword [rdi], rdx
add rsi, rdx
sub rbx, rdx
test eax, eax
je 0x140020944
test edx, edx
je 0x140020940
test rbx, rbx
jne 0x140020900
xor eax, eax
jmp 0x14002094a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12, qword [rsp + 0x50]
mov r13, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400220b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov rdi, rcx
mov rcx, rdx
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400220fa
test al, 0x10
jne 0x1400220fa
mov al, 1
jmp 0x140022163
lea rdx, [0x140089678]
lea rcx, [0x140089680]
call fcn.140007130
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14000264c
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.14000272c
lea rcx, [rdi + 0x8fb0]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x28]
call fcn.14000272c
mov rcx, rax
lea rdx, [0x14008a1a0]
call fcn.140002680
nop
lea rcx, [rsp + 0x28]
call fcn.140001624
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14005ba60
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x140022180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov rdi, rcx
mov rcx, rdx
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400221ca
test al, 0x10
je 0x1400221ca
mov al, 1
jmp 0x140022233
lea rdx, [0x140089678]
lea rcx, [0x1400881fc]
call fcn.140007130
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14000264c
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.14000272c
lea rcx, [rdi + 0x8fb0]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x28]
call fcn.14000272c
mov rcx, rax
lea rdx, [0x14008a1a0]
call fcn.140002680
nop
lea rcx, [rsp + 0x28]
call fcn.140001624
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14005ba60
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret