joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003dff0
Capabilities:
Get disk size
Get file attributes
Get file size
Set file attributes

Disassembly:
sub esp, 0x7f4
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x7f0], eax
push ebx
push ebp
mov ebp, dword [esp + 0x800]
push edi
xor ebx, ebx
push 0x7ce
lea ecx, [esp + 0x2e]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x34], ax
call fcn.100d4cc0
add esp, 0xc
push ebx
push ebx
lea edx, [esp + 0x18]
push edx
push 0x101dd568
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003e07d
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x1c]
ja 0x1003e0b3
jb 0x1003e093
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x18]
jae 0x1003e0b3
push 6
push esi
call ebp
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7f0]
xor ecx, esp
call fcn.100d0738
add esp, 0x7f4
ret
push esi
lea eax, [esp + 0x2c]
call fcn.10039f60
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x1003e10b
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x24], eax
cmp esi, ebx
je 0x1003e0ed
lea edx, [esp + 0x28]
mov ecx, esi
call fcn.10004d70
jmp 0x1003e0ef
xor al, al
mov ecx, dword [esp + 0x24]
push ecx
push esi
movzx edi, al
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, edi
neg edx
sbb edx, edx
add edx, 5
push edx
push esi
call ebp
mov ecx, dword [esp + 0x7fc]
mov eax, edi
neg eax
pop edi
sbb eax, eax
pop ebp
neg eax
pop ebx
xor ecx, esp
dec eax
call fcn.100d0738
add esp, 0x7f4
ret
Function at 0x1003e130
Capabilities:
Get disk size
Get file attributes
Get file size
Set file attributes

Disassembly:
sub esp, 0xbf4
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0xbf0], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc00]
push edi
xor ebx, ebx
push 0x7ce
lea ecx, [esp + 0x2e]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x34], ax
call fcn.100d4cc0
add esp, 0xc
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
push 0x101dd568
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003e1c1
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x14]
ja 0x1003e1f7
jb 0x1003e1d7
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x10]
jae 0x1003e1f7
push 6
push esi
call ebp
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0xbf0]
xor ecx, esp
call fcn.100d0738
add esp, 0xbf4
ret
push esi
lea eax, [esp + 0x2c]
call fcn.10039f60
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x1003e2ae
push 0x3fe
lea ecx, [esp + 0x7fe]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x804], ax
call fcn.100d4cc0
add esp, 0xc
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, 0x200
lea edx, [esp + 0x7f8]
call fcn.10003cf0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x10129ee0
mov eax, 0x7d0
lea edi, [esp + 0x2c]
call fcn.100044f0
lea ecx, [esp + 0x802]
push ecx
mov eax, 0x7d0
call fcn.100044f0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp esi, ebx
je 0x1003e292
mov edx, edi
mov ecx, esi
call fcn.1000b580
jmp 0x1003e294
xor al, al
push ebp
push esi
movzx edi, al
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, edi
neg edx
sbb edx, edx
add edx, 5
push edx
push esi
call dword [esp + 0x2c]
mov ecx, dword [esp + 0xbfc]
mov eax, edi
neg eax
pop edi
sbb eax, eax
pop ebp
neg eax
pop ebx
xor ecx, esp
dec eax
call fcn.100d0738
add esp, 0xbf4
ret
Function at 0x1003e2d0
Capabilities:
Get disk size
Get file attributes
Get file size
Set file attributes

Disassembly:
sub esp, 0x7ec
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x7e8], eax
push ebx
push ebp
mov ebp, dword [esp + 0x7f8]
push edi
xor ebx, ebx
push 0x7ce
lea ecx, [esp + 0x26]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x2c], ax
call fcn.100d4cc0
add esp, 0xc
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
push 0x101dd568
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003e35d
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x14]
ja 0x1003e393
jb 0x1003e373
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x10]
jae 0x1003e393
push 6
push esi
call ebp
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7e8]
xor ecx, esp
call fcn.100d0738
add esp, 0x7ec
ret
push esi
lea eax, [esp + 0x24]
call fcn.10039f60
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x1003e3dc
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
lea ecx, [esp + 0x24]
mov ebx, eax
call fcn.1000fa10
push ebx
push esi
movzx edi, al
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, edi
neg ecx
sbb ecx, ecx
add ecx, 5
push ecx
push esi
call ebp
mov ecx, dword [esp + 0x7f4]
mov eax, edi
neg eax
pop edi
sbb eax, eax
pop ebp
neg eax
pop ebx
xor ecx, esp
dec eax
call fcn.100d0738
add esp, 0x7ec
ret
Function at 0x1003e400
Capabilities:
Get disk size
Get file attributes
Get file size
Set file attributes

Disassembly:
sub esp, 0x7f4
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x7f0], eax
push ebx
push ebp
mov ebp, dword [esp + 0x800]
push edi
xor ebx, ebx
push 0x7ce
lea ecx, [esp + 0x2e]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x34], ax
call fcn.100d4cc0
add esp, 0xc
push ebx
push ebx
lea edx, [esp + 0x18]
push edx
push 0x101dd568
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003e48d
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x1c]
ja 0x1003e4c3
jb 0x1003e4a3
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x18]
jae 0x1003e4c3
push 6
push esi
call ebp
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7f0]
xor ecx, esp
call fcn.100d0738
add esp, 0x7f4
ret
push esi
lea eax, [esp + 0x2c]
call fcn.10039f60
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x1003e51b
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x24], eax
cmp esi, ebx
je 0x1003e4fd
lea edx, [esp + 0x28]
mov ecx, esi
call fcn.10004620
jmp 0x1003e4ff
xor al, al
mov ecx, dword [esp + 0x24]
push ecx
push esi
movzx edi, al
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, edi
neg edx
sbb edx, edx
add edx, 5
push edx
push esi
call ebp
mov ecx, dword [esp + 0x7fc]
mov eax, edi
neg eax
pop edi
sbb eax, eax
pop ebp
neg eax
pop ebx
xor ecx, esp
dec eax
call fcn.100d0738
add esp, 0x7f4
ret
Function at 0x1003e540
Capabilities:
Get disk size
Get file attributes
Get file size
Set file attributes

Disassembly:
sub esp, 0x7ec
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x7e8], eax
push ebx
push ebp
mov ebp, dword [esp + 0x7f8]
push edi
xor ebx, ebx
push 0x7ce
lea ecx, [esp + 0x26]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x2c], ax
call fcn.100d4cc0
add esp, 0xc
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
push 0x101dd568
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003e5cd
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x14]
ja 0x1003e603
jb 0x1003e5e3
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x10]
jae 0x1003e603
push 6
push esi
call ebp
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7e8]
xor ecx, esp
call fcn.100d0738
add esp, 0x7ec
ret
push esi
lea eax, [esp + 0x24]
call fcn.10039f60
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x1003e64e
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov ebx, eax
call fcn.10010d30
push ebx
push esi
movzx edi, al
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, edi
neg edx
sbb edx, edx
add edx, 5
push edx
push esi
call ebp
mov ecx, dword [esp + 0x7f4]
mov eax, edi
neg eax
pop edi
sbb eax, eax
pop ebp
neg eax
pop ebx
xor ecx, esp
dec eax
call fcn.100d0738
add esp, 0x7ec
ret
Function at 0x1003e670
Capabilities:
Get disk size
Get file attributes
Get file size
Set file attributes

Disassembly:
sub esp, 0x7ec
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x7e8], eax
push ebx
push ebp
mov ebp, dword [esp + 0x7f8]
push edi
xor ebx, ebx
push 0x7ce
lea ecx, [esp + 0x26]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x2c], ax
call fcn.100d4cc0
add esp, 0xc
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
push 0x101dd568
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003e6fd
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x14]
ja 0x1003e733
jb 0x1003e713
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x10]
jae 0x1003e733
push 6
push esi
call ebp
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7e8]
xor ecx, esp
call fcn.100d0738
add esp, 0x7ec
ret
push esi
lea eax, [esp + 0x24]
call fcn.10039f60
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x1003e7d2
push 0x1012b170
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1003e772
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
jmp 0x1003e7a5
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x1012b178
lea edx, [esp + 0x24]
push edx
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push eax
call ebx
test eax, eax
je 0x1003e7a5
push 0x1012b178
lea eax, [esp + 0x24]
push eax
call edi
push eax
call ebx
xor ecx, ecx
mov word [eax], cx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea edx, [esp + 0x20]
mov ebx, eax
push edx
mov eax, esi
call fcn.1001f8d0
push ebx
push esi
movzx edi, al
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, edi
neg eax
sbb eax, eax
add eax, 5
push eax
push esi
call ebp
mov ecx, dword [esp + 0x7f4]
mov eax, edi
neg eax
pop edi
sbb eax, eax
pop ebp
neg eax
pop ebx
xor ecx, esp
dec eax
call fcn.100d0738
add esp, 0x7ec
ret
Function at 0x1003e800
Capabilities:
Get disk size
Get file attributes
Get file size
Set file attributes

Disassembly:
sub esp, 0x850
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x84c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x85c]
push esi
push edi
xor ebx, ebx
mov edi, ecx
push 0x7ce
lea ecx, [esp + 0x8e]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x94], ax
call fcn.100d4cc0
add esp, 0xc
xor eax, eax
mov byte [esp + 0x81], bl
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov byte [esp + 0x48], al
mov dl, al
inc dl
mov byte [esp + eax + 0x49], dl
inc eax
cmp eax, 8
jb 0x1003e884
push 0x30
lea eax, [esp + 0x55]
push ebx
push eax
call fcn.100d4cc0
add esp, 0xc
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x101dd568
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1003e8e5
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x14]
ja 0x1003e908
jb 0x1003e8fb
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x10]
jae 0x1003e908
push 6
push ebp
call edi
or eax, 0xffffffff
jmp 0x1003e9c6
push ebp
lea eax, [esp + 0x8c]
call fcn.10039f60
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1003e9bd
push 0x10129ee0
push ebx
lea edx, [esp + 0x90]
push edx
call dword [sym.imp.SHLWAPI.dll_StrRStrIW]
mov esi, eax
cmp esi, ebx
je 0x1003e944
add esi, 2
xor eax, eax
mov word [esi], ax
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, 0x1f4
mov edx, esi
call fcn.10003cf0
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x80
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, 8
mov esi, str.MyChemicalRomance4EVER_tkfy_lMCR
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
push ebp
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x90]
mov byte [esp + 0x89], 1
call fcn.1002a560
push ebx
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
neg eax
sbb eax, eax
add eax, 5
push eax
push ebp
call dword [esp + 0x2c]
mov eax, esi
neg eax
sbb eax, eax
neg eax
dec eax
mov ecx, dword [esp + 0x85c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x850
ret
Function at 0x1003e9e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebp
push esi
push edi
test ebx, ebx
je 0x1003ea82
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push ebx
call ebp
test eax, eax
je 0x1003ea82
push 0x1012266c
push ebx
call fcn.100d080d
mov esi, eax
add esp, 8
test esi, esi
je 0x1003ea82
push esi
push 8
lea eax, [esp + 0x18]
push 1
push eax
call fcn.100d0bd3
push 2
push 0
push esi
call fcn.100d08ae
push esi
call fcn.100d1dcb
push esi
mov edi, eax
call fcn.100d11ec
add esp, 0x24
push str..MyChemicalRomance4EVER
push ebx
call ebp
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1003ea82
cmp edi, 0x18
jb 0x1003ea82
sub edi, dword [esp + 0x10]
sbb eax, dword [esp + 0x14]
sub edi, 0x18
sbb eax, 0
js 0x1003ea82
jg 0x1003ea6b
test edi, edi
jb 0x1003ea82
test eax, eax
jg 0x1003ea82
jl 0x1003ea76
cmp edi, 0xf
ja 0x1003ea82
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x10
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10
ret
Function at 0x10045520
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1004557e
push 0x400
push 0
push 0x101dd790
call fcn.100d4cc0
add esp, 0xc
push 0
lea ecx, [esp + 8]
push ecx
push 0x400
push 0x101dd790
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x10045583
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 4], 0x14
jbe 0x1004557e
mov eax, dword [0x101dd790]
cmp eax, 0xefbeadde
je 0x100455a0
test eax, eax
jne 0x1004557e
cmp byte [0x101dd856], 0
jne 0x1004557e
cmp byte [0x101dd919], 0
jne 0x1004557e
mov edx, dword [0x101e2cd4]
push edx
push 0x41
push 0x101dd794
call fcn.1006cf70
mov eax, dword [0x101e2cd4]
push eax
call fcn.10073c90
add esp, 0x10
mov esi, eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100455d8
sub eax, edx
cmp eax, 0x1000
jb 0x100455f6
push esi
call fcn.1007b260
add esp, 4
xor eax, eax
pop esi
pop ecx
ret
mov eax, esi
lea edx, [eax + 1]
jmp 0x10045600
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10045600
mov ecx, dword [esp + 0xc]
sub eax, edx
inc eax
push eax
push esi
push ecx
call fcn.100d4950
push esi
call fcn.1007b260
push 0x101dd7d5
push 0x101e2cd0
call fcn.10073f60
mov edx, dword [0x101e2cd0]
push edx
call fcn.10073d70
add esp, 0x1c
mov esi, eax
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10045640
sub eax, edx
cmp eax, 0x1000
jae 0x100455e8
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10045655
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 0x14]
push esi
push eax
call fcn.100d4950
push esi
call fcn.1007b260
add esp, 0x10
mov eax, 1
pop esi
pop ecx
ret

Function at 0x10046290
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, ecx
mov dword [esp + 8], 0
test eax, eax
je 0x10046332
test edi, edi
je 0x10046332
test ebp, ebp
je 0x10046332
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x120089
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100462dd
pop esi
pop edi
xor eax, eax
pop ebp
pop ecx
ret
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0x2000
jbe 0x10046300
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
xor eax, eax
pop ebp
pop ecx
ret
push 0
lea eax, [esp + 0x14]
push eax
push 0x400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 1
jne 0x10046325
mov dword [ebp], ebx
pop ebx
xor eax, eax
pop esi
test edi, edi
pop edi
setne al
pop ebp
pop ecx
ret
pop edi
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x10046740
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esi]
mov edx, ecx
xor edx, eax
shr ecx, 8
and edx, 0xff
mov edx, dword [edi + edx*4]
xor edx, ecx
movzx ecx, dl
add ecx, dword [esi + 4]
mov dword [esi], edx
mov edx, dword [esi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [edi + ecx*4]
mov dword [esi + 8], edx
ret

Function at 0x10046780
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, str.6XurMa2gA2P6z7ZjY239
mov dword [edx], 0x12345678
mov dword [edx + 4], 0x23456789
mov dword [edx + 8], 0x34567890
mov cl, 0x36
lea esp, [esp]
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
mov ecx, dword [edi + ecx*4]
shr eax, 8
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [edi + eax*4]
inc esi
mov dword [edx + 8], ecx
mov cl, byte [esi]
test cl, cl
jne 0x100467a0
pop esi
ret
Function at 0x10048580
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x64
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor eax, eax
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x50], bl
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov byte [esp + 0x75], al
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10048627
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.100d0738
add esp, 0x64
ret
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100486f6
cmp dword [esp + 0x1c], ebx
jl 0x100486f6
jg 0x10048652
cmp dword [esp + 0x18], 0x48
jbe 0x100486f6
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0x38
lea edx, [esp + 0x40]
push edx
push edi
call esi
test eax, eax
je 0x100486f6
cmp dword [esp + 0x14], 0x38
jne 0x100486f6
mov edx, 0x26
mov eax, str.FDD0600E_1C72_452B_992A_2F6A6AE83237
lea ecx, [esp + 0x34]
mov ebp, dword [ecx]
cmp ebp, dword [eax]
jne 0x100486f6
sub edx, 4
add eax, 4
add ecx, 4
cmp edx, 4
jae 0x10048685
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100486f6
mov al, byte [eax + 1]
cmp al, byte [ecx + 1]
jne 0x100486f6
mov ecx, dword [esp + 0x5c]
xor eax, eax
cmp eax, dword [esp + 0x1c]
jl 0x100486bb
jg 0x100486f6
cmp ecx, dword [esp + 0x18]
ja 0x100486f6
push ebx
push ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100486f6
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0x10
lea edx, [esp + 0x30]
push edx
push edi
call esi
test eax, eax
je 0x100486f6
cmp dword [esp + 0x14], 0x10
jne 0x100486f6
xor eax, eax
cmp dword [esp + 0x30], 0xffff
sete al
mov esi, eax
jmp 0x100486f8
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x64
ret