joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5700dbdc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5700dd8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call sub.rtl120.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5700dd6b
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__LStrSetLength_qqrv
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push edi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x5700dd6b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x5700dd9c
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x5700dcb1
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
jne 0x5700dc82
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
je 0x5700dcb1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, esi
call dword [sym.madBasic_.bpl__Madtools_FileVersionToStrA]
jmp 0x5700dd6b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5700dda0
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x5700dd6b
cmp dword [ebp - 0x14], 0
je 0x5700dd6b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x5700ddc8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.57001898
mov edx, dword [ebp - 0x14]
movzx edx, word [edx]
call fcn.5700188c
mov cl, 0x30
mov edx, 8
call sym.madBasic_.bpl__Madstrings_IntToHexExA_qqriic
mov eax, dword [ebp - 0x24]
mov ecx, 0x7fffffff
mov edx, 2
call sub.rtl120.bpl__System__LStrCopy_qqrv
push dword [ebp - 0x20]
push 0x5700dde8
lea eax, [ebp - 0x1c]
mov edx, 3
call sub.rtl120.bpl__System__LStrCatN_qqrv
mov eax, dword [ebp - 0x1c]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x5700dd6b
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
mov eax, dword [ebp - 0x28]
mov ebx, dword [sym.madBasic_.bpl__Madstrings_RetTrimStrA]
mov ebx, dword [ebx]
mov edx, esi
call ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5700dd95
lea eax, [ebp - 0x28]
mov edx, 4
call sub.rtl120.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__LStrClr_qqrpv
ret
Function at 0x5700e094
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
push 0x40
push 0x1000
push 0x11
push 0
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
mov dword [ebp - 4], ebx
mov eax, ebx
mov byte [eax], 0x58
mov byte [eax + 1], 0x68
mov dword [eax + 2], esi
mov byte [eax + 6], 0x50
mov byte [eax + 7], 0xff
mov byte [eax + 8], 0x25
lea edx, [eax + 0xd]
mov dword [eax + 9], edx
mov dword [eax + 0xd], edi
lea eax, [ebp - 8]
push eax
push 0x20
push 0x11
push 0
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x5700ecf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x5700ed3c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call sym.madBasic_.bpl__Madtools_IsBadReadPtr2_qqrpvui
test al, al
jne 0x5700ed32
cmp word [edi], 0x5a4d
jne 0x5700ed32
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x5700ed32
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5700ed48
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5700eeec
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [sym.madBasic_.bpl__Madtools_IsWine], 0
jne 0x5700efcd
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x5700ef3f
push 0x10000
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW
mov esi, eax
jmp 0x5700ef70
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA
mov esi, eax
push ebx
call sub.kernel32.dll_LocalFree_1
cmp esi, 0xffffffff
je 0x5700efcd
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x5700ef9b
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x5700efad
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x5700efc7
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x5700f1b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x5700f2b0
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x5700f1f4
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW
mov ebx, eax
jmp 0x5700f22d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0xc]
mov edx, ebx
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 8]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5700f292
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingW
mov esi, eax
test esi, esi
je 0x5700f28c
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5700f286
mov eax, dword [ebp - 4]
call sym.madBasic_.bpl__Madtools_GetImageNtHeaders_qqrui
test eax, eax
je 0x5700f273
cmp word [eax + 0x18], 0x20b
je 0x5700f277
xor eax, eax
jmp 0x5700f279
mov al, 1
neg al
sbb edi, edi
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push esi
call sub.kernel32.dll_CloseHandle
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5700f2b7
lea eax, [ebp - 0xc]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 8]
call sub.rtl120.bpl__System__LStrClr_qqrpv
ret
Function at 0x5700f604
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5700f71e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call sub.rtl120.bpl__System__LStrClr_qqrpv
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x5700f64d
push ebx
mov eax, edi
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push esi
call sub.kernel32.dll_FindResourceW
mov ebx, eax
jmp 0x5700f6ba
movzx eax, bl
cmp ebx, eax
jne 0x5700f677
push ebx
lea eax, [ebp - 4]
mov edx, edi
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push esi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
jmp 0x5700f6ba
lea eax, [ebp - 0xc]
mov edx, ebx
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 8]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
lea eax, [ebp - 0x10]
mov edx, edi
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x10]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push esi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x5700f6f3
push ebx
push esi
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
je 0x5700f6f3
push 0
push ebx
push esi
call sub.kernel32.dll_SizeofResource
push eax
push edi
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp + 8]
pop ecx
call sub.rtl120.bpl__System__LStrFromPCharLen_qqrr27System__AnsiStringT_us_i0__pcius
mov eax, edi
call fcn.570018a4
push edi
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5700f725
lea eax, [ebp - 0x10]
call sub.rtl120.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xc]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl120.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x570195cc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x57019716
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x570195f4
cmp dword [ebx + 4], 0
jne 0x57019716
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x5701961a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x5701961a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
push edx
push eax
call fcn.57019520
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x57019716
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x570196c9
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x5701966f
push 4
push 0x1000
push 0x100000
push 0
call sub.kernel32.dll_VirtualAlloc
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
xor edx, edx
call fcn.57019560
test al, al
je 0x570196bf
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x570196bf
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x570196bf
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x570196e7
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x570196e7
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 4
call fcn.570195b4
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x57019716
mov ecx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
call sym.madBasic_.bpl__Madzip_UpdateCrc32_qqruipxvi
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov dword [edx], eax
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x57019ae0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], eax
mov esi, dword [ebx + 0x24]
sub esi, dword [ebx + 0x5c]
sub esi, dword [ebx + 0x54]
test esi, esi
jne 0x57019b11
cmp dword [ebx + 0x54], 0
jne 0x57019b11
cmp dword [ebx + 0x5c], 0
jne 0x57019b11
mov esi, dword [ebp - 8]
jmp 0x57019bbc
cmp esi, 0xffffffff
jne 0x57019b1c
dec esi
jmp 0x57019bbc
mov eax, dword [ebx + 0x54]
mov edx, dword [ebp - 8]
sub edx, 0x106
add edx, dword [ebp - 8]
cmp eax, edx
jb 0x57019bbc
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 8]
lea edx, [eax + edx]
mov ecx, dword [ebp - 8]
xchg edx, eax
call sub.rtl120.bpl__System_Move_qqrpxvpvi
mov eax, dword [ebp - 8]
sub dword [ebx + 0x58], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x54], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x2c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x57019b7e
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x57019b83
mov word [edx], 0
dec eax
test eax, eax
jne 0x57019b60
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x28]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x57019baf
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x57019bb4
mov word [edx], 0
dec eax
test eax, eax
jne 0x57019b91
add esi, dword [ebp - 8]
mov ecx, dword [ebx]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
push edx
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
cmp edx, dword [esp + 4]
jne 0x57019bd8
cmp eax, dword [esp]
pop edx
pop eax
je 0x57019c46
push ebp
mov eax, dword [ebx + 0x54]
add eax, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x20]
add edx, eax
mov eax, ecx
mov ecx, esi
call fcn.57019a6c
pop ecx
add dword [ebx + 0x5c], eax
cmp dword [ebx + 0x5c], 3
jb 0x57019c20
mov eax, dword [ebx + 0x54]
mov edx, dword [ebx + 0x20]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x30], eax
mov ecx, dword [ebx + 0x40]
shl eax, cl
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x20]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x3c]
mov dword [ebx + 0x30], eax
cmp dword [ebx + 0x5c], 0x106
jae 0x57019c46
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx + 0x18]
jne 0x57019af0
cmp eax, dword [ecx + 0x14]
jne 0x57019af0
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x5701b1a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x5701b2ed
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x5701b1c8
cmp dword [ebx + 4], 0
jne 0x5701b2ed
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x5701b1ee
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x5701b1ee
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
push edx
push eax
call fcn.57019520
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x5701b2ed
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x5701b29d
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x5701b243
push 4
push 0x1000
push 0x100000
push 0
call sub.kernel32.dll_VirtualAlloc
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
xor edx, edx
call fcn.57019560
test al, al
je 0x5701b293
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x5701b293
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x5701b293
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x5701b2bb
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x5701b2bb
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 4
call fcn.570195b4
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx], eax
cmp dword [ebx + 0xc], 0
jne 0x5701b2ed
cmp dword [ebx + 8], 0
jne 0x5701b2ed
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
cdq
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
add dword [ebx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
sub dword [ebx + 4], eax
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5701e1f4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x5701e2d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [esi], eax
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x5701e249
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, edi
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_CreateFileW
mov edi, eax
jmp 0x5701e277
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0xc]
mov edx, edi
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0xc]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
je 0x5701e2bd
push 0
lea eax, [ebp - 8]
push eax
push 8
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x5701e2b1
cmp dword [ebp - 8], 8
jne 0x5701e2b1
push 0
lea eax, [ebp - 8]
push eax
push 4
push esi
push edi
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x5701e2b1
cmp dword [ebp - 8], 4
je 0x5701e2b5
xor ebx, ebx
jmp 0x5701e2b7
mov bl, 1
push edi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5701e2da
lea eax, [ebp - 0xc]
call sub.rtl120.bpl__System__LStrClr_qqrpv
ret
Function at 0x5701e2e4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5701e48e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x5701e337
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, ebx
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
jmp 0x5701e365
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x20]
mov edx, ebx
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x20]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5701e478
lea eax, [edi + 4]
push eax
push ebx
call sub.kernel32.dll_GetFileSize
mov dword [edi], eax
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5701e472
mov eax, dword [edi]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0xffffffff
jmp 0x5701e3fc
mov eax, dword [edi]
mov edx, dword [edi + 4]
sub eax, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x14]
push edx
push eax
mov ecx, 0x100000
mov edx, 4
mov eax, dword [ebp - 0xc]
call fcn.570195b4
mov esi, eax
test esi, esi
je 0x5701e40f
mov edx, esi
mov ecx, 0x100000
mov eax, dword [ebp - 0x1c]
call sym.madBasic_.bpl__Madzip_UpdateCrc32_qqruipxvi
mov dword [ebp - 0x1c], eax
push esi
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
sub eax, 0x100000
sbb edx, 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x5701e40d
cmp dword [ebp - 0x18], 0x100000
ja 0x5701e3ab
jmp 0x5701e40f
jg 0x5701e3ab
cmp dword [ebp - 0x14], 0
jne 0x5701e420
cmp dword [ebp - 0x18], 0x100000
ja 0x5701e469
jmp 0x5701e422
jg 0x5701e469
mov eax, dword [edi]
mov edx, dword [edi + 4]
sub eax, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x14]
push edx
push eax
mov ecx, dword [ebp - 0x18]
mov edx, 4
mov eax, dword [ebp - 0xc]
call fcn.570195b4
mov esi, eax
test esi, esi
je 0x5701e469
mov edx, esi
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call sym.madBasic_.bpl__Madzip_UpdateCrc32_qqruipxvi
mov dword [ebp - 0x1c], eax
push esi
call sub.kernel32.dll_UnmapViewOfFile
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0x1c]
not eax
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5701e495
lea eax, [ebp - 0x20]
call sub.rtl120.bpl__System__LStrClr_qqrpv
ret
Function at 0x5701e4a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
dec ecx
test ecx, ecx
jl 0x5701e4c4
inc ecx
mov eax, edx
mov edx, esi
xor dl, byte [eax]
movzx edx, dl
mov edx, dword [edx*4 + 0x5702518c]
shr esi, 8
xor edx, esi
mov esi, edx
inc eax
dec ecx
jne 0x5701e4ab
mov eax, esi
pop esi
ret
Function at 0x5701ef18
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor esi, esi
mov edi, 0x12
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x48]
lea eax, [esi + 1]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx ebx, byte [eax + edx]
shl ebx, 0x10
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
shl eax, 0x18
add ebx, eax
lea eax, [esi + 2]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
shl eax, 8
add ebx, eax
lea eax, [esi + 3]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
add ebx, eax
xor dword [ecx], ebx
lea eax, [esi + 4]
xor edx, edx
div dword [ebp - 8]
mov esi, edx
add ecx, 4
dec edi
jne 0x5701ef34
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor edi, edi
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x48]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.5701eb58
pop ecx
mov eax, edi
add eax, eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [edx + eax*4 - 0x48], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [edx + eax*4 - 0x44], ecx
inc edi
cmp edi, 9
jne 0x5701ef95
mov edi, 4
mov eax, dword [ebp + 8]
lea ebx, [eax - 0x1048]
xor esi, esi
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x48]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.5701eb58
pop ecx
mov eax, esi
add eax, eax
mov edx, dword [ebp - 0xc]
mov dword [ebx + eax*4], edx
mov edx, dword [ebp - 0x10]
mov dword [ebx + eax*4 + 4], edx
inc esi
cmp esi, 0x80
jne 0x5701efdb
add ebx, 0x400
dec edi
jne 0x5701efd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret