joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f120
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
push dword [edi + 0x109d8]
call fcn.0053abc2
add esp, 4
cmp dword [edi + 0x14], 0
jne 0x48f324
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x14]
call fcn.0048ef70
add esp, 8
mov dword [ebp - 0xc], eax
lea esi, [edi + 0x109f0]
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [edi + 0x8d8]
mov ebx, eax
mov ecx, dword [ecx + 0x14]
test cl, 0x5f
je 0x48f1c8
and ecx, 0x7f
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x48f1c8
push 1
lea esi, [edi + 0x8dc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push eax
push str._nwarning___d_:_could_not_set_file_attributes_n
push esi
call fcn.00436c30
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
lea esi, [edi + 0x109f0]
mov edx, dword [edi + 0x10918]
test edx, edx
je 0x48f289
lea eax, [ebp - 4]
mov ecx, edi
push eax
lea eax, [ebp - 8]
push eax
movzx eax, word [edi + 0x10938]
push eax
call fcn.0048ead0
add esp, 0xc
test eax, eax
je 0x48f289
push dword [ebp - 4]
mov eax, dword [edi + 0x8d8]
mov edx, esi
push dword [ebp - 8]
mov ecx, edi
push dword [eax + 0x14]
call fcn.0048e8a0
add esp, 0xc
cmp eax, 0x4f
jne 0x48f289
mov edx, dword [edi + 0x38]
lea esi, [edi + 0x8dc]
test edx, edx
je 0x48f256
push 1
lea edx, [edi + 0x88dc]
lea ecx, [edi + 0x109f0]
call fcn.0049a550
push ecx
push eax
push 0x5cc118
push esi
call fcn.00436c30
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
mov edx, dword [edi + 0x38]
push 1
mov ecx, 0x5b9638
test edx, edx
push ecx
mov eax, 0x5bfa68
cmove eax, ecx
push eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff5
push eax
push str._compressed_WinNT_security_data_missing___d_bytes__s
push esi
call fcn.00436c30
add esp, 0x14
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
cmp ebx, 0xffffffff
jne 0x48f2be
push 1
lea esi, [edi + 0x8dc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push eax
push str._nCreateFile___error__d_when_trying_set_file_time_n
push esi
call fcn.00436c30
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x48f31d
test cl, 1
lea eax, [ebp - 0x14]
mov edx, 0
cmove eax, edx
test cl, 2
push eax
lea eax, [ebp - 0x1c]
cmove eax, edx
test cl, 4
push eax
mov ecx, edx
lea eax, [ebp - 0x24]
cmove eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x48f31d
push eax
lea esi, [edi + 0x8dc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push eax
push str._nSetFileTime_failed:__d_n
push esi
call fcn.00436c30
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48f5b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5d60c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 2
mov esi, edx
mov ebx, ecx
push 0x5cc1f4
push esi
call fcn.00539a10
add esp, 0xc
test eax, eax
je 0x48f5f1
push 2
push 0x5cc1f8
push esi
call fcn.00539a10
add esp, 0xc
test eax, eax
jne 0x48f600
mov al, byte [esi + 2]
test al, al
je 0x48f600
cmp al, 0x2f
je 0x48f600
cmp al, 0x5c
jne 0x48f634
movzx eax, byte [esi]
push eax
call fcn.00540fc0
add esp, 4
test eax, eax
je 0x48f616
cmp byte [esi + 1], 0x3a
je 0x48f64c
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 0x48f646
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
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.00539a10
add esp, 0xc
test eax, eax
je 0x48f74c
push 2
push dword [ebp - 0x210]
push edi
call fcn.00544f60
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 0x48f6d2
mov byte [edi], al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
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.0053ad88
add esp, 4
push eax
call fcn.00539a10
add esp, 0xc
test eax, eax
je 0x48f741
push 4
lea eax, [ebp - 0x108]
push str.HPFS
push eax
call fcn.00539a10
add esp, 0xc
test eax, eax
je 0x48f741
push 3
lea eax, [ebp - 0x108]
push 0x5cc20c
push eax
call fcn.00539a10
add esp, 0xc
test eax, eax
je 0x48f741
xor eax, eax
jmp 0x48f746
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.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x491040
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.0053bddb
add esp, 8
test eax, eax
jne 0x49117e
mov edx, esi
mov ecx, ebx
call fcn.0048f5b0
test eax, eax
je 0x49107a
mov eax, dword [ebx + 0x10b98]
mov dword [ebp - 8], eax
jmp 0x491081
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 0x491175
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 0x491175
cmp dword [ebp - 8], 0
lea edx, [edi + 0x20]
lea ecx, [ebp - 0x20]
jne 0x49111f
call fcn.0048ed90
cmp dword [ebp - 0x10], 0
jne 0x4910f4
cmp dword [ebp - 0xc], 0
jne 0x4910f4
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x4910ff
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x10]
call fcn.0048ed90
cmp dword [ebp - 0x18], 0
jne 0x49110b
cmp dword [ebp - 0x14], 0
je 0x491155
lea edx, [edi + 0x28]
lea ecx, [ebp - 0x18]
call fcn.0048ed90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0048ee70
cmp dword [ebp - 0x10], 0
jne 0x49113e
cmp dword [ebp - 0xc], 0
jne 0x49113e
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x491149
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x10]
call fcn.0048ee70
cmp dword [ebp - 0x18], 0
jne 0x49116a
cmp dword [ebp - 0x14], 0
jne 0x49116a
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.0048ee70
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 0x4911d8
test bl, 0x10
je 0x4911d8
push 0x30
push 0
push edi
call fcn.0052d9b0
add esp, 0xc
mov ecx, 0x210000
call fcn.00493420
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 0x4925f0
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 0x492690
mov ecx, dword [esi + 0x108ec]
test ecx, ecx
jg 0x492658
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.00543773
mov ecx, eax
add esp, 0xc
mov dword [esi + 0x108ec], ecx
test ecx, ecx
je 0x4926b7
js 0x492699
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.0052d430
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 0x492614
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 0x4926d0
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 0x4926f7
mov eax, dword [esi + 0x90]
test eax, eax
jg 0x4926fc
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 0x49275f
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.00543773
add esp, 0xc
mov dword [esi + 0x108ec], eax
test eax, eax
jne 0x492736
mov dword [esi + 0x108ec], eax
or eax, 0xffffffff
pop edi
pop esi
ret
js 0x49281b
mov eax, dword [esi + 0x108e4]
mov ecx, esi
add dword [esi + 0x10910], 0x2000
mov dword [esi + 0x108e8], eax
call fcn.00492590
mov edi, dword [esi + 0x108ec]
mov eax, dword [esi + 0x8d8]
mov ecx, edi
test byte [eax + 0x18], 1
je 0x4927fd
push ebx
mov ebx, dword [esi + 0x108e8]
test edi, edi
je 0x4927fc
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 0x492780
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 0x6524c0
call fcn.0052e084
int3
Function at 0x492840
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 0x49285e
dec esi
or esi, 0xffffe000
inc esi
mov ecx, eax
sub ecx, esi
test eax, eax
jns 0x49289a
push 1
push str.___please_check_that_you_have_transferred_or_created_the_zipfile_in_the_n__appropriate_BINARY_mode_and_that_you_have_compiled_UnZip_properly__n
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.00436c30
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 0x4928fd
push 0
push ecx
push dword [edi + 0x10908]
call fcn.005441f1
push 0x2000
push dword [edi + 0x108e4]
mov dword [edi + 0x10910], eax
push dword [edi + 0x10908]
call fcn.00543773
add esp, 0x18
mov dword [edi + 0x108ec], eax
test eax, eax
jg 0x4928e1
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 0x497190
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x5d71fc], 0
je 0x4971d7
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 0x4971a7
mov dword [esi*4 + 0x604a40], eax
inc esi
cmp esi, 0x100
jl 0x4971a0
mov dword [0x5d71fc], edi
pop edi
pop esi
mov eax, 0x604a40
ret
Function at 0x49c050
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5d60c4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5e34a0], 0
push esi
push edi
je 0x49c080
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
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 0x49c0a2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
mov esi, edi
mov ecx, 0x5e34a4
xchg dword [ecx], esi
test esi, esi
je 0x49c0df
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 [0x5e34a0]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
push 0x6524a0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push pe_nt_image_headers32
push 0
push 0x61fae0
call fcn.0052d9b0
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 0x49c1d5
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 0x49c17b
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 0x49c17b
call esi
test eax, eax
jne 0x49c17b
mov dword [0x5e349c], 1
push dword [ebp - 0x18]
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49c1da
cmp dword [0x5e349c], 0
jne 0x49c16b
lea eax, [ebp - 0x10]
push eax
push str.SeSecurityPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x49c16b
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 0x49c16b
call esi
mov ecx, dword [0x5e3498]
test eax, eax
push dword [ebp - 0x18]
mov esi, 1
cmove ecx, esi
mov dword [0x5e3498], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49c1da
mov esi, 1
push edi
mov dword [0x5e34a0], 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.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x49cb60
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5d60c4]
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 0x49cbff
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 0x49cbb0
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 0x49cc20
mov eax, dword [ecx + 0x8d8]
movzx esi, byte [ebp - 5]
test byte [eax + 0x18], 2
je 0x49ccb0
movzx edx, byte [ecx + 0x10929]
jmp 0x49ccb7
movzx edx, byte [ecx + 0x1092f]
cmp esi, edx
je 0x49cccf
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
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 0x49cd66
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 0x49ccf0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x49cd80
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 0x49cd93
pop edi
xor eax, eax
pop esi
pop ebp
ret
call fcn.00497190
mov ecx, dword [ebp + 8]
mov edx, eax
not esi
cmp ecx, 8
jb 0x49ce37
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 0x49cdb0
pop ebx
test ecx, ecx
je 0x49ce56
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 0x49ce40
not esi
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x49ce60
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 0x49ce95
mov eax, dword [esi + 0x108e8]
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x108e8], eax
jmp 0x49ce9e
mov ecx, esi
call fcn.004926d0
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 0x49ced1
mov eax, dword [esi + 0x108e8]
movzx ecx, byte [eax]
jmp 0x49d017
cmp dword [esi + 0x109b0], 0
je 0x49cee2
or ecx, 0xffffffff
jmp 0x49d01e
mov eax, dword [esi + 0x90]
test eax, eax
jg 0x49cf05
dec eax
mov dword [esi + 0x108ec], 0
mov dword [esi + 0x90], eax
or ecx, 0xffffffff
jmp 0x49d01e
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.00543773
add esp, 0xc
mov dword [esi + 0x108ec], eax
test eax, eax
jne 0x49cf36
mov dword [esi + 0x108ec], eax
or ecx, 0xffffffff
jmp 0x49d01e
js 0x49d069
mov eax, dword [esi + 0x108e4]
mov ecx, esi
add dword [esi + 0x10910], 0x2000
mov dword [esi + 0x108e8], eax
call fcn.00492590
mov eax, dword [esi + 0x8d8]
mov ebx, dword [esi + 0x108ec]
mov ecx, ebx
test byte [eax + 0x18], 1
je 0x49d000
mov eax, dword [esi + 0x108e8]
test ebx, ebx
je 0x49d000
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 0x49cf81
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 0x49d05d
mov dword [ebx + edi*4], edx
inc edi
sub ecx, 1
jne 0x49d033
sub dword [ebp - 8], 1
mov dword [ebp - 4], edi
jne 0x49ceb0
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 0x6524c0
call fcn.0052e084
int3