joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40493e
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x42fff1
call fcn.0042fda0
sub esp, 0x658
lea eax, [ebp - 0x24c]
push ebx
push esi
push edi
mov esi, ecx
push str.INST.WXF
lea edi, [esi + 0x216]
push edi
push str._s_s
push eax
call fcn.004029e8
add esp, 0x10
lea eax, [ebp - 0x24c]
push eax
push 0x14
lea eax, [ebp - 0x40]
push eax
push 0x43ad64
push 0x43c744
push 0x43c74c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x40]
push str.WXF7
push eax
call fcn.0041f7c7
pop ecx
pop ecx
test eax, eax
jne 0x404a69
xor ebx, ebx
cmp dword [esi + 0xc48], ebx
je 0x4049c3
push str.132___Retour
mov ecx, esi
call fcn.004032d3
mov ecx, edi
call fcn.0040be0b
push edi
lea eax, [ebp - 0x664]
push str.__sWDSETUP7.EXE_
push eax
call fcn.004029e8
push edi
lea eax, [ebp - 0x458]
push str._REP_s
push eax
call fcn.004029e8
add esp, 0x14
lea edx, [ebp - 0x458]
lea ecx, [ebp - 0x664]
push edi
call fcn.004124bc
pop ecx
pop ecx
test eax, eax
jne 0x404a7a
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [esi + 0xc48], ebx
je 0x404a60
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push str.Impossible_de_lancer_lapplication_de_contr
push eax
call fcn.00402a02
add esp, 0x10
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0040ef3e
push eax
mov ecx, esi
call fcn.004032d3
lea ecx, [ebp - 0x14]
call fcn.0040eeb5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x404a6b
Function at 0x404cb1
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x2dc
lea eax, [ebp - 0x270]
cmp dword [ebp + 0x7c], 0
push ebx
push esi
push edi
jne 0x404cdb
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x404ce6
push dword [ebp + 0x7c]
push eax
call fcn.0041f716
pop ecx
pop ecx
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x404dc8
call fcn.0042f950
mov esi, esp
test esi, esi
je 0x404dc8
push edi
push 0
push esi
call fcn.00419a80
add esp, 0xc
lea eax, [ebp - 0x270]
push esi
push edi
push dword [ebp + 0x64]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x404dc8
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x7c]
push eax
push str.VarFileInfoTranslation
push esi
call edi
test eax, eax
je 0x404dc8
mov ecx, dword [ebp + 0x7c]
mov ebx, 0x43cb68
push ebx
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x64]
push str.StringFileInfo_04X_04X_s
push eax
call fcn.004029e8
add esp, 0x14
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
call edi
test eax, eax
jne 0x404dab
push ebx
lea eax, [ebp - 0x64]
push str.StringFileInfo040904E4_s
push eax
call fcn.004029e8
add esp, 0xc
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
call edi
test eax, eax
je 0x404dc8
mov edi, dword [ebp + 0x78]
mov esi, dword [ebp + 0x74]
push edi
push dword [ebp + 0x7c]
push esi
call fcn.0041f784
xor eax, eax
add esp, 0xc
mov word [esi + edi*2 - 2], ax
inc eax
jmp 0x404dca
xor eax, eax
lea esp, [ebp - 0x27c]
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc

Function at 0x404dda
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
mov edi, ecx
xor edx, edx
mov eax, dword [edi + 0x11b0]
sub eax, edx
je 0x404e62
sub eax, 1
je 0x404df6
xor eax, eax
jmp 0x404e7f
lea ecx, [edi + 0x1424]
mov eax, dword [ecx]
test eax, eax
je 0x404e0e
cmp word [eax], dx
je 0x404e0e
call fcn.0040ef3e
jmp 0x404e68
mov esi, dword [esp + 0xc]
lea eax, [edi + 0x420]
push eax
push 0x104
push esi
push 0x43ad64
push str.INSTLOCAL
lea eax, [edi + 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
call fcn.0041f769
pop ecx
test eax, eax
jne 0x404e75
lea eax, [edi + 0xc]
push eax
push esi
call fcn.0041f716
mov ecx, esi
call fcn.0040be0b
push str.INSTALL
push esi
call fcn.0041f738
add esp, 0x10
jmp 0x404e75
lea eax, [edi + 0x216]
mov esi, dword [esp + 0xc]
push eax
push esi
call fcn.0041f716
pop ecx
pop ecx
mov ecx, esi
call fcn.0040be0b
xor eax, eax
inc eax
pop edi
pop esi
ret 4
Function at 0x405947
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x42fefd
call fcn.0042fda0
sub esp, 0x424
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, ecx
push edi
mov dword [ebp - 0x18], eax
lea edi, [eax + 0x420]
push edi
push 0x104
lea ecx, [eax + 0x216]
push ecx
push 0x43ad64
lea ebx, [eax + 0x834]
mov dword [ebp - 0x14], ecx
push 0x43c250
push ebx
call esi
push edi
push 0x104
lea eax, [ebp - 0x224]
push eax
push 0x43ad64
push 0x43c260
push ebx
call esi
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x14]
call fcn.0041f738
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040be0b
push edi
push 0x104
lea eax, [ebp - 0x430]
mov edi, str.WDUPDATE.NET
push eax
push edi
push str.FICUPDATE
push ebx
call esi
mov eax, dword [ebp - 0x18]
lea ebx, [eax + 0x216]
lea esi, [eax + 0x62a]
push ebx
push esi
call fcn.0041f716
lea eax, [ebp - 0x430]
push eax
push esi
call fcn.0041f738
add esp, 0x10
mov ecx, esi
call fcn.0040bc4c
test eax, eax
jne 0x405a50
push edi
push ebx
lea eax, [ebp - 0x10]
push str._s_s
push eax
call fcn.00402a02
add esp, 0x10
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040ef3e
mov ecx, eax
call fcn.0040bc4c
test eax, eax
je 0x405a48
lea ecx, [ebp - 0x10]
call fcn.0040ef3e
push eax
push esi
call fcn.0041f716
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.0040eeb5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405d25
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp byte [ecx + 0x11b9], 0
push ebx
push esi
push edi
jne 0x405dbc
lea esi, [ecx + 0x420]
push esi
push 0
lea edi, [ecx + 0x834]
push str.DELAICHECKVERSION
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 9
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push 0x43ad64
push str.LASTCHECKVERSION
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x30]
call fcn.004061ed
test ebx, ebx
jle 0x405dbc
cmp word [ebp - 0x1c], 0
je 0x405dbc
and dword [ebp - 4], 0
lea edx, [ebp - 4]
lea ecx, [ebp - 0x30]
call fcn.0040621c
and dword [ebp - 8], 0
lea edx, [ebp - 8]
lea ecx, [ebp - 0x1c]
call fcn.0040621c
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
cmp eax, ebx
jl 0x405dc4
push esi
lea eax, [ebp - 0x30]
push eax
push str.LASTCHECKVERSION
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x405dbf
Function at 0x405dc8
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x210
push ebx
push edi
mov edi, ecx
lea ebx, [edi + 0x62a]
mov ecx, ebx
mov dword [esp + 8], ebx
call fcn.0040bc4c
test eax, eax
je 0x405e4f
push ebp
push esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x18]
push 0x104
push eax
push 0x43ce1c
mov esi, str.DELAICHECKVERSION
lea ebp, [edi + 0x834]
push esi
push ebp
call ebx
add edi, 0x420
lea eax, [esp + 0x14]
push edi
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebp
call esi
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0x104
push eax
push 0x43ce1c
push str.SILENTCHECKVERSION
push ebp
call ebx
push edi
lea eax, [esp + 0x18]
push eax
push str.SILENTCHECKVERSION
push ebp
call esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x210
ret

Function at 0x4066ef
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
cmp word [ecx], 0
je 0x406713
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x406715
xor eax, eax
pop ebp
ret 0x14

Function at 0x406cad
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4471d8]
push ebx
push esi
push edi
and dword [eax + 0xc], 0
push 0x3e9
push dword [eax + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
mov ecx, esi
call fcn.0040e0f7
push esi
mov edi, eax
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebp - 4]
push edi
lea ecx, [esi + 0x10]
call fcn.00405ee4
push edi
call fcn.0041fdfd
mov dword [esp], 0x3ea
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
mov ecx, esi
call fcn.0040e0f7
push esi
mov edi, eax
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, dword [ebp - 4]
push edi
lea ecx, [ebx + 0x14]
call fcn.00405ee4
push edi
call fcn.0041fdfd
pop ecx
push 0
push 0
push 2
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406eb6
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43012f
push eax
mov dword fs:[0], esp
push esi
push edi
mov esi, ecx
call fcn.00407215
lea ecx, [esi + 0x30]
call fcn.0040fbd6
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x20]
call fcn.00406672
mov dword [esi + 0x20], edi
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0x1c]
call fcn.00406672
mov dword [esi + 0x1c], edi
mov dword [ebp - 4], 2
mov ecx, dword [esi + 0x18]
call fcn.00406672
mov dword [esi + 0x18], edi
mov dword [ebp - 4], 3
mov ecx, dword [esi + 0x14]
call fcn.00406672
mov dword [esi + 0x14], edi
mov dword [ebp - 4], 4
mov ecx, dword [esi + 0x10]
call fcn.00406672
mov dword [esi + 0x10], edi
mov dword [ebp - 4], 5
mov ecx, dword [esi + 0xc]
call fcn.00406672
mov dword [esi + 0xc], edi
mov dword [ebp - 4], 6
mov ecx, dword [esi + 4]
call fcn.00406672
mov dword [esi + 4], edi
mov dword [ebp - 4], 7
mov ecx, dword [esi]
call fcn.00406672
mov ecx, dword [ebp - 0xc]
mov dword [esi], edi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x406f79
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x430149
call fcn.0042fda0
sub esp, 0x210
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
mov edi, dword [ebp + 0xc]
push ebx
push 0x104
push eax
push 0x43ad64
push 0x43c250
push edi
mov dword [ebp - 0x10], ecx
call esi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [eax + 4]
call fcn.00405ee4
push ebx
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x43ad64
push 0x43c260
push edi
call esi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ecx + 0x20]
call fcn.00405ee4
mov ecx, dword [ebp - 0x10]
push str.PC_SOFT
lea ecx, [ecx + 0xc]
call fcn.00405ee4
push ebx
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x43ce1c
push 0x43ddbc
push edi
call esi
push 0x30
pop ecx
xor eax, eax
cmp word [ebp - 0x21c], cx
mov ecx, dword [ebp - 0x10]
push ebx
setne al
push 0x104
mov dword [ecx + 0x28], eax
lea eax, [ebp - 0x21c]
push eax
push 0x43ce1c
push str.HTTPSECURE
push edi
call esi
mov ebx, dword [ebp - 0x10]
xor eax, eax
push 0x30
pop ecx
cmp word [ebp - 0x21c], cx
mov ecx, ebx
setne al
mov dword [ebp + 0xc], eax
je 0x40706c
push str.HTTPS
jmp 0x407071
push str.HTTP
call fcn.00405ee4
and dword [ebp + 8], 0
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
push 0x43ddb8
lea edi, [ebx + 4]
push 1
mov ecx, edi
call fcn.00406024
test eax, eax
je 0x4070e9
mov esi, dword [edi]
test esi, esi
je 0x4070ac
lea eax, [esi - 0xc]
mov dword [ebp + 0xc], esi
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4070b1
xor esi, esi
mov dword [ebp + 0xc], esi
push edi
push 0x43ddb8
push 0
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00406024
cmp dword [ebp + 8], 0
mov eax, 0x43ad64
cmovne eax, dword [ebp + 8]
push eax
call fcn.00420819
pop ecx
mov dword [ebx + 8], eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00406672
jmp 0x4070fb
cmp dword [ebp + 0xc], 0
mov ecx, 0x1bb
push 0x50
pop eax
cmovne eax, ecx
mov dword [ebx + 8], eax
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 8]
call fcn.00406672
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40a86d
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SystemCurrentControlSetControlProductOptions
push 0x80000002
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a936
push ebp
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x10]
push eax
push esi
lea eax, [esp + 0x1c]
mov ebp, str.ProductSuite
push eax
push esi
push ebp
push dword [esp + 0x20]
call edi
test eax, eax
jne 0x40a934
cmp dword [esp + 0x10], esi
je 0x40a934
push ebx
push dword [esp + 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x40a933
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x20]
push eax
push esi
push ebp
push dword [esp + 0x24]
call edi
test eax, eax
jne 0x40a92c
cmp dword [esp + 0x18], 7
jne 0x40a92c
mov edi, ebx
cmp word [ebx], si
je 0x40a92c
push str.Terminal_Server
push edi
call fcn.0041f7c7
pop ecx
pop ecx
test eax, eax
je 0x40a929
push edi
call fcn.0041f769
pop ecx
lea edi, [edi + eax*2]
add edi, 2
cmp word [edi], si
jne 0x40a904
jmp 0x40a92c
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
pop edi
pop ebp
cmp dword [esp + 4], 0
je 0x40a947
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x40ab04
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [edi + 0xc]
mov eax, dword [ecx + 0x20c]
test eax, eax
cmovne ecx, eax
call fcn.0040c6bd
test eax, eax
jne 0x40ac4c
push str.NTDLL.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40ac4c
push str.NtQueryInformationFile
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40ac4c
push 0x20e
xor ebx, ebx
lea eax, [ebp - 0x258]
push ebx
push eax
call fcn.00419a80
add esp, 0xc
lea eax, [ebp - 0x258]
push 9
push 0x20c
push eax
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x21c]
call esi
test eax, eax
js 0x40ac4c
mov eax, dword [ebp - 0x258]
xor ecx, ecx
shr eax, 1
mov word [ebp + eax*2 - 0x254], cx
lea eax, [ebp - 0x48]
push eax
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x40ac4c
push 0x410
lea eax, [ebp - 0x668]
push ebx
push eax
call fcn.00419a80
add esp, 0xc
lea eax, [ebp - 0x668]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [0x43e3bc]
lea esi, [ebp - 0x668]
mov dword [ebp - 0xc], eax
mov eax, dword [0x43e3c0]
mov dword [ebp - 8], eax
movzx eax, word [ebp - 0x668]
mov word [ebp - 0xc], ax
cmp ax, 0x41
je 0x40ac39
cmp ax, 0x42
je 0x40ac39
lea ecx, [ebp - 0xc]
call fcn.0040c64d
cmp eax, 3
jne 0x40ac39
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x2c]
je 0x40ac55
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x40ac39
movzx eax, word [esi]
test ax, ax
jne 0x40abfd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push 2
push eax
push esi
call fcn.0041f784
push 0x102
lea eax, [ebp - 0x254]
push eax
lea eax, [esi + 4]
push eax
call fcn.0041f784
xor eax, eax
add esp, 0x18
inc eax
jmp 0x40ac4e
Function at 0x40ad84
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 8]
call fcn.00410246
cmp dword [esp + 0x10], 0
jne 0x40adac
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40ada4
and dword [ecx], 0
xor eax, eax
inc eax
jmp 0x40ae74
push ebx
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x18]
mov ebx, eax
mov eax, dword [esp + 8]
add dword [edi + 0x220], eax
adc dword [edi + 0x224], 0
test ecx, ecx
je 0x40ade5
mov dword [ecx], eax
test ebx, ebx
jne 0x40ae71
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 8]
mov esi, eax
push 3
call fcn.00410246
mov ecx, dword [edi + 8]
mov ebp, 0x43dbf8
push 1
push ebp
call fcn.0041011f
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.004108fa
push dword [edi + 0x21c]
push str._IXStream__Handle__p_
push dword [edi + 8]
call fcn.0041051d
push dword [edi + 0x230]
push str._IXStream__Access__x_
push dword [edi + 8]
call fcn.0041051d
add esp, 0x18
mov ecx, edi
call fcn.0040cfd4
push eax
push 0x6d68
push ebp
push dword [edi + 8]
call fcn.0041035e
add esp, 0x10
mov ecx, edi
call fcn.0040cfd4
mov ecx, dword [edi + 8]
push eax
push 1
call fcn.004105b8
pop esi
pop ebp
mov eax, ebx
pop ebx
pop edi
pop ecx
ret 0xc
Function at 0x40ae7e
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 1
mov ecx, dword [esi + 8]
call fcn.00410246
mov eax, dword [esp + 0x28]
lea ebx, [esp + 0x18]
test eax, eax
push 0
cmovne ebx, eax
xor ecx, ecx
push ebx
test eax, eax
mov eax, dword [esp + 0x2c]
push eax
push dword [esp + 0x2c]
sete cl
mov dword [esp + 0x20], eax
and dword [ebx], 0
push dword [esi + 0x21c]
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x24], 0
mov edi, eax
mov ebp, dword [ebx]
jbe 0x40af1c
test edi, edi
jne 0x40af1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40aeec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xa2
jne 0x40af1c
mov eax, dword [esp + 0x10]
sub eax, dword [ebx]
mov ecx, dword [esp + 0x20]
add ecx, dword [ebx]
push 0
push ebx
push eax
push ecx
push dword [esi + 0x21c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
add ebp, dword [ebx]
mov edi, eax
cmp dword [esp + 0x10], 0
jne 0x40aece
mov dword [ebx], ebp
add dword [esi + 0x220], ebp
adc dword [esi + 0x224], 0
test edi, edi
je 0x40af43
cmp dword [esp + 0x28], 0
jne 0x40af3c
cmp ebp, dword [esp + 0x24]
jne 0x40af43
mov eax, edi
jmp 0x40b000
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 8]
mov ebx, eax
push 3
call fcn.00410246
mov ecx, dword [esi + 8]
push 1
push 0x43dbf8
call fcn.0041011f
mov ecx, dword [esi + 8]
push ecx
test edi, edi
je 0x40af70
push 0
jmp 0x40af71
push ebx
call fcn.004108fa
push dword [esi + 0x21c]
push str._IXStream__Handle__p_
push dword [esi + 8]
call fcn.0041051d
push dword [esp + 0x20]
push str._IXStream__bExact__d_
push dword [esi + 8]
call fcn.0041051d
push ebp
push dword [esp + 0x40]
push str._IXStream__A_lire__u___lu__u_
push dword [esi + 8]
call fcn.0041051d
mov ecx, dword [esi + 0x220]
mov eax, dword [esi + 0x224]
sub ecx, ebp
sbb eax, 0
push eax
push ecx
push str._IXStream__Offset__I64u_
push dword [esi + 8]
call fcn.0041051d
add esp, 0x38
mov ecx, esi
call fcn.0040cfd4
push eax
push 0x6d63
push 0x43dbf8
push dword [esi + 8]
call fcn.0041035e
add esp, 0x10
mov ecx, esi
call fcn.0040cfd4
mov ecx, dword [esi + 8]
push eax
push 1
call fcn.004105b8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x40b47d
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 8]
call fcn.00410246
mov eax, dword [ebp + 0x10]
sub eax, 0
je 0x40b49e
sub eax, 1
jne 0x40b4b1
push 2
jmp 0x40b4a0
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x24]
test eax, eax
jne 0x40b4b8
xor eax, eax
jmp 0x40b540
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40b53d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 8]
mov esi, eax
push 3
call fcn.00410246
mov ecx, dword [edi + 8]
mov ebx, 0x43dbf8
push 1
push ebx
call fcn.0041011f
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.004108fa
push dword [edi + 0x21c]
push str._IXStream__Handle__p_
push dword [edi + 8]
call fcn.0041051d
add esp, 0xc
mov ecx, edi
call fcn.0040cfd4
push eax
push 0x6d64
push ebx
push dword [edi + 8]
call fcn.0041035e
add esp, 0x10
mov ecx, edi
call fcn.0040cfd4
mov ecx, dword [edi + 8]
push eax
push 1
call fcn.004105b8
pop esi
xor eax, eax
pop ebx
jmp 0x40b540
xor eax, eax
inc eax
pop edi
pop ebp
ret 0xc

Function at 0x40ba13
Capabilities:
Delete file

Disassembly:
push ecx
push ebp
push esi
push edi
push 0x8001
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00404cae
test eax, eax
je 0x40ba7a
push 1
mov esi, 0x43dbf8
xor ecx, ecx
push esi
call fcn.0041011f
push ebp
push 0x6ddb
push esi
push 0
call fcn.00410340
add esp, 0x10
xor ecx, ecx
push ebp
push 1
call fcn.004105b8
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x40ba83
Capabilities:
Delete file

Disassembly:
push ecx
push ebp
push esi
push edi
push 0x8001
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40bb00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40bb00
push ecx
mov edx, ebp
lea ecx, [esp + 0x10]
call fcn.0040bf8b
pop ecx
test eax, eax
je 0x40bafc
mov edx, dword [esp + 0xc]
push ecx
and edx, 0xfffffffe
mov ecx, ebp
call fcn.0040c032
pop ecx
test eax, eax
je 0x40bafc
pop edi
pop esi
mov ecx, ebp
pop ebp
add esp, 4
jmp fcn.0040ba13
xor eax, eax
jmp 0x40bb35
call fcn.00404cae
test eax, eax
je 0x40bb33
push 1
mov edi, 0x43dbf8
xor ecx, ecx
push edi
call fcn.0041011f
push ebp
push 0x6ddb
push edi
push 0
call fcn.00410340
add esp, 0x10
xor ecx, ecx
push ebp
push 1
call fcn.004105b8
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret