joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4173e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x210], ecx
push esi
xor edi, edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41743c
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x184
push dword [ebp - 0x210]
call fcn.0047ab70
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
test al, 0x10
je 0x41745c
mov ecx, esi
mov edi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417447
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 2
cmp word [esi], bx
je 0x4174ba
test edi, edi
je 0x417488
push esi
push edi
push 0x4a54c0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00401040
add esp, 0x14
lea eax, [ebp - 0x20c]
jmp 0x41748a
mov eax, esi
push eax
push ebx
call fcn.0047cc20
mov ecx, esi
mov ebx, eax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4174a0
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 2
cmp word [esi], ax
jne 0x417461
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d33b
mov esp, ebp
pop ebp
ret

Function at 0x417900
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x2b4
lea eax, [ebp - 0x2b8]
mov ebx, ecx
push 0
push eax
call fcn.0047ee80
add esp, 0xc
lea eax, [ebp - 0x2b8]
push 0x4010
push 0x2b4
push eax
push 0x20
push str.a.txt
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 0x2b8]
mov edi, eax
test ecx, ecx
je 0x41795e
push ecx
call dword [sym.imp.USER32.dll_DestroyIcon]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x1003
push ebx
call edi
push 0x2b4
lea eax, [ebp - 0x2b8]
push 0
push eax
call fcn.0047ee80
add esp, 0xc
lea eax, [ebp - 0x2b8]
push 0x4011
push 0x2b4
push eax
push 0x20
push str.a.txt
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 0x2b8]
mov dword [ebp - 0x2bc], eax
test ecx, ecx
je 0x4179c0
push ecx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x2bc]
push eax
push 1
push 0x1003
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
Function at 0x4189f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b3a24]
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], eax
push edx
push eax
mov dword [ebp - 4], esi
xor edi, edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x418a41
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0xc]
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x418a41
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x418a93
cmp edi, 4
jbe 0x418a93
mov eax, dword [ebx]
sub edi, 4
push eax
push 8
push dword [0x4b3a28]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x418a93
push edi
lea ecx, [ebx + 4]
push ecx
lea eax, [ebp - 4]
push eax
push esi
call fcn.004437e0
add esp, 0x10
cmp eax, 1
je 0x418a93
push esi
push 0
push dword [0x4b3a28]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
xor ecx, ecx
jmp 0x418a96
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x418a9f
mov dword [eax], ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x2000
mov esi, edx
mov dword [ebp - 4], ecx
call fcn.0047d5a7
add esp, 4
mov edi, eax
push dword [ebp + 8]
push 0
push esi
push 0xfff
push edi
call fcn.00401030
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0048504c
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x4196e9
cmp eax, 0xfff
ja 0x4196e9
je 0x4196e9
lea esi, [edi + eax*2]
jmp 0x4196f8
xor eax, eax
lea esi, [edi + 0x1ffe]
mov word [edi + 0x1ffe], ax
push 0
push edi
call fcn.0047d1a0
mov ebx, eax
test ebx, ebx
je 0x41972c
push 0
mov ecx, esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
sub ecx, edi
sar ecx, 1
push ecx
push ebx
push dword [eax + 0x414]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.00457d90
add esp, 4
push edi
call fcn.00457d90
add esp, 4
sub esi, edi
sar esi, 1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x140], edx
lea ecx, [ebp - 0x138]
mov edx, ecx
push edi
test esi, esi
je 0x419d71
mov edi, 0x10
movzx eax, byte [esi]
lea esi, [esi + 1]
shr eax, 4
movzx eax, byte [eax + str.0123456789ABCDEF]
mov byte [ecx], al
lea ecx, [edx + 2]
movzx eax, byte [esi - 1]
and eax, 0xf
movzx eax, byte [eax + str.0123456789ABCDEF]
mov byte [edx + 1], al
mov edx, ecx
sub edi, 1
jne 0x419d42
jmp 0x419db8
mov edi, str._____________ERROR______________
lea eax, [ebp - 0x138]
xor esi, esi
mov ecx, 0x134
sub edi, eax
lea eax, [ecx + 0x7ffffeca]
test eax, eax
je 0x419d9f
mov al, byte [edi + edx]
test al, al
je 0x419d9f
mov byte [edx], al
inc esi
inc edx
sub ecx, 1
jne 0x419d85
test ecx, ecx
lea eax, [edx - 1]
lea ecx, [ebp - 0x138]
cmovne eax, edx
mov byte [eax], 0
lea eax, [esi - 1]
cmovne eax, esi
add ecx, eax
push dword [ebp - 0x140]
lea eax, [ebp - 0x13c]
mov word [ecx], 0x2a20
push str._s_r_n
push 0
push 0
push eax
add ecx, 2
lea eax, [ebp - 4]
sub eax, ecx
mov dword [ebp - 0x13c], ecx
push eax
push ecx
call fcn.0041d600
add esp, 0x1c
lea eax, [ebp - 0x148]
lea ecx, [ebp - 0x138]
push 0
push eax
mov eax, dword [ebp - 0x13c]
sub eax, ecx
push eax
mov eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
Function at 0x41f3f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x31c], eax
mov edi, ecx
xor eax, eax
push 0xfe
push eax
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x102]
push eax
call fcn.0047ee80
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x30c], ax
lea eax, [ebp - 0x30a]
push eax
call fcn.0047ee80
add esp, 0x18
mov dword [ebp - 0x314], 0x100
mov dword [ebp - 0x318], 0x208
test esi, esi
jne 0x41f47d
push 0x2e
push ebx
call fcn.0047eb9c
add esp, 8
mov esi, 0x4a76b0
test eax, eax
cmovne esi, eax
push 0
push esi
call fcn.0047d0c0
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x310]
push eax
push 1
push 0
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f5bf
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0
push dword [ebp - 0x310]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x310]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41f5bf
cmp word [ebp - 0x104], si
je 0x41f5bf
push esi
lea eax, [ebp - 0x104]
push eax
call fcn.0047d0c0
mov dword [edi + 8], eax
lea eax, [ebp - 0x310]
push eax
push 1
push esi
lea eax, [ebp - 0x104]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f560
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x30c]
push eax
push esi
push esi
push esi
push dword [ebp - 0x310]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41f554
cmp word [ebp - 0x30c], ax
je 0x41f554
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.0047d0c0
mov dword [edi + 0xc], eax
push dword [ebp - 0x310]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x31c]
test eax, eax
je 0x41f593
push eax
lea eax, [ebp - 0x104]
mov ecx, edi
push eax
push ebx
call fcn.0041f5e0
test al, al
je 0x41f593
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret 0xc
push str.open
lea eax, [ebp - 0x104]
mov ecx, edi
push eax
push ebx
call fcn.0041f5e0
pop edi
test al, al
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d33b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4248b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
test ecx, ecx
je 0x424954
push 0x104
lea edx, [ebp - 0x108]
call fcn.004246e0
add esp, 4
lea edi, [eax + 1]
cmp edi, 1
je 0x424954
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x424954
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.0047efe0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x4b4e44]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42494d
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
Function at 0x4261b0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4b522c], 1
mov eax, edx
push ebx
push esi
push edi
mov dword [ebp - 0x464], eax
mov ebx, ecx
je 0x426337
lea ecx, [ebp - 0x210]
mov esi, eax
mov eax, ecx
mov edx, 0x104
sub esi, eax
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x42620e
movzx eax, word [esi + ecx]
test ax, ax
je 0x42620e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4261f0
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x210]
mov ax, word [ebp - 0x210]
mov edi, ecx
test ax, ax
je 0x426252
movzx edx, ax
cmp dx, 0x5c
je 0x426243
cmp dx, 0x2f
je 0x426243
add ecx, 2
jmp 0x426248
add ecx, 2
mov edi, ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x426232
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x464], esi
cmp esi, 0xffffffff
je 0x426337
nop word [eax + eax]
cmp dword [0x4b522c], 1
je 0x426337
test byte [ebp - 0x460], 0x10
je 0x426314
cmp word [ebp - 0x434], 0x2e
jne 0x4262c5
mov ax, word [ebp - 0x432]
cmp ax, 0x2e
jne 0x4262bb
cmp word [ebp - 0x430], 0
jmp 0x4262be
test ax, ax
sete al
test al, al
jne 0x42631a
lea esi, [ebp - 0x434]
mov edx, 0x104
mov eax, edi
sub esi, edi
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4262f2
movzx ecx, word [esi + eax]
test cx, cx
je 0x4262f2
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4262d4
test edx, edx
lea ecx, [eax - 2]
lea edx, [ebp - 0x210]
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov ecx, ebx
call fcn.00426350
mov esi, dword [ebp - 0x464]
jmp 0x42631a
inc dword [ebx + 0x624]
lea eax, [ebp - 0x460]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x426280
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
Function at 0x426900
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
push 8
push ebx
mov dword [ebp - 0x41c], ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0x3ea
mov esi, eax
mov dword [ebp - 0x424], 0
push ebx
mov dword [ebp - 0x418], esi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4269eb
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esi + 4]
xor edi, edi
lea edx, [ebp - 0x414]
mov dword [ebp - 0x420], ecx
lea ebx, [ecx + 0x208]
movzx eax, word [edx]
cmp eax, 9
je 0x426984
cmp eax, 0x20
jne 0x426989
add edx, 2
jmp 0x426977
test ax, ax
je 0x4269cc
mov esi, eax
cmp si, 0x2e
mov word [ecx], si
mov eax, edx
cmovne eax, edi
add edx, 2
mov edi, eax
add ecx, 2
movzx eax, word [edx]
mov esi, eax
test ax, ax
jne 0x426990
mov edx, dword [ebp - 0x420]
cmp ecx, edx
jbe 0x4269c6
cmp word [ecx - 2], 0x20
jne 0x4269c6
add ecx, 0xfffffffe
cmp ecx, edx
ja 0x4269b8
mov esi, dword [ebp - 0x418]
xor eax, eax
mov word [ecx], ax
test edi, edi
jne 0x4269e5
sub ebx, ecx
push str..mpq
sar ebx, 1
push ebx
push ecx
call fcn.00403240
mov ebx, dword [ebp - 0x41c]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f2
push ebx
call edi
test eax, eax
je 0x426a10
push 0x104
lea ecx, [esi + 0x20c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x3f0
push ebx
call edi
mov edi, eax
test edi, edi
je 0x426aae
push edi
add esi, 0x414
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x426aa9
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00480a05
add esp, 8
test eax, eax
je 0x426aae
lea edx, [ebp - 0x20c]
mov ecx, 0x104
sub edx, esi
nop word [eax + eax]
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x426a8e
movzx eax, word [edx + esi]
test ax, ax
je 0x426a8e
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x426a70
test ecx, ecx
lea eax, [esi - 2]
cmovne eax, esi
mov esi, dword [ebp - 0x418]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 0x624], ecx
jmp 0x426ab4
xor eax, eax
mov word [esi], ax
mov esi, dword [ebp - 0x418]
push 0x3f6
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x426adb
lea eax, [ebp - 0x424]
mov ecx, ebx
push eax
call fcn.00417830
add esp, 4
mov dword [esi + 0x628], eax
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
Function at 0x4274d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x4275aa
cmp word [esi], 0
je 0x4275aa
test edi, edi
je 0x42755e
cmp word [edi], 0
je 0x42755e
lea ecx, [ebp - 0x20c]
mov edx, 0x104
mov eax, ecx
sub esi, eax
nop dword [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x42753e
movzx eax, word [esi + ecx]
test ax, ax
je 0x42753e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x427520
lea eax, [ecx - 2]
test edx, edx
push edi
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.0047c3d0
lea esi, [ebp - 0x20c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4275aa
test al, 0x10
je 0x427584
pop edi
pop esi
mov eax, 0x10b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x427597
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x427597
push esi
push eax
push ebx
call fcn.00403240
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
Function at 0x427a30
Capabilities:
Acquire debug privileges
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.MPQEditor_MixScanner_Event
xor edi, edi
mov dword [ebp - 0x108], ecx
push edi
push 0x100000
mov esi, 0x236
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov ebx, eax
test ebx, ebx
jne 0x427b22
mov esi, dword [ebp - 0x108]
push str.SeDebugPrivilege
mov esi, dword [esi + 0x28]
call fcn.004780f0
push esi
push ebx
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x427aaf
push ecx
push 0x2c0
push ecx
xor edx, edx
mov ecx, ebx
call fcn.00418e40
add esp, 0xc
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x427ab7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x427c59
push str.MPQEditor_MixScanner_Event
push esi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov ebx, eax
test ebx, ebx
jne 0x427b22
nop word [eax + eax]
mov eax, dword [ebp - 0x108]
push 0x1f4
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x427b86
cmp edi, 0x2710
jae 0x427b70
push str.MPQEditor_MixScanner_Event
push 0
push 0x100000
add edi, 0x1f4
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov ebx, eax
test ebx, ebx
je 0x427ae0
mov edi, dword [ebp - 0x108]
push 0xea60
push 0
mov dword [ebp - 0x10c], ebx
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x110]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, 0
je 0x427c49
sub eax, 1
je 0x427b9c
sub eax, 0x101
jne 0x427c4e
mov esi, 0x5b4
jmp 0x427c4e
pop edi
pop esi
mov eax, 0x5b4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x4c7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
push 0x80
push edi
call fcn.004275c0
add esp, 8
xor esi, esi
nop dword [eax]
push esi
push str.WAR3_MIX__04u
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.00401040
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x108], eax
test eax, eax
je 0x427c35
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x427c29
cmp dword [eax], 0x2d58494d
jne 0x427c22
cmp dword [eax + 4], 0x504d5544
jne 0x427c22
cmp dword [eax + 8], 0
je 0x427c22
push eax
push esi
push 0x1406
push dword [edi + 0x3c]
call dword [sym.imp.USER32.dll_PostMessageW]
inc esi
jmp 0x427c35
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [edi + 0x34], 2
jne 0x427c49
inc esi
cmp esi, 0x64
jb 0x427bb0
xor esi, esi
jmp 0x427c4e
mov esi, 0x4c7
test ebx, ebx
je 0x427c59
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
Function at 0x427ed0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
push 8
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0x40
mov ebx, eax
mov dword [ebp - 0x470], 0x44
lea eax, [ebp - 0x46c]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x428], xmm0
call fcn.0047ee80
add esp, 0xc
lea eax, [ebp - 0x418]
lea ecx, [ebx + 0x44]
mov edx, esi
push 0x104
push eax
call fcn.004274d0
add esp, 8
test eax, eax
jne 0x428013
lea ecx, [ebp - 0x210]
mov edx, 0x104
lea esi, [ebp - 0x418]
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x427f70
movzx eax, word [esi + ecx]
test ax, ax
je 0x427f70
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x427f52
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x210]
mov cx, word [ebp - 0x210]
mov esi, eax
test cx, cx
je 0x427fb4
movzx edx, cx
cmp dx, 0x5c
je 0x427fa5
cmp dx, 0x2f
je 0x427fa5
add eax, 2
jmp 0x427faa
add eax, 2
mov esi, eax
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x427f94
xor eax, eax
mov word [esi - 2], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x24], eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [ebx + 0x34]
xor esi, eax
and esi, 1
xor dword [ebx + 0x34], esi
test al, 1
je 0x428009
mov ecx, edi
call fcn.00427ca0
jmp 0x428022
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x428022
push eax
push 0xcc
push edi
call fcn.0047ab70
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
Function at 0x428040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x4af480]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
push 8
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0x489
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x42822d
push 2
push 0xffffffffffffffff
push 0x100c
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x42821a
push eax
push esi
call fcn.00478eb0
mov esi, eax
test esi, esi
je 0x42821a
cmp dword [esi], 0x2d58494d
jne 0x42821a
cmp dword [esi + 4], 0x504d5544
jne 0x42821a
cmp dword [esi + 8], 0
je 0x42821a
sub edi, 0x486
je 0x42812e
sub edi, 1
je 0x4280f7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0xc]
push eax
push dword [ebx + 0xc]
push dword [ebx + 8]
call fcn.00403240
lea eax, [esi + 0x8c]
push eax
push dword [ebx + 4]
push dword [ebx]
call fcn.00403240
push 0
push 2
push 0x471
push dword [ebx + 0x38]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x42822d
xor eax, eax
push 0x206
push eax
mov word [esp + 0x78], ax
lea eax, [esp + 0x7a]
push eax
call fcn.0047ee80
add esp, 0xc
mov dword [esp + 0x14], 0
lea eax, [esp + 0x18]
push eax
call fcn.0047bca0
lea eax, [esp + 0x70]
mov dword [esp + 0x48], 0x77
mov dword [esp + 0x34], eax
lea eax, [esp + 0x18]
push eax
push dword [ebx + 0x3c]
mov dword [esp + 0x2c], 0x78
mov dword [esp + 0x5c], 0x4a81f0
call fcn.0047bc80
test eax, eax
je 0x42822d
push 0
push 0
push 2
push 0
push 2
push 0x10000000
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4281ea
push 0
lea ecx, [esp + 0x18]
push ecx
push dword [esi + 8]
lea ecx, [esi + 0x1000]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, dword [esi + 8]
mov edi, 0x70
push dword [esp + 0x10]
cmove edi, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4281f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebx + 0x3c]
test edi, edi
jne 0x428210
lea eax, [esp + 0x70]
push eax
push 0xe5
push 4
push ecx
call fcn.0047af20
add esp, 0x10
jmp 0x42822d
push 0xb6
push 1
push ecx
jmp 0x428225
push 0xae
push 1
push dword [esp + 0x18]
call fcn.0047af20
add esp, 0xc
mov ecx, dword [esp + 0x27c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret