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

Disassembly:
mov eax, 0x431f4f
call fcn.00431d00
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 0x43ccdc
push eax
call fcn.004029e1
add esp, 0x10
lea eax, [ebp - 0x24c]
push eax
push 0x14
lea eax, [ebp - 0x40]
push eax
push 0x43cc84
push 0x43e664
push 0x43e66c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x40]
push str.WXF7
push eax
call fcn.00420f91
pop ecx
pop ecx
test eax, eax
jne 0x404a64
xor ebx, ebx
cmp dword [esi + 0xc48], ebx
je 0x4049be
push str.132___Retour
mov ecx, esi
call fcn.004032a6
mov ecx, edi
call fcn.0040c44f
push edi
lea eax, [ebp - 0x664]
push str.__sWDSETUP7.EXE_
push eax
call fcn.004029e1
push edi
lea eax, [ebp - 0x458]
push str._REP_s
push eax
call fcn.004029e1
add esp, 0x14
lea edx, [ebp - 0x458]
lea ecx, [ebp - 0x664]
push edi
call fcn.0041325f
pop ecx
pop ecx
test eax, eax
jne 0x404a75
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 0x404a5b
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push str.Impossible_de_lancer_lapplication_de_contr
push eax
call fcn.004029fb
add esp, 0x10
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0040f58a
push eax
mov ecx, esi
call fcn.004032a6
lea ecx, [ebp - 0x14]
call fcn.0040f501
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 0x404a66
Function at 0x404cac
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 0x404cd6
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x404ce1
push dword [ebp + 0x7c]
push eax
call fcn.00420b01
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 0x404dc3
call fcn.00431910
mov esi, esp
test esi, esi
je 0x404dc3
push edi
push 0
push esi
call fcn.0041ab90
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 0x404dc3
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 0x404dc3
mov ecx, dword [ebp + 0x7c]
mov ebx, 0x43ea88
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.004029e1
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 0x404da6
push ebx
lea eax, [ebp - 0x64]
push str.StringFileInfo040904E4_s
push eax
call fcn.004029e1
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 0x404dc3
mov edi, dword [ebp + 0x78]
mov esi, dword [ebp + 0x74]
push edi
push dword [ebp + 0x7c]
push esi
call fcn.00420f4e
xor eax, eax
add esp, 0xc
mov word [esi + edi*2 - 2], ax
inc eax
jmp 0x404dc5
xor eax, eax
lea esp, [ebp - 0x27c]
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc

Function at 0x404dd5
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
mov edi, ecx
xor edx, edx
mov eax, dword [edi + 0x11b0]
sub eax, edx
je 0x404e5d
sub eax, 1
je 0x404df1
xor eax, eax
jmp 0x404e7a
lea ecx, [edi + 0x1424]
mov eax, dword [ecx]
test eax, eax
je 0x404e09
cmp word [eax], dx
je 0x404e09
call fcn.0040f58a
jmp 0x404e63
mov esi, dword [esp + 0xc]
lea eax, [edi + 0x420]
push eax
push 0x104
push esi
push 0x43cc84
push str.INSTLOCAL
lea eax, [edi + 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
call fcn.00420c76
pop ecx
test eax, eax
jne 0x404e70
lea eax, [edi + 0xc]
push eax
push esi
call fcn.00420b01
mov ecx, esi
call fcn.0040c44f
push str.INSTALL
push esi
call fcn.00420b23
add esp, 0x10
jmp 0x404e70
lea eax, [edi + 0x216]
mov esi, dword [esp + 0xc]
push eax
push esi
call fcn.00420b01
pop ecx
pop ecx
mov ecx, esi
call fcn.0040c44f
xor eax, eax
inc eax
pop edi
pop esi
ret 4
Function at 0x405939
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x431e5b
call fcn.00431d00
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 0x43cc84
lea ebx, [eax + 0x834]
mov dword [ebp - 0x14], ecx
push 0x43e170
push ebx
call esi
push edi
push 0x104
lea eax, [ebp - 0x224]
push eax
push 0x43cc84
push 0x43e180
push ebx
call esi
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x14]
call fcn.00420b23
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040c44f
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.00420b01
lea eax, [ebp - 0x430]
push eax
push esi
call fcn.00420b23
add esp, 0x10
mov ecx, esi
call fcn.0040c1e9
test eax, eax
jne 0x405a42
push edi
push ebx
lea eax, [ebp - 0x10]
push 0x43ccdc
push eax
call fcn.004029fb
add esp, 0x10
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040f58a
mov ecx, eax
call fcn.0040c1e9
test eax, eax
je 0x405a3a
lea ecx, [ebp - 0x10]
call fcn.0040f58a
push eax
push esi
call fcn.00420b01
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.0040f501
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405d2b
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 0x405dc2
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 0x43cc84
push str.LASTCHECKVERSION
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x30]
call fcn.004061a3
test ebx, ebx
jle 0x405dc2
cmp word [ebp - 0x1c], 0
je 0x405dc2
and dword [ebp - 4], 0
lea edx, [ebp - 4]
lea ecx, [ebp - 0x30]
call fcn.004061d2
and dword [ebp - 8], 0
lea edx, [ebp - 8]
lea ecx, [ebp - 0x1c]
call fcn.004061d2
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
cmp eax, ebx
jl 0x405dca
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 0x405dc5
Function at 0x405dce
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.0040c1e9
test eax, eax
je 0x405e55
push ebp
push esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x18]
push 0x104
push eax
push 0x43ed3c
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 0x43ed3c
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 0x40677c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
cmp word [ecx], 0
je 0x4067a0
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 0x4067a2
xor eax, eax
pop ebp
ret 0x14

Function at 0x406d3a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x44a348]
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.0040e78f
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.00405eea
push edi
call fcn.004215a9
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.0040e78f
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.00405eea
push edi
call fcn.004215a9
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 0x406f43
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43208d
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
call fcn.0040727b
lea ecx, [esi + 0x30]
call fcn.004105a8
and dword [ebp - 4], 0
mov ecx, dword [esi + 0x20]
call fcn.004066dc
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0x1c]
call fcn.004066dc
mov dword [ebp - 4], 2
mov ecx, dword [esi + 0x18]
call fcn.004066dc
mov dword [ebp - 4], 3
mov ecx, dword [esi + 0x14]
call fcn.004066dc
mov dword [ebp - 4], 4
mov ecx, dword [esi + 0x10]
call fcn.004066dc
mov dword [ebp - 4], 5
mov ecx, dword [esi + 0xc]
call fcn.004066dc
mov dword [ebp - 4], 6
mov ecx, dword [esi + 4]
call fcn.004066dc
mov dword [ebp - 4], 7
mov ecx, dword [esi]
call fcn.004066dc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x406fec
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4320a7
call fcn.00431d00
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 0x43cc84
push 0x43e170
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.00405eea
push ebx
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x43cc84
push 0x43e180
push edi
call esi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ecx + 0x20]
call fcn.00405eea
mov ecx, dword [ebp - 0x10]
push str.PC_SOFT
lea ecx, [ecx + 0xc]
call fcn.00405eea
push ebx
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x43ed3c
push 0x43fcd4
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 0x43ed3c
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 0x4070df
push str.HTTPS
jmp 0x4070e4
push str.HTTP
call fcn.00405eea
and dword [ebp + 8], 0
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
push 0x43fcd0
lea edi, [ebx + 4]
push 1
mov ecx, edi
call fcn.00405ff9
test eax, eax
je 0x40714f
mov esi, dword [edi]
test esi, esi
je 0x407114
lock inc dword [esi - 0xc]
mov dword [ebp + 0xc], esi
push edi
push 0x43fcd0
push 0
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00405ff9
cmp dword [ebp + 8], 0
mov eax, 0x43cc84
cmovne eax, dword [ebp + 8]
push eax
call fcn.00421f1d
pop ecx
mov dword [ebx + 8], eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004066dc
jmp 0x407161
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.004066dc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x409cee
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x432221
call fcn.00431d00
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CProgression.0
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0x64
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 0xa
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov byte [ebp - 4], 2
push ecx
mov dword [esi + 0x38], eax
call fcn.00409dcc
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40af32
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.0040ce83
test eax, eax
jne 0x40b07a
push 0x4401f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40b07a
push str.NtQueryInformationFile
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40b07a
push 0x20e
xor ebx, ebx
lea eax, [ebp - 0x258]
push ebx
push eax
call fcn.0041ab90
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 0x40b07a
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 0x40b07a
push 0x410
lea eax, [ebp - 0x668]
push ebx
push eax
call fcn.0041ab90
add esp, 0xc
lea eax, [ebp - 0x668]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [0x440220]
lea esi, [ebp - 0x668]
mov dword [ebp - 0xc], eax
mov eax, dword [0x440224]
mov dword [ebp - 8], eax
movzx eax, word [ebp - 0x668]
mov word [ebp - 0xc], ax
cmp ax, 0x41
je 0x40b067
cmp ax, 0x42
je 0x40b067
lea ecx, [ebp - 0xc]
call fcn.0040ce13
cmp eax, 3
jne 0x40b067
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 0x40b083
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x40b067
movzx eax, word [esi]
test ax, ax
jne 0x40b02b
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.00420f4e
push 0x102
lea eax, [ebp - 0x254]
push eax
lea eax, [esi + 4]
push eax
call fcn.00420f4e
xor eax, eax
add esp, 0x18
inc eax
jmp 0x40b07c
Function at 0x40b1ad
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 8]
call fcn.00410f3e
cmp dword [esp + 0x10], 0
jne 0x40b1d5
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40b1cd
and dword [ecx], 0
xor eax, eax
inc eax
jmp 0x40b29d
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 0x40b20e
mov dword [ecx], eax
test ebx, ebx
jne 0x40b29a
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 8]
mov esi, eax
push 3
call fcn.00410f3e
mov ecx, dword [edi + 8]
mov ebp, 0x43fa50
push 1
push ebp
call fcn.00410e17
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.004115dc
push dword [edi + 0x21c]
push str._IXStream__Handle__p_
push dword [edi + 8]
call fcn.0041120c
push dword [edi + 0x230]
push str._IXStream__Access__x_
push dword [edi + 8]
call fcn.0041120c
add esp, 0x18
mov ecx, edi
call fcn.0040d4ed
push eax
push 0x6d68
push ebp
push dword [edi + 8]
call fcn.0041104d
add esp, 0x10
mov ecx, edi
call fcn.0040d4ed
mov ecx, dword [edi + 8]
push eax
push 1
call fcn.004112a7
pop esi
pop ebp
mov eax, ebx
pop ebx
pop edi
pop ecx
ret 0xc
Function at 0x40b2a2
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.00410f3e
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 0x40b345
test edi, edi
jne 0x40b345
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40b315
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xa2
jne 0x40b345
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 0x40b2f7
mov dword [ebx], ebp
add dword [esi + 0x220], ebp
adc dword [esi + 0x224], 0
test edi, edi
je 0x40b36c
cmp dword [esp + 0x28], 0
jne 0x40b365
cmp ebp, dword [esp + 0x24]
jne 0x40b36c
mov eax, edi
jmp 0x40b429
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 8]
mov ebx, eax
push 3
call fcn.00410f3e
mov ecx, dword [esi + 8]
push 1
push 0x43fa50
call fcn.00410e17
mov ecx, dword [esi + 8]
push ecx
test edi, edi
je 0x40b399
push 0
jmp 0x40b39a
push ebx
call fcn.004115dc
push dword [esi + 0x21c]
push str._IXStream__Handle__p_
push dword [esi + 8]
call fcn.0041120c
push dword [esp + 0x20]
push str._IXStream__bExact__d_
push dword [esi + 8]
call fcn.0041120c
push ebp
push dword [esp + 0x40]
push str._IXStream__A_lire__u___lu__u_
push dword [esi + 8]
call fcn.0041120c
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.0041120c
add esp, 0x38
mov ecx, esi
call fcn.0040d4ed
push eax
push 0x6d63
push 0x43fa50
push dword [esi + 8]
call fcn.0041104d
add esp, 0x10
mov ecx, esi
call fcn.0040d4ed
mov ecx, dword [esi + 8]
push eax
push 1
call fcn.004112a7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x40b8a6
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 8]
call fcn.00410f3e
mov eax, dword [ebp + 0x10]
sub eax, 0
je 0x40b8c7
sub eax, 1
jne 0x40b8da
push 2
jmp 0x40b8c9
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 0x40b8e1
xor eax, eax
jmp 0x40b969
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40b966
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 8]
mov esi, eax
push 3
call fcn.00410f3e
mov ecx, dword [edi + 8]
mov ebx, 0x43fa50
push 1
push ebx
call fcn.00410e17
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.004115dc
push dword [edi + 0x21c]
push str._IXStream__Handle__p_
push dword [edi + 8]
call fcn.0041120c
add esp, 0xc
mov ecx, edi
call fcn.0040d4ed
push eax
push 0x6d64
push ebx
push dword [edi + 8]
call fcn.0041104d
add esp, 0x10
mov ecx, edi
call fcn.0040d4ed
mov ecx, dword [edi + 8]
push eax
push 1
call fcn.004112a7
pop esi
xor eax, eax
pop ebx
jmp 0x40b969
xor eax, eax
inc eax
pop edi
pop ebp
ret 0xc

Function at 0x40be3d
Capabilities:
Delete file

Disassembly:
mov eax, 0x432281
call fcn.00431d00
sub esp, 0x220
push ebx
push esi
mov edx, ecx
lea ecx, [ebp - 0x22c]
push edi
call fcn.0040daee
and dword [ebp - 4], 0
push 0
push edx
call fcn.0040dd58
cmp dword [ebp - 0x20], 0
lea esi, [ebp - 0x22c]
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmovne esi, dword [ebp - 0x20]
push 0x8001
mov dword [ebp - 0x14], esi
call ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00404ca9
xor ebx, ebx
inc ebx
test eax, eax
je 0x40bedc
push ebx
mov edi, 0x43fa50
xor ecx, ecx
push edi
call fcn.00410e17
mov esi, dword [ebp - 0x14]
push esi
push 0x6ddb
push edi
push 0
call fcn.0041102f
add esp, 0x10
xor ecx, ecx
push esi
push ebx
call fcn.004112a7
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x20]
call fcn.004066dc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40bef9
Capabilities:
Delete file

Disassembly:
push ecx
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 + 0x10], 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 + 0x10]
test esi, esi
jne 0x40bf77
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40bf77
push ecx
mov edx, ebp
lea ecx, [esp + 0x14]
call fcn.0040c6b3
pop ecx
test eax, eax
je 0x40bf73
mov edx, dword [esp + 0x10]
push ecx
and edx, 0xfffffffe
mov ecx, ebp
call fcn.0040c7ab
pop ecx
test eax, eax
je 0x40bf73
mov ecx, ebp
pop edi
pop esi
pop ebp
add esp, 8
jmp fcn.0040be3d
xor eax, eax
jmp 0x40bfac
call fcn.00404ca9
test eax, eax
je 0x40bfaa
push 1
mov edi, 0x43fa50
xor ecx, ecx
push edi
call fcn.00410e17
push ebp
push 0x6ddb
push edi
push 0
call fcn.0041102f
add esp, 0x10
xor ecx, ecx
push ebp
push 1
call fcn.004112a7
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x40bfb2
Capabilities:
Move file

Disassembly:
mov eax, 0x4322a1
call fcn.00431d00
sub esp, 0x42c
push ebx
push esi
push edi
push 0x8001
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp - 0x438]
mov ebx, eax
call fcn.0040daee
and dword [ebp - 4], 0
push 0
push esi
call fcn.0040dd58
cmp dword [ebp - 0x22c], 0
lea esi, [ebp - 0x438]
lea ecx, [ebp - 0x228]
cmovne esi, dword [ebp - 0x22c]
mov dword [ebp - 0x10], esi
call fcn.0040daee
push 0
push edi
mov byte [ebp - 4], 1
call fcn.0040dd58
cmp dword [ebp - 0x1c], 0
lea edi, [ebp - 0x228]
cmovne edi, dword [ebp - 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00404ca9
test eax, eax
je 0x40c08b
push 1
mov ebx, 0x43fa50
xor ecx, ecx
push ebx
call fcn.00410e17
mov esi, dword [ebp - 0x10]
push esi
push edi
push 0x6ddc
push ebx
push 0
call fcn.0041102f
add esp, 0x14
xor ecx, ecx
push esi
push 1
call fcn.004112a7
push edi
push 2
xor ecx, ecx
call fcn.004112a7
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
call fcn.004066dc
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x22c]
call fcn.004066dc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret