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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 2
mov esi, edx
mov ebx, ecx
push 0x5cd0b8
push esi
call fcn.00547b10
add esp, 0xc
test eax, eax
je 0x4af391
push 2
push 0x5cd0bc
push esi
call fcn.00547b10
add esp, 0xc
test eax, eax
jne 0x4af3a0
mov al, byte [esi + 2]
test al, al
je 0x4af3a0
cmp al, 0x2f
je 0x4af3a0
cmp al, 0x5c
jne 0x4af3d4
movzx eax, byte [esi]
push eax
call fcn.0054ea30
add esp, 4
test eax, eax
je 0x4af3b6
cmp byte [esi + 1], 0x3a
je 0x4af3ec
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 0x4af3e6
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
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.00547b10
add esp, 0xc
test eax, eax
je 0x4af4ec
push 2
push dword [ebp - 0x210]
push edi
call fcn.0054e7a0
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 0x4af472
mov byte [edi], al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
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.0054d365
add esp, 4
push eax
call fcn.00547b10
add esp, 0xc
test eax, eax
je 0x4af4e1
push 4
lea eax, [ebp - 0x108]
push str.HPFS
push eax
call fcn.00547b10
add esp, 0xc
test eax, eax
je 0x4af4e1
push 3
lea eax, [ebp - 0x108]
push 0x5cd0d0
push eax
call fcn.00547b10
add esp, 0xc
test eax, eax
je 0x4af4e1
xor eax, eax
jmp 0x4af4e6
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.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x4b0de0
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.0054e38b
add esp, 8
test eax, eax
jne 0x4b0f1e
mov edx, esi
mov ecx, ebx
call fcn.004af350
test eax, eax
je 0x4b0e1a
mov eax, dword [ebx + 0x10b98]
mov dword [ebp - 8], eax
jmp 0x4b0e21
mov dword [ebp - 8], 0
push 0
push 0x80
push 3
push 0
push 3
push bind
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4b0f15
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 0x4b0f15
cmp dword [ebp - 8], 0
lea edx, [edi + 0x20]
lea ecx, [ebp - 0x20]
jne 0x4b0ebf
call fcn.004aeb30
cmp dword [ebp - 0x10], 0
jne 0x4b0e94
cmp dword [ebp - 0xc], 0
jne 0x4b0e94
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x4b0e9f
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x10]
call fcn.004aeb30
cmp dword [ebp - 0x18], 0
jne 0x4b0eab
cmp dword [ebp - 0x14], 0
je 0x4b0ef5
lea edx, [edi + 0x28]
lea ecx, [ebp - 0x18]
call fcn.004aeb30
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004aec10
cmp dword [ebp - 0x10], 0
jne 0x4b0ede
cmp dword [ebp - 0xc], 0
jne 0x4b0ede
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x4b0ee9
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x10]
call fcn.004aec10
cmp dword [ebp - 0x18], 0
jne 0x4b0f0a
cmp dword [ebp - 0x14], 0
jne 0x4b0f0a
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.004aec10
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 0x4b0f78
test bl, 0x10
je 0x4b0f78
push 0x30
push 0
push edi
call fcn.0053f2b0
add esp, 0xc
mov ecx, 0x210000
call fcn.004b3130
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 0x4b23e0
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 0x4b2480
mov ecx, dword [esi + 0x108ec]
test ecx, ecx
jg 0x4b2448
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.005510cc
mov ecx, eax
add esp, 0xc
mov dword [esi + 0x108ec], ecx
test ecx, ecx
je 0x4b24a7
js 0x4b2489
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.00540f80
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 0x4b2404
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 0x4b24c0
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 0x4b24e7
mov eax, dword [esi + 0x90]
test eax, eax
jg 0x4b24ec
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 0x4b254f
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.005510cc
add esp, 0xc
mov dword [esi + 0x108ec], eax
test eax, eax
jne 0x4b2526
mov dword [esi + 0x108ec], eax
or eax, 0xffffffff
pop edi
pop esi
ret
js 0x4b260b
mov eax, dword [esi + 0x108e4]
mov ecx, esi
add dword [esi + 0x10910], 0x2000
mov dword [esi + 0x108e8], eax
call fcn.004b2380
mov edi, dword [esi + 0x108ec]
mov eax, dword [esi + 0x8d8]
mov ecx, edi
test byte [eax + 0x18], 1
je 0x4b25ed
push ebx
mov ebx, dword [esi + 0x108e8]
test edi, edi
je 0x4b25ec
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 0x4b2570
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 0x656f00
call fcn.0053f05b
int3
Function at 0x4b2630
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 0x4b264e
dec esi
or esi, 0xffffe000
inc esi
mov ecx, eax
sub ecx, esi
test eax, eax
jns 0x4b268a
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.0048d4b0
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 0x4b26ed
push 0
push ecx
push dword [edi + 0x10908]
call fcn.00551a98
push 0x2000
push dword [edi + 0x108e4]
mov dword [edi + 0x10910], eax
push dword [edi + 0x10908]
call fcn.005510cc
add esp, 0x18
mov dword [edi + 0x108ec], eax
test eax, eax
jg 0x4b26d1
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 0x4b6d90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x5d845c], 0
je 0x4b6dd7
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 0x4b6da7
mov dword [esi*4 + 0x609470], eax
inc esi
cmp esi, 0x100
jl 0x4b6da0
mov dword [0x5d845c], edi
pop edi
pop esi
mov eax, 0x609470
ret
Function at 0x4bba00
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5e7cb8], 0
push esi
push edi
je 0x4bba30
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
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 0x4bba52
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
mov esi, edi
mov ecx, 0x5e7cb4
xchg dword [ecx], esi
test esi, esi
je 0x4bba8f
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 [0x5e7cb8]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
push 0x656ee0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push pe_nt_image_headers32
push 0
push 0x624520
call fcn.0053f2b0
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 0x4bbb85
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 0x4bbb2b
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 0x4bbb2b
call esi
test eax, eax
jne 0x4bbb2b
mov dword [0x5e7cb0], 1
push dword [ebp - 0x18]
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4bbb8a
cmp dword [0x5e7cb0], 0
jne 0x4bbb1b
lea eax, [ebp - 0x10]
push eax
push str.SeSecurityPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4bbb1b
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 0x4bbb1b
call esi
mov ecx, dword [0x5e7cac]
test eax, eax
push dword [ebp - 0x18]
mov esi, 1
cmove ecx, esi
mov dword [0x5e7cac], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4bbb8a
mov esi, 1
push edi
mov dword [0x5e7cb8], 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.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x4bc320
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5d7008]
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 0x4bc3bf
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 0x4bc370
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 0x4bc3e0
mov eax, dword [ecx + 0x8d8]
movzx esi, byte [ebp - 5]
test byte [eax + 0x18], 2
je 0x4bc470
movzx edx, byte [ecx + 0x10929]
jmp 0x4bc477
movzx edx, byte [ecx + 0x1092f]
cmp esi, edx
je 0x4bc48f
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
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 0x4bc526
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 0x4bc4b0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x4bc540
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 0x4bc553
pop edi
xor eax, eax
pop esi
pop ebp
ret
call fcn.004b6d90
mov ecx, dword [ebp + 8]
mov edx, eax
not esi
cmp ecx, 8
jb 0x4bc5f7
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 0x4bc570
pop ebx
test ecx, ecx
je 0x4bc616
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 0x4bc600
not esi
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4bc620
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 0x4bc655
mov eax, dword [esi + 0x108e8]
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x108e8], eax
jmp 0x4bc65e
mov ecx, esi
call fcn.004b24c0
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 0x4bc691
mov eax, dword [esi + 0x108e8]
movzx ecx, byte [eax]
jmp 0x4bc7d7
cmp dword [esi + 0x109b0], 0
je 0x4bc6a2
or ecx, 0xffffffff
jmp 0x4bc7de
mov eax, dword [esi + 0x90]
test eax, eax
jg 0x4bc6c5
dec eax
mov dword [esi + 0x108ec], 0
mov dword [esi + 0x90], eax
or ecx, 0xffffffff
jmp 0x4bc7de
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.005510cc
add esp, 0xc
mov dword [esi + 0x108ec], eax
test eax, eax
jne 0x4bc6f6
mov dword [esi + 0x108ec], eax
or ecx, 0xffffffff
jmp 0x4bc7de
js 0x4bc829
mov eax, dword [esi + 0x108e4]
mov ecx, esi
add dword [esi + 0x10910], 0x2000
mov dword [esi + 0x108e8], eax
call fcn.004b2380
mov eax, dword [esi + 0x8d8]
mov ebx, dword [esi + 0x108ec]
mov ecx, ebx
test byte [eax + 0x18], 1
je 0x4bc7c0
mov eax, dword [esi + 0x108e8]
test ebx, ebx
je 0x4bc7c0
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 0x4bc741
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 0x4bc81d
mov dword [ebx + edi*4], edx
inc edi
sub ecx, 1
jne 0x4bc7f3
sub dword [ebp - 8], 1
mov dword [ebp - 4], edi
jne 0x4bc670
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 0x656f00
call fcn.0053f05b
int3
Function at 0x4c24b0
Capabilities:
Read file on windows
Write 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.0054cef5
mov edx, eax
add esp, 4
mov dword [ebp - 4], edx
test edx, edx
jne 0x4c24e1
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 0x4c2503
cmp edi, ebx
jae 0x4c2592
mov eax, ebx
mov ecx, 0x4000
sub eax, edi
cmp eax, ecx
cmovb ecx, eax
jmp 0x4c2508
mov ecx, 0x4000
push esi
push ecx
push 1
push edx
call fcn.005563eb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c2569
push dword [ebp - 0xc]
push esi
push 1
push dword [ebp - 4]
call fcn.005561a2
add esp, 0x10
cmp eax, esi
jne 0x4c253a
mov edx, dword [ebp - 4]
add edi, esi
mov esi, dword [ebp - 8]
jmp 0x4c24e6
push dword [ebp - 4]
call fcn.005417da
add esp, 4
push str._fcopy:_write_error_n
push 2
call fcn.0054d4c0
add esp, 4
push eax
call fcn.004535a0
add esp, 8
mov eax, 0xa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call fcn.00555825
add esp, 4
test eax, eax
je 0x4c258f
push dword [ebp - 4]
call fcn.005417da
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.005417da
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c2b50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
movzx eax, byte [esi]
push eax
call fcn.0054ea30
add esp, 4
test eax, eax
je 0x4c2b7c
cmp byte [esi + 1], 0x3a
je 0x4c2b9c
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.0054e7a0
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 0x5cd0d0
push eax
call fcn.0054d365
add esp, 4
push eax
call fcn.00547b10
add esp, 0xc
pop esi
test eax, eax
je 0x4c2c5d
push 4
lea eax, [ebp - 0x108]
push str.VFAT
push eax
call fcn.00547b10
add esp, 0xc
test eax, eax
je 0x4c2c5d
push 4
lea eax, [ebp - 0x108]
push str.HPFS
push eax
call fcn.00547b10
add esp, 0xc
test eax, eax
je 0x4c2c5d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret