joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478c60
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4f9590]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x18]
push eax
mov edi, 0x400
call fcn.0047e090
add esp, 4
cmp dword [ebp - 0x10], 8
jne 0x478d2c
push esi
lea ecx, [ebp - 0x20]
call fcn.004724b0
push 0x104
lea ecx, [ebp - 0x20]
call fcn.004731d0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00473260
test esi, esi
pop esi
je 0x478d24
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.00472530
cmp eax, 0xffffffff
je 0x478d24
push eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00472f30
push eax
lea ecx, [ebp - 0x20]
call fcn.004727f0
lea ecx, [ebp - 0x34]
call fcn.00472740
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.00472c40
cmp byte [ebp - 0x19], 0xff
lea eax, [ebp - 0x20]
jne 0x478d02
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x478d24
mov edi, dword [ebp - 0x28]
imul edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
call fcn.00472740
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.004944f9
mov esp, ebp
pop ebp
ret

Function at 0x478e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x60]
call fcn.0047d960
push esi
lea ecx, [ebp - 0x60]
call fcn.0047d1b0
lea eax, [ebp - 0x60]
push eax
call fcn.0047d190
lea ecx, [ebp - 0x30]
mov edi, eax
call fcn.0047d960
cmp byte [esi + 0x23], 0xff
lea eax, [esi + 0x1c]
jne 0x478eaa
mov eax, dword [eax]
push 4
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.0047de50
push edi
lea edx, [ebp - 0x30]
push edx
call fcn.0047dbe0
lea eax, [ebp - 0x30]
push eax
call fcn.0047d190
mov ebx, dword [ebp + 8]
push ebx
mov esi, eax
push esi
push 1
lea ecx, [ebp - 0x30]
push ecx
call fcn.0047d170
push eax
call fcn.0049ac5a
add esp, 0x10
cmp eax, esi
je 0x478f04
lea ecx, [ebp - 0x30]
call fcn.0047d9d0
lea ecx, [ebp - 0x60]
call fcn.0047d9d0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
push 1
lea edx, [ebp - 0x60]
push edx
call fcn.0047d170
push eax
call fcn.0049ac5a
add esp, 0x10
lea ecx, [ebp - 0x30]
cmp eax, edi
jne 0x478eeb
call fcn.0047d9d0
lea ecx, [ebp - 0x60]
call fcn.0047d9d0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x47baa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 8
lea eax, [ebp - 8]
push eax
call fcn.0047b9d0
cmp byte [eax + 7], 0xff
jne 0x47baba
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [ebp - 8]
mov ebx, eax
call fcn.00472740
cmp ebx, 0xffffffff
je 0x47bae0
test bl, 0x10
je 0x47bae0
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47baf0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 8
lea eax, [ebp - 8]
push eax
call fcn.0047b9d0
cmp byte [eax + 7], 0xff
jne 0x47bb0a
mov eax, dword [eax]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 8]
mov esi, eax
call fcn.00472740
neg esi
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47bb90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 8]
push edi
call fcn.0047b920
lea ecx, [ebp - 0x1c]
call fcn.004724b0
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x47bd55
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHGetSpecialFolderLocation
push edi
call esi
push 0x4dcc68
push edi
mov ebx, eax
call esi
mov edi, eax
test edi, edi
jne 0x47bbec
mov eax, dword [ebp - 0xc]
push str.SHGetPathFromIDList
push eax
call esi
mov edi, eax
mov ecx, dword [ebp - 0xc]
push str.SHGetMalloc
push ecx
call esi
xor esi, esi
mov dword [ebp - 0x10], eax
cmp ebx, esi
je 0x47bd49
cmp edi, esi
je 0x47bd49
cmp eax, esi
je 0x47bd49
lea edx, [ebp - 4]
push edx
push 0x1c
push esi
mov dword [ebp - 4], esi
call ebx
test eax, eax
jne 0x47bc57
push 0x105
lea ecx, [ebp - 0x1c]
call fcn.004731d0
push eax
mov eax, dword [ebp - 4]
push eax
call edi
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], esi
call dword [ebp - 0x10]
test eax, eax
js 0x47bca6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
jmp 0x47bc95
lea eax, [ebp - 4]
push eax
push 0x1a
push esi
call ebx
test eax, eax
jne 0x47bcb2
push 0x105
lea ecx, [ebp - 0x1c]
call fcn.004731d0
mov ecx, dword [ebp - 4]
push eax
push ecx
call edi
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], esi
call dword [ebp - 0x10]
test eax, eax
js 0x47bca6
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.00473260
jmp 0x47bd11
lea eax, [ebp - 8]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x47bd11
lea ecx, [ebp - 0x10]
push ecx
push 0x105
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x104
call fcn.004731d0
push eax
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x14]
push edx
push esi
push str.ProgramFilesDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.00473260
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x15]
cmp cl, 0xff
je 0x47bd65
xor eax, eax
cmp cl, 7
sete al
test al, al
jne 0x47bd49
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x1c]
push edx
mov ecx, esi
call fcn.0047b9b0
push esi
call fcn.0047baa0
add esp, 4
test eax, eax
jne 0x47bd49
push esi
call fcn.0047baf0
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
lea ecx, [ebp - 0x1c]
call fcn.00472740
mov eax, dword [ebp + 8]
pop edi
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x18], 0
jne 0x47bd25
cmp byte [ebp - 0x17], 0
jne 0x47bd25
cmp byte [ebp - 0x16], 0
je 0x47bd49
jmp 0x47bd25
Function at 0x47bec0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
call edx
test eax, eax
je 0x47bf4a
push 0x4cda0c
lea ecx, [esi + 4]
call fcn.004725d0
cmp eax, 0xffffffff
je 0x47bf4a
add eax, 2
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 4]
call fcn.00472f30
xor esi, esi
cmp byte [ebp - 0x11], 0xff
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
lea eax, [ebp - 0x18]
jne 0x47bf10
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x47bf42
cmp dword [ebp - 4], esi
je 0x47bf42
lea ecx, [ebp - 0x18]
call fcn.00472740
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
call fcn.00472740
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47bf60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push str.TEMP
mov edi, ecx
call fcn.0049b85f
add esp, 4
test eax, eax
je 0x47bf9f
lea esi, [edi + 4]
push eax
mov ecx, esi
call fcn.00472890
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
mov ecx, edi
call edx
test eax, eax
jne 0x47c053
mov ecx, esi
call fcn.00472710
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x47c010
push 0x104
lea esi, [edi + 4]
push 0x105
mov ecx, esi
call fcn.004731d0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00473260
push 0x5c
mov ecx, esi
call fcn.004725a0
mov ecx, esi
cmp eax, 0xffffffff
jne 0x47bfe2
call fcn.00472710
jmp 0x47bffc
push eax
lea eax, [ebp - 8]
push eax
call fcn.00472f30
push eax
mov ecx, esi
call fcn.004727f0
lea ecx, [ebp - 8]
call fcn.00472740
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
test eax, eax
jne 0x47c053
mov ecx, esi
call fcn.00472710
push 0x104
lea esi, [edi + 4]
push 0x105
mov ecx, esi
call fcn.004731d0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00473260
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
test eax, eax
jne 0x47c053
mov ecx, esi
call fcn.00472710
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x47c0b7
cmp byte [eax], 0
je 0x47c0b7
mov al, byte [esi + 7]
mov ebx, esi
cmp al, 0xff
jne 0x47c0c5
mov ebx, dword [esi]
mov edi, ebx
mov ecx, esi
call fcn.004724c0
add eax, ebx
push eax
push edi
call fcn.0047cd20
add esp, 8
cmp byte [esi + 7], 0xff
mov edi, eax
mov ebx, esi
jne 0x47c08b
mov ebx, dword [esi]
mov ecx, esi
call fcn.004724c0
add eax, ebx
lea ecx, [edi + 1]
cmp ecx, eax
jne 0x47c0a0
cmp byte [edi], 0x5c
je 0x47c0ac
push 0x4cd950
mov ecx, esi
call fcn.00472bc0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, esi
call fcn.00472bc0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, esi
jmp 0x47c06c
Function at 0x47c100
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4f9590]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ecx + 0xb]
push esi
lea esi, [ecx + 4]
cmp al, 0xff
je 0x47c1a5
xor ecx, ecx
cmp al, 7
sete cl
test cl, cl
jne 0x47c1e7
cmp al, 0xff
mov eax, esi
jne 0x47c139
mov eax, dword [esi]
cmp byte [eax], 0x2e
je 0x47c1e7
mov ecx, esi
call fcn.004724c0
cmp eax, 3
jne 0x47c1bc
mov cl, byte [esi + 7]
mov eax, esi
cmp cl, 0xff
jne 0x47c15a
mov eax, dword [esi]
cmp byte [eax + 1], 0x3a
jne 0x47c1bc
mov eax, esi
cmp cl, 0xff
jne 0x47c169
mov eax, dword [esi]
cmp byte [eax + 2], 0x5c
jne 0x47c1bc
cmp cl, 0xff
jne 0x47c176
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x47c191
cmp eax, 4
je 0x47c191
cmp eax, 2
je 0x47c191
cmp eax, 6
jne 0x47c1e7
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004944f9
mov esp, ebp
pop ebp
ret
cmp byte [esi + 4], 0
jne 0x47c131
cmp byte [esi + 5], 0
jne 0x47c131
cmp byte [esi + 6], 0
je 0x47c1e7
jmp 0x47c131
cmp byte [esi + 7], 0xff
jne 0x47c1c4
mov esi, dword [esi]
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x47c1e7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x144], 0x10
jne 0x47c191
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004944f9
mov esp, ebp
pop ebp
ret

Function at 0x47c200
Capabilities:
Get disk information

Disassembly:
push esi
lea esi, [ecx + 4]
mov ecx, esi
call fcn.004724c0
cmp eax, 2
jb 0x47c246
mov al, byte [esi + 7]
mov ecx, esi
cmp al, 0xff
jne 0x47c21b
mov ecx, dword [esi]
cmp byte [ecx + 1], 0x3a
jne 0x47c246
cmp al, 0xff
jne 0x47c227
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x47c23a
mov eax, 1
pop esi
ret
xor ecx, ecx
cmp eax, 2
sete cl
pop esi
mov eax, ecx
ret
xor eax, eax
pop esi
ret

Function at 0x47e030
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x7fffffff
jne 0x47e049
xor eax, eax
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x28], 0
jne 0x47e083
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemFloatingPointProcessor
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47e043
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x47e090
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x4f9590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x94
lea eax, [ebp - 0x98]
push 0
or edi, 0xffffffff
push eax
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x9c], 0
call fcn.00493f80
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dx, word [ebp - 0x8c]
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x90]
mov word [ebp - 0xa8], dx
xor edx, edx
cmp dword [ebp - 0x88], 2
mov word [ebp - 0xac], ax
sete dl
mov word [ebp - 0xaa], cx
mov esi, edx
test esi, esi
je 0x47e12a
mov edi, 8
jmp 0x47e14b
cmp ax, 4
jae 0x47e137
mov edi, 2
jmp 0x47e14b
jne 0x47e14b
cmp cx, 0xa
sbb edi, edi
and edi, 0xfffffc04
add edi, 0x400
test ebx, ebx
je 0x47e21b
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0xd0]
cmp eax, 3
ja case.default.0x47e170
jmp dword [eax*4 + 0x47e230]
test esi, esi
je 0x47e1b8
mov ax, word [ebp - 0xac]
cmp ax, 3
ja 0x47e194
jne 0x47e1b8
cmp word [ebp - 0xaa], 0x32
jb 0x47e1b8
movzx eax, word [ebp - 0xb0]
sub eax, 4
js 0x47e1dd
test eax, eax
je 0x47e1d6
cmp eax, 1
je 0x47e1cf
sub eax, 2
neg eax
sbb eax, eax
and eax, 0xfffffffb
lea esi, [eax + 4]
jmp 0x47e1fc
mov eax, dword [ebp - 0xb8]
sub eax, 0x182
je 0x47e1dd
sub eax, 0x64
je 0x47e1d6
sub eax, 0x64
jne case.default.0x47e170
mov esi, 2
jmp 0x47e1fc
mov esi, 1
jmp 0x47e1fc
mov esi, 0xfffffffe
jmp 0x47e1fc
mov esi, 0x40
jmp 0x47e1fc
mov esi, 0x20
jmp 0x47e1fc
mov esi, 8
jmp 0x47e1fc
or esi, 0xffffffff
call fcn.0047e030
mov ecx, dword [ebp - 0xac]
mov edx, dword [ebp - 0xa8]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004944f9
mov esp, ebp
pop ebp
ret

Function at 0x4834a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00482f00

Function at 0x4841b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + 2]
shr eax, 1
push 2
push eax
call fcn.00495ea1
mov esi, eax
add esp, 8
test esi, esi
jne 0x4841d5
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
ret
mov ecx, dword [ebp + 8]
push ecx
push edi
push 1
push esi
call fcn.0049a72e
xor edx, edx
cmp eax, edi
setne dl
push esi
mov edi, edx
call fcn.00495e67
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x484af0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4f9590]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x210], edi
call fcn.00493f80
mov eax, dword [edi]
add esp, 0xc
test eax, eax
je 0x484c6a
push eax
call fcn.00494b68
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x484c6a
mov eax, dword [0x50edba]
push ebx
mov ebx, esi
imul ebx, ebx, 0x16
mov ecx, dword [ebx + eax + 6]
mov dword [ebp - 0x218], ecx
mov edx, dword [ebx + eax + 6]
mov eax, dword [0x50ec4e]
mov dword [ebp - 0x214], edx
test eax, eax
je 0x484c53
lea edx, [ebp - 0x20c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x484b78
cmp byte [ebp - 0x20c], cl
je 0x484bc1
lea eax, [ebp - 0x20c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x484b93
sub eax, edx
cmp byte [ebp + eax - 0x20d], 0x5c
je 0x484bc1
lea edi, [ebp - 0x20c]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x484bb0
mov ax, word [0x4cd950]
mov word [edi], ax
push 1
push esi
call fcn.0048a280
add esp, 8
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x484bd0
lea edi, [ebp - 0x20c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x484be2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
lea ecx, [ebp - 0x20c]
push ecx
call esi
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.0049ea11
mov ecx, dword [0x50edba]
movsx edx, byte [ebx + ecx]
add esp, 8
push edx
lea eax, [ebp - 0x20c]
push eax
call esi
mov ecx, dword [ebp - 0x210]
pop ebx
pop edi
mov dword [ecx], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004944f9
mov esp, ebp
pop ebp
ret
pop ebx
mov dword [edi], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004944f9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [edi], 0
pop edi
xor ecx, ebp
pop esi
call fcn.004944f9
mov esp, ebp
pop ebp
ret
Function at 0x485080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4f9590]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x50ec6c]
cmp dword [ecx], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x210], eax
jne 0x4850c0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004944f9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx]
push esi
push edi
push ecx
push eax
push 1
push edx
call fcn.0049a72e
mov edi, eax
add esp, 0x10
cmp edi, 0xffffffff
je 0x4850e0
test edi, edi
jne 0x485204
cmp byte [0x50edb0], 0
je 0x485204
xor edi, edi
mov dword [0x50ec76], edi
mov esi, dword [0x50ec6c]
push 0x208
lea edx, [ebp - 0x20c]
push 0
push edx
call fcn.00493f80
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x485120
push eax
call fcn.00494b68
add esp, 4
mov dword [esi], 0
mov eax, dword [0x50edb6]
cmp eax, dword [0x50edb2]
je 0x485204
mov ecx, dword [0x50ec6c]
push 0x104
add ecx, 0x23
push 0
push ecx
call fcn.00493f80
mov edx, dword [0x50edb2]
push 1
push edx
call fcn.0048a280
mov edx, dword [0x50ec6c]
add esp, 0x14
add edx, 0x23
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x485167
mov eax, dword [0x50edb2]
mov ecx, dword [0x50edba]
imul eax, eax, 0x16
mov edx, dword [eax + ecx + 2]
mov eax, dword [0x50ec6c]
add eax, 0x23
push 0x4cfa48
push eax
mov dword [0x50ec72], edx
call fcn.00494fff
mov ecx, dword [0x50ec6c]
mov dword [ecx], eax
mov eax, dword [0x50ec6c]
add esp, 8
cmp dword [eax], 0
je 0x48521c
mov edx, dword [eax]
push edx
call fcn.0049f6cc
push eax
call fcn.0049e768
add esp, 8
cmp eax, dword [0x50ec72]
jne 0x485242
mov eax, dword [0x50ec6c]
mov ecx, dword [eax]
mov esi, dword [ebp - 0x210]
mov edx, dword [ebp - 0x214]
push ecx
push esi
add edx, edi
push 1
push edx
call fcn.0049a72e
inc dword [0x50edb2]
sub esi, eax
add esp, 0x10
add edi, eax
mov dword [ebp - 0x210], esi
test esi, esi
jg 0x4850f5
add dword [0x50ec76], edi
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004944f9
mov esp, ebp
pop ebp
ret
add eax, 0x23
push eax
push 0x3e8
call fcn.00486d60
add esp, 8
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004944f9
mov esp, ebp
pop ebp
ret
push 0x4cd9ca
push 0x3f2
call fcn.00486d60
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004944f9
mov esp, ebp
pop ebp
ret
Function at 0x4852d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4852e0
xor eax, eax
pop ebx
pop ebp
ret
mov eax, dword [0x50ec72]
sub eax, ebx
cmp byte [0x50edb0], 0
push esi
push edi
mov dword [0x50ec72], eax
je 0x4854f1
test eax, eax
jns 0x4854f1
add eax, ebx
cmp byte [0x50ec71], 0
mov dword [0x50ec72], eax
je 0x48537f
test eax, eax
je 0x48537f
mov ecx, dword [0x50ec6c]
mov edx, dword [ecx + 4]
push edx
push eax
mov eax, dword [0x50ed46]
push 1
push eax
call fcn.0049ac5a
mov eax, dword [0x50edb2]
add esp, 0x10
test eax, eax
je 0x48533e
dec eax
jmp 0x485340
xor eax, eax
mov ecx, dword [0x50ec6c]
push 1
push eax
add ecx, 4
push ecx
call fcn.00484af0
mov edx, dword [0x50ec6c]
add edx, 0x23
push edx
push 0xbef
call fcn.00487d30
add esp, 0x14
cmp eax, 0x6b
je 0x48552e
call fcn.00485270
test eax, eax
jne 0x48553d
mov eax, dword [0x50edb2]
xor edi, edi
cmp eax, dword [0x50edb6]
jae 0x485550
mov ecx, dword [0x50ec6c]
push 0x104
add ecx, 0x23
push 0
push ecx
call fcn.00493f80
mov edx, dword [0x50edb2]
push 1
push edx
call fcn.0048a280
mov edx, dword [0x50ec6c]
add esp, 0x14
add edx, 0x23
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x4853c2
mov eax, dword [0x50edb2]
mov ecx, dword [0x50edba]
imul eax, eax, 0x16
mov esi, dword [eax + ecx + 2]
call fcn.0048c940
mov byte [0x50ec71], al
test al, al
je 0x48540c
mov edx, dword [0x50ec6c]
add edx, 0x23
push edx
call fcn.00484c80
add esp, 4
cmp eax, 1
je 0x48553d
mov al, byte [0x50ec71]
mov ecx, dword [0x50ec72]
inc dword [0x50edb2]
mov edx, ebx
sub edx, ecx
sub edx, edi
cmp esi, edx
ja 0x4854af
test al, al
je 0x485472
mov eax, dword [0x50ec6c]
mov edx, dword [eax + 4]
mov eax, dword [0x50ed46]
push edx
push esi
add eax, ecx
add eax, edi
push 1
push eax
call fcn.0049ac5a
mov ecx, dword [0x50ec6c]
add ecx, 0x23
push ecx
push 0xbef
call fcn.00487d30
add esp, 0x18
cmp eax, 0x6b
je 0x48552e
call fcn.00485270
test eax, eax
jne 0x48553d
mov eax, dword [0x50edb2]
test eax, eax
je 0x48547e
dec eax
jmp 0x485480
xor eax, eax
mov edx, dword [0x50ec6c]
push 1
push eax
add edx, 4
push edx
call fcn.00484af0
mov eax, dword [0x50edb2]
add esp, 0xc
add edi, esi
cmp eax, dword [0x50edb6]
jb 0x485392
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
test al, al
je 0x4854de
mov edx, dword [0x50ec6c]
mov eax, dword [edx + 4]
push eax
mov eax, dword [0x50ed46]
mov edx, ebx
sub edx, ecx
sub edx, edi
push edx
add eax, ecx
add eax, edi
push 1
push eax
call fcn.0049ac5a
mov ecx, dword [0x50ec72]
add esp, 0x10
sub esi, ebx
add esi, edi
add ecx, esi
pop edi
pop esi
mov dword [0x50ec72], ecx
xor eax, eax
pop ebx
pop ebp
ret
cmp byte [0x50ec71], 0
je 0x485550
mov ecx, dword [0x50ec6c]
mov edx, dword [ecx + 4]
mov eax, dword [0x50ed46]
push edx
push ebx
push 1
push eax
call fcn.0049ac5a
mov ecx, dword [0x50ec6c]
add ecx, 0x23
push ecx
push 0xbef
call fcn.00487d30
add esp, 0x18
cmp eax, 0x6b
jne 0x485547
push 0
push 0x3fb
call fcn.00486d60
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
call fcn.00485270
test eax, eax
jne 0x48553d
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret