joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10047da1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebx]
push 0x20
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], 0x80091007
call dword [eax]
test al, al
je 0x10047eae
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test al, al
je 0x10047eae
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x10047ea6
push esi
mov esi, 0x100000
push esi
call fcn.1007b88d
pop ecx
mov dword [ebp - 8], eax
cmp eax, edi
je 0x10047e9c
push edi
lea ecx, [ebp + 8]
push ecx
push esi
mov dword [ebp + 8], edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
jmp 0x10047e4b
push dword [ebp + 8]
mov eax, dword [ebx]
push dword [ebp - 8]
mov ecx, ebx
call dword [eax + 8]
test al, al
je 0x10047e93
cmp dword [ebp + 8], esi
jne 0x10047e56
and dword [ebp + 8], 0
push 0
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x10047e27
jmp 0x10047e93
mov eax, dword [ebx]
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
mov ecx, ebx
call dword [eax + 0xc]
test al, al
je 0x10047e93
cmp dword [ebp - 0x10], 0x20
jne 0x10047e89
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
push 8
pop ecx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x10047e89
and dword [ebp - 0x14], eax
push dword [ebp - 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
push dword [ebp - 8]
call fcn.1007b89d
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 8
Function at 0x10048cbf
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x100938f3
call fcn.10086e1a
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp byte [ebp + 0xc], bl
jne 0x10048ce9
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
call fcn.10078eab
add eax, 0x10
mov dword [esi], eax
jmp 0x10048d57
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 4], ebx
push eax
mov eax, dword [ebp + 0x10]
call fcn.10036cb7
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov ecx, dword [edi]
push eax
push ecx
lea eax, [ebp + 0xc]
call fcn.10058e8b
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.10078f0e
mov ebx, dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10048d3d
mov eax, dword [edi]
jmp 0x10048d42
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
call fcn.10078eab
add eax, 0x10
mov dword [esi], eax
lea eax, [ebx - 0x10]
call fcn.10078f0e
mov eax, esi
call fcn.10086f06
ret 0xc

Function at 0x10048dbf
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x100938c3
call fcn.10086e1a
mov esi, ecx
and dword [ebp - 4], 0
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.1005833e
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x10048e1c
lea eax, [ebp - 0x14]
push eax
call fcn.10025d3f
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.100584b9
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10078f0e
push dword [ebp + 8]
mov eax, edi
call fcn.10058e4a
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10048e3f
push dword [ebp + 8]
mov esi, dword [esi + 4]
push 0x1000d5a8
push eax
call fcn.100239ad
add esp, 0xc
jmp 0x10048e95
mov ebx, dword [ebp - 0x10]
mov ecx, esi
call fcn.10048eb8
push 5
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
xor ebx, ebx
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
rep stosd dword es:[edi], eax
jmp 0x10048e88
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
jne 0x10048e74
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10078f0e
call fcn.10086f06
ret 4
Function at 0x1004bdee
Capabilities:
Accept command line arguments

Disassembly:
push 0x24
mov eax, 0x1009588d
call fcn.10086e1a
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
mov dword [esi + 0x14], eax
mov edi, 0x1001ab18
push edi
lea eax, [esi + 0x20]
push eax
mov dword [esi], 0x100199d4
mov dword [esi + 4], ebx
mov byte [esi + 0xc], bl
mov dword [esi + 0x18], ebx
mov byte [esi + 0x1c], bl
call fcn.1005833e
push edi
lea eax, [esi + 0x24]
push eax
mov dword [ebp - 4], ebx
call fcn.1005833e
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.1004bd95
mov ecx, dword [ebp + 0x10]
push eax
lea eax, [esi + 0x28]
push eax
mov byte [ebp - 4], 2
call fcn.1004953c
cmp dword [ebp - 0x18], ebx
je 0x1004be6b
push dword [ebp - 0x18]
call fcn.1007be0e
pop ecx
mov eax, dword [ebp + 0x18]
or dword [esi + 0x64], 0xffffffff
mov dword [esi + 0x4c], eax
mov byte [esi + 0x50], bl
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], ebx
mov byte [ebp - 4], 5
cmp byte [0x100b615a], 1
mov edi, dword [sym.imp.msi.dll_MsiSetPropertyW]
jne 0x1004bea5
push ebx
push 3
call edi
mov byte [0x100b615a], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10023e77
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 6
mov dword [ebp + 0xc], 0x102
call fcn.1002420c
test al, al
jne 0x1004bed3
mov dword [ebp + 0xc], 2
push ebx
push dword [ebp + 0xc]
call edi
push ebx
push esi
push 0x922
push 0x1004bfa8
call dword [sym.imp.msi.dll_MsiBeginTransactionW]
push esi
push 0x7fdf
push 0x1004bf8a
call dword [sym.imp.msi.dll_MsiSetInternalUI]
lea ecx, [ebp - 0x30]
mov dword [esi + 0x68], eax
call fcn.100241a9
mov eax, esi
call fcn.10086f06
ret 0x18

Function at 0x1004d3a3
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [esi + 4], bl
je 0x1004d44a
cmp dword [esi + 0x18], ebx
jne 0x1004d44a
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x18], eax
cmp eax, ebx
jne 0x1004d3de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1004d445
push edi
push 0x10
call fcn.1007b88d
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x1004d3f6
mov dword [ebp - 4], 0xe
jmp 0x1004d444
mov eax, dword [ebp + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [edi], esi
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x1004d418
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push edi
push 0x1004d459
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
cmp eax, ebx
jne 0x1004d444
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 0x18]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], ebx
pop edi
mov eax, dword [ebp - 4]
jmp 0x1004d44f
mov eax, 0x10dd
pop ebx
leave
ret 0xc
Function at 0x1004d6c6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [esi + 0x2c]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ebx, [esi + 0x1c]
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1004d767
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
jne 0x1004d74d
mov eax, dword [esi + 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x18]
push 0xffffffffffffffff
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, eax
test edi, edi
jne 0x1004d739
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1004d767
jmp 0x1004d73e
cmp edi, 0xffffffff
jne 0x1004d748
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1004d74d
mov edi, 0x3e3
test edi, edi
je 0x1004d767
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov byte [esi + 0x39], 0
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x1004d81d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov esi, eax
mov dword [ebp - 0xc], edi
cmp dword [ebp + 0xc], edi
je 0x1004d841
push dword [ebp + 0xc]
call dword [sym.imp.msi.dll_MsiRecordIsNull]
inc eax
mov dword [ebp - 0xc], eax
xor eax, eax
push 0xc
pop ebx
mov word [ebp - 4], ax
cmp dword [ebp - 0xc], eax
jbe 0x1004d879
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
jne 0x1004d873
mov eax, dword [ebp - 8]
lea ebx, [ebx + eax*2 + 2]
inc edi
cmp edi, dword [ebp - 0xc]
jb 0x1004d84f
mov edi, ebx
call fcn.1004daa6
test eax, eax
jne 0x1004d88c
push 0xe
pop eax
jmp 0x1004d986
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp + 8]
and dword [ebp - 8], 0
mov dword [eax], ebx
mov eax, dword [esi + 0x30]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x30]
lea edi, [eax + 0xc]
add eax, ebx
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x1004d919
cmp edi, dword [ebp - 0x10]
jae 0x1004d919
xor eax, eax
mov word [edi], ax
and dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
jne 0x1004d8fe
mov eax, dword [ebp - 0x10]
sub eax, edi
sar eax, 1
cmp dword [ebp + 8], eax
jge 0x1004d8fe
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
mov ecx, dword [ebp + 8]
xor eax, eax
inc dword [ebp - 8]
mov word [edi + ecx*2], ax
mov eax, dword [ebp + 8]
lea edi, [edi + eax*2 + 2]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jb 0x1004d8b6
push dword [esi + 0x2c]
and dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edi, [esi + 0x1c]
push edi
push 0
push ebx
push dword [esi + 0x30]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1004d983
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov dword [ebp + 0xc], eax
cmp eax, 0x3e5
jne 0x1004d96c
and dword [ebp + 0xc], 0
push 1
lea eax, [ebp + 8]
push eax
push edi
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1004d983
call ebx
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
je 0x1004d983
push dword [esi + 0x10]
mov byte [esi + 0x39], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x10], 0
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1004d992
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
push dword [esi + 0x2c]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edi, [esi + 0x1c]
push edi
push ebx
push 4
push dword [ebp + 8]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1004da0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x3e5
jne 0x1004d9f8
push dword [esi + 0x3c]
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
jne 0x1004d9fc
push eax
lea eax, [ebp + 8]
push eax
push edi
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1004da0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x1004da0d
push dword [esi + 0x10]
mov byte [esi + 0x39], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x10], 0
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 4

Function at 0x1004da1a
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov edi, edi
push edi
xor edi, edi
push edi
push edi
mov eax, 0x400
push eax
push eax
push 1
push edi
push 0x40080003
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x1004da4e
and dword [esi + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1004da9d
lea ecx, [esi + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x1004da63
mov byte [esi + 0x39], 1
jmp 0x1004da9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xe7
jne 0x1004da8f
push 0x4e20
push dword [esi + 0xc]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x1004da5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
jne 0x1004da9d
xor edi, edi
mov byte [esi + 0x38], 1
mov eax, edi
pop edi
ret
Function at 0x10052352
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0x34
mov eax, 0x100914b0
call fcn.10086e1a
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [esi], 0x1001a514
lea edi, [esi + 8]
mov dword [ebp - 4], 1
push dword [edi]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x20], edi
call fcn.1005833e
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100523a8
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1001ab18
xor ebx, ebx
mov eax, edi
call fcn.10078bdc
add esi, 0xc
push dword [esi]
lea eax, [ebp - 0x10]
push eax
call fcn.1005833e
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x10052489
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10052489
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
lea eax, [edi + 1]
push eax
call fcn.10078d91
mov edx, eax
xor eax, eax
mov word [edx + edi*2 + 2], ax
push 6
pop ecx
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 0x40], 0
and dword [ebp - 0x34], 0
mov eax, 0x414
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x38], edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edi, eax
or eax, 0xffffffff
call fcn.10078afc
test edi, edi
je 0x10052478
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push edi
mov byte [ebp - 4], 4
push dword [esi]
lea eax, [ebp - 0x14]
push 0x10010970
push eax
call fcn.10078b7a
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
add esp, 0x10
push edi
push 1
call dword [eax + 4]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 3
call fcn.10078f0e
push 0x1001ab18
xor ebx, ebx
mov eax, esi
call fcn.10078bdc
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [esi]
sub eax, 0x10
call fcn.10078f0e
mov eax, dword [edi]
sub eax, 0x10
call fcn.10078f0e
call fcn.10086f06
ret
Function at 0x100524e4
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x10091462
call fcn.10086e1a
push dword [ecx + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.1005833e
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.1005833e
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.10058f9e
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.10058e4a
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005257d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10078eab
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.100584b9
lea eax, [esi - 0x10]
call fcn.10078f0e
mov bl, 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10078f0e
mov al, bl
call fcn.10086f06
ret 8
mov esi, dword [ebp + 0xc]
call fcn.10078b95
jmp 0x1005255d

Function at 0x100543e3
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x18]
xor eax, eax
push eax
push eax
push eax
add esi, 0x10
push esi
call fcn.10028129
test eax, eax
js 0x1005440f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1005440f
pop esi
jmp fcn.100789c8
pop esi
ret
Function at 0x10054e70
Capabilities:
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x1009557e
call fcn.10086e1a
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.1005833e
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.10025fce
mov eax, dword [eax]
push ebx
push 0x80
push 3
push 1
push SysReAllocStringLen
push eax
lea edi, [ebp - 0x2c]
call fcn.1002809d
mov edi, eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10078f0e
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10078f0e
cmp edi, ebx
jge 0x10054f6d
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.1005833e
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x14]
push 0x10010ed8
push eax
call fcn.10078b7a
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, 0xfffffff0
call fcn.10078f0e
push dword [ebp - 0x14]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10028329
mov esi, 0x10018808
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.1002a3bc
mov dword [ebp - 0x34], esi
push 0x1009befc
lea eax, [ebp - 0x34]
push eax
call fcn.100814aa
push ebx
lea eax, [ebp - 0x24]
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x2c]
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x10054f8d
call fcn.100789c8
cmp byte [ebp - 0x10], 0xff
jne 0x10054faf
cmp byte [ebp - 0xf], 0xfe
jne 0x10054faf
cmp dword [ebp - 0x2c], ebx
je 0x10054fa7
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.10086f06
ret 4
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x10010f28
push eax
call fcn.10078b7a
mov eax, dword [esi]
add esp, 0xc
push dword [ebp - 0x14]
mov ecx, esi
push ebx
call dword [eax + 4]
push 0x10005e9c
lea eax, [ebp + 8]
push eax
call fcn.1005833e
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.1002838a
mov byte [ebp - 4], 8
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10078f0e
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.1002a378
push 0x1009bdc8
lea eax, [ebp - 0x20]
jmp 0x10054f67
Function at 0x10055446
Capabilities:
Accept command line arguments

Disassembly:
push 0x28
mov eax, 0x1009551e
call fcn.10086e1a
lea eax, [ebp - 0x14]
push eax
call fcn.10025dd0
and dword [ebp - 4], 0
push 0x10011278
lea eax, [ebp - 0x1c]
push eax
lea edi, [ebp - 0x14]
call fcn.10058c7a
push 0x10011228
lea ecx, [ebp - 0x18]
push ecx
mov edi, eax
mov byte [ebp - 4], 1
call fcn.10058c7a
push 0x100111c8
lea ecx, [ebp - 0x10]
push ecx
mov edi, eax
mov byte [ebp - 4], 2
call fcn.10058c7a
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10078f0e
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10078f0e
push dword [ebp - 0x10]
mov eax, dword [esi]
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.10023e77
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.100241d6
test al, al
jne 0x10055503
push 0
push 0x10003bd0
lea eax, [ebp - 0x30]
push eax
call fcn.10023a16
test al, al
jne 0x10055503
push 0x10
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x34]
call fcn.100241a9
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10078f0e
call fcn.10086f06
ret 4
Function at 0x10055691
Capabilities:
Check if file exists

Disassembly:
push 0x10
mov eax, 0x100933f2
call fcn.10086e1a
xor ebx, ebx
push ebx
push 0x100b60ac
mov edi, 0x100b5fa8
push edi
mov dword [ebp - 0x14], ebx
push ebx
push dword [ebp + 8]
call fcn.100868b5
add esp, 0x14
cmp eax, ebx
je 0x100556d8
lea esi, [ebp - 0x18]
call fcn.10042d50
mov eax, dword [eax]
mov dword [ebp - 0x14], 1
mov byte [ebp - 0xd], 1
cmp dword [eax - 0xc], ebx
je 0x100556db
mov byte [ebp - 0xd], bl
test byte [ebp - 0x14], 1
je 0x100556ec
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10078f0e
cmp byte [ebp - 0xd], bl
je 0x1005584c
push ebx
push 0x100b5fe8
push edi
push ebx
push dword [ebp + 8]
call fcn.100868b5
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x10055856
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
mov eax, esi
mov dword [ebp - 4], ebx
call fcn.10036cb7
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10078f0e
cmp dword [ebp - 0x1c], ebx
je 0x10055795
lea eax, [ebp - 0x18]
push eax
mov eax, esi
call fcn.10036cb7
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.10025d3f
mov byte [ebp - 4], 2
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push eax
lea eax, [ebp - 0x14]
call fcn.10058e8b
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10078f0e
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10078f0e
jmp 0x100557bf
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.10036cb7
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.100584b9
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10078f0e
mov edi, 0x100b5fa8
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10055844
push ebx
push 0x100b6114
push edi
push ebx
push dword [ebp + 8]
call fcn.100868b5
add esp, 0x14
cmp eax, ebx
je 0x100557fb
cmp dword [eax + 0xf4], 4
jne 0x100557fb
mov bl, 1
lea eax, [esi - 0x10]
call fcn.10078f0e
mov al, bl
jmp 0x1005584e
push 0x10011378
lea eax, [ebp + 8]
push eax
call fcn.1005833e
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea edi, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.10058c24
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 5
push dword [eax]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10078f0e
jmp 0x100557ef
lea eax, [esi - 0x10]
call fcn.10078f0e
mov al, 1
call fcn.10086f06
ret 8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push 0x10011444
push ebx
call dword [eax + 4]
xor al, al
jmp 0x1005584e