joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026d70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rbp
push rsi
push r14
sub rsp, 0x50
xor r14d, r14d
mov dword [rsp + 0x34], 2
mov rbx, rdx
mov qword [r11 - 0x28], r14
lea rax, [r11 - 0x2c]
mov dword [r11 - 0x30], r14d
mov esi, 0x200
mov dword [r11 - 0x2c], r14d
mov ebp, 0xffffffff
mov dword [r11 - 0x38], r14d
lea rdx, [r11 - 0x28]
mov dword [r11 + 0x18], esi
lea r9, [r11 - 0x30]
mov dword [r11 + 0x20], ebp
lea r8, [r11 - 0x38]
mov qword [r11 - 0x48], rax
call fcn.140023780
test al, al
je 0x140026f88
test rbx, rbx
je 0x140026e91
movzx eax, word [rbx]
cmp r14w, ax
jae 0x140026df6
cmp ax, 0x20
ja 0x140026df6
movzx eax, word [rbx + 2]
add rbx, 2
cmp r14w, ax
jb 0x140026de2
movzx eax, word [rbx]
test ax, ax
je 0x140026e91
lea rdx, [rsp + 0x80]
mov rcx, rbx
call fcn.1400236a0
mov rbx, rax
test rax, rax
je 0x140026f88
nop
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140026e2f
cmp ax, 0x2c
jne 0x140026e35
add rbx, 2
jmp 0x140026e20
mov esi, dword [rsp + 0x80]
test ax, ax
je 0x140026e91
lea rdx, [rsp + 0x34]
mov rcx, rbx
call fcn.1400236a0
test rax, rax
je 0x140026f88
movzx ecx, word [rax]
cmp cx, 0x20
je 0x140026e66
cmp cx, 0x2c
jne 0x140026e6c
add rax, 2
jmp 0x140026e57
test cx, cx
je 0x140026e91
lea rdx, [rsp + 0x88]
mov rcx, rax
call fcn.1400236a0
test rax, rax
je 0x140026f88
mov ebp, dword [rsp + 0x88]
mov qword [rsp + 0x70], rdi
mov rbx, r14
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x140026ebd
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], r14w
jne 0x140026eb0
inc rbx
lea rcx, [rbx*2 + 0x38]
call fcn.140094b74
mov r8, rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r8], xmm0
movups xmmword [r8 + 0x10], xmm0
movups xmmword [r8 + 0x20], xmm0
mov qword [r8 + 0x30], rax
test rdi, rdi
je 0x140026f30
lea rcx, [rbx - 1]
mov r9d, 0x7ffffffe
lea rdx, [r8 + 0x30]
cmp rcx, r9
ja 0x140026f30
sub r9, rbx
sub rdi, rdx
lea rax, [r9 + rbx]
test rax, rax
je 0x140026f2c
movzx eax, word [rdi + rdx]
test ax, ax
je 0x140026f23
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x140026f02
jmp 0x140026f28
test rbx, rbx
jne 0x140026f2c
sub rdx, 2
mov word [rdx], r14w
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x34]
mov rdi, qword [rsp + 0x70]
mov dword [r8 + 0x20], ecx
mov dword [r8 + 0x1c], 0xffffffff
mov dword [r8 + 0x24], esi
mov dword [r8 + 0x28], eax
mov dword [r8 + 0x2c], ebp
test cl, 1
je 0x140026f62
lea rax, [r8 + 0x30]
mov qword [r8 + 0x10], rax
test cl, 2
je 0x140026f77
mov eax, dword [rsp + 0x38]
mov dword [r8 + 0x18], eax
mov eax, dword [rsp + 0x3c]
mov dword [r8 + 0x1c], eax
mov rax, r8
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x78]
xor eax, eax
add rsp, 0x50
pop r14
pop rsi
pop rbp
ret
Function at 0x140028680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push r12
sub rsp, 0xb0
mov rbx, rdx
xor esi, esi
movzx edx, r8w
mov rcx, rbx
lea r8d, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r12, rax
test rax, rax
je 0x1400288a7
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002889e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14002889e
movzx ecx, word [rax + 0xe]
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xd0], rbp
cmp cx, 8
jbe 0x140028705
cmp dword [rax + 0x10], esi
jne 0x140028705
mov eax, dword [rax]
mov ebp, esi
jmp 0x140028713
mov eax, dword [rax]
mov ebp, 1
mov edx, ebp
shl edx, cl
lea eax, [rax + rdx*4]
mov rcx, qword [0x1400e1230]
xor edx, edx
mov r8d, eax
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140028886
lea rax, [r14 + rbx]
mov r8d, r14d
mov rdx, rbx
mov qword [rsp + 0x78], rax
mov rcx, rdi
call fcn.1400b1500
test ebp, ebp
je 0x140028757
mov rdx, rdi
call fcn.140028200
xor ecx, ecx
mov r14, rsi
call qword [sym.imp.USER32.dll_GetDC]
mov rbp, rax
test rax, rax
je 0x140028871
mov rcx, rax
mov qword [rsp + 0x90], r15
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r15, rax
test rax, rax
je 0x14002885e
mov ebx, dword [rdi + 0x10]
mov eax, dword [rdi + 8]
mov qword [rsp + 0xa0], r13
mov r13d, dword [rdi + 4]
mov dword [rsp + 0x70], eax
cmp ebx, 3
je 0x1400287a9
mov dword [rdi + 0x10], esi
mov dword [rsp + 0x28], esi
lea r9, [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [rdi + 0x10], ebx
mov r14, rax
test rax, rax
jne 0x1400287ed
mov r8d, dword [rsp + 0x70]
mov edx, r13d
mov rcx, rbp
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r14, rax
test rax, rax
je 0x14002884d
mov rdx, r14
mov rcx, r15
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x60], 0xcc0020
mov r9d, r13d
mov dword [rsp + 0x58], esi
mov rbx, rax
mov rax, qword [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x50], rdi
xor edx, edx
mov qword [rsp + 0x48], rax
mov rcx, r15
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], eax
call qword [sym.imp.GDI32.dll_StretchDIBits]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r13, qword [rsp + 0xa0]
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r15, qword [rsp + 0x90]
mov rcx, qword [0x1400e1230]
mov r8, rdi
xor edx, edx
mov rsi, r14
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x98]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rax, rsi
add rsp, 0xb0
pop r12
pop rsi
pop rbx
ret
Function at 0x140029ed0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x130], rax
test rcx, rcx
je 0x140029f82
mov r8d, 0x104
lea rdx, [rsp + 0x20]
call fcn.140029cd0
lea rdi, [rax + 1]
cmp rdi, 1
je 0x140029f82
mov rdx, rdi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x140029f82
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1400b1500
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [0x1400e2e50]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140029f79
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rbx
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
jmp 0x140029f84
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140094850
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rdi
ret
Function at 0x14002b960
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rbx, rcx
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov edx, 0x3ea
mov dword [rsp + 0x20], 0
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdi, rax
test rax, rax
je 0x14002ba1f
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jne 0x14002b9d7
xor r8d, r8d
mov edx, 0x88
mov rcx, rbx
call fcn.140091750
xor al, al
jmp 0x14002bba6
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002ba1f
lea r9, [rsp + 0x30]
mov edx, 3
mov r8d, 0x1a1
mov rcx, rbx
call fcn.140091bf0
cmp eax, 6
jne 0x14002b9d0
mov byte [rsi + 0x638], 1
mov edx, 0x3f2
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdi, rax
test rax, rax
je 0x14002bacc
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
je 0x14002bacc
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, rbx
cmp eax, 0xffffffff
jne 0x14002ba8a
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x10c
call fcn.140091750
xor al, al
jmp 0x14002bba6
mov r9d, 0x104
lea r8, [rsp + 0x30]
mov edx, 0x3ea
call qword [sym.imp.USER32.dll_GetDlgItemTextW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002bacc
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x10d
mov rcx, rbx
call fcn.140091750
xor al, al
jmp 0x14002bba6
mov edx, 0x3f0
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdi, rax
test rax, rax
je 0x14002bb50
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x14002bb50
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jne 0x14002bb13
xor r8d, r8d
mov edx, 0x9a
mov rcx, rbx
call fcn.140091750
xor al, al
jmp 0x14002bba6
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14002bb50
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x89
mov rcx, rbx
call fcn.140091750
xor al, al
jmp 0x14002bba6
mov edx, 0x3f6
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
test rax, rax
je 0x14002bb9b
lea r8, [rsp + 0x20]
mov rcx, rbx
call fcn.14001a530
cmp dword [rsp + 0x20], 0
je 0x14002bb7e
cmp eax, 0x80000
jbe 0x14002bb9b
mov edx, 1
mov r9d, 0x80000
mov r8d, 0xc7
mov rcx, rbx
call fcn.140091bf0
xor al, al
jmp 0x14002bba6
cmp qword [rsi + 0x620], 0
sete al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140094850
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14002bbd0
Capabilities:
Get graphical window text
Parse credit card information

Disassembly:
push rbp
push rsi
sub rsp, 0xa48
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0xa30], rax
mov edx, 0x3ea
mov esi, r9d
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rbp, rax
test rax, rax
je 0x14002be10
test esi, esi
jle 0x14002be10
mov qword [rsp + 0xa68], rbx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0xa70], rdi
mov r8d, 0x104
mov rcx, rax
mov qword [rsp + 0xa40], r14
call qword [sym.imp.USER32.dll_GetWindowTextW]
movzx eax, word [rsp + 0x20]
lea rcx, [rsp + 0x20]
xor r14d, r14d
lea rbx, [rsp + 0x20]
mov edi, r14d
test ax, ax
je 0x14002bc78
cmp ax, 0x5c
je 0x14002bc66
cmp ax, 0x2f
je 0x14002bc66
add rcx, 2
jmp 0x14002bc6d
add rcx, 2
mov rbx, rcx
movzx eax, word [rcx]
test ax, ax
jne 0x14002bc54
movzx eax, word [rbx]
movzx ecx, ax
call fcn.1400a13c8
cmp eax, 0x44
je 0x14002bc92
movzx ecx, word [rbx]
call fcn.1400a13c8
cmp eax, 0x52
jne 0x14002bcab
movzx ecx, word [rbx + 2]
call fcn.1400a13c8
cmp eax, 0x46
jne 0x14002bcab
cmp word [rbx + 4], 0x2e
jne 0x14002bcab
add rbx, 6
movzx ecx, word [rbx]
test cx, cx
je 0x14002bcda
nop dword [rax]
nop word [rax + rax]
add rbx, 2
cmp cx, 0x2e
mov rax, rbx
cmovne rax, rdi
movzx ecx, word [rbx]
mov rdi, rax
test cx, cx
jne 0x14002bcc0
dec esi
test rdi, rdi
cmovne rbx, rdi
mov rdi, qword [rsp + 0xa70]
test rbx, rbx
mov rbx, qword [rsp + 0xa68]
jne 0x14002bdfb
mov rcx, qword [0x1400e1228]
lea r8, [rsp + 0x230]
mov r9d, 0x400
mov edx, 0x87
call qword [sym.imp.USER32.dll_LoadStringW]
movsxd rdx, eax
test eax, eax
jle 0x14002bd51
mov rcx, r14
nop word [rax + rax]
movzx eax, word [rsp + rcx*2 + 0x230]
cmp ax, 0x7c
cmove ax, r14w
mov word [rsp + rcx*2 + 0x230], ax
inc rcx
cmp rcx, rdx
jl 0x14002bd30
test esi, esi
jg 0x14002bdfb
cmp word [rsp + 0x230], r14w
je 0x14002bdfb
mov rax, 0xffffffffffffffff
lea rdx, [rsp + 0x230]
mov rcx, rax
nop word [rax + rax]
cmp word [rdx + rcx*2 + 2], r14w
lea rcx, [rcx + 1]
jne 0x14002bd80
lea rdx, [rsp + 0x232]
lea rcx, [rdx + rcx*2]
lea rdx, [rsp + 0x20]
nop dword [rax]
cmp word [rdx + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x14002bda0
lea rdx, [rsp + 0x20]
lea rdx, [rdx + rax*2]
movzx eax, word [rcx]
cmp ax, 0x2a
je 0x14002bdc4
cmp ax, 0x3f
jne 0x14002bdca
add rcx, 2
jmp 0x14002bdb5
test ax, ax
je 0x14002bde9
nop
cmp ax, 0x3b
je 0x14002bde9
add rcx, 2
mov word [rdx], ax
add rdx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x14002bdd0
mov word [rdx], r14w
mov rcx, rbp
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov r14, qword [rsp + 0xa40]
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rsp + 0xa30]
xor rcx, rsp
call fcn.140094850
add rsp, 0xa48
pop rsi
pop rbp
ret
Function at 0x14002be30
Capabilities:
Enumerate files on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x4a0
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x480], rax
cmp dword [0x1400e3148], 1
mov r10, rdx
mov rdi, rcx
je 0x14002bff0
mov qword [r11 + 0x18], rbx
lea rax, [r11 - 0x238]
mov r9, r10
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
lea rdx, [r11 - 0x238]
sub r9, rax
mov r8d, 0x104
nop word [rax + rax]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x14002beb3
movzx eax, word [r9 + rdx]
test ax, ax
je 0x14002beb3
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x14002be90
test r8, r8
lea rax, [rdx - 2]
lea rbx, [rsp + 0x270]
cmovne rax, rdx
xor ebp, ebp
mov word [rax], bp
lea rax, [rsp + 0x270]
movzx ecx, word [rsp + 0x270]
test cx, cx
je 0x14002bf01
cmp cx, 0x5c
je 0x14002bef2
cmp cx, 0x2f
je 0x14002bef2
add rax, 2
jmp 0x14002bef9
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
jne 0x14002bee0
lea rdx, [rsp + 0x20]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14002bfd8
nop dword [rax]
cmp dword [0x1400e3148], 1
je 0x14002bfd8
test byte [rsp + 0x20], 0x10
je 0x14002bfb3
cmp word [rsp + 0x4c], 0x2e
jne 0x14002bf58
movzx eax, word [rsp + 0x4e]
cmp ax, 0x2e
jne 0x14002bf4e
cmp word [rsp + 0x50], bp
jmp 0x14002bf51
test ax, ax
sete al
test al, al
jne 0x14002bfb9
lea r8, [rsp + 0x4c]
mov edx, 0x104
sub r8, rbx
mov rax, rbx
nop dword [rax + rax]
lea rcx, [rdx + 0x7ffffefa]
test rcx, rcx
je 0x14002bf93
movzx ecx, word [r8 + rax]
test cx, cx
je 0x14002bf93
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x14002bf70
test rdx, rdx
lea rcx, [rax - 2]
lea rdx, [rsp + 0x270]
cmovne rcx, rax
mov word [rcx], bp
mov rcx, rdi
call fcn.14002c010
jmp 0x14002bfb9
inc dword [rdi + 0x630]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14002bf20
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbp, qword [rsp + 0x498]
mov rbx, qword [rsp + 0x4c0]
mov rsi, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140094850
add rsp, 0x4a0
pop rdi
ret
Function at 0x14002c680
Capabilities:
Get graphical window text

Disassembly:
mov r11, rsp
push rbp
push r14
sub rsp, 0x468
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov qword [r11 + 0x18], rsi
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [r11 + 0x20], rdi
mov rbp, rcx
mov qword [r11 - 0x18], r15
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
xor r15d, r15d
mov edx, 0x3ea
mov rcx, rbp
mov dword [rsp + 0x20], r15d
mov r14, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edi, 0x104
test rax, rax
je 0x14002c7cf
mov r8d, edi
lea rdx, [rsp + 0x240]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [r14 + 8]
mov r10d, r15d
mov r11, rcx
lea r9, [rcx + 0x208]
lea rdx, [rsp + 0x240]
nop dword [rax]
movzx r8d, word [rdx]
cmp r8w, 9
je 0x14002c722
cmp r8w, 0x20
jne 0x14002c728
add rdx, 2
jmp 0x14002c710
test r8w, r8w
je 0x14002c773
nop
cmp r8w, 0x2e
mov word [rcx], r8w
movzx r8d, word [rdx + 2]
mov rax, rdx
cmovne rax, r10
add rdx, 2
add rcx, 2
mov r10, rax
test r8w, r8w
jne 0x14002c730
cmp rcx, r11
jbe 0x14002c773
nop dword [rax + rax]
cmp word [rcx - 2], 0x20
lea rax, [rcx - 2]
jne 0x14002c773
mov rcx, rax
cmp rax, r11
ja 0x14002c760
mov word [rcx], r15w
test r10, r10
jne 0x14002c7cf
sub r9, rcx
mov edx, 0x7ffffffe
sar r9, 1
lea rax, [r9 - 1]
cmp rax, rdx
ja 0x14002c7cf
sub rdx, r9
lea r8, str..mpq
sub r8, rcx
nop dword [rax]
lea rax, [rdx + r9]
test rax, rax
je 0x14002c7c0
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14002c7c0
mov word [rcx], ax
add rcx, 2
sub r9, 1
jne 0x14002c7a0
test r9, r9
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
mov edx, 0x3f2
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetDlgItem]
test rax, rax
je 0x14002c7f5
lea rdx, [r14 + 0x210]
mov r8d, edi
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, 0x3f0
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rsi, rax
test rax, rax
je 0x14002c8a6
mov qword [rsp + 0x488], rbx
mov rcx, rax
lea rbx, [r14 + 0x418]
call qword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x14002c89a
mov r8d, edi
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14009b63c
test eax, eax
je 0x14002c89e
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop word [rax + rax]
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x14002c882
movzx eax, word [rcx + rbx]
test ax, ax
je 0x14002c882
mov word [rbx], ax
add rbx, 2
sub rdi, 1
jne 0x14002c860
test rdi, rdi
lea rax, [rbx - 2]
cmovne rax, rbx
mov word [rax], r15w
mov dword [r14 + 0x630], r15d
jmp 0x14002c89e
mov word [rbx], r15w
mov rbx, qword [rsp + 0x488]
mov edx, 0x3f6
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r15, qword [rsp + 0x460]
mov rdi, qword [rsp + 0x498]
mov rsi, qword [rsp + 0x490]
test rax, rax
je 0x14002c8e5
lea r8, [rsp + 0x20]
mov rcx, rbp
call fcn.14001a530
mov dword [r14 + 0x634], eax
mov eax, 1
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140094850
add rsp, 0x468
pop r14
pop rbp
ret
Function at 0x14002d0a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, r9
mov rbx, r8
mov rsi, rcx
test rcx, rcx
je 0x14002d1b1
cmp word [rcx], 0
je 0x14002d1b1
xor ebp, ebp
test rdx, rdx
je 0x14002d13f
cmp word [rdx], bp
je 0x14002d13f
lea rax, [rsp + 0x20]
mov r8d, 0x104
sub rsi, rax
lea rcx, [rsp + 0x20]
nop dword [rax]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x14002d122
movzx eax, word [rsi + rcx]
test ax, ax
je 0x14002d122
mov word [rcx], ax
add rcx, 2
sub r8, 1
jne 0x14002d100
lea rax, [rcx - 2]
test r8, r8
cmovne rax, rcx
lea rcx, [rsp + 0x20]
mov word [rax], bp
call fcn.140093580
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002d1b1
test al, 0x10
je 0x14002d158
mov eax, 0x10b
jmp 0x14002d1b6
test rbx, rbx
je 0x14002d1ad
test rdi, rdi
je 0x14002d1ad
cmp rdi, 0x7fffffff
jbe 0x14002d172
mov word [rbx], bp
xor eax, eax
jmp 0x14002d1b6
mov ecx, 0x7ffffffe
sub rcx, rdi
sub rsi, rbx
nop dword [rax]
lea rax, [rcx + rdi]
test rax, rax
je 0x14002d19f
movzx eax, word [rsi + rbx]
test ax, ax
je 0x14002d19f
mov word [rbx], ax
add rbx, 2
sub rdi, 1
jne 0x14002d180
test rdi, rdi
lea rax, [rbx - 2]
cmovne rax, rbx
mov word [rax], bp
xor eax, eax
jmp 0x14002d1b6
mov eax, 2
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140094850
mov rbx, qword [rsp + 0x278]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002d6b0
Capabilities:
Acquire debug privileges
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r15
sub rsp, 0x150
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbp, rcx
lea r8, str.MPQEditor_MixScanner_Event
xor r15d, r15d
mov ecx, 0x100000
xor edx, edx
mov edi, r15d
mov ebx, 0x236
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rsi, rax
test rax, rax
jne 0x14002d7c1
mov ebx, dword [rbp + 0x4c]
lea rcx, str.SeDebugPrivilege
call fcn.14008e4c0
mov r8d, ebx
lea ecx, [rsi + 0x2a]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14002d747
xor edx, edx
mov r9d, 0x2c0
mov rcx, rax
call fcn.14001bd40
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14002d74f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x14002d8f5
lea r8, str.MPQEditor_MixScanner_Event
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rsi, rax
test rax, rax
jne 0x14002d7c1
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbp + 0x30]
mov edx, 0x1f4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14002d81b
cmp edi, 0x2710
jae 0x14002d811
lea r8, str.MPQEditor_MixScanner_Event
xor edx, edx
mov ecx, 0x100000
add edi, 0x1f4
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rsi, rax
test rax, rax
je 0x14002d780
mov rax, qword [rbp + 0x30]
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x178], r14
mov r9d, 0xea60
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rsi
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x14002d8da
sub eax, 1
je 0x14002d825
cmp eax, 0x101
jne 0x14002d8df
mov ebx, 0x5b4
jmp 0x14002d8df
mov eax, 0x5b4
jmp 0x14002d8f7
mov eax, 0x4c7
jmp 0x14002d8f7
mov edx, 0x80
mov rcx, rbp
call fcn.14002d1e0
mov ebx, r15d
movabs r14, 0x504d55442d58494d
nop
mov r9d, ebx
lea r8, str.WAR3_MIX__04u
mov edx, 0x80
lea rcx, [rsp + 0x40]
call fcn.140001040
xor edx, edx
lea r8, [rsp + 0x40]
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rdi, rax
test rax, rax
je 0x14002d8c4
xor r9d, r9d
mov qword [rsp + 0x20], r15
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x14002d8bb
cmp qword [rax], r14
jne 0x14002d8b2
cmp dword [rax + 8], r15d
je 0x14002d8b2
mov rcx, qword [rbp + 0x68]
mov r9, rax
mov r8d, ebx
mov edx, 0x1406
call qword [sym.imp.USER32.dll_PostMessageW]
inc ebx
jmp 0x14002d8c4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [rbp + 0x58], 2
jne 0x14002d8da
inc ebx
cmp ebx, 0x64
jb 0x14002d840
mov ebx, r15d
jmp 0x14002d8df
mov ebx, 0x4c7
mov r14, qword [rsp + 0x178]
test rsi, rsi
je 0x14002d8f5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140094850
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rsi
ret