joyce8/EMBER2024-capa huggingface dataset:
Function at 0x604610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a4820
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x71a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], vtable.filesystem::CFile.0
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov edx, ecx
mov dword [ebp - 4], 0
push 0x72f148
lea ecx, [ebp - 0x28]
call fcn.00407000
add esp, 4
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0061ff80
test al, al
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
sete bl
cmp edx, 0x10
jb 0x60469b
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.004020c0
add esp, 4
test bl, bl
jne 0x604741
push 3
push 0x6c128c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], bl
call fcn.004023e0
push 1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
call fcn.00620960
mov edx, dword [ebp - 0x14]
test al, al
sete bl
cmp edx, 0x10
jb 0x6046ec
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.004020c0
add esp, 4
test bl, bl
jne 0x604741
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x3c], 0
cmp esi, 0xffffffff
je 0x604744
push 0
lea eax, [ebp - 0x40]
push eax
push 4
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x604744
cmp dword [ebp - 0x40], 4
jne 0x604744
add dword [ebp - 0x30], 4
lea ecx, [ebp - 0x38]
push 0
call fcn.006204c0
test al, al
je 0x604741
lea ecx, [ebp - 0x38]
call fcn.006200d0
test al, al
je 0x604741
mov esi, dword [ebp - 0x34]
mov bl, 1
jmp 0x604746
mov esi, dword [ebp - 0x34]
xor bl, bl
cmp esi, 0xffffffff
je 0x604752
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066bc45
mov esp, ebp
pop ebp
ret
Function at 0x607380
Capabilities:
Delete file

Disassembly:
sub esp, 0x1c
mov eax, dword [0x71a00c]
xor eax, esp
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x20]
lea eax, [ecx + 0x24]
push ebx
push eax
lea ecx, [esp + 8]
call fcn.00407000
add esp, 4
lea ecx, [esp + 4]
call fcn.00620b40
test al, al
jne 0x6073b4
mov bl, 1
jmp 0x6073ce
cmp dword [esp + 0x18], 0x10
lea eax, [esp + 4]
cmovae eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne bl
mov edx, dword [esp + 0x18]
cmp edx, 0x10
jb 0x6073e6
mov ecx, dword [esp + 4]
inc edx
push 1
call fcn.004020c0
add esp, 4
mov ecx, dword [esp + 0x1c]
mov al, bl
pop ebx
xor ecx, esp
call fcn.0066bc45
add esp, 0x1c
ret 4
Function at 0x607b70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a4b7b
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x71a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x78], 0
mov edi, dword [esi + 0x10]
push 4
lea eax, [edi - 4]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00403f90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
mov edx, eax
mov dword [ebp - 0x78], 1
call fcn.00403ca0
mov dword [ebp - 4], 1
mov ebx, 3
mov edx, str.html
mov dword [ebp - 0x78], ebx
mov ecx, eax
call fcn.00406ba0
test al, al
jne 0x607c2e
push ebx
lea eax, [edi - 3]
mov ecx, esi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00403f90
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x28]
mov edx, eax
mov dword [ebp - 0x78], 7
call fcn.00403ca0
mov edx, 0x6c1480
mov ecx, eax
mov ebx, 0xf
call fcn.00406ba0
mov byte [ebp - 0x71], 1
test al, al
je 0x607c32
mov byte [ebp - 0x71], 0
test bl, 8
je 0x607c62
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffff7
cmp edx, 0x10
jb 0x607c50
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.004020c0
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
test bl, 4
je 0x607c8f
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x607c7d
mov ecx, dword [ebp - 0x40]
inc edx
push 1
call fcn.004020c0
add esp, 4
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x607ca5
mov ecx, dword [ebp - 0x58]
inc edx
push 1
call fcn.004020c0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp edx, 0x10
jb 0x607cd4
mov ecx, dword [ebp - 0x70]
inc edx
push 1
call fcn.004020c0
add esp, 4
cmp byte [ebp - 0x71], 0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
jne 0x607d1f
mov ecx, dword [0x72ec18]
test ecx, ecx
je 0x607cfb
call fcn.006009e0
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x14], 0x10
jb 0x607d0e
mov esi, dword [esi]
push 1
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066bc45
mov esp, ebp
pop ebp
ret
Function at 0x608c80
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a4c9c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x71a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
lea esi, [ebx + 0x3c]
mov dword [ebx], vtable.systemservice::CApp.0
sub esp, 8
mov byte [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006098d0
mov dword [esi], eax
add ebx, 0x44
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], ebx
lea edi, [ebx + 4]
mov dword [ebp - 0x18], edi
push 0x1c
mov dword [ebx], vtable.bridgemessage::CBridgeMessageQueue.0
mov dword [edi], vtable.thread::CCriticalSection.0
call fcn.0066bc56
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.thread::CCriticalSection::CImpl.0
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 4], esi
lea ecx, [ebx + 0xc]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], ecx
call fcn.0045ac70
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x10]
add ebx, 0x64
mov dword [ebp - 0x18], ebx
lea edi, [ebx + 4]
mov dword [ebp - 0x14], edi
push 0x1c
mov dword [ebx], vtable.bridgemessage::CBridgeMessageQueue.0
mov dword [edi], vtable.thread::CCriticalSection.0
call fcn.0066bc56
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.thread::CCriticalSection::CImpl.0
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 4], esi
lea ecx, [ebx + 0xc]
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], ecx
call fcn.0045ac70
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x60cc60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a4f74
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x71a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.textsurface::CTextSurfaceCreater.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], vtable.win32only::CDIBSurface.0
mov byte [edi + 0x10], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [ebp - 4], 0
lea ecx, [edi + 0x4c]
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 4
mov dword [edi + 0x48], 4
call fcn.0060c660
lea ecx, [edi + 0x94]
call fcn.0060c660
mov byte [ebp - 4], 2
lea esi, [edi + 0xdc]
lea ecx, [esi + 0xc]
mov dword [esi], vtable.win32only::CFont.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0x10
push 0xd
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x6d5e08
mov dword [ebp - 0x14], esi
mov byte [ecx], 0
call fcn.004023e0
mov dword [esi + 0x24], 0x190
mov eax, edi
mov word [esi + 0x28], 0
mov dword [edi + 0x108], 0xffffffff
mov dword [edi + 0x10c], 0
mov dword [edi + method.textsurface::CExternalFontPack.virtual_0], vtable.textsurface::CExternalFontPack.0
mov dword [edi + method.filesystem::CFile.virtual_0], vtable.filesystem::CFile.0
mov dword [edi + 0x118], 0xffffffff
mov dword [edi + 0x11c], 0
mov dword [edi + 0x120], 0
mov dword [edi + 0x124], 0
mov dword [edi + 0x128], 0
mov dword [edi + 0x12c], 0
mov dword [edi + method.textsurface::CZlibDecompressor.virtual_0], vtable.textsurface::CZlibDecompressor.0
mov dword [edi + 0x134], 0
mov dword [edi + 0x14c], 0xf
mov dword [edi + 0x148], 0
mov byte [edi + 0x138], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x6108a0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x6108c4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
lea eax, [esp + 4]
push eax
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push 0
push 0
call fcn.00675eb6
add esp, 0x18
test eax, eax
jne 0x6108ea
xor al, al
pop esi
pop ecx
ret 8
mov dword [esi + 4], eax
mov al, 1
pop esi
pop ecx
ret 8
Function at 0x61bfa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a55d8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x71a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], vtable.filesystem::CFile.0
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.0061ff80
mov edx, dword [ebp - 0x3c]
test al, al
je 0x61c119
mov esi, dword [edi + 4]
mov edi, dword [edi + 8]
cmp esi, edi
je 0x61c0f6
mov ebx, dword [ebp - 0x38]
mov eax, dword [esi]
add eax, 4
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x30], ecx
test ecx, ecx
jle 0x61c063
cmp dword [eax + 0x14], 0x10
jb 0x61c02f
mov eax, dword [eax]
cmp edx, 0xffffffff
je 0x61c119
push 0
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x30]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x61c116
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x44]
jne 0x61c116
add ebx, eax
mov dword [ebp - 0x38], ebx
push 2
push 0x6c160c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004023e0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
test eax, eax
jle 0x61c0c8
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
cmp edx, 0x10
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xffffffff
je 0x61c110
push 0
lea edx, [ebp - 0x4c]
push edx
push eax
push dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x61c10d
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x4c]
jne 0x61c10d
add ebx, eax
mov dword [ebp - 0x38], ebx
mov edx, dword [ebp - 0x14]
mov byte [ebp - 0x29], 1
cmp edx, 0x10
jb 0x61c0e2
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.004020c0
add esp, 4
cmp byte [ebp - 0x29], 0
mov edx, dword [ebp - 0x3c]
je 0x61c119
add esi, 4
cmp esi, edi
jne 0x61c018
cmp edx, 0xffffffff
je 0x61c109
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x61c116
or edx, 0xffffffff
mov bl, 1
jmp 0x61c11b
mov edx, dword [ebp - 0x14]
mov byte [ebp - 0x29], 0
jmp 0x61c0cf
mov edx, dword [ebp - 0x3c]
xor bl, bl
cmp edx, 0xffffffff
je 0x61c127
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066bc45
mov esp, ebp
pop ebp
ret 4
Function at 0x61c150
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a562c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x71a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.crayfish::CLogViewerWindow.0
mov dword [edi + 4], vtable.win32only::CMenu.0
mov dword [edi + 8], 0
mov byte [edi + 0xc], 1
lea esi, [edi + 0x10]
mov dword [ebp - 4], 0
push 0x88
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.win32only::CWindow.0
call fcn.0066bc56
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, eax
call fcn.00669f30
mov dword [esi + 4], eax
mov dword [edi + 0x18], vtable.crayfish::CWindowHScroll.0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], vtable.crayfish::CWindowVScroll.0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 3
call fcn.0061d690
mov dword [edi + 0x94], 0
mov eax, edi
mov dword [edi + 0x98], 0
mov dword [edi + 0xb0], 0xf
mov dword [edi + 0xac], 0
mov byte [edi + 0x9c], 0
mov dword [edi + 0xc8], 0xf
mov dword [edi + 0xc4], 0
mov byte [edi + 0xb4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x61c3e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68dbf8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x71a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x14]
cmp dword [eax], 0
jne 0x61c5c1
lea ecx, [ebx + 0x9c]
cmp ecx, esi
je 0x61c439
push 0xffffffffffffffff
push 0
push esi
call fcn.004024e0
lea ecx, [ebx + 0xb4]
cmp ecx, edi
je 0x61c44d
push 0xffffffffffffffff
push 0
push edi
call fcn.004024e0
mov edi, dword [ebp - 0x2c]
push 0xa0
push edi
call dword [sym.imp.USER32.dll_LoadMenuA]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x2c], eax
test ecx, ecx
je 0x61c47d
cmp byte [ebx + 0xc], 0
je 0x61c476
push ecx
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 8], 0
push 0x1c
push str.CrayfishLogViewerWindowClass
lea ecx, [ebp - 0x28]
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], 1
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004023e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
mov ecx, dword [ebx + 0x14]
add ecx, 0x30
cmp ecx, eax
je 0x61c4c3
push 0xffffffffffffffff
push 0
push eax
call fcn.004024e0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x61c4e0
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.004020c0
add esp, 4
mov ecx, dword [ebx + 0x14]
add ecx, 0x48
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp ecx, esi
je 0x61c506
push 0xffffffffffffffff
push 0
push esi
call fcn.004024e0
mov eax, dword [ebx + 0x14]
push 0x65
push edi
mov dword [eax + 0x60], edi
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x68], 0x10cf0000
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x7c], 0
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 8]
mov dword [ecx + 0x80], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [ebx + 0x14]
mov dword [ecx + 0x18], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0061d3e0
test al, al
je 0x61c573
mov edx, dword [ebx + 0x14]
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0x6c], eax
mov dword [edx + 0x70], ecx
mov dword [edx + 0x74], esi
mov dword [edx + 0x78], edi
jmp 0x61c592
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x6c], 0
mov dword [eax + 0x70], 0
mov dword [eax + 0x74], 0x280
mov dword [eax + 0x78], 0x1e0
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x84], ebx
mov ecx, dword [ebx + 0x14]
call fcn.0066a000
test al, al
je 0x61c5c3
mov eax, dword [ebx + 0x98]
test eax, eax
je 0x61c5c1
cmp byte [eax + 4], 0
je 0x61c5c1
mov eax, dword [ebx + 0x14]
push dword [eax]
call fcn.0061def0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066bc45
mov esp, ebp
pop ebp
ret 0x10
Function at 0x61d690
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a574b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x71a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.crayfish::CTextView.0
mov dword [edi + 4], vtable.win32only::CDIBSurface.0
mov byte [edi + 8], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [ebp - 4], 0
lea esi, [edi + 0x34]
lea ecx, [esi + 0xc]
mov dword [esi], vtable.win32only::CFont.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0x10
push 0xd
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x6d5e08
mov dword [ebp - 0x14], esi
mov byte [ecx], 0
call fcn.004023e0
mov dword [esi + 0x24], 0x190
mov eax, edi
mov word [esi + 0x28], 0
mov dword [edi + 0x60], 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x61ed30
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a58c8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x71a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
lea edx, [ebp - 0x68]
mov dword [ebp - 4], 0
call fcn.00621190
mov esi, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x64]
cmp esi, ebx
je 0x61ee10
nop
mov edx, edi
lea ecx, [ebp - 0x40]
call fcn.004037a0
push esi
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00411640
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0061ed30
mov edx, dword [ebp - 0x14]
test al, al
sete byte [ebp - 0x59]
cmp edx, 0x10
jb 0x61edd3
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.004020c0
add esp, 4
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x61edff
mov ecx, dword [ebp - 0x40]
inc edx
push 1
call fcn.004020c0
add esp, 4
cmp byte [ebp - 0x59], 0
jne 0x61eed5
add esi, 0x18
cmp esi, ebx
jne 0x61ed90
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.00620d00
mov esi, dword [ebp - 0x1c]
cmp esi, dword [ebp - 0x18]
je 0x61eebe
nop
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.004037a0
push esi
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.00411640
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x61ee64
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x2c]
test eax, eax
sete bl
cmp edx, 0x10
jb 0x61ee86
mov ecx, dword [ebp - 0x40]
inc edx
push 1
call fcn.004020c0
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x61eeb2
mov ecx, dword [ebp - 0x58]
inc edx
push 1
call fcn.004020c0
add esp, 4
test bl, bl
jne 0x61eed1
add esi, 0x18
cmp esi, dword [ebp - 0x18]
jne 0x61ee40
cmp dword [edi + 0x14], 0x10
jb 0x61eec6
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x61eed9
xor bl, bl
jmp 0x61eedb
xor bl, bl
jmp 0x61eee3
mov bl, 1
lea ecx, [ebp - 0x1c]
call fcn.00411110
lea ecx, [ebp - 0x68]
call fcn.00411110
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066bc45
mov esp, ebp
pop ebp
ret
Function at 0x61f820
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x71a00c]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
push 0x105
lea eax, [esp + 8]
mov esi, ecx
push 0
push eax
call fcn.0066eb00
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x8005
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x61f89d
cmp byte [esp + 4], al
jne 0x61f87d
xor ecx, ecx
lea eax, [esp + 4]
push ecx
push eax
lea ecx, [esi + 4]
call fcn.004023e0
jmp 0x61f8b6
lea ecx, [esp + 4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x61f884
sub ecx, edx
lea eax, [esp + 4]
push ecx
push eax
lea ecx, [esi + 4]
call fcn.004023e0
jmp 0x61f8b6
lea ecx, [esi + 4]
cmp ecx, 0x72f178
je 0x61f8b6
push 0xffffffffffffffff
push 0
push 0x72f178
call fcn.004024e0
mov ecx, esi
call fcn.0061fdd0
mov ecx, dword [esp + 0x110]
pop esi
xor ecx, esp
call fcn.0066bc45
add esp, 0x110
ret

Function at 0x61f8e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x71a00c]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
push 0x105
lea eax, [esp + 8]
mov esi, ecx
push 0
push eax
call fcn.0066eb00
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x61f95d
cmp byte [esp + 4], al
jne 0x61f93d
xor ecx, ecx
lea eax, [esp + 4]
push ecx
push eax
lea ecx, [esi + 4]
call fcn.004023e0
jmp 0x61f976
lea ecx, [esp + 4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x61f944
sub ecx, edx
lea eax, [esp + 4]
push ecx
push eax
lea ecx, [esi + 4]
call fcn.004023e0
jmp 0x61f976
lea ecx, [esi + 4]
cmp ecx, 0x72f178
je 0x61f976
push 0xffffffffffffffff
push 0
push 0x72f178
call fcn.004024e0
mov ecx, esi
call fcn.0061fdd0
mov ecx, dword [esp + 0x110]
pop esi
xor ecx, esp
call fcn.0066bc45
add esp, 0x110
ret

Function at 0x620060
Capabilities:
Get file size

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x62007d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x6200c3
mov dword [esi + 4], 0xffffffff
mov eax, dword [esp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x620089
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x6200c3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
mov al, 1
mov dword [esi + 8], 0
pop esi
ret 4
xor al, al
pop esi
ret 4

Function at 0x620470
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x620483
xor al, al
pop esi
pop ecx
ret 8
push edi
mov edi, dword [esp + 0x14]
lea ecx, [esp + 8]
push 0
push ecx
push edi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6204b0
cmp edi, dword [esp + 8]
jne 0x6204b0
add dword [esi + 8], edi
mov al, 1
pop edi
pop esi
pop ecx
ret 8
pop edi
xor al, al
pop esi
pop ecx
ret 8