joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4beb10
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x4beb53
mov eax, 0x200
jmp 0x4becc7
mov eax, dword [ebp - 0x38]
xor ecx, ecx
push esi
inc ecx
mov edx, eax
and edx, ecx
push 0
pop esi
cmovne esi, ecx
test al, 2
je 0x4beb6b
or esi, 2
test al, 4
je 0x4beb72
or esi, 4
mov ecx, eax
and ecx, 0x10
je 0x4beb7c
or esi, 0x10
test al, 0x20
je 0x4beb83
or esi, 0x20
test ecx, ecx
je 0x4beb8f
or esi, 0x40000000
jmp 0x4beb95
or esi, 0x80000000
or esi, 0x1000000
test edx, edx
jne 0x4beba5
or esi, 0x800000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3c], eax
cmp eax, 0x28
jbe 0x4bec56
xor eax, eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x4bec53
mov ecx, dword [ebp - 0x58]
lea eax, [ecx + 0x34]
cmp dword [ebp - 0x3c], eax
jbe 0x4bec53
push 0
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x48]
cmp eax, 0x5a4d
je 0x4bec4d
cmp eax, 0x454e
je 0x4bec4d
cmp eax, 0x454c
je 0x4bec4d
cmp eax, 0x4550
jne 0x4bec53
or esi, 0x400000
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x4bec5f
mov dword [ecx], esi
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x4bec68
mov dword [ecx], eax
test ebx, ebx
je 0x4bec98
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.004bffd6
push dword [ebp - 0x20]
mov dword [ebx], eax
push dword [ebp - 0x24]
call fcn.004bffd6
push dword [ebp - 0x30]
mov dword [ebx + 4], eax
push dword [ebp - 0x34]
call fcn.004bffd6
add esp, 0x18
mov dword [ebx + 8], eax
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x4becc4
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.004bff63
movzx ecx, word [ebp - 0x40]
add esp, 0x10
movzx eax, word [ebp - 0x3c]
shl ecx, 0x10
or ecx, eax
mov dword [esi], ecx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
Function at 0x4bf56f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4bf57d
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x4bf638
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x533fd8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x533fd8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x533fd8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x533fd8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x533fd8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x533fd8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x533fd8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x533fd8]
dec edi
jne 0x4bf59b
pop edi
test esi, esi
je 0x4bf651
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x533fd8]
inc edx
dec esi
jne 0x4bf63c
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x4bfd26
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov ecx, edi
mov ebx, edi
mov dword [ebp - 4], ecx
mov dword [esi + 0x6af80], 2
jmp 0x4bff29
cmp dword [esi + 0x6af90], 3
jb 0x4bfda3
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4bfde0
mov eax, dword [esi + 0x6af84]
sub eax, ecx
cmp eax, 0x7efa
ja 0x4bfde0
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x4bfdca
mov dword [esi + 0x6afa0], eax
push ecx
push esi
call fcn.004c08aa
pop ecx
pop ecx
mov ecx, dword [esi + 0x6af90]
mov ebx, eax
cmp ebx, ecx
cmova ebx, ecx
cmp ebx, 3
jb 0x4bfeb4
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.004bf888
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [ebp + 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x4bfe7b
cmp dword [esi + 0x6af90], 3
jb 0x4bfe7b
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [esi + edx + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
dec ebx
jne 0x4bfe1e
mov eax, dword [ebp + 8]
jmp 0x4bfed3
add dword [esi + 0x6af84], ebx
mov ebx, edi
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp + 8]
jmp 0x4bfed9
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push edi
push esi
call fcn.004bf888
add esp, 0xc
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x4bff13
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x4bfef1
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x4bfef3
mov edx, edi
mov eax, dword [esi + 0x6af84]
push edi
sub eax, ecx
push eax
push edx
push esi
call fcn.004c0138
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x4bff26
push esi
call fcn.004bfffa
pop ecx
mov ecx, dword [ebp - 4]
cmp dword [esi + 0x6af90], edi
jne 0x4bfd48
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x4bff47
lea edi, [esi + 0x1af70]
add edi, ecx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push eax
push edi
push esi
call fcn.004c0138
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c077e
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebx - 1]
cmp eax, 7
jbe 0x4c079c
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x4c07c0
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
mov dword [esi + 0x6af6c], edi
push edi
push eax
call fcn.004d9c60
movzx eax, word [ebx*8 + 0x533f8a]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x533f88]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x533f8c]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x533f8e]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x4c0823
mov eax, dword [ebp + 0x10]
or word [eax], 4
jmp 0x4c082e
cmp ebx, 8
jl 0x4c082e
mov eax, dword [ebp + 0x10]
or word [eax], cx
push 0x10000
lea ebx, [esi + 0x1af70]
mov dword [esi + 0x6af84], edi
push ebx
push esi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x4c0895
cmp eax, 0xffffffff
je 0x4c0895
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x4c0870
push esi
call fcn.004bfffa
pop ecx
mov dword [esi + 0x6af7c], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af7c], ecx
cmp edi, 2
jb 0x4c0878
jmp 0x4c08a5
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4c15c7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x4c1617
mov eax, dword [edi + 0x80]
mov esi, dword [edi + 0x7c]
cmp eax, esi
jae 0x4c1654
sub esi, eax
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
add eax, ecx
push esi
push eax
push dword [ebp + 8]
call fcn.004dad60
add dword [edi + 0x80], esi
add dword [edi + 0x68], esi
push esi
push dword [ebp + 8]
push dword [edi + 0x6c]
call fcn.004bf56f
add esp, 0x18
mov dword [edi + 0x6c], eax
mov eax, esi
jmp 0x4c1656
cmp dword [edi + 0x70], 0
je 0x4c164d
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x70]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c1654
mov esi, dword [ebp - 4]
add dword [edi + 0x68], esi
push esi
push dword [ebp + 8]
push dword [edi + 0x6c]
call fcn.004bf56f
add esp, 0xc
jmp 0x4c1610
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4c1aa9
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movsx eax, al
push esi
mov ecx, dword [edx]
mov esi, 0xff
xor eax, ecx
shr ecx, 8
and eax, esi
mov eax, dword [eax*4 + 0x533fd8]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edx + 8]
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, esi
pop esi
xor eax, dword [ecx*4 + 0x533fd8]
mov dword [edx + 8], eax
pop ebp
ret

Function at 0x4c1af9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x2d], 0
je 0x4c1b72
cmp dword [esi + 0x3c], 0
je 0x4c1b2b
cmp dword [esi + 0x40], edi
jae 0x4c1b25
push dword [esi + 0x3c]
call fcn.004d8fe0
and dword [esi + 0x3c], 0
pop ecx
cmp dword [esi + 0x3c], 0
jne 0x4c1b3b
lea eax, [edi + edi]
push eax
call fcn.004d9e06
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push dword [esi + 0x3c]
call fcn.004dad60
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x4c1b6f
lea ecx, [esi + 0x30]
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
push ecx
call fcn.004c1bcc
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
lea ecx, [esi + 0x30]
cmp ebx, edi
jb 0x4c1b51
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4c1ba1
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x4c1b8d
mov dword [esi + 0x14], 0x30000
jmp 0x4c1bc3
push edi
add ecx, edx
push ebx
push ecx
call fcn.004dad60
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x4c1bc5
mov eax, dword [esi + 4]
test eax, eax
je 0x4c1bbc
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x4c1bc5
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4c205b
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004afb89
push eax
lea ecx, [ebp - 4]
call fcn.004aef66
call fcn.004afb89
push eax
lea ecx, [ebp - 0x14]
call fcn.004aef66
xor ebx, ebx
push ebx
push dword [ebp + 8]
call fcn.004be8c4
mov dword [esi + 0x20c], eax
pop ecx
pop ecx
test eax, eax
jne 0x4c20a6
mov esi, dword [ebp - 4]
jmp 0x4c224c
push edi
call fcn.004afb89
push eax
lea ecx, [ebp - 8]
call fcn.004aef66
mov edi, dword [ebp + 0xc]
push 0x5c
push dword [edi]
call fcn.004d9322
pop ecx
pop ecx
test eax, eax
je 0x4c2100
mov edx, dword [edi]
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x4c2100
lea ecx, [eax + 1]
mov eax, dword [edx - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
call fcn.004b0076
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
call fcn.004af11f
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.004b04f5
jmp 0x4c2109
push edi
lea ecx, [ebp - 8]
call fcn.004af11f
mov eax, dword [0x55e078]
mov esi, dword [0x55e074]
cmp esi, eax
je 0x4c2134
mov edi, eax
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.004b04f5
add esi, 4
cmp esi, edi
jne 0x4c211a
mov esi, dword [0x55e074]
mov edi, dword [ebp + 0xc]
mov dword [0x55e078], esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4c2220
push edi
lea ecx, [ebp - 4]
call fcn.004af11f
mov esi, dword [ebp - 4]
cmp dword [esi - 4], 1
jle 0x4c216a
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.004afa42
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add eax, 4
push esi
push eax
mov dword [ebp + 0xc], eax
call fcn.004dce29
pop ecx
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.004b5ee5
cmp dword [esi - 4], 1
jle 0x4c219a
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.004afa42
mov esi, dword [ebp - 4]
push ebx
push 0x4c2278
lea eax, [ebp - 0x264]
push eax
push esi
call fcn.004c2447
mov ecx, dword [0x55e078]
add esp, 0x10
mov edi, dword [0x55e074]
mov eax, ecx
sub eax, edi
test eax, 0xfffffffc
je 0x4c221b
cmp edi, ecx
je 0x4c2216
push dword [ebp + 0xc]
call fcn.004d92ea
pop ecx
mov ebx, eax
mov ecx, edi
add ebx, ebx
call fcn.004b555c
add eax, 2
lea ecx, [ebp - 8]
add eax, ebx
push eax
call fcn.004b063e
push dword [edi]
mov eax, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [eax + 0x20c]
call fcn.004bee6b
add esp, 0xc
test eax, eax
jne 0x4c2274
add edi, 4
cmp edi, dword [0x55e078]
jne 0x4c21cb
xor ebx, ebx
jmp 0x4c2239
mov eax, dword [ebp + 0xc]
jmp 0x4c2239
or ebx, 0xffffffff
jmp 0x4c2240
push dword [edi]
mov eax, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [eax + 0x20c]
call fcn.004bee6b
mov esi, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x4c2240
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004b04f5
pop edi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004b04f5
lea ecx, [esi - 0x10]
call fcn.004b04f5
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004b04f5
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
xor ebx, ebx
jmp 0x4c2240
Function at 0x4c22b7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c22d1
test al, 0x10
jne 0x4c22d1
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4c2447
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8c
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
and dword [ebp - 0xe84], 0
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x24c
mov dword [ebp - 0xe88], eax
lea eax, [ebp - 0xe80]
push 0
push eax
call fcn.004d9c60
xor eax, eax
mov ebx, 0x40e
push ebx
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.004d9c60
xor eax, eax
push ebx
push eax
mov word [ebp - 0xc34], ax
lea eax, [ebp - 0xc32]
push eax
call fcn.004d9c60
xor eax, eax
push ebx
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004d9c60
push edi
call fcn.004c22b7
add esp, 0x34
test eax, eax
je 0x4c24f4
test esi, esi
je 0x4c2652
lea eax, [ebp - 0xe84]
push eax
push edi
call esi
jmp 0x4c2652
push edi
lea eax, [ebp - 0xc34]
push 0x5348e8
push eax
call fcn.004dcef6
add esp, 0xc
lea eax, [ebp - 0xe84]
push eax
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0xe8c], ebx
cmp ebx, 0xffffffff
je 0x4c2652
test byte [ebp - 0xe84], 0x10
lea eax, [ebp - 0xe58]
je 0x4c25ff
push 0x548be0
push eax
call fcn.004d92ac
pop ecx
pop ecx
test eax, eax
je 0x4c262d
lea eax, [ebp - 0xe58]
push 0x548be4
push eax
call fcn.004d92ac
pop ecx
pop ecx
test eax, eax
je 0x4c262d
lea eax, [ebp - 0xe58]
push eax
push edi
lea eax, [ebp - 0x414]
push 0x5348f4
push eax
call fcn.004dcef6
mov eax, dword [ebp - 0xe88]
add esp, 0x10
test eax, eax
je 0x4c25e5
lea ecx, [ebp - 0xe84]
push ecx
lea ecx, [ebp - 0x414]
push ecx
call eax
test eax, eax
jne 0x4c25df
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.004d9322
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4c2645
push ebx
call fcn.004d92ea
add eax, eax
push eax
push 0
push ebx
call fcn.004d9c60
mov ebx, dword [ebp - 0xe8c]
add esp, 0x10
mov eax, dword [ebp - 0xe88]
push eax
push esi
lea eax, [ebp - 0xe84]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004c2447
add esp, 0x10
jmp 0x4c262d
push eax
push edi
lea eax, [ebp - 0x824]
push 0x5348f4
push eax
call fcn.004dcef6
add esp, 0x10
test esi, esi
je 0x4c262d
lea eax, [ebp - 0xe84]
push eax
lea eax, [ebp - 0x824]
push eax
call esi
test eax, eax
je 0x4c264b
lea eax, [ebp - 0xe84]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4c252e
jmp 0x4c264b
mov ebx, dword [ebp - 0xe8c]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
Function at 0x4c2956
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4c2964
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jl 0x4c2a21
push edi
mov edi, esi
shr edi, 3
imul eax, edi, 0xfffffff8
add esi, eax
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x534908]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x534908]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x534908]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x534908]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x534908]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x534908]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x534908]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x534908]
dec edi
jne 0x4c2987
pop edi
test esi, esi
je 0x4c2a3a
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x534908]
inc edx
dec esi
jne 0x4c2a25
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x4c418e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
push edi
mov edi, ecx
test esi, esi
jne 0x4c41c0
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
call fcn.004c69bb
xor al, al
jmp 0x4c42fa
call fcn.004c38f0
or dword [edi + 8], 0xffffffff
xor ebx, ebx
or dword [edi + 4], 0xffffffff
push 2
push ebx
push esi
call fcn.004dda5e
push esi
call fcn.004dde71
push ebx
push ebx
push esi
mov dword [ebp - 0x24], eax
call fcn.004dda5e
mov esi, dword [ebp - 0x24]
add esp, 0x1c
test esi, esi
jne 0x4c41fc
push ebx
push ebx
push ebx
push 0xd
mov ecx, edi
jmp 0x4c41b4
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x1c], bl
call fcn.00417850
lea eax, [esi + 1]
push eax
call fcn.004d9125
push dword [ebp - 0x2c]
mov esi, eax
push 1
push dword [ebp - 0x24]
mov dword [ebp - 0x28], esi
push esi
mov byte [esi], bl
call fcn.004dd923
add esp, 0x14
cmp eax, 1
je 0x4c4250
push esi
call fcn.004d912e
pop ecx
push ebx
push ebx
push ebx
push 2
mov ecx, edi
call fcn.004c69bb
jmp 0x4c42e3
mov edx, dword [ebp - 0x24]
mov ecx, esi
mov eax, ecx
mov byte [eax + edx], bl
cmp byte [eax], bl
je 0x4c42b0
mov al, byte [esi]
cmp al, 0xa
jne 0x4c4276
mov eax, esi
sub eax, ecx
inc eax
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404f30
inc esi
jmp 0x4c42a7
cmp al, 0xd
jne 0x4c42ab
mov eax, esi
sub eax, ecx
test eax, eax
jle 0x4c428c
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404f30
push 0xa
push 1
lea ecx, [ebp - 0x1c]
call fcn.00405020
lea eax, [esi + 1]
cmp byte [eax], 0xa
jne 0x4c42a5
add esi, 2
jmp 0x4c42a7
mov esi, eax
mov ecx, esi
jmp 0x4c42ac
inc esi
cmp byte [esi], bl
jne 0x4c425e
sub esi, ecx
je 0x4c42be
push esi
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404f30
push dword [ebp - 0x28]
call fcn.004d912e
cmp dword [ebp - 8], 0x10
mov eax, dword [edi]
pop ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
push ebx
push ecx
mov ecx, edi
call dword [eax + 8]
cmp byte [edi + 0x40], bl
je 0x4c42e8
mov byte [ebp - 0x1d], bl
jmp 0x4c42ec
mov byte [ebp - 0x1d], 1
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.00405270
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9c43
mov esp, ebp
pop ebp
ret 8
Function at 0x4c8104
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
call fcn.004b1cf6
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c81b1
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x4c81b0
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 1]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp + 8], edi
call fcn.004b21aa
mov edx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov eax, edi
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c81b0
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4c81b0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
sub eax, ecx
add edx, ecx
mov dword [ebp + 8], eax
mov dword [ebp - 8], edx
test eax, eax
jne 0x4c8165
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
mov byte [eax + edi], bl
call fcn.004c7dc9
test esi, esi
je 0x4c81ad
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8