joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407aa0
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.00408ea4
xor ebx, ebx
cmp dword [0x4210a8], ebx
je 0x407ae1
cmp byte [0x420da0], bl
mov eax, dword [0x4210ac]
jne 0x407acc
cmp eax, ebx
jne 0x407ae1
push 0x420da0
push eax
push 1
push 0x420ea0
call fcn.00409780
add esp, 0x10
mov eax, dword [0x424410]
cmp eax, ebx
jle 0x407afc
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
push 0x4241c0
call fcn.00410900
pop ecx
cmp byte [0x4210e0], bl
je 0x407b0f
push 0x4210e0
call fcn.00410900
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x4212e8
push edi
call esi
test eax, eax
je 0x407b2e
push 0x3e8
push edi
call fcn.00408a58
pop ecx
pop ecx
lea eax, [ebp - 0x25c]
push 1
push eax
call fcn.0040962f
pop ecx
test eax, eax
pop ecx
je 0x407b6b
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.00409e6b
pop ecx
lea eax, [ebp - 0x6a0]
pop ecx
push eax
push dword [0x4210bc]
call fcn.00409b31
pop ecx
pop ecx
cmp dword [ebp + 8], ebx
je 0x407c43
mov edi, 0x421900
push edi
call esi
test eax, eax
je 0x407c43
push dword [0x4243d0]
mov esi, dword [0x4210a8]
mov dword [0x4210a8], ebx
push 1
push 0x40
push 2
call fcn.0040520a
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.00407e76
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.00411db0
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 0x407c43
push dword [0x424188]
push 1
push 0x30
push 1
call fcn.0040520a
add esp, 0x10
cmp byte [0x4214f0], bl
je 0x407c56
push 0x4214f0
call fcn.00410900
pop ecx
call fcn.00403a07
cmp eax, 1
jne 0x407c67
push ebx
call fcn.00403764
pop ecx
call fcn.004048e1
push dword [0x4210b4]
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407d24
Capabilities:
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa28
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 - 0x618]
push 0x41c1a4
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x208]
mov edi, 0x423b20
push eax
push edi
lea eax, [ebp - 0xa28]
push str._s_s
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x820]
push 0x41c6a4
push eax
call fcn.00412a30
pop ecx
lea eax, [ebp - 0x208]
pop ecx
push eax
lea eax, [ebp - 0x820]
push eax
call fcn.00412a40
pop ecx
lea eax, [ebp - 0xa28]
pop ecx
push eax
lea eax, [ebp - 0x820]
push eax
push 0x424cc0
call fcn.00408d2f
add esp, 0xc
lea eax, [ebp - 0x618]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x410]
push edi
push eax
call fcn.00412a30
pop ecx
lea eax, [ebp - 0x410]
pop ecx
push 0x41c030
push eax
call fcn.00412a40
pop ecx
mov esi, str.ST6UNST.EXE
pop ecx
xor eax, eax
push eax
push eax
push eax
push esi
push esi
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.00406113
add esp, 0x1c
dec eax
dec eax
je 0x407e5c
dec eax
dec eax
je 0x407e5c
dec eax
jne 0x407e58
push esi
push 0x41c058
push dword [0x423888]
call fcn.00403bf5
add esp, 0xc
push eax
push 1
push 0x10
push 1
call fcn.0040520a
add esp, 0x10
jmp 0x407e11
xor eax, eax
jmp 0x407e71
lea eax, [ebp - 0x618]
push eax
push 0x421900
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408019
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
push ebx
push edi
call fcn.00409adc
test eax, eax
je 0x408106
xor ebx, ebx
lea eax, [ebp - 0x448]
push ebx
push 1
push ebx
push 0x41fcac
push 0x4216f8
push 0x421900
push eax
lea eax, [ebp - 0x65c]
push eax
xor edi, edi
call fcn.00407e76
add esp, 0x20
lea eax, [ebp - 4]
push eax
push 0x18
push dword [0x4210b4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4080f8
lea eax, [ebp - 0x864]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4080f8
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x864]
push eax
call fcn.00409e6b
pop ecx
pop ecx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
sub eax, ebx
je 0x4080b4
dec eax
je 0x4080b7
jmp 0x408146
push 1
pop edi
lea eax, [ebp - 0x20c]
push eax
call fcn.00409086
test eax, eax
pop ecx
je 0x4080f8
push 0x41c6e8
lea eax, [ebp - 0x448]
push 1
push eax
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x20c]
push str.ST6UNST_Uninstaller
push eax
call fcn.00409107
add esp, 0x18
test eax, eax
je 0x4080f8
push 1
pop ebx
test edi, edi
je 0x408102
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, ebx
jmp 0x408175
push 1
push 1
push 0
push 0x41fcac
push 0x4216f8
lea eax, [ebp - 0x448]
push 0x421900
push eax
lea eax, [ebp - 0x65c]
push eax
call fcn.00407e76
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.004023db
pop ecx
test eax, eax
pop ecx
jne 0x40814a
xor eax, eax
jmp 0x408175
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x20c]
push str.ST6UNST_Uninstaller
push eax
push dword [ebp + 8]
call fcn.00402494
add esp, 0x14
neg eax
sbb eax, eax
neg eax
pop edi
pop ebx
leave
ret
Function at 0x4082b0
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 0x40839f
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 0x40839f
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 0x408323
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40839f
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 0x40839f
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 0x40839f
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 0x408e37
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.00411d10
pop ecx
pop edi
pop esi
leave
ret

Function at 0x408ea4
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.004111f0
add esp, 0xc
lea eax, [ebp - 0x418]
push str.File
push eax
call fcn.00412a30
pop ecx
lea eax, [ebp - 4]
pop ecx
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00412a40
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 0x409001
cmp byte [ebp - 0x210], 0x40
jne 0x408fb6
lea eax, [ebp - 0x210]
push eax
call fcn.00412980
pop ecx
push eax
lea eax, [ebp - 0x20f]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00412640
add esp, 0xc
mov al, byte [0x41a5fc]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004068c5
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 0x408f1e
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 0x409086
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.00409531
pop ecx
test eax, eax
pop ecx
je 0x4090c5
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x108]
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
add edi, eax
cmp edi, 0x104
jle 0x4090c9
xor eax, eax
jmp 0x409103
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4090f4
test al, 0x10
je 0x4090f4
push 1
pop eax
jmp 0x409103
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
leave
ret
Function at 0x409531
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 0x409599
xor eax, eax
lea ecx, [ebp - 4]
cmp dword [ebp + 0xc], eax
push ecx
je 0x409555
push 2
jmp 0x409557
push 0x17
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x409599
mov edi, dword [ebp + 8]
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jl 0x409599
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 0x4095a9
push edi
call esi
cmp eax, 0x103
jl 0x40959d
xor eax, eax
jmp 0x4095ac
push 0x41c030
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x40962f
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 0x40966a
cmp dword [ebp + 0xc], 0
je 0x40965a
lea eax, [ebp - 4]
push eax
push 7
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40966a
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jge 0x40966e
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 0x40967f
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 0x4096f0
mov ecx, ebx
mov eax, edi
mov dl, byte [eax]
mov byte [ecx], dl
cmp byte [eax], 0xa
jne 0x4096ce
cmp byte [eax + 1], 0xd
je 0x4096ce
mov byte [ecx], 0xd
inc ecx
mov byte [ecx], 0xa
inc eax
inc ecx
cmp byte [eax], 0
jne 0x4096b8
push ebx
call esi
cmp byte [eax + ebx - 1], 0xa
je 0x4096eb
push 0x41c05c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp + 8], ebx
jmp 0x4096f3
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 0x409741
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x409741
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 0x409754
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b7ac
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 0x40b7f3
cmp edx, 0x10
jl 0x40b7df
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 0x40b7cc
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x40b7f3
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x40b7eb
and edx, 3
cmp edx, 3
jne 0x40b807
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x40b80c
cmp edx, 2
jne 0x40b818
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x40b81d
cmp edx, 1
jne 0x40b823
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x4108d0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4108e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4108e9
xor eax, eax
test eax, eax
je 0x4108fa
push eax
call fcn.00413700
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x410910
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41093a
test byte [esp + 0xc], 0x80
je 0x41092c
and al, 0xfe
jmp 0x41092e
or al, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41094e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413700
add esp, 4
or eax, 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x410e90
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x423140]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x410eaf
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x42313c], 1
mov byte [0x423138], bl
jne 0x410f09
mov ecx, dword [0x42742c]
test ecx, ecx
je 0x410ef7
mov esi, dword [0x427428]
sub esi, 4
cmp esi, ecx
jb 0x410ef7
mov eax, dword [esi]
test eax, eax
je 0x410ef0
call eax
mov ecx, dword [0x42742c]
sub esi, 4
cmp esi, ecx
jae 0x410ee2
push 0x41c020
push 0x41c014
call fcn.00410f40
add esp, 8
push 0x41c028
push 0x41c024
call fcn.00410f40
add esp, 8
test ebx, ebx
jne 0x410f30
push ebp
mov dword [0x423140], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x4118f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x427420]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x411a9d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x427320]
lea edi, [ecx*4 + 0x427320]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x411a9d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x41195e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x41196f
push 2
push ebp
push eax
call fcn.00411bf0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x411ace
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x411a19
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4119ca
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4119b7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x41199a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411abf
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x411a15
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x411996
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x411a8e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x411a62
cmp eax, 5
jne 0x411a4b
mov dword [0x4230fc], eax
mov dword [0x4230f8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00413700
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x411a82
cmp byte [ebp], 0x1a
jne 0x411a82
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4230f8], 0x1c
jmp 0x411aa7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4230f8], 9
pop edi
pop esi
pop ebp
mov dword [0x4230fc], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x411a15
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411aff
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x411a19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x411a19
Function at 0x412150
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 0x412173
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413700
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x412196
test byte [esp + 8], 2
je 0x412196
mov dword [0x4230f8], 0xd
mov dword [0x4230fc], 5
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x4125f0
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 0x412629
mov eax, dword [esp + 4]
cmp ah, 0x3a
jne 0x412629
and eax, 0xff
push eax
call fcn.00415110
mov esi, eax
add esp, 4
sub esi, 0x40
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x413120
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00412a00
mov eax, dword [0x427420]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x413282
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 0x413282
push 1
push ebp
push ebx
call fcn.00411bf0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x41328c
push 2
push ebp
push ebx
call fcn.00411bf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x41328c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x413228
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00416a90
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x4131cf
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004118f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4131eb
sub esi, eax
test esi, esi
jle 0x413201
jmp 0x4131c0
cmp dword [0x4230fc], 5
jne 0x4131fe
mov dword [0x4230f8], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00416a90
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00411bf0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x413269
push 0
push ecx
push ebx
call fcn.00411bf0
add esp, 0xc
push ebx
call fcn.004136b0
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 0x413269
mov dword [0x4230f8], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4230fc], eax
push 0
push edi
push ebx
call fcn.00411bf0
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