joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4460
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 0x5a5ba0
push esi
call fcn.005267e0
add esp, 0xc
test eax, eax
je 0x4a44a1
push 2
push 0x5a5ba4
push esi
call fcn.005267e0
add esp, 0xc
test eax, eax
jne 0x4a44b0
mov al, byte [esi + 2]
test al, al
je 0x4a44b0
cmp al, 0x2f
je 0x4a44b0
cmp al, 0x5c
jne 0x4a44e4
movzx eax, byte [esi]
push eax
call fcn.0052db70
add esp, 4
test eax, eax
je 0x4a44c6
cmp byte [esi + 1], 0x3a
je 0x4a44fc
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 0x4a44f6
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
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.005267e0
add esp, 0xc
test eax, eax
je 0x4a45fc
push 2
push dword [ebp - 0x210]
push edi
call fcn.00531b10
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 0x4a4582
mov byte [edi], al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
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.0052c30f
add esp, 4
push eax
call fcn.005267e0
add esp, 0xc
test eax, eax
je 0x4a45f1
push 4
lea eax, [ebp - 0x108]
push str.HPFS
push eax
call fcn.005267e0
add esp, 0xc
test eax, eax
je 0x4a45f1
push 3
lea eax, [ebp - 0x108]
push 0x5a5bb8
push eax
call fcn.005267e0
add esp, 0xc
test eax, eax
je 0x4a45f1
xor eax, eax
jmp 0x4a45f6
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.00518799
mov esp, ebp
pop ebp
ret
Function at 0x4a5ef0
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.0052d362
add esp, 8
test eax, eax
jne 0x4a602e
mov edx, esi
mov ecx, ebx
call fcn.004a4460
test eax, eax
je 0x4a5f2a
mov eax, dword [ebx + 0x10b98]
mov dword [ebp - 8], eax
jmp 0x4a5f31
mov dword [ebp - 8], 0
push 0
push 0x80
push 3
push 0
push 3
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a6025
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 0x4a6025
cmp dword [ebp - 8], 0
lea edx, [edi + 0x20]
lea ecx, [ebp - 0x20]
jne 0x4a5fcf
call fcn.004a3c40
cmp dword [ebp - 0x10], 0
jne 0x4a5fa4
cmp dword [ebp - 0xc], 0
jne 0x4a5fa4
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x4a5faf
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x10]
call fcn.004a3c40
cmp dword [ebp - 0x18], 0
jne 0x4a5fbb
cmp dword [ebp - 0x14], 0
je 0x4a6005
lea edx, [edi + 0x28]
lea ecx, [ebp - 0x18]
call fcn.004a3c40
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004a3d20
cmp dword [ebp - 0x10], 0
jne 0x4a5fee
cmp dword [ebp - 0xc], 0
jne 0x4a5fee
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x4a5ff9
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x10]
call fcn.004a3d20
cmp dword [ebp - 0x18], 0
jne 0x4a601a
cmp dword [ebp - 0x14], 0
jne 0x4a601a
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.004a3d20
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 0x4a6088
test bl, 0x10
je 0x4a6088
push 0x30
push 0
push edi
call fcn.0051a780
add esp, 0xc
mov ecx, 0x210000
call fcn.004a8240
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 0x4a74f0
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 0x4a7590
mov ecx, dword [esi + 0x108ec]
test ecx, ecx
jg 0x4a7558
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.00530323
mov ecx, eax
add esp, 0xc
mov dword [esi + 0x108ec], ecx
test ecx, ecx
je 0x4a75b7
js 0x4a7599
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.0051a200
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 0x4a7514
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 0x4a75d0
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 0x4a75f7
mov eax, dword [esi + 0x90]
test eax, eax
jg 0x4a75fc
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 0x4a765f
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.00530323
add esp, 0xc
mov dword [esi + 0x108ec], eax
test eax, eax
jne 0x4a7636
mov dword [esi + 0x108ec], eax
or eax, 0xffffffff
pop edi
pop esi
ret
js 0x4a771b
mov eax, dword [esi + 0x108e4]
mov ecx, esi
add dword [esi + 0x10910], 0x2000
mov dword [esi + 0x108e8], eax
call fcn.004a7490
mov edi, dword [esi + 0x108ec]
mov eax, dword [esi + 0x8d8]
mov ecx, edi
test byte [eax + 0x18], 1
je 0x4a76fd
push ebx
mov ebx, dword [esi + 0x108e8]
test edi, edi
je 0x4a76fc
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 0x4a7680
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 0x62bfc0
call fcn.0051ae54
int3
Function at 0x4a7740
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 0x4a775e
dec esi
or esi, 0xffffe000
inc esi
mov ecx, eax
sub ecx, esi
test eax, eax
jns 0x4a779a
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.004a1b80
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 0x4a77fd
push 0
push ecx
push dword [edi + 0x10908]
call fcn.00530da1
push 0x2000
push dword [edi + 0x108e4]
mov dword [edi + 0x10910], eax
push dword [edi + 0x10908]
call fcn.00530323
add esp, 0x18
mov dword [edi + 0x108ec], eax
test eax, eax
jg 0x4a77e1
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 0x4abeb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x5b114c], 0
je 0x4abef7
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 0x4abec7
mov dword [esi*4 + 0x5de540], eax
inc esi
cmp esi, 0x100
jl 0x4abec0
mov dword [0x5b114c], edi
pop edi
pop esi
mov eax, 0x5de540
ret
Function at 0x4b0b20
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 [0x5bcfb4], 0
push esi
push edi
je 0x4b0b50
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
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 0x4b0b72
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
mov esi, edi
mov ecx, 0x5bcfb0
xchg dword [ecx], esi
test esi, esi
je 0x4b0baf
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 [0x5bcfb4]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
push 0x62bfa0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x120
push 0
push 0x5f9600
call fcn.0051a780
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 0x4b0ca5
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 0x4b0c4b
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 0x4b0c4b
call esi
test eax, eax
jne 0x4b0c4b
mov dword [0x5bcfac], 1
push dword [ebp - 0x18]
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b0caa
cmp dword [0x5bcfac], 0
jne 0x4b0c3b
lea eax, [ebp - 0x10]
push eax
push str.SeSecurityPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4b0c3b
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 0x4b0c3b
call esi
mov ecx, dword [0x5bcfa8]
test eax, eax
push dword [ebp - 0x18]
mov esi, 1
cmove ecx, esi
mov dword [0x5bcfa8], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b0caa
mov esi, 1
push edi
mov dword [0x5bcfb4], 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.00518799
mov esp, ebp
pop ebp
ret
Function at 0x4b1440
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 0x4b14df
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 0x4b1490
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 0x4b1500
mov eax, dword [ecx + 0x8d8]
movzx esi, byte [ebp - 5]
test byte [eax + 0x18], 2
je 0x4b1590
movzx edx, byte [ecx + 0x10929]
jmp 0x4b1597
movzx edx, byte [ecx + 0x1092f]
cmp esi, edx
je 0x4b15af
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
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 0x4b1646
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 0x4b15d0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x4b1660
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 0x4b1673
pop edi
xor eax, eax
pop esi
pop ebp
ret
call fcn.004abeb0
mov ecx, dword [ebp + 8]
mov edx, eax
not esi
cmp ecx, 8
jb 0x4b1717
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 0x4b1690
pop ebx
test ecx, ecx
je 0x4b1736
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 0x4b1720
not esi
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4b1740
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 0x4b1775
mov eax, dword [esi + 0x108e8]
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x108e8], eax
jmp 0x4b177e
mov ecx, esi
call fcn.004a75d0
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 0x4b17b1
mov eax, dword [esi + 0x108e8]
movzx ecx, byte [eax]
jmp 0x4b18f7
cmp dword [esi + 0x109b0], 0
je 0x4b17c2
or ecx, 0xffffffff
jmp 0x4b18fe
mov eax, dword [esi + 0x90]
test eax, eax
jg 0x4b17e5
dec eax
mov dword [esi + 0x108ec], 0
mov dword [esi + 0x90], eax
or ecx, 0xffffffff
jmp 0x4b18fe
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.00530323
add esp, 0xc
mov dword [esi + 0x108ec], eax
test eax, eax
jne 0x4b1816
mov dword [esi + 0x108ec], eax
or ecx, 0xffffffff
jmp 0x4b18fe
js 0x4b1949
mov eax, dword [esi + 0x108e4]
mov ecx, esi
add dword [esi + 0x10910], 0x2000
mov dword [esi + 0x108e8], eax
call fcn.004a7490
mov eax, dword [esi + 0x8d8]
mov ebx, dword [esi + 0x108ec]
mov ecx, ebx
test byte [eax + 0x18], 1
je 0x4b18e0
mov eax, dword [esi + 0x108e8]
test ebx, ebx
je 0x4b18e0
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 0x4b1861
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 0x4b193d
mov dword [ebx + edi*4], edx
inc edi
sub ecx, 1
jne 0x4b1913
sub dword [ebp - 8], 1
mov dword [ebp - 4], edi
jne 0x4b1790
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 0x62bfc0
call fcn.0051ae54
int3
Function at 0x4b7600
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.0051e703
mov edx, eax
add esp, 4
mov dword [ebp - 4], edx
test edx, edx
jne 0x4b7631
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 0x4b7653
cmp edi, ebx
jae 0x4b76e2
mov eax, ebx
mov ecx, 0x4000
sub eax, edi
cmp eax, ecx
cmovb ecx, eax
jmp 0x4b7658
mov ecx, 0x4000
push esi
push ecx
push 1
push edx
call fcn.00535666
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b76b9
push dword [ebp - 0xc]
push esi
push 1
push dword [ebp - 4]
call fcn.00535446
add esp, 0x10
cmp eax, esi
jne 0x4b768a
mov edx, dword [ebp - 4]
add edi, esi
mov esi, dword [ebp - 8]
jmp 0x4b7636
push dword [ebp - 4]
call fcn.0051cad9
add esp, 4
push str._fcopy:_write_error_n
push 2
call fcn.0052c46a
add esp, 4
push eax
call fcn.00456fe0
add esp, 8
mov eax, 0xa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call fcn.00534955
add esp, 4
test eax, eax
je 0x4b76df
push dword [ebp - 4]
call fcn.0051cad9
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.0051cad9
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b7ca0
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.0052db70
add esp, 4
test eax, eax
je 0x4b7ccc
cmp byte [esi + 1], 0x3a
je 0x4b7cec
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.00531b10
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 0x5a5bb8
push eax
call fcn.0052c30f
add esp, 4
push eax
call fcn.005267e0
add esp, 0xc
pop esi
test eax, eax
je 0x4b7dad
push 4
lea eax, [ebp - 0x108]
push str.VFAT
push eax
call fcn.005267e0
add esp, 0xc
test eax, eax
je 0x4b7dad
push 4
lea eax, [ebp - 0x108]
push str.HPFS
push eax
call fcn.005267e0
add esp, 0xc
test eax, eax
je 0x4b7dad
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret