joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477cd6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x477d09
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x477d04
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x477d33
mov edx, dword [edi + 0x18]
push esi
mov esi, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x14]
cmovbe esi, ecx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004ec850
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x477ec1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x477ecf
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x477f8e
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x549a68]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x549a68]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x549a68]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x549a68]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x549a68]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x549a68]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x549a68]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x549a68]
sub edi, 1
jne 0x477ee7
pop edi
test esi, esi
je 0x477faa
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x549a68]
inc edx
sub esi, 1
jne 0x477f92
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x478f94
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x536eaf
call fcn.00461ac0
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.00479324
call fcn.004645f2
push eax
lea ecx, [ebp - 0x94]
call fcn.00462268
xor edi, edi
mov dword [ebp - 4], edi
call fcn.004645f8
mov ecx, eax
call fcn.00462a5c
test al, al
je 0x4790ae
push ebx
lea ecx, [ebp - 0x94]
call fcn.004624d1
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x94]
call fcn.004624b1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
cmp eax, 0xffffffff
jne 0x479017
mov eax, str.Error_opening_file
jmp 0x47908f
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x47902c
mov eax, str.File_is_empty
jmp 0x47908f
cmp edi, 0x400000
jbe 0x47903b
mov eax, str.File_too_large
jmp 0x47908f
and dword [ebp - 0x2c8], 0
push edi
call fcn.00460bdd
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x479097
push ebx
call fcn.00460be6
pop ecx
mov ecx, esi
call fcn.00479324
mov eax, str.Could_not_read_file
push 0
push eax
jmp 0x47918e
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.004791d9
push dword [ebp - 0x2cc]
jmp 0x4791bc
call fcn.004645f8
push eax
lea ecx, [ebp - 0x94]
call fcn.004624b4
call fcn.004646af
test al, al
je 0x4790cf
call fcn.004645fe
jmp 0x4790e6
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.004624b1
push eax
call fcn.0047564f
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x4790f7
push eax
push str.Error_opening_zip_file
jmp 0x47918e
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.00474ff1
add esp, 0x14
test eax, eax
je 0x47911e
push 0
push str.Could_not_find_ziped_file
jmp 0x47918e
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x479130
push ebx
push str.File_is_empty
jmp 0x47918e
cmp ebx, 0x400000
jbe 0x479141
push 0
push str.File_too_large
jmp 0x47918e
push ebx
call fcn.00460bdd
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.00475ace
add esp, 0x18
test eax, eax
je 0x479199
cmp eax, 0x600
je 0x479199
push dword [ebp - 0x2c8]
call fcn.00460be6
pop ecx
call fcn.004646af
test al, al
jne 0x479187
push edi
call fcn.00474e22
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.0047934c
mov bl, al
jmp 0x4791c4
call fcn.004646af
test al, al
jne 0x4791a9
push edi
call fcn.00474e22
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.004791d9
push edi
mov bl, al
call fcn.00460be6
pop ecx
lea ecx, [ebp - 0x94]
call fcn.004623a3
mov al, bl
call fcn.00461a6a
ret 8
Function at 0x483e45
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x483e73
cmp eax, edi
jge 0x483e67
push esi
call fcn.004821e3
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x483e99
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x483e7c
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x483eb3
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x483ea4
xor dl, dl
jmp 0x483ea9
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x483e9b
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x483ee8
push str.zlib_corrupt
call fcn.004820a0
add esp, 4
jmp 0x483f25
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x483ef8
push str.read_past_buffer
jmp 0x483ede
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x483f0f
push edi
push esi
call fcn.004820af
pop ecx
pop ecx
test eax, eax
je 0x483f25
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004ec850
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x495e93
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x495f00
cmp dword [esi + 0x10], 0
je 0x495f00
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00461b70
mov ebx, esp
test ebx, ebx
je 0x495f00
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1b8
call fcn.00462445
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004667a6
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
leave
ret 0x10

Function at 0x49ee85
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x585293], 0
jne 0x49ef34
push esi
push 0x54fa68
call fcn.004ac588
mov dword [esp], 0x54f8e4
call fcn.004ac588
mov dword [esp], 0x54fb60
call fcn.004ac588
mov dword [esp], 0x54fb84
call fcn.004ac588
mov dword [esp], 0x54fa8c
call fcn.004ac588
mov esi, 0x54f948
push esi
call fcn.004b6889
push esi
call fcn.004b6889
push 0x54f968
call fcn.004b6889
push 0x54f988
call fcn.004b6889
push 0x54fab0
call fcn.004b6889
push 0x54f908
call fcn.004b6889
push 0x54f928
call fcn.004b6889
push 0x54fb08
call fcn.004b6889
push 0x54fb28
call fcn.004b6889
add esp, 0x28
mov byte [0x585293], 1
pop esi
jmp 0x4bebc5
ret
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x4bebcd
mov dword [edx*4 + 0x5898a0], ecx
inc edx
cmp edx, 0x100
jb 0x4bebc8
mov esi, 0x800
jmp 0x4bec15
mov ecx, dword [edx*4 + 0x5894a0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x5898a0]
mov dword [edx*4 + 0x5898a0], ecx
inc edx
cmp edx, esi
jb 0x4bebf9
mov eax, 0x530a30
mov esi, 0x530950
mov dword [0x58989c], eax
mov dword [0x589894], eax
mov dword [0x589898], esi
call fcn.004d7424
mov ecx, dword [0x589894]
test eax, eax
cmove ecx, esi
mov dword [0x589894], ecx
pop esi
ret

Function at 0x49ff16
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x49ff24
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x49ff33
Capabilities:
Copy file
Delete file

Disassembly:
push 0x44
mov eax, 0x538fbb
call fcn.00461ac0
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x4a0024
cmp dword [esi + 0x10], 0x104
ja 0x4a0024
push esi
call fcn.0049ff16
pop ecx
test al, al
jne 0x49ff6b
inc al
jmp 0x4a0026
xor edi, edi
lea ecx, [ebp - 0x28]
push esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00460851
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push edi
add eax, 2
mov dword [ebp - 4], edi
push eax
call fcn.004609b1
push 0x1e
lea eax, [ebp - 0x50]
push edi
push eax
call fcn.004ed350
mov eax, dword [ebp - 0x40]
add esp, 0xc
and eax, 0xffbf
mov dword [ebp - 0x3a], edi
or eax, 0x414
mov dword [ebp - 0x50], edi
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x36], edi
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x44], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 0x14]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
cmp ecx, 8
jb 0x4a0020
mov eax, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
cmp ecx, 0x1000
jb 0x4a0017
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00405550
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
call fcn.00460b61
pop ecx
pop ecx
mov al, bl
jmp 0x4a0026
xor al, al
call fcn.00461a6a
ret
Function at 0x4a2077
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0xa8], 5
jne 0x4a209e
cmp dword [ebp + 0xc], 0
je 0x4a209e
mov ecx, esi
call fcn.004a1ee3
mov eax, 0x80004005
jmp 0x4a21c0
xor ecx, ecx
push edi
cmp dword [esi + 0x64], ecx
jne 0x4a20cd
push 0x550424
call fcn.004a236d
pop ecx
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x4a21bd
mov edx, dword [ecx]
lea eax, [esi + 0x24]
push eax
call dword [edx + 0x14]
jmp 0x4a21bd
cmp byte [esi + 0x74], cl
jne 0x4a20e2
cmp byte [esi + 0x80], cl
jne 0x4a20e2
cmp byte [esi + 0x8c], cl
je 0x4a2149
lea eax, [esi + 0x54]
cmp dword [eax + 0x14], 8
jb 0x4a20ed
mov eax, dword [eax]
push ecx
push 0x80
push 3
push ecx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a2149
xor edx, edx
lea ecx, [esi + 0x78]
cmp byte [esi + 0x74], dl
cmovne edx, ecx
xor eax, eax
cmp byte [esi + 0x80], al
lea ecx, [esi + 0x84]
push edx
cmovne eax, ecx
xor ecx, ecx
cmp byte [esi + 0x8c], cl
push eax
lea eax, [esi + 0x90]
cmovne ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0x6d], 0
je 0x4a2164
lea eax, [esi + 0x54]
cmp dword [eax + 0x14], 8
jb 0x4a215a
mov eax, dword [eax]
push dword [esi + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edi, [esi + 0x54]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4a2171
mov eax, dword [edi]
push eax
push str.FileDone:_s_n
call fcn.004a236d
pop ecx
pop ecx
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x4a21bd
push dword [esi + 0xa4]
mov eax, dword [ecx]
push dword [esi + 0xa0]
push edi
call dword [eax + 0x1c]
test al, al
jne 0x4a21a5
mov eax, 0x80004005
jmp 0x4a21bf
mov ecx, dword [esi + 0xac]
push dword [esi + 0xa4]
push dword [esi + 0xa0]
mov eax, dword [ecx]
push edi
call dword [eax + 0x10]
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x4b24a3
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534560
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x57b270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x30]
mov dword [esi], vtable.NCompress::NLzma::CDecoder.0
push 0x57b5a8
push eax
mov dword [esi + 4], vtable.NCompress::NLzma::CDecoder.1.0
mov dword [esi + 8], vtable.NCompress::NLzma::CDecoder.2.0
mov dword [esi + 0xc], vtable.NCompress::NLzma::CDecoder.3.0
mov dword [esi + 0x10], vtable.NCompress::NLzma::CDecoder.4.0
mov dword [esi + 0x14], vtable.NCompress::NLzma::CDecoder.5.0
mov dword [esi + 0x18], vtable.NCompress::NLzma::CDecoder.6.0
call fcn.004d0934
push dword [esi + 0x24]
call fcn.00405b90
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4b2522
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x4b9475
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
and dword [edi + 0x2cb0], 0
cmp dword [edi + 0x2cb8], 2
jne 0x4b94bb
push 1
lea ecx, [edi + 0x38]
call fcn.004b93ef
test eax, eax
je 0x4b94b4
push dword [edi + 0x80]
mov ecx, edi
push dword [edi + 0x7c]
call fcn.004b8c63
jmp 0x4b967b
and dword [edi + 0x2cb8], 0
mov edx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
push ebx
push 8
pop ecx
sub ecx, edx
mov dword [ebp - 0x10], edx
shr eax, cl
shr eax, 0x10
cmp dword [edi + 0x2ca0], 0x25
movzx eax, al
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x2cac]
jae 0x4b94f7
test eax, eax
mov ebx, 0x551778
mov ecx, 0x551768
mov eax, 0x5517a8
jmp 0x4b9508
test eax, eax
mov ebx, 0x551798
mov ecx, 0x551788
mov eax, 0x5517e4
cmove ebx, ecx
mov dword [ebp - 4], eax
mov eax, dword [eax]
mov ecx, ebx
xor eax, dword [ebp - 8]
mov edx, 0xff
push esi
xor esi, esi
mov cl, byte [ecx]
sar edx, cl
not edx
test eax, edx
je 0x4b9544
mov edi, dword [ebp - 4]
inc esi
mov edx, 0xff
mov cl, byte [esi + ebx]
mov eax, dword [edi + esi*4]
xor eax, dword [ebp - 8]
sar edx, cl
not edx
test eax, edx
jne 0x4b952a
mov edi, dword [ebp - 0xc]
movzx eax, byte [esi + ebx]
lea ebx, [edi + 0x38]
add eax, dword [ebp - 0x10]
mov ecx, ebx
mov dword [ebx], eax
call fcn.004b9364
cmp esi, 9
jb 0x4b95fa
jne 0x4b9576
push dword [edi + 0x80]
inc dword [edi + 0x2cb8]
push dword [edi + 0x7c]
jmp 0x4b9672
and dword [edi + 0x2cb8], 0
mov ecx, edi
cmp esi, 0xe
jne 0x4b95a9
push 0x551624
call fcn.004b8cfb
push 0xf
mov ecx, ebx
lea esi, [eax + 5]
call fcn.004b93ef
add eax, 0x7fff
push esi
mov dword [edi + 0x7c], eax
push eax
jmp 0x4b966c
mov eax, dword [edi + 0x78]
sub eax, esi
inc eax
and eax, 3
push 0x5515ec
mov ebx, dword [edi + eax*4 + 0x68]
call fcn.004b8cfb
add eax, 2
cmp eax, 0x101
jne 0x4b95dd
cmp esi, 0xa
jne 0x4b95dd
xor dword [edi + 0x2cac], 1
xor eax, eax
jmp 0x4b9679
cmp ebx, 0x100
lea ecx, [eax + 1]
cmovb ecx, eax
mov eax, dword [edi + 0x2cc8]
dec eax
cmp ebx, eax
lea esi, [ecx + 1]
cmovb esi, ecx
jmp 0x4b9656
mov ecx, dword [edi + 0x2ca0]
and dword [edi + 0x2cb8], 0
add ecx, esi
mov eax, ecx
shr eax, 4
sub ecx, eax
mov dword [edi + 0x2ca0], ecx
mov ecx, edi
push 0x5516cc
call fcn.004b8cfb
movzx ecx, al
mov ebx, dword [edi + ecx*4 + 0x494]
test al, al
je 0x4b9653
dec dword [edi + ebx*4 + 0x1494]
mov eax, dword [edi + ecx*4 + 0x490]
inc dword [edi + eax*4 + 0x1494]
mov dword [edi + ecx*4 + 0x494], eax
mov dword [edi + ecx*4 + 0x490], ebx
add esi, 2
mov eax, dword [edi + 0x78]
push esi
push ebx
mov dword [edi + eax*4 + 0x68], ebx
mov eax, dword [edi + 0x78]
inc eax
mov dword [edi + 0x7c], ebx
and eax, 3
mov dword [edi + 0x78], eax
mov dword [edi + 0x80], esi
mov ecx, edi
call fcn.004b8c63
pop esi
pop ebx
pop edi
leave
ret
Function at 0x4c0b19
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 8
jb 0x4c0b42
mov edi, esi
shr edi, 3
mov eax, dword [ecx + 4]
sub esi, 8
xor eax, dword [ecx]
add ecx, 8
xor edx, eax
sub edi, 1
jne 0x4c0b30
cmp esi, 4
jb 0x4c0b4c
xor edx, dword [ecx]
add ecx, 4
and esi, 3
cmp esi, 2
jbe 0x4c0b5f
movzx eax, byte [ecx]
shl eax, 0x10
xor edx, eax
inc ecx
jmp 0x4c0b68
mov eax, edx
mov edi, ecx
cmp esi, 1
jbe 0x4c0b73
movzx eax, byte [ecx]
shl eax, 8
xor edx, eax
inc ecx
jmp 0x4c0b7b
mov edx, eax
mov ecx, edi
test esi, esi
je 0x4c0b80
movzx ecx, byte [ecx]
xor edx, ecx
pop edi
mov eax, edx
pop esi
pop ebp
ret

Function at 0x4c1c3e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
or dword [edi], 0xffffffff
cmp dword [eax], 0x23170f69
jne 0x4c1d19
mov ecx, 0x40c1
cmp word [eax + 4], cx
jne 0x4c1d19
mov ebx, dword [ebp + 0x14]
mov edx, 0x2790
mov byte [ebx], 1
movzx ecx, word [eax + 6]
cmp cx, dx
jne 0x4c1c82
mov byte [ebx], 0
jmp 0x4c1c90
mov edx, 0x2791
cmp cx, dx
jne 0x4c1d19
mov ecx, dword [eax + 8]
xor esi, esi
mov eax, dword [eax + 0xc]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
cmp dword [0x5856e8], esi
jbe 0x4c1d19
mov ch, byte [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [esi*4 + 0x5856f0]
cmp eax, dword [edx + 8]
jne 0x4c1cef
mov edi, dword [ebp - 4]
cmp edi, dword [edx + 0xc]
mov edi, dword [ebp + 0x18]
jne 0x4c1cef
xor eax, eax
cmp byte [ebx], al
je 0x4c1cce
cmp dword [edx + 4], eax
jmp 0x4c1cd0
cmp dword [edx], eax
sete al
test eax, eax
jne 0x4c1cec
mov cl, byte [edx + 0x18]
test ch, ch
je 0x4c1ce5
test cl, cl
sete al
jmp 0x4c1ce8
movzx eax, cl
test eax, eax
je 0x4c1cfa
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [0x5856e8]
jb 0x4c1cac
jmp 0x4c1d19
movzx eax, byte [ebp + 0xc]
movzx ecx, byte [ebp + 0xc]
xor eax, 1
cmp dword [edx + 0x14], 1
cmove eax, ecx
test eax, eax
je 0x4c1d17
mov eax, 0x80004002
jmp 0x4c1d1b
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4c24e3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov dword [ebp + 8], eax
cmp eax, 3
jae 0x4c2502
push edi
call fcn.004c3247
jmp 0x4c255a
mov ecx, dword [edi]
movzx edx, byte [ecx]
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 1]
mov ecx, dword [edi + 0x24]
xor edx, dword [edi + eax*4 + 0x60]
mov eax, dword [edi + 4]
movzx edx, dx
mov esi, dword [ecx + edx*4]
mov dword [ecx + edx*4], eax
push dword [edi + 0x30]
push dword [edi + 0x18]
push dword [edi + 0x14]
push dword [edi + 0x28]
push dword [edi]
push dword [edi + 4]
push esi
push dword [ebp + 8]
call fcn.004c33c6
add esp, 0x20
inc dword [edi + 0x14]
inc dword [edi]
inc dword [edi + 4]
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
jne 0x4c255b
push edi
call fcn.004c2edf
pop ecx
sub ebx, 1
jne 0x4c24ef
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4c2f59
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
mov dword [eax + 0x34], ecx
lea esi, [eax + 0x60]
mov word [eax + 0x1e], cx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x30], 0x20
mov byte [eax + 0x1d], 1
mov dword [eax + 0x48], 4
push 8
mov edx, ecx
pop edi
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
sub edi, 1
jne 0x4c2f87
mov dword [esi], edx
inc ecx
add esi, 4
cmp ecx, 0x100
jb 0x4c2f82
pop edi
pop esi
pop ebp
ret

Function at 0x4c36a6
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x4c36dc
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x4c36cf
cmp esi, ecx
jae 0x4c37bf
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x4c3755
movzx ecx, cl
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
movzx eax, al
shr ecx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, cl
shl edx, 8
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x551d00]
xor ecx, eax
or ecx, edx
jmp 0x4c37a5
cmp edi, 6
jbe 0x4c37a5
cmp edx, 4
jne 0x4c37a5
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x4c36ee
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4c42f7
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x4cc947
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edx + 4]
mov ecx, dword [edx]
add esi, 2
lea esi, [edx + esi*4]
mov dword [ebp - 4], esi
test edi, edi
je 0x4cc9dd
push ebx
mov ebx, dword [ebp + 0xc]
cmp ecx, 0x10
je 0x4cc982
mov al, byte [esi + ecx]
xor byte [ebx], al
inc ecx
inc ebx
sub edi, 1
je 0x4cc97f
cmp ecx, 0x10
jne 0x4cc96e
mov dword [ebp + 0x10], edi
cmp edi, 0x10
jb 0x4cc9ab
mov ecx, dword [ebp - 4]
mov esi, edi
shr esi, 4
add ecx, 0x10
push esi
mov edx, ebx
call dword [0x589888]
shl esi, 4
add ebx, esi
sub edi, esi
mov esi, dword [ebp - 4]
push 0x10
mov dword [ebp + 0x10], edi
pop ecx
test edi, edi
je 0x4cc9d7
xor eax, eax
lea ecx, [esi + 0x10]
mov edi, esi
mov edx, esi
push 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [0x589888]
mov edx, dword [ebp + 0x10]
xor ecx, ecx
sub esi, ebx
mov al, byte [esi + ebx]
xor byte [ebx], al
inc ecx
inc ebx
sub edx, 1
jne 0x4cc9cb
mov eax, dword [ebp + 8]
pop ebx
mov dword [eax], ecx
pop edi
pop esi
leave
ret

Function at 0x4ccd05
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov ecx, 0x12345678
mov esi, 0x23456789
mov edx, 0x34567890
cmp dword [ebp + 0x10], edi
jbe 0x4ccd5e
push ebx
mov ebx, dword [ebp + 0xc]
movzx eax, byte [edi + ebx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5898a0]
movzx eax, cl
add eax, esi
imul esi, eax, 0x8088405
inc esi
mov eax, esi
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x5898a0]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x4ccd24
pop ebx
mov eax, dword [ebp + 8]
pop edi
mov dword [eax + 0x18], esi
mov dword [eax + 0x14], ecx
mov dword [eax + 0x1c], edx
xor eax, eax
pop esi
pop ebp
ret 0xc