joyce8/EMBER2024-capa huggingface dataset:
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 [0x4b5234], 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 [0x4b5234], 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.0047d2db
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.004809a5
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.0047d2db
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.0047c370
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.0047d2db
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.0047d2db
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.0047d2db
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.00478090
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.0047d2db
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.0047d2db
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.0047d2db
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.0047ee20
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.0047ab10
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d2db
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.00478e50
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.0047d2db
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.0047ee20
add esp, 0xc
mov dword [esp + 0x14], 0
lea eax, [esp + 0x18]
push eax
call fcn.0047bc40
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.0047bc20
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.0047aec0
add esp, 0x10
jmp 0x42822d
push 0xb6
push 1
push ecx
jmp 0x428225
push 0xae
push 1
push dword [esp + 0x18]
call fcn.0047aec0
add esp, 0xc
mov ecx, dword [esp + 0x27c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
Function at 0x4283b0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push 8
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
cmp dword [ebx + 0x20], 0
jne 0x428461
push 0x3ea
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4284d0
push 0x104
lea esi, [ebx + 0x44]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0
push 0
xor edx, edx
mov ecx, esi
call fcn.004274d0
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x428432
push eax
push eax
mov edx, str.Warcraft_III.exe
mov ecx, esi
call fcn.004274d0
add esp, 8
test eax, eax
je 0x428467
push 0
push 0
mov edx, str.Frozen_Throne.exe
mov ecx, esi
call fcn.004274d0
add esp, 8
mov ecx, eax
test eax, eax
je 0x428467
push esi
cmp ecx, 0x10b
je 0x428451
push 0x455
push 1
push edi
call fcn.0047aec0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0xcb
push 1
push edi
call fcn.0047aec0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x492
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4284d0
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x4284d0
mov ecx, 0x4b49d0
mov edx, 0x104
sub esi, ecx
nop dword [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4284be
movzx eax, word [esi + ecx]
test ax, ax
je 0x4284be
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4284a0
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
call fcn.00401500
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4284df
push eax
push edi
call dword [sym.imp.USER32.dll_KillTimer]
pop edi
pop esi
mov dword [ebx + 0x10], 0
mov eax, 1
pop ebx
ret
Function at 0x428e30
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 5
mov edi, ecx
mov dword [ebp - 0x210], edx
push str.http:
push edi
call fcn.004869c4
test eax, eax
lea esi, [edi + 0xa]
push 4
cmovne esi, edi
push str.map:
push esi
call fcn.004869c4
add esp, 0x18
lea ecx, [esi + 8]
test eax, eax
cmovne ecx, esi
mov esi, ecx
mov dword [ebp - 0x218], ecx
movzx eax, word [ecx]
test ax, ax
je 0x428eb6
mov edx, eax
nop dword [eax]
cmp dx, 0x5c
je 0x428ea1
cmp dx, 0x2f
je 0x428ea1
add ecx, 2
jmp 0x428ea6
add ecx, 2
mov esi, ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x428e90
mov dword [ebp - 0x218], esi
xor ebx, ebx
mov ecx, 0x4b0ec8
mov dword [ebp - 0x214], ebx
mov edx, dword [ebx + ecx]
test edx, edx
je 0x428fcc
mov ecx, esi
call fcn.004222a0
test eax, eax
je 0x428fd4
push 0x4b45c0
push 0
lea ecx, [ebp - 0x20c]
call fcn.00416700
mov edi, dword [ebx + 0x4b0ecc]
lea eax, [ebp - 0x20c]
mov edx, dword [ebp - 0x210]
lea esi, [eax + 2]
add esp, 8
xor ebx, ebx
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x428f10
sub eax, esi
sar eax, 1
je 0x428f36
lea ecx, [ebp + eax*2 - 0x20e]
cmp word [ecx], 0x5c
jne 0x428f36
sub ecx, 2
sub eax, 1
jne 0x428f28
test edi, edi
je 0x428f5f
cmp word [edi], 0x5c
jne 0x428f49
add edi, 2
cmp word [edi], 0x5c
je 0x428f40
mov ebx, edi
lea esi, [ebx + 2]
nop
mov cx, word [ebx]
add ebx, 2
test cx, cx
jne 0x428f50
sub ebx, esi
sar ebx, 1
test eax, eax
je 0x428f7f
lea esi, [eax + eax]
push esi
lea eax, [ebp - 0x20c]
push eax
push edx
call fcn.0047ef80
mov edx, dword [ebp - 0x210]
add esp, 0xc
add edx, esi
test edi, edi
je 0x428fae
test ebx, ebx
je 0x428fae
mov eax, 0x5c
lea esi, [ebx + ebx]
push esi
mov word [edx], ax
add edx, 2
push edi
push edx
mov dword [ebp - 0x21c], edx
call fcn.0047ef80
mov edx, dword [ebp - 0x21c]
add esp, 0xc
add edx, esi
mov esi, dword [ebp - 0x210]
xor eax, eax
push esi
mov word [edx], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x428ffb
mov ebx, dword [ebp - 0x214]
jmp 0x428fda
mov esi, dword [ebp - 0x210]
jmp 0x428fdf
mov esi, dword [ebp - 0x210]
mov ecx, 0x4b0ec8
add ebx, 8
mov dword [ebp - 0x214], ebx
cmp ebx, 0x128
jae 0x42900e
mov esi, dword [ebp - 0x218]
jmp 0x428ec3
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
mov word [esi], ax
xor ecx, ebp
pop esi
xor al, al
pop ebx
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
Function at 0x4329d0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 0x2000
xor ebx, ebx
mov dword [ebp - 0x18], edx
push ebx
push dword [0x4b3a28]
mov edi, ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x432a1d
lea eax, [ebx + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x10], edi
cmp edi, 0xffffffff
jne 0x432a4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x432b9c
push 0
push 0
push 1
push 0
push 1
push 0xc0000000
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x432a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x432b90
lea eax, [ebp - 8]
mov dword [ebp - 0x1c], ebx
push eax
push 0x100
push 0
push dword [ebp - 0x14]
call fcn.00437100
test al, al
je 0x432af7
push 0
push 8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0
push eax
push 5
push dword [ebp - 8]
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
call fcn.0043a390
push 0
push 4
lea eax, [ebp - 0x14]
push eax
push 0x27
push dword [ebp - 8]
call fcn.0043a390
push dword [ebp - 8]
call fcn.00436ec0
mov eax, dword [ebp - 0x14]
and eax, 0x404
cmp eax, 0x404
jne 0x432af2
mov edi, 0x200
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], edi
jmp 0x432b1e
mov edi, dword [ebp - 0x20]
jmp 0x432b1e
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, 0x1000000
jae 0x432b79
cmp dword [ebp - 0x24], 0
jne 0x432b79
mov eax, dword [ebp - 0x1c]
mov ebx, eax
test eax, eax
jne 0x432b7e
test edi, edi
je 0x432b7e
mov esi, 0x2000
lea eax, [ebp - 0xc]
push 0
cmp edi, esi
push eax
cmovb esi, edi
push esi
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], esi
jne 0x432b6f
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0xc], esi
jne 0x432b65
sub edi, esi
jne 0x432b22
mov esi, dword [ebp - 4]
jmp 0x432b7e
mov esi, dword [ebp - 4]
mov ebx, 0x70
jmp 0x432b7e
mov esi, dword [ebp - 4]
mov ebx, 0x570
jmp 0x432b7e
mov ebx, 0x3ee
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x432b8d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x10]
cmp edi, 0xffffffff
je 0x432b9c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
push dword [0x4b3a28]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434860
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x218], edx
push edi
push edi
push 0xffffffffffffffff
push eax
mov ebx, ecx
mov dword [ebp - 0x21c], eax
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
xor esi, esi
mov dword [ebp - 0x220], eax
test eax, eax
je 0x434911
mov eax, dword [0x4b4fa4]
test eax, eax
je 0x4348af
test byte [eax + 0x40], 1
jne 0x434924
push 0x104
lea eax, [ebp - 0x214]
push eax
push esi
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, 2
cmp eax, 0xffffffff
je 0x434908
test al, 0x10
lea eax, [ebp - 0x214]
push eax
je 0x4348fc
mov edx, dword [ebp - 0x218]
mov ecx, ebx
call fcn.004345e0
add esp, 4
jmp 0x434906
push ebx
call dword [ebp - 0x218]
add esp, 8
mov edi, eax
inc esi
cmp esi, dword [ebp - 0x220]
jb 0x4348a0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
Function at 0x434940
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [ebp + 8]
lea edx, [esp + 4]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
push edi
xor edi, edi
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x28], xmm0
mov ecx, dword [esi + 4]
mov dword [esi + 0x2c], eax
mov eax, dword [esi]
mov dword [esp + 0x20], 0xc6
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], 1
call fcn.00415540
mov ebx, dword [esi + 0x1c]
test ebx, ebx
je 0x4349cf
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, 2
cmp eax, 0xffffffff
je 0x4349ca
push ebx
test al, 0x10
je 0x4349bf
mov edx, fcn.00433fc0
mov ecx, esi
call fcn.004345e0
add esp, 4
lea ebx, [esi + 0x28]
mov edi, eax
jmp 0x4349eb
push esi
call fcn.00433fc0
add esp, 8
mov edi, eax
lea ebx, [esi + 0x28]
jmp 0x4349eb
mov eax, dword [esi + 0x28]
lea ebx, [esi + 0x28]
test eax, eax
je 0x4349eb
push eax
mov edx, fcn.00433fc0
mov ecx, esi
call fcn.00434860
add esp, 4
mov edi, eax
mov eax, dword [esi]
lea edx, [esp + 0x10]
mov ecx, dword [esi + 4]
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x20], 0xc3
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], 1
call fcn.00415540
mov eax, dword [esi + 0x1c]
mov dword [esp + 0xc], eax
test eax, eax
je 0x434a5d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, 2
cmp eax, 0xffffffff
je 0x434a75
push dword [esp + 0xc]
test al, 0x10
je 0x434a52
mov edx, fcn.004342a0
mov ecx, esi
call fcn.004345e0
jmp 0x434a70
push esi
call fcn.004342a0
add esp, 8
jmp 0x434a73
mov eax, dword [ebx]
test eax, eax
je 0x434a75
push eax
mov edx, fcn.004342a0
mov ecx, esi
call fcn.00434860
add esp, 4
mov edi, eax
xorps xmm0, xmm0
mov dword [esp + 0x20], 0xc8
lea edx, [esp + 0x10]
movlpd qword [esp + 0x10], xmm0
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x24], 0
call fcn.00415540
mov eax, dword [esi + 0x14]
push dword [eax + 0x10]
call fcn.00437000
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret