joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5130
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 2
mov esi, edx
mov ebx, ecx
push 0x5a5c28
push esi
call fcn.005274a0
add esp, 0xc
test eax, eax
je 0x4a5171
push 2
push 0x5a5c2c
push esi
call fcn.005274a0
add esp, 0xc
test eax, eax
jne 0x4a5180
mov al, byte [esi + 2]
test al, al
je 0x4a5180
cmp al, 0x2f
je 0x4a5180
cmp al, 0x5c
jne 0x4a51b4
movzx eax, byte [esi]
push eax
call fcn.0052e830
add esp, 4
test eax, eax
je 0x4a5196
cmp byte [esi + 1], 0x3a
je 0x4a51cc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x4a51c6
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
lea esi, [ebp - 0x20c]
push edi
push 2
lea edi, [ebx + 0x10b90]
mov dword [ebp - 0x210], esi
push esi
push edi
call fcn.005274a0
add esp, 0xc
test eax, eax
je 0x4a52cc
push 2
push dword [ebp - 0x210]
push edi
call fcn.005327d0
add esp, 0xc
mov word [ebx + 0x10b92], 0x2f
lea eax, [ebp - 0x108]
push 0x104
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4a5252
mov byte [edi], al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
mov eax, 0xc
cmp eax, dword [ebp - 0x214]
push 4
sbb eax, eax
inc eax
mov dword [ebx + 0x10b94], eax
lea eax, [ebp - 0x108]
push str.VFAT
push eax
call fcn.0052cfcf
add esp, 4
push eax
call fcn.005274a0
add esp, 0xc
test eax, eax
je 0x4a52c1
push 4
lea eax, [ebp - 0x108]
push str.HPFS
push eax
call fcn.005274a0
add esp, 0xc
test eax, eax
je 0x4a52c1
push 3
lea eax, [ebp - 0x108]
push 0x5a5c40
push eax
call fcn.005274a0
add esp, 0xc
test eax, eax
je 0x4a52c1
xor eax, eax
jmp 0x4a52c6
mov eax, 1
mov dword [ebx + 0x10b98], eax
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00519459
mov esp, ebp
pop ebp
ret
Function at 0x4a6bc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
push edi
push esi
mov ebx, ecx
call fcn.0052e022
add esp, 8
test eax, eax
jne 0x4a6cfe
mov edx, esi
mov ecx, ebx
call fcn.004a5130
test eax, eax
je 0x4a6bfa
mov eax, dword [ebx + 0x10b98]
mov dword [ebp - 8], eax
jmp 0x4a6c01
mov dword [ebp - 8], 0
push 0
push 0x80
push 3
push 0
push 3
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a6cf5
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4a6cf5
cmp dword [ebp - 8], 0
lea edx, [edi + 0x20]
lea ecx, [ebp - 0x20]
jne 0x4a6c9f
call fcn.004a4910
cmp dword [ebp - 0x10], 0
jne 0x4a6c74
cmp dword [ebp - 0xc], 0
jne 0x4a6c74
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x4a6c7f
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x10]
call fcn.004a4910
cmp dword [ebp - 0x18], 0
jne 0x4a6c8b
cmp dword [ebp - 0x14], 0
je 0x4a6cd5
lea edx, [edi + 0x28]
lea ecx, [ebp - 0x18]
call fcn.004a4910
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004a49f0
cmp dword [ebp - 0x10], 0
jne 0x4a6cbe
cmp dword [ebp - 0xc], 0
jne 0x4a6cbe
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x4a6cc9
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x10]
call fcn.004a49f0
cmp dword [ebp - 0x18], 0
jne 0x4a6cea
cmp dword [ebp - 0x14], 0
jne 0x4a6cea
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [edi + 0x2c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x28]
lea ecx, [ebp - 0x18]
call fcn.004a49f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a6d58
test bl, 0x10
je 0x4a6d58
push 0x30
push 0
push edi
call fcn.0051b450
add esp, 0xc
mov ecx, 0x210000
call fcn.004a8f10
shl ebx, 7
not ebx
mov dword [edi + 0x20], eax
and ebx, 0x80
mov dword [edi + 0x28], eax
or ebx, 0x4100
mov dword [edi + 0x18], eax
mov dword [edi + 0x24], edx
xor eax, eax
mov dword [edi + 0x2c], edx
mov dword [edi + 0x1c], edx
mov word [edi + 6], bx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a81c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, ebx
mov dword [ebp + 8], edi
test ebx, ebx
je 0x4a8260
mov ecx, dword [esi + 0x108ec]
test ecx, ecx
jg 0x4a8228
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.00530fe3
mov ecx, eax
add esp, 0xc
mov dword [esi + 0x108ec], ecx
test ecx, ecx
je 0x4a8287
js 0x4a8269
mov eax, dword [esi + 0x108e4]
add dword [esi + 0x10910], 0x2000
mov dword [esi + 0x108e8], eax
mov eax, dword [ebp - 4]
cmp ebx, ecx
mov edi, ebx
cmovae edi, ecx
push edi
push dword [esi + 0x108e8]
push eax
call fcn.0051aed0
mov eax, dword [ebp - 4]
add esp, 0xc
sub dword [esi + 0x108ec], edi
add eax, edi
add dword [esi + 0x108e8], edi
mov ecx, dword [esi + 0x108ec]
mov dword [ebp - 4], eax
sub ebx, edi
jne 0x4a81e4
mov edi, dword [ebp + 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10b54]
push 0x401
push 0x1b
push str.error:__zipfile_read_error_n
push esi
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
sub eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a82a0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Read file on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x109b0], 0
jne 0x4a82c7
mov eax, dword [esi + 0x90]
test eax, eax
jg 0x4a82cc
dec eax
mov dword [esi + 0x108ec], 0
mov dword [esi + 0x90], eax
or eax, 0xffffffff
pop esi
ret
push edi
mov edi, dword [esi + 0x108ec]
test edi, edi
jg 0x4a832f
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.00530fe3
add esp, 0xc
mov dword [esi + 0x108ec], eax
test eax, eax
jne 0x4a8306
mov dword [esi + 0x108ec], eax
or eax, 0xffffffff
pop edi
pop esi
ret
js 0x4a83eb
mov eax, dword [esi + 0x108e4]
mov ecx, esi
add dword [esi + 0x10910], 0x2000
mov dword [esi + 0x108e8], eax
call fcn.004a8160
mov edi, dword [esi + 0x108ec]
mov eax, dword [esi + 0x8d8]
mov ecx, edi
test byte [eax + 0x18], 1
je 0x4a83cd
push ebx
mov ebx, dword [esi + 0x108e8]
test edi, edi
je 0x4a83cc
mov ecx, dword [esi + 0x10b04]
lea ebx, [ebx + 1]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [ebx - 1], al
movzx eax, byte [ebx - 1]
mov ecx, dword [esi + 0x10afc]
xor eax, ecx
mov edx, dword [esi + 0x108dc]
movzx eax, al
shr ecx, 8
xor ecx, dword [edx + eax*4]
movzx eax, cl
add eax, dword [esi + 0x10b00]
imul eax, eax, 0x8088405
mov dword [esi + 0x10afc], ecx
mov ecx, dword [esi + 0x10b04]
inc eax
mov dword [esi + 0x10b00], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edx + eax*4]
mov dword [esi + 0x10b04], ecx
sub edi, 1
jne 0x4a8350
mov ecx, dword [esi + 0x108ec]
pop ebx
lea eax, [ecx - 1]
mov dword [esi + 0x108ec], eax
mov eax, dword [esi + 0x108e8]
pop edi
mov cl, byte [eax]
inc eax
mov dword [esi + 0x108e8], eax
movzx eax, cl
pop esi
ret
mov eax, dword [esi + 0x10b54]
push 0x401
push 0x1b
push str.error:__zipfile_read_error_n
push esi
call eax
push 1
push 0x62c060
call fcn.0051aebb
int3
Function at 0x4a8410
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x10914]
add eax, edx
mov esi, eax
and esi, 0x80001fff
jns 0x4a842e
dec esi
or esi, 0xffffe000
inc esi
mov ecx, eax
sub ecx, esi
test eax, eax
jns 0x4a846a
push 1
push 0x58c958
push dword [edi + 0x10904]
lea esi, [edi + 0x8dc]
push str.error___s_:__attempt_to_seek_before_beginning_of_zipfile_n_s
push esi
call fcn.004a2840
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
pop edi
mov eax, 3
pop esi
ret
cmp ecx, dword [edi + 0x10910]
je 0x4a84cd
push 0
push ecx
push dword [edi + 0x10908]
call fcn.00531a61
push 0x2000
push dword [edi + 0x108e4]
mov dword [edi + 0x10910], eax
push dword [edi + 0x10908]
call fcn.00530fe3
add esp, 0x18
mov dword [edi + 0x108ec], eax
test eax, eax
jg 0x4a84b1
pop edi
mov eax, 0x33
pop esi
ret
mov ecx, dword [edi + 0x108e4]
sub eax, esi
mov dword [edi + 0x108ec], eax
lea eax, [ecx + esi]
mov dword [edi + 0x108e8], eax
xor eax, eax
pop edi
pop esi
ret
mov ecx, dword [edi + 0x108e4]
mov eax, dword [edi + 0x108e8]
sub eax, ecx
sub eax, esi
add eax, dword [edi + 0x108ec]
mov dword [edi + 0x108ec], eax
lea eax, [ecx + esi]
mov dword [edi + 0x108e8], eax
xor eax, eax
pop edi
pop esi
ret

Function at 0x4acb80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x5b114c], 0
je 0x4acbc7
push esi
push edi
xor esi, esi
nop dword [eax]
mov eax, esi
mov edi, 8
mov edx, eax
mov ecx, eax
shr edx, 1
mov eax, edx
xor eax, 0xedb88320
and cl, 1
cmove eax, edx
sub edi, 1
jne 0x4acb97
mov dword [esi*4 + 0x5de5e0], eax
inc esi
cmp esi, 0x100
jl 0x4acb90
mov dword [0x5b114c], edi
pop edi
pop esi
mov eax, 0x5de5e0
ret
Function at 0x4b17f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5bd044], 0
push esi
push edi
je 0x4b1820
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
jne 0x4b1842
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
mov esi, edi
mov ecx, 0x5bd048
xchg dword [ecx], esi
test esi, esi
je 0x4b187f
mov eax, esi
xchg dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x5bd044]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
push 0x62c040
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x120
push 0
push 0x5f9680
call fcn.0051b450
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4b1975
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeRestorePrivilege
push 0
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b191b
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4b191b
call esi
test eax, eax
jne 0x4b191b
mov dword [0x5bd040], 1
push dword [ebp - 0x18]
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b197a
cmp dword [0x5bd040], 0
jne 0x4b190b
lea eax, [ebp - 0x10]
push eax
push str.SeSecurityPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4b190b
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4b190b
call esi
mov ecx, dword [0x5bd03c]
test eax, eax
push dword [ebp - 0x18]
mov esi, 1
cmove ecx, esi
mov dword [0x5bd03c], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b197a
mov esi, 1
push edi
mov dword [0x5bd044], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00519459
mov esp, ebp
pop ebp
ret
Function at 0x4b2110
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 8]
push ebx
push esi
mov dword [ecx + 0x10afc], 0x12345678
mov ebx, 0x12345678
mov dword [ecx + 0x10b00], 0x23456789
mov esi, 0x34567890
mov dword [ecx + 0x10b04], 0x34567890
mov al, byte [edx]
push edi
mov edi, 0x23456789
test al, al
je 0x4b21af
nop dword [eax]
mov edx, dword [ecx + 0x108dc]
movsx eax, al
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edx + eax*4]
movzx eax, bl
add eax, edi
mov dword [ecx + 0x10afc], ebx
imul edi, eax, 0x8088405
inc edi
mov eax, edi
mov dword [ecx + 0x10b00], edi
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
mov edx, dword [ebp + 8]
inc edx
mov dword [ecx + 0x10b04], esi
mov dword [ebp + 8], edx
mov al, byte [edx]
test al, al
jne 0x4b2160
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], 0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], eax
nop dword [eax + eax]
mov edx, esi
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov edx, dword [ebp - 0x14]
shr eax, 8
xor byte [ebp + edx - 0x10], al
movzx eax, byte [ebp + edx - 0x10]
xor eax, ebx
shr ebx, 8
movzx eax, al
mov edx, ebx
mov ebx, dword [ecx + 0x108dc]
xor edx, dword [ebx + eax*4]
movzx eax, dl
mov ebx, edx
mov edx, dword [ecx + 0x108dc]
add eax, edi
imul eax, eax, 0x8088405
mov dword [ecx + 0x10afc], ebx
inc eax
mov edi, eax
shr eax, 0x18
xor eax, esi
mov dword [ecx + 0x10b00], edi
movzx eax, al
shr esi, 8
xor esi, dword [edx + eax*4]
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ecx + 0x10b04], esi
mov dword [ebp - 0x14], eax
cmp eax, 0xc
jl 0x4b21d0
mov eax, dword [ecx + 0x8d8]
movzx esi, byte [ebp - 5]
test byte [eax + 0x18], 2
je 0x4b2260
movzx edx, byte [ecx + 0x10929]
jmp 0x4b2267
movzx edx, byte [ecx + 0x1092f]
cmp esi, edx
je 0x4b227f
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x108ec]
mov edi, dword [ecx + 0x90]
cmp eax, edi
mov ebx, dword [ecx + 0x108e8]
cmovle edi, eax
test edi, edi
je 0x4b2316
nop word [eax + eax]
mov edx, dword [ecx + 0x10b04]
lea ebx, [ebx + 1]
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor byte [ebx - 1], al
movzx eax, byte [ebx - 1]
mov edx, dword [ecx + 0x10afc]
xor eax, edx
mov esi, dword [ecx + 0x108dc]
movzx eax, al
shr edx, 8
xor edx, dword [esi + eax*4]
movzx eax, dl
add eax, dword [ecx + 0x10b00]
imul eax, eax, 0x8088405
mov dword [ecx + 0x10afc], edx
mov edx, dword [ecx + 0x10b04]
inc eax
mov dword [ecx + 0x10b00], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [esi + eax*4]
mov dword [ecx + 0x10b04], edx
sub edi, 1
jne 0x4b22a0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00519459
mov esp, ebp
pop ebp
ret
Function at 0x4b2330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, edx
mov esi, ecx
test edi, edi
jne 0x4b2343
pop edi
xor eax, eax
pop esi
pop ebp
ret
call fcn.004acb80
mov ecx, dword [ebp + 8]
mov edx, eax
not esi
cmp ecx, 8
jb 0x4b23e7
push ebx
mov ebx, ecx
shr ebx, 3
nop
movzx eax, byte [edi]
sub ecx, 8
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
movzx eax, byte [edi + 1]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
movzx eax, byte [edi + 2]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
movzx eax, byte [edi + 3]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
movzx eax, byte [edi + 4]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
movzx eax, byte [edi + 5]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
movzx eax, byte [edi + 6]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
movzx eax, byte [edi + 7]
add edi, 8
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
sub ebx, 1
jne 0x4b2360
pop ebx
test ecx, ecx
je 0x4b2406
nop dword [eax + eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
sub ecx, 1
jne 0x4b23f0
not esi
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4b2410
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0x10], ebx
mov ecx, dword [esi + 0x108ec]
lea eax, [ecx - 1]
mov dword [esi + 0x108ec], eax
test ecx, ecx
jle 0x4b2445
mov eax, dword [esi + 0x108e8]
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x108e8], eax
jmp 0x4b244e
mov ecx, esi
call fcn.004a82a0
mov ecx, eax
lea eax, [ecx + 1]
xor edi, edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
nop dword [eax]
mov ecx, dword [esi + 0x108ec]
lea eax, [ecx - 1]
mov dword [esi + 0x108ec], eax
test ecx, ecx
jle 0x4b2481
mov eax, dword [esi + 0x108e8]
movzx ecx, byte [eax]
jmp 0x4b25c7
cmp dword [esi + 0x109b0], 0
je 0x4b2492
or ecx, 0xffffffff
jmp 0x4b25ce
mov eax, dword [esi + 0x90]
test eax, eax
jg 0x4b24b5
dec eax
mov dword [esi + 0x108ec], 0
mov dword [esi + 0x90], eax
or ecx, 0xffffffff
jmp 0x4b25ce
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.00530fe3
add esp, 0xc
mov dword [esi + 0x108ec], eax
test eax, eax
jne 0x4b24e6
mov dword [esi + 0x108ec], eax
or ecx, 0xffffffff
jmp 0x4b25ce
js 0x4b2619
mov eax, dword [esi + 0x108e4]
mov ecx, esi
add dword [esi + 0x10910], 0x2000
mov dword [esi + 0x108e8], eax
call fcn.004a8160
mov eax, dword [esi + 0x8d8]
mov ebx, dword [esi + 0x108ec]
mov ecx, ebx
test byte [eax + 0x18], 1
je 0x4b25b0
mov eax, dword [esi + 0x108e8]
test ebx, ebx
je 0x4b25b0
mov edi, eax
mov ecx, dword [esi + 0x10b04]
lea edi, [edi + 1]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [edi - 1], al
movzx eax, byte [edi - 1]
mov ecx, dword [esi + 0x10afc]
xor eax, ecx
mov edx, dword [esi + 0x108dc]
movzx eax, al
shr ecx, 8
xor ecx, dword [edx + eax*4]
movzx eax, cl
add eax, dword [esi + 0x10b00]
imul eax, eax, 0x8088405
mov dword [esi + 0x10afc], ecx
mov ecx, dword [esi + 0x10b04]
inc eax
mov dword [esi + 0x10b00], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edx + eax*4]
mov dword [esi + 0x10b04], ecx
sub ebx, 1
jne 0x4b2531
mov edi, dword [ebp - 4]
mov ecx, dword [esi + 0x108ec]
mov ebx, dword [ebp - 0x10]
lea eax, [ecx - 1]
mov dword [esi + 0x108ec], eax
mov eax, dword [esi + 0x108e8]
mov cl, byte [eax]
movzx ecx, cl
inc eax
mov dword [esi + 0x108e8], eax
mov edx, ecx
shr ecx, 4
and ecx, 0xf
and edx, 0xf
inc ecx
inc edx
lea eax, [ecx + edi]
cmp eax, dword [ebp + 8]
ja 0x4b260d
mov dword [ebx + edi*4], edx
inc edi
sub ecx, 1
jne 0x4b25e3
sub dword [ebp - 8], 1
mov dword [ebp - 4], edi
jne 0x4b2460
xor eax, eax
mov ecx, 4
cmp edi, dword [ebp + 8]
pop edi
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10b54]
push 0x401
push 0x1b
push str.error:__zipfile_read_error_n
push esi
call eax
push 1
push 0x62c060
call fcn.0051aebb
int3
Function at 0x4b82f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0xc], edx
push 0x4000
mov dword [ebp - 8], esi
call fcn.0051f3c3
mov edx, eax
add esp, 4
mov dword [ebp - 4], edx
test edx, edx
jne 0x4b8321
lea eax, [edx + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
xor edi, edi
cmp ebx, 0xffffffff
je 0x4b8343
cmp edi, ebx
jae 0x4b83d2
mov eax, ebx
mov ecx, 0x4000
sub eax, edi
cmp eax, ecx
cmovb ecx, eax
jmp 0x4b8348
mov ecx, 0x4000
push esi
push ecx
push 1
push edx
call fcn.00536326
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b83a9
push dword [ebp - 0xc]
push esi
push 1
push dword [ebp - 4]
call fcn.00536106
add esp, 0x10
cmp eax, esi
jne 0x4b837a
mov edx, dword [ebp - 4]
add edi, esi
mov esi, dword [ebp - 8]
jmp 0x4b8326
push dword [ebp - 4]
call fcn.0051d799
add esp, 4
push str._fcopy:_write_error_n
push 2
call fcn.0052d12a
add esp, 4
push eax
call fcn.004568e0
add esp, 8
mov eax, 0xa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call fcn.00535615
add esp, 4
test eax, eax
je 0x4b83cf
push dword [ebp - 4]
call fcn.0051d799
add esp, 4
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call fcn.0051d799
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b8990
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
movzx eax, byte [esi]
push eax
call fcn.0052e830
add esp, 4
test eax, eax
je 0x4b89bc
cmp byte [esi + 1], 0x3a
je 0x4b89dc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea esi, [ebp - 0x20c]
push 3
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], esi
push esi
push eax
call fcn.005327d0
add esp, 0xc
mov byte [ebp - 0x20d], 0
lea eax, [ebp - 0x108]
push 0x104
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 3
lea eax, [ebp - 0x108]
push 0x5a5c40
push eax
call fcn.0052cfcf
add esp, 4
push eax
call fcn.005274a0
add esp, 0xc
pop esi
test eax, eax
je 0x4b8a9d
push 4
lea eax, [ebp - 0x108]
push str.VFAT
push eax
call fcn.005274a0
add esp, 0xc
test eax, eax
je 0x4b8a9d
push 4
lea eax, [ebp - 0x108]
push str.HPFS
push eax
call fcn.005274a0
add esp, 0xc
test eax, eax
je 0x4b8a9d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret