joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407af5
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
test eax, eax
jbe 0x407b7d
push eax
push 2
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x407b7d
push ebx
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov edi, eax
push edi
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x407b6f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x41c030
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x407b6f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], 1
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi + 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x407b89
and dword [esi], eax
and dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407c47
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaec
push ebx
push esi
push edi
call fcn.0040903d
xor ebx, ebx
cmp dword [0x4210a8], ebx
je 0x407c88
cmp byte [0x420da0], bl
mov eax, dword [0x4210ac]
jne 0x407c73
cmp eax, ebx
jne 0x407c88
push 0x420da0
push eax
push 1
push 0x420ea0
call fcn.00409919
add esp, 0x10
mov eax, dword [0x424410]
cmp eax, ebx
jle 0x407ca3
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
push 0x4241c0
call fcn.00410aa0
pop ecx
cmp byte [0x4210e0], bl
je 0x407cb6
push 0x4210e0
call fcn.00410aa0
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x4212e8
push edi
call esi
test eax, eax
je 0x407cd5
push 0x3e8
push edi
call fcn.00408bf1
pop ecx
pop ecx
lea eax, [ebp - 0x25c]
push 1
push eax
call fcn.004097c8
pop ecx
test eax, eax
pop ecx
je 0x407d12
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0040a004
pop ecx
lea eax, [ebp - 0x6a0]
pop ecx
push eax
push dword [0x4210bc]
call fcn.00409cca
pop ecx
pop ecx
cmp dword [ebp + 8], ebx
je 0x407dea
mov edi, 0x421900
push edi
call esi
test eax, eax
je 0x407dea
push dword [0x4243d0]
mov esi, dword [0x4210a8]
mov dword [0x4210a8], ebx
push 1
push 0x40
push 2
call fcn.00405290
add esp, 0x10
lea eax, [ebp - 0x498]
mov dword [0x4210a8], esi
push 1
push dword [ebp + 8]
push esi
push 0x420988
push 0x4216f8
push edi
push eax
lea eax, [ebp - 0xaec]
push eax
call fcn.0040800f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x20
lea eax, [ebp - 0xaec]
push 0x41c078
push eax
call esi
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0xaec]
push eax
call esi
push 0x44
lea eax, [ebp - 0x54]
pop esi
push esi
push ebx
push eax
call fcn.00411f50
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], esi
mov word [ebp - 0x24], 1
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xaec]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
jne 0x407dea
push dword [0x424188]
push 1
push 0x30
push 1
call fcn.00405290
add esp, 0x10
cmp byte [0x4214f0], bl
je 0x407dfd
push 0x4214f0
call fcn.00410aa0
pop ecx
call fcn.00403a8d
cmp eax, 1
jne 0x407e0e
push ebx
call fcn.004037ea
pop ecx
call fcn.00404967
push dword [0x4210b4]
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407ecb
Capabilities:
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x924
push ebx
push esi
push edi
push 0x424660
lea eax, [ebp - 0x208]
push 0x208
push eax
push 0
push str.Uninstal
push str.BootStrap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x208]
mov ebx, 0x424aa0
push eax
push ebx
lea eax, [ebp - 0x514]
push 0x41c1a4
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x208]
mov edi, 0x423b20
push eax
push edi
lea eax, [ebp - 0x71c]
push str._s_s
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x924]
push 0x41c5f8
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x71c]
push eax
lea eax, [ebp - 0x924]
push eax
push 0x424cc0
call fcn.00408ec8
add esp, 0xc
lea eax, [ebp - 0x514]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
lea eax, [ebp - 0x30c]
push 0x41c6a4
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
mov esi, str.ST6UNST.EXE
lea eax, [ebp - 0x208]
push esi
push eax
call edi
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x208]
push esi
push eax
lea eax, [ebp - 0x30c]
push ebx
push eax
call fcn.00406199
add esp, 0x1c
dec eax
dec eax
je 0x407ff9
dec eax
dec eax
je 0x407ff9
dec eax
jne 0x407ff5
push esi
push 0x41c058
push dword [0x423888]
call fcn.00403c7b
add esp, 0xc
push eax
push 1
push 0x10
push 1
call fcn.00405290
add esp, 0x10
jmp 0x407fa8
xor eax, eax
jmp 0x40800a
lea eax, [ebp - 0x514]
push eax
push 0x421900
call edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408449
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor esi, esi
push edi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push esi
push esi
call edi
mov ebx, eax
cmp ebx, esi
je 0x408538
lea eax, [ebx - 1]
mov word [ebp - 0x28], 8
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
cmp eax, esi
mov dword [ebp - 0x20], eax
je 0x408538
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push esi
push esi
call edi
push 7
push esi
lea eax, [ebp - 0x28]
push 0x409
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPtrOfIndex]
test eax, eax
jge 0x4084bc
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x408538
fld qword [ebp - 0x20]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
push ecx
fstp qword [esp]
call dword [sym.imp.OLEAUT32.dll_DosDateTimeToVariantTime]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov edi, 0x80
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x408538
push esi
push edi
push 3
push esi
push esi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408538
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408fd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x208], 0
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4214f0
mov esi, 0x424660
push 0x41c1cc
push esi
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x208]
push esi
push 0x208
push eax
push 0
push str.Cabs
push str.BootStrap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x208]
push eax
call fcn.00411eb0
pop ecx
pop edi
pop esi
leave
ret

Function at 0x40903d
Capabilities:
Delete directory
Delete file
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
and byte [ebp - 0x418], 0
push ebx
push esi
mov edx, 0x81
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x417]
rep stosd dword es:[edi], eax
and byte [ebp - 0x828], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x827]
rep stosd dword es:[edi], eax
and byte [ebp - 0xa30], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0xa2f]
rep stosd dword es:[edi], eax
and byte [ebp - 0x620], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x61f]
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, 0x423b20
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
inc dword [0x421ea4]
lea eax, [ebp - 4]
push 0xa
push eax
push dword [0x421ea4]
call fcn.00411390
add esp, 0xc
lea eax, [ebp - 0x418]
push str.File
push eax
call fcn.00412ca0
pop ecx
lea eax, [ebp - 4]
pop ecx
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00412cb0
pop ecx
lea eax, [ebp - 0x210]
pop ecx
push 0x424660
push 0x208
push eax
lea eax, [ebp - 0x418]
push 0
push eax
push str.BootStrap_Files
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov dword [ebp - 8], eax
je 0x40919a
cmp byte [ebp - 0x210], 0x40
jne 0x40914f
lea eax, [ebp - 0x210]
push eax
call fcn.00412b20
pop ecx
push eax
lea eax, [ebp - 0x20f]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004127e0
add esp, 0xc
mov al, byte [0x41a604]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00406a6c
and byte [eax], 0
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x828]
push str._s_s
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x828]
push 0x80
push eax
call ebx
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], 0
jne 0x4090b7
push 0x424660
lea eax, [ebp - 0xa30]
push 0x208
push eax
push 0
push str.Uninstal
push str.BootStrap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0xa30]
push eax
push esi
lea eax, [ebp - 0x620]
push str._s_s
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x620]
push 0x80
push eax
call ebx
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4096ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x409732
xor eax, eax
lea ecx, [ebp - 4]
cmp dword [ebp + 0xc], eax
push ecx
je 0x4096ee
push 2
jmp 0x4096f0
push 0x17
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x409732
mov edi, dword [ebp + 8]
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jl 0x409732
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
cmp byte [eax + edi - 2], 0x5c
je 0x409742
push edi
call esi
cmp eax, 0x103
jl 0x409736
xor eax, eax
jmp 0x409745
push 0x41c030
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x4097c8
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x409803
cmp dword [ebp + 0xc], 0
je 0x4097f3
lea eax, [ebp - 4]
push eax
push 7
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x409803
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jge 0x409807
xor eax, eax
leave
ret
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
push 1
pop eax
leave
ret

Function at 0x409818
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], 0xc
push edi
call esi
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x409889
mov ecx, ebx
mov eax, edi
mov dl, byte [eax]
mov byte [ecx], dl
cmp byte [eax], 0xa
jne 0x409867
cmp byte [eax + 1], 0xd
je 0x409867
mov byte [ecx], 0xd
inc ecx
mov byte [ecx], 0xa
inc eax
inc ecx
cmp byte [eax], 0
jne 0x409851
push ebx
call esi
cmp byte [eax + ebx - 1], 0xa
je 0x409884
push 0x41c05c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp + 8], ebx
jmp 0x40988c
mov dword [ebp + 8], edi
push 0
push 0x80
lea eax, [ebp - 0x10]
push 4
push eax
push 0
push 0x40000000
push 0x420988
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4098da
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4098da
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0xffffffff
je 0x4098ed
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b94c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x40b993
cmp edx, 0x10
jl 0x40b97f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x40b96c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x40b993
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x40b98b
and edx, 3
cmp edx, 3
jne 0x40b9a7
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x40b9ac
cmp edx, 2
jne 0x40b9b8
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x40b9bd
cmp edx, 1
jne 0x40b9c3
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x4122f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x412313
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004138a0
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x412336
test byte [esp + 8], 2
je 0x412336
mov dword [0x4230f8], 0xd
mov dword [0x4230fc], 5
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x412790
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4127c9
mov eax, dword [esp + 4]
cmp ah, 0x3a
jne 0x4127c9
and eax, 0xff
push eax
call fcn.004152b0
mov esi, eax
add esp, 4
sub esi, 0x40
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x4130c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a780
push 0x416938
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x423110], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x42310c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x423108], ecx
shr eax, 0x10
mov dword [0x423104], eax
call fcn.00413f30
test eax, eax
jne 0x41312a
push 0x1c
call fcn.00413290
add esp, 4
mov dword [ebp - 4], 0
call fcn.00413440
call fcn.004160a0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x427424], eax
call fcn.004166e0
mov dword [0x423188], eax
test eax, eax
je 0x41315d
mov eax, dword [0x427424]
test eax, eax
jne 0x413167
push 0xffffffffffffffff
call fcn.00410ff0
add esp, 4
call fcn.00416430
call fcn.00416340
call fcn.00410fc0
mov esi, dword [0x427424]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x413246
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4131ae
test al, al
je 0x4131ae
and eax, 0xff
push eax
call fcn.004162e0
add esp, 4
test eax, eax
je 0x413188
inc esi
mov dword [ebp - 0x64], esi
jmp 0x413188
cmp byte [esi], 0x22
jne 0x4131b7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4131c7
cmp al, 0x20
ja 0x4131c7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4131b7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4131e8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4131ed
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00410ff0
jmp 0x41322b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4131b7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x413246

Function at 0x413290
Capabilities:
Terminate process

Disassembly:
cmp dword [0x423190], 1
jne 0x41329e
call fcn.00416a10
mov eax, dword [esp + 4]
push eax
call fcn.00416a50
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4132c0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00412ba0
mov eax, dword [0x427420]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x413422
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x427320]
test byte [edx + ecx*8 + 4], 1
je 0x413422
push 1
push ebp
push ebx
call fcn.00411d90
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x41342c
push 2
push ebp
push ebx
call fcn.00411d90
add esp, 0xc
cmp eax, 0xffffffff
je 0x41342c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x4133c8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00416c30
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x41336f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00411a90
add esp, 0xc
cmp eax, 0xffffffff
je 0x41338b
sub esi, eax
test esi, esi
jle 0x4133a1
jmp 0x413360
cmp dword [0x4230fc], 5
jne 0x41339e
mov dword [0x4230f8], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00416c30
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00411d90
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x413409
push 0
push ecx
push ebx
call fcn.00411d90
add esp, 0xc
push ebx
call fcn.00413850
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x413409
mov dword [0x4230f8], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4230fc], eax
push 0
push edi
push ebx
call fcn.00411d90
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x4230f8], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret