joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100031e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x110]
push ebx
mov ebx, eax
sub esp, 0x18c
mov eax, dword [eax]
mov edi, dword [sym.imp.user32.dll_SendMessageA]
mov dword [ebp - 0x168], 0x58
mov dword [esp + 0xc], esi
mov dword [ebp - 0x164], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0x10009000
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0xd
mov dword [esp], eax
call edi
mov eax, dword [0x10007018]
mov dword [ebp - 0x14c], esi
lea esi, [ebp - 0x188]
mov dword [ebp - 0x148], 0x104
sub esp, 0x10
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], esi
mov dword [esp + 4], 0x67
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringA]
lea eax, [ebp - 0x168]
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x134], 0x281004
sub esp, 0x10
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
mov dword [esp], eax
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
sub esp, 4
test eax, eax
jne 0x10003320
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x14c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call edi
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10003a60
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags
Hide graphical window
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
sub esp, 0x10
mov esi, dword [sym.imp.user32.dll_ShowWindow]
mov dword [esp + 4], 0
mov eax, dword [eax + 0x28]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x14]
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x18]
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x30]
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0xc]
sub esp, 8
mov dword [esp + 4], 5
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x10]
sub esp, 8
mov dword [esp + 4], 5
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x2c]
sub esp, 8
mov dword [esp + 4], 5
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x1c]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0xf1
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageA]
mov eax, dword [ebx + 4]
sub esp, 0x10
test eax, eax
je 0x10003b30
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
jmp sym._UIINSERTOBJECTDLG_PopulateObjectTypes.isra.0

Function at 0x10003b40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x218
mov esi, dword [sym.imp.user32.dll_ShowWindow]
mov dword [esp + 4], 0
mov eax, dword [eax + 0x2c]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0xc]
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x10]
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], eax
call esi
mov eax, dword [ebx + 8]
sub esp, 8
test byte [eax + 4], 0x10
jne 0x10003c38
mov eax, dword [ebx + 0x14]
mov dword [esp + 4], 5
lea edi, [ebp - 0x214]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x18]
sub esp, 8
mov dword [esp + 4], 5
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x30]
sub esp, 8
mov dword [esp + 4], 5
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x24]
mov esi, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0xf1
mov dword [esp], eax
call esi
mov eax, dword [0x10007018]
sub esp, 0x10
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], edi
mov dword [esp + 4], 0x66
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
test eax, eax
jne 0x10003c50
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x28]
mov dword [esp + 4], 5
mov dword [esp], eax
call esi
sub esp, 8
jmp 0x10003b9a
mov eax, dword [ebx + 0x34]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp], eax
call esi
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10003c80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
sub esp, 0x10
mov esi, dword [sym.imp.user32.dll_ShowWindow]
mov dword [esp + 4], 0
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x18]
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x2c]
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x30]
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], eax
call esi
mov eax, dword [ebx + 8]
sub esp, 8
test byte [eax + 4], 0x10
jne 0x10003d50
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], 5
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x10]
sub esp, 8
mov dword [esp + 4], 5
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x20]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0xf1
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageA]
mov eax, dword [ebx + 4]
sub esp, 0x10
test eax, eax
je 0x10003d68
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
jmp sym._UIINSERTOBJECTDLG_SelChange
mov eax, dword [ebx + 0x28]
mov dword [esp + 4], 5
mov dword [esp], eax
call esi
sub esp, 8
jmp 0x10003ce5
mov eax, ebx
call sym._UIINSERTOBJECTDLG_PopulateObjectTypes.isra.0
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
jmp sym._UIINSERTOBJECTDLG_SelChange
Function at 0x10004c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10004c58
cmp byte [esi + ebx - 1], 0xa
je 0x10004c2c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10007160], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10005b60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x14
mov dword [ebp - 0x14], edx
mov esi, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [esp + 4], 0x1fb
mov dword [esp], eax
call esi
sub esp, 8
mov edi, eax
mov dword [esp], ebx
mov dword [esp + 4], 0x1fa
call esi
sub esp, 8
mov dword [ebp - 0x10], eax
mov dword [esp], ebx
mov dword [esp + 4], 0x1fc
call esi
mov edx, dword [ebp - 0x14]
sub esp, 8
mov esi, eax
and dword [edx + 4], 0xfffffff7
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1fa
call dword [sym.imp.user32.dll_CheckDlgButton]
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.user32.dll_EnableWindow]
sub esp, 0xc
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
mov edx, dword [sym.imp.user32.dll_ShowWindow]
sub esp, 8
mov dword [ebp - 0x10], edx
mov dword [esp], edi
mov dword [esp + 4], 0
call edx
sub esp, 8
mov dword [esp], edi
mov dword [esp + 4], 0
call ebx
mov edx, dword [ebp - 0x10]
sub esp, 8
mov dword [esp], esi
mov dword [esp + 4], 0
call edx
sub esp, 8
mov dword [esp], esi
mov dword [esp + 4], 0
call ebx
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401410
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
mov edi, eax
mov ebx, esi
mov dword [esi + 0xc], edi
call fcn.0040187f
cmp dword [esi + 0x428], 0
je 0x401433
push esi
call fcn.00401b37
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
lea ebx, [ebp - 0x14]
call fcn.0040a7ef
pop ecx
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x18]
push 5
sub eax, dword [ebp - 0x10]
xor ecx, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x10]
push ecx
push ecx
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x14]
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 4]
add eax, 0x18
push eax
push 0x3e9
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, 0x3eb
push ebx
push dword [esi + 0xc]
call edi
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
and eax, 2
push eax
push ebx
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov eax, dword [esi + 4]
test byte [eax + 4], 0x20
je 0x4014cb
push 5
jmp 0x4014cd
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x428], 0
je 0x4014ff
push 0
push ebx
push dword [esi + 0xc]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 0
push 0x3ed
push dword [esi + 0xc]
call edi
push eax
call ebx
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret
Function at 0x401b37
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2630
call fcn.004163a0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
xor ebx, ebx
push ebx
push 0x3eb
push dword [esi + 0xc]
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push 0x3ed
push dword [esi + 0xc]
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x868], ebx
mov dword [ebp - 8], ebx
jne 0x401c00
lea eax, [esi + 0x42c]
push eax
lea eax, [ebp - 0x2630]
push 0x417360
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x2630]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401c00
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401bf7
mov eax, dword [esi + 4]
add eax, 0x18
push ebx
push eax
lea ecx, [ebp - 0x218]
call fcn.00401e3d
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x636]
cmp word [eax], bx
je 0x401d1f
xor eax, eax
mov word [ebp - 0x424], bx
mov ecx, 0x82
lea edi, [ebp - 0x422]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004095b2
lea esi, [ebp - 0x218]
call fcn.00408fe0
mov eax, dword [ebp + 8]
add eax, 0x636
push eax
mov dword [ebp - 4], eax
mov eax, esi
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
push ebx
push dword [eax + 8]
lea eax, [ebp - 0x424]
push ebx
push eax
call fcn.004024a4
add esp, 0x20
cmp eax, 1
jne 0x401c9a
push 0x8918
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x401cb0
call fcn.0040329b
jmp 0x401cb2
push 0x320
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x401cb0
call fcn.0040438d
jmp 0x401cb2
xor eax, eax
cmp eax, ebx
je 0x401d1f
mov ecx, dword [edi + 4]
push ebx
push dword [ecx + 8]
mov esi, eax
mov eax, dword [esi]
push ebx
lea ecx, [ebp - 0x424]
push ecx
mov ecx, esi
call dword [eax + 4]
test eax, eax
jne 0x401d17
mov eax, dword [esi]
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 4]
mov ecx, esi
call dword [eax + 0x1c]
test eax, eax
jne 0x401d17
lea eax, [ebp - 0x630]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 1
lea eax, [ebp - 0x630]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4027a5
Capabilities:
Create process on windows
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc50
mov ecx, dword [ebp + 8]
push ebx
push edi
mov edi, eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xc50]
push eax
lea eax, [ebp - 0x838]
push eax
call fcn.00401dfe
lea eax, [ebp - 0x420]
push str..EXE
push eax
xor eax, eax
inc eax
call fcn.0040b524
add esp, 0x14
neg eax
sbb eax, eax
inc eax
xor ebx, ebx
test byte [edi + 4], 0x10
jne 0x4027ff
cmp eax, ebx
jne 0x402839
xor eax, eax
inc eax
jmp 0x402938
cmp eax, ebx
jne 0x402839
lea eax, [ebp - 0xa44]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 1
lea eax, [ebp - 0xa44]
push eax
push ebx
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
jmp 0x402938
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x62c]
push eax
mov eax, esi
call fcn.00409a78
add esp, 0xc
test eax, eax
je 0x402881
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x214]
push eax
push str.ZIP_SOURCE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp + 0xc]
lea esi, [ebp - 4]
call fcn.0040c209
cmp dword [edi + 0x222], ebx
jbe 0x4028c0
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 0xc]
mov eax, esi
push str._s__ZIP_SOURCE__s_
push eax
call fcn.0040c8eb
add esp, 0x10
mov eax, dword [0x41f0e8]
xor ecx, ecx
cmp eax, ebx
je 0x4028cd
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x4028d9
mov eax, 0x41730c
push ecx
push 1
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x838]
call fcn.0040df73
add esp, 0x10
cmp dword [ebp + 0x10], ebx
mov esi, eax
je 0x40291f
mov edi, 0x103
mov dword [ebp - 8], edi
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40290f
mov dword [ebp - 8], ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 8], edi
je 0x4028fd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_free]
xor eax, eax
cmp esi, ebx
pop ecx
setne al
pop esi
pop edi
pop ebx
leave
ret
Function at 0x406f40
Capabilities:
Hash data using djb2

Disassembly:
push esi
mov esi, dword [eax]
test esi, esi
push edi
jne 0x406f4e
mov esi, dword [0x41f020]
mov edi, 0x1505
jmp 0x406f67
push eax
call dword [sym.imp.MSVCRT.dll_towupper]
imul edi, edi, 0x21
movzx eax, ax
add edi, eax
inc esi
pop ecx
inc esi
xor eax, eax
mov ax, word [esi]
test ax, ax
jne 0x406f55
mov eax, edi
pop edi
pop esi
ret

Function at 0x407b2e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 8]
xor eax, eax
push esi
inc eax
mov dword [ebp - 8], ebx
call fcn.0040d15d
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x407b5d
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x407b55
mov dword [eax], esi
xor eax, eax
inc eax
jmp 0x407c26
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx + 0x21c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], eax
lea eax, [ebx + 0x220]
add dword [eax], ecx
adc dword [eax + 4], esi
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x407b8e
mov dword [eax], ecx
cmp dword [ebp + 0xc], esi
jne 0x407c23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 3
mov dword [ebp + 0x10], eax
mov eax, dword [ebx + 8]
pop ecx
cmp dword [eax + 8], ecx
je 0x407bae
mov dword [eax + 8], ecx
mov esi, dword [ebx + 8]
push edi
push 1
mov edi, 0x41c568
call fcn.0040d03d
mov eax, dword [ebp + 0x10]
mov esi, dword [ebx + 8]
push 0
call fcn.0040d678
push dword [ebx + 0x21c]
mov esi, dword [ebx + 8]
push str._IXStream__Handle__p_
call fcn.0040d35a
push dword [ebx + 0x230]
mov esi, dword [ebx + 8]
push str._IXStream__Access__x_
call fcn.0040d35a
add esp, 0x10
mov eax, ebx
call fcn.004077be
mov ebx, dword [ebx + 8]
push eax
push 0x6d68
push edi
call fcn.0040d191
mov esi, dword [ebp - 8]
add esp, 0xc
mov eax, esi
call fcn.004077be
mov ebx, dword [esi + 8]
push eax
push 1
call fcn.0040d3cb
pop edi
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
leave
ret 0xc
Function at 0x407c2c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
mov ecx, dword [ebx + 8]
xor edi, edi
inc edi
mov eax, edi
mov dword [ebp - 0x10], ebx
call fcn.0040d15d
mov esi, dword [ebp + 0x10]
xor ecx, ecx
cmp esi, ecx
jne 0x407c58
mov dword [ebp - 8], edi
lea esi, [ebp - 0x14]
jmp 0x407c5b
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [esi], ecx
push dword [ebx + 0x21c]
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esi]
cmp dword [ebp + 0xc], 0
jmp 0x407cc0
cmp dword [ebp - 4], 0
jne 0x407cc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x407c9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xa2
jne 0x407cc8
mov eax, dword [esi]
sub dword [ebp + 0x10], eax
add dword [ebp + 8], eax
push 0
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebx + 0x21c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
add edi, dword [esi]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edi
ja 0x407c7d
lea eax, [ebx + 0x220]
mov dword [esi], edi
add dword [eax], edi
adc dword [eax + 4], 0
mov eax, dword [ebp - 4]
test eax, eax
je 0x407cf0
cmp dword [ebp - 8], 0
je 0x407da3
cmp edi, dword [ebp + 0xc]
je 0x407da3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 3
mov dword [ebp + 8], eax
mov eax, dword [ebx + 8]
pop ecx
cmp dword [eax + 8], ecx
je 0x407d07
mov dword [eax + 8], ecx
mov esi, dword [ebx + 8]
push 1
mov edi, 0x41c568
call fcn.0040d03d
xor eax, eax
cmp dword [ebp - 4], eax
je 0x407d2e
mov ecx, dword [ebx + 8]
lea edx, [ecx + 0x65]
mov dword [ecx + 0x61], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
jmp 0x407d3a
mov esi, dword [ebx + 8]
push eax
mov eax, dword [ebp + 8]
call fcn.0040d678
push dword [ebx + 0x21c]
mov esi, dword [ebx + 8]
push str._IXStream__Handle__p_
call fcn.0040d35a
push dword [ebp - 8]
mov esi, dword [ebx + 8]
push str._IXStream__bExact__d_
call fcn.0040d35a
push dword [ebp - 0xc]
mov esi, dword [ebx + 8]
push dword [ebp + 0xc]
push str._IXStream__A_lire__u___lu__u_
call fcn.0040d35a
add esp, 0x1c
mov eax, ebx
call fcn.004077be
mov ebx, dword [ebx + 8]
push eax
push 0x6d63
push edi
call fcn.0040d191
mov esi, dword [ebp - 0x10]
add esp, 0xc
mov eax, esi
call fcn.004077be
mov ebx, dword [esi + 8]
push eax
push 1
call fcn.0040d3cb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x408c43
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
mov ebx, eax
call edi
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [esp + 0x18], eax
call edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [esp + 0x10]
mov eax, ebx
call fcn.004089b4
test eax, eax
pop ecx
je 0x408cb5
push 1
mov edi, 0x41c568
mov esi, ebx
call fcn.0040d03d
push ebp
push 0x6ddb
push edi
call fcn.0040d176
add esp, 0xc
push ebp
push 1
call fcn.0040d3cb
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x408cc0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
mov ebx, eax
call edi
push dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call esi
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 4], 0
jne 0x408d49
call esi
cmp eax, 5
jne 0x408d49
push ebx
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.004091d4
add esp, 0xc
test eax, eax
je 0x408d45
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
mov eax, ebx
push dword [ebp + 8]
call fcn.00409284
test eax, eax
pop ecx
pop ecx
je 0x408d45
push dword [ebp + 8]
mov eax, ebx
call fcn.00408c43
pop ecx
jmp 0x408d84
xor eax, eax
jmp 0x408d84
push dword [ebp - 4]
mov eax, ebx
call fcn.004089b4
test eax, eax
pop ecx
je 0x408d81
push 1
mov edi, 0x41c568
mov esi, ebx
call fcn.0040d03d
push dword [ebp + 8]
push 0x6ddb
push edi
call fcn.0040d176
add esp, 0xc
push dword [ebp + 8]
push 1
call fcn.0040d3cb
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret