joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a8882
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x58b81c], 0
jne 0x4a895a
push 0x52fecc
call fcn.004ad711
mov dword [esp], 0x52fea8
call fcn.004ad711
mov dword [esp], 0x52ff2c
call fcn.004ad711
mov dword [esp], 0x52ff50
call fcn.004ad711
mov dword [esp], 0x52ff04
call fcn.004ad711
mov dword [esp], 0x5300e8
call fcn.004adace
mov dword [esp], 0x530068
call fcn.004adace
mov dword [esp], 0x530088
call fcn.004adace
mov dword [esp], 0x5300a8
call fcn.004adace
mov dword [esp], 0x530108
call fcn.004adace
mov dword [esp], 0x530128
call fcn.004adace
mov dword [esp], 0x530148
call fcn.004adace
mov dword [esp], 0x530028
call fcn.004adace
mov dword [esp], 0x530048
call fcn.004adace
mov dword [esp], 0x530168
call fcn.004adace
mov dword [esp], 0x530188
call fcn.004adace
pop ecx
mov byte [0x58b81c], 1
jmp 0x4bccb0
ret
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x58ff20], ecx
inc edx
cmp edx, 0x100
jb 0x4bccb2
cmp edx, 0x800
jae 0x4bcd89
lea esp, [esp]
mov eax, dword [edx*4 + 0x58fb20]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x58ff20]
inc edx
mov dword [edx*4 + 0x58ff1c], eax
cmp edx, 0x800
jb 0x4bcd60
mov eax, 0x5231f0
mov dword [0x58ff08], eax
mov dword [0x591f20], eax
mov dword [0x58ff04], 0x523110
call fcn.004d708f
test eax, eax
jne 0x4bcdb5
mov dword [0x591f20], 0x523110
ret
Function at 0x4abf19
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0xa0], 5
jne 0x4abf42
cmp dword [ebp + 0xc], ebx
je 0x4abf42
mov ecx, esi
call fcn.004abe64
mov eax, 0x80004005
jmp 0x4ac06b
cmp dword [esi + 0x5c], ebx
jne 0x4abf72
push str.AllDone_n
call fcn.0050b972
pop ecx
cmp dword [esi + 0xa4], ebx
je 0x4abf6b
mov eax, dword [esi + 0xa4]
mov edx, dword [eax]
add esi, 0x14
push esi
mov ecx, eax
call dword [edx + 0x14]
xor eax, eax
jmp 0x4ac06b
push edi
cmp byte [esi + 0x70], bl
jne 0x4abf85
cmp byte [esi + 0x7c], bl
jne 0x4abf85
cmp byte [esi + 0x88], bl
je 0x4abfef
lea eax, [esi + 0x4c]
cmp dword [eax + 0x14], 8
jb 0x4abf90
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4abfef
movzx ecx, byte [esi + 0x70]
neg ecx
sbb ecx, ecx
lea eax, [esi + 0x74]
and ecx, eax
push ecx
movzx ecx, byte [esi + 0x7c]
neg ecx
sbb ecx, ecx
lea eax, [esi + 0x80]
and ecx, eax
push ecx
movzx ecx, byte [esi + 0x88]
neg ecx
lea eax, [esi + 0x8c]
sbb ecx, ecx
and 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 + 0x69], bl
je 0x4ac009
lea eax, [esi + 0x4c]
cmp dword [eax + 0x14], 8
jb 0x4abfff
mov eax, dword [eax]
push dword [esi + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edi, [esi + 0x4c]
cmp dword [edi + 0x14], 8
jb 0x4ac016
mov eax, dword [edi]
jmp 0x4ac018
mov eax, edi
push eax
push 0x530798
call fcn.0050b972
pop ecx
pop ecx
cmp dword [esi + 0xa4], ebx
je 0x4ac068
push dword [esi + 0x9c]
mov ecx, dword [esi + 0xa4]
push dword [esi + 0x98]
mov eax, dword [ecx]
push edi
call dword [eax + 0x1c]
test al, al
jne 0x4ac050
mov eax, 0x80004005
jmp 0x4ac06a
push dword [esi + 0x9c]
mov ecx, dword [esi + 0xa4]
push dword [esi + 0x98]
mov eax, dword [ecx]
push edi
call dword [eax + 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4ad170
Capabilities:
Enumerate files on windows

Disassembly:
push 0x2dc
mov eax, 0x52403c
call fcn.00509809
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.004a6800
add esp, 0xc
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x2e5], 0
jae 0x4ad1ad
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x2e4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4ad1dc
mov bl, byte [ebp - 0x2e5]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401d60
mov al, bl
call fcn.0050988c
ret
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x10]
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x94]
push edi
push eax
call fcn.004ad009
add esp, 0xc
cmp byte [ebp - 0x50], 0
mov byte [ebp - 4], 1
jne 0x4ad22b
lea eax, [ebp - 0x94]
push eax
call fcn.004acef5
pop ecx
test al, al
jne 0x4ad22b
mov eax, dword [esi]
lea ecx, [ebp - 0x2e5]
push ecx
lea ecx, [ebp - 0x94]
push ecx
mov ecx, esi
call dword [eax + 0x18]
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.004a4b1f
cmp byte [ebp - 0x2e5], 0
jne 0x4ad265
lea eax, [ebp - 0x2e4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4ad1e4
cmp byte [ebp - 0x2e5], al
jne 0x4ad265
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4ad1c2

Function at 0x4ad271
Capabilities:
Enumerate files on windows

Disassembly:
push 0x2fc
mov eax, 0x52407f
call fcn.00509809
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push 0x542874
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x308], eax
call fcn.004043f0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push esi
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004a6800
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00401d60
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4ad2cd
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x300]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x304], eax
cmp eax, 0xffffffff
je 0x4ad36e
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0xb0]
push esi
push eax
call fcn.004ad009
add esp, 0xc
mov byte [ebp - 4], 3
cmp byte [ebp - 0x6c], bl
je 0x4ad33c
lea eax, [ebp - 0xb0]
push eax
call fcn.004acef5
pop ecx
test al, al
jne 0x4ad33c
mov eax, dword [edi]
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, edi
call dword [eax + 0xc]
test al, al
je 0x4ad33c
mov ecx, dword [ebp - 0x308]
lea eax, [ebp - 0x68]
push eax
call fcn.004ad0eb
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.004a4b1f
lea eax, [ebp - 0x300]
push eax
push dword [ebp - 0x304]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4ad2ea
push dword [ebp - 0x304]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401d60
call fcn.0050988c
ret
Function at 0x4b9ac0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5249eb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x588790]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], vtable.ICompressSetFinishMode.0
mov dword [esi + 8], vtable.ICompressSetInStream2.0
mov dword [esi + 0xc], vtable.ISequentialInStream.0
mov dword [esi + 0x10], vtable.ICompressSetOutStreamSize.0
mov dword [esi + 0x14], vtable.ICompressSetBufSize.0
xor ebx, ebx
mov dword [esi + 0x18], ebx
mov eax, 0x40000
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x44], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x48], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x4c], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x54], eax
push 0x4a8961
push 0x4a895b
push 4
push 4
lea eax, [esi + 0x98]
push eax
mov dword [ebp - 4], ebx
mov dword [esi], vtable.NCompress::NBcj2::CDecoder.5.0
mov dword [esi + 4], vtable.NCompress::NBcj2::CDecoder.4.0
mov dword [esi + 8], vtable.NCompress::NBcj2::CDecoder.3.0
mov dword [esi + 0xc], vtable.NCompress::NBcj2::CDecoder.2.0
mov dword [esi + 0x10], vtable.NCompress::NBcj2::CDecoder.1.0
mov dword [esi + 0x14], vtable.NCompress::NBcj2::CDecoder.0
call fcn.005086fc
mov word [esi + 0xa8], bx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c2ba0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
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
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
pop ebp
ret
Function at 0x4c36e0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x20]
and edi, 0x3f
mov byte [edi + esi + 0x28], 0x80
inc edi
xor ebx, ebx
cmp edi, 0x38
je 0x4c3718
lea esp, [esp]
and edi, 0x3f
jne 0x4c370e
push esi
call fcn.004c2bf0
add esp, 4
mov byte [esi + edi + 0x28], bl
inc edi
cmp edi, 0x38
jne 0x4c3700
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
push esi
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
call fcn.004c2bf0
mov edx, dword [ebp + 0xc]
add esp, 4
xor eax, eax
mov ecx, dword [esi + eax*4 + 4]
mov edi, dword [esi + eax*4]
bswap edi
bswap ecx
mov dword [edx], edi
mov dword [edx + 4], ecx
add eax, 2
add edx, 8
cmp eax, 8
jb 0x4c3740
pop edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
pop esi
pop ebx
pop ebp
ret

Function at 0x4c9759
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
push ebx
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
lea ebx, [edi + ecx*4 + 8]
je 0x4c97dc
push esi
mov esi, dword [ebp + 0xc]
cmp eax, 0x10
je 0x4c9785
mov cl, byte [ebx + eax]
xor byte [esi], cl
inc eax
inc esi
dec dword [ebp + 0x10]
jne 0x4c9774
cmp dword [ebp + 0x10], 0x10
jb 0x4c97ab
mov edi, dword [ebp + 0x10]
shr edi, 4
push edi
lea ecx, [ebx + 0x10]
mov edx, esi
call dword [0x58fefc]
shl edi, 4
add esi, edi
sub dword [ebp + 0x10], edi
mov edi, dword [ebp + 8]
push 0x10
pop eax
cmp dword [ebp + 0x10], 0
je 0x4c97d9
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 1
lea ecx, [ebx + 0x10]
mov edx, ebx
stosd dword es:[edi], eax
call dword [0x58fefc]
xor eax, eax
sub ebx, esi
mov cl, byte [ebx + esi]
xor byte [esi], cl
inc eax
inc esi
dec dword [ebp + 0x10]
jne 0x4c97ca
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4c99e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x588790]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 8]
push edi
push 0x40
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.00509940
mov edi, esi
lea edx, [ebp - 0x44]
add esp, 0xc
xor ecx, ecx
sub edi, edx
lea eax, [ebp + ecx - 0x44]
movzx edx, byte [edi + eax]
xor byte [eax], dl
movzx edx, byte [esi + ecx + 1]
xor byte [eax + 1], dl
movzx edx, byte [esi + ecx + 2]
xor byte [eax + 2], dl
movzx edx, byte [esi + ecx + 3]
xor byte [eax + 3], dl
movzx edx, byte [esi + ecx + 4]
xor byte [eax + 4], dl
add ecx, 5
cmp ecx, 0x14
jb 0x4c9a10
lea eax, [ebp - 0xa4]
push eax
call fcn.004e1680
push 0x40
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0xa4]
push edx
call fcn.004e1f30
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.004e2060
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop edi
call fcn.00503edf
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x4c9f6c
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
push ebx
lea esp, [esp]
mov ebx, dword [ebp + 0xc]
movzx ebx, byte [edi + ebx]
xor ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x58ff20]
inc edi
movzx ebx, al
add ecx, ebx
imul ecx, ecx, 0x8088405
inc ecx
mov ebx, ecx
shr ebx, 0x18
xor ebx, edx
and ebx, 0xff
shr edx, 8
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
xor edx, dword [ebx*4 + 0x58ff20]
mov dword [esi + 0x10], edx
cmp edi, dword [ebp + 0x10]
jb 0x4c9f20
pop ebx
pop edi
mov dword [esi + 0x14], 0x12345678
mov dword [esi + 0x18], 0x23456789
mov dword [esi + 0x1c], 0x34567890
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x4ca010
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0x10]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x14]
xor edi, edi
mov dword [ebp - 0xc], eax
test edx, edx
je 0x4ca0b0
mov eax, dword [ebp + 0xc]
push ebx
push esi
lea ebx, [ebx]
mov bl, byte [edi + eax]
mov edx, dword [ecx + 0x14]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov dl, al
mov eax, dword [ebp + 0xc]
mov byte [edi + eax], dl
mov edx, dword [ecx + 0xc]
movzx esi, bl
xor esi, edx
shr edx, 8
and esi, 0xff
mov ebx, dword [esi*4 + 0x58ff20]
mov esi, dword [ecx + 0x14]
xor ebx, edx
movzx edx, bl
add edx, dword [ecx + 0x10]
mov dword [ecx + 0xc], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 0x10], edx
shr edx, 0x18
xor edx, esi
and edx, 0xff
shr esi, 8
xor esi, dword [edx*4 + 0x58ff20]
mov edx, dword [ebp + 0x10]
inc edi
mov dword [ecx + 0x14], esi
cmp edi, edx
jb 0x4ca040
pop esi
pop ebx
mov eax, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0x14], eax
mov eax, edx
pop edi
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x10]
push edi
mov dword [ebp + 8], eax
mov eax, dword [edx + 0x14]
xor edi, edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], edi
jbe 0x4ca1b2
push ebx
push esi
mov ecx, dword [edx + 0x14]
mov esi, ecx
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
mov esi, dword [ebp + 0xc]
shr eax, 8
xor al, byte [edi + esi]
mov esi, dword [edx + 0xc]
movzx ebx, al
xor ebx, esi
shr esi, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x58ff20]
xor ebx, esi
movzx esi, bl
add esi, dword [edx + 0x10]
mov dword [edx + 0xc], ebx
imul esi, esi, 0x8088405
inc esi
mov dword [edx + 0x10], esi
shr esi, 0x18
xor esi, ecx
shr ecx, 8
and esi, 0xff
xor ecx, dword [esi*4 + 0x58ff20]
inc edi
mov dword [edx + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov byte [edi + ecx - 1], al
cmp edi, dword [ebp + 0x10]
jb 0x4ca145
pop esi
pop ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x10], ecx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4cf060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
and esi, 7
cmp eax, 5
jae 0x4cf080
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
push ebx
mov ebx, dword [ebp + 8]
sub eax, 4
add ebx, eax
mov dword [ebp - 4], ebx
mov edx, dword [ebp + 8]
add edx, edi
cmp edx, ebx
jae 0x4cf0ad
lea esp, [esp]
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x4cf0ad
inc edx
cmp edx, ebx
jb 0x4cf0a0
mov eax, dword [ebp + 8]
mov ecx, edx
sub ecx, edi
mov edi, edx
sub ecx, eax
sub edi, eax
cmp edx, ebx
jae 0x4cf185
cmp ecx, 2
jbe 0x4cf104
xor esi, esi
movzx ecx, byte [edx + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x4cf122
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or eax, ecx
mov ecx, dword [ebp + 0x10]
add ecx, edi
add edi, 5
cmp dword [ebp + 0x18], 0
mov dword [ebp + 0xc], ecx
je 0x4cf12d
add eax, ecx
jmp 0x4cf12f
shr esi, cl
test esi, esi
je 0x4cf0c9
cmp esi, 4
ja 0x4cf122
cmp esi, 3
je 0x4cf122
mov ecx, esi
shr ecx, 1
movzx eax, byte [ecx + edx + 1]
inc eax
test al, 0xfe
jne 0x4cf0c9
or esi, 8
shr esi, 1
inc edi
jmp 0x4cf090
sub eax, ecx
test esi, esi
je 0x4cf163
and esi, 6
add esi, esi
add esi, esi
mov ebx, eax
mov ecx, esi
shr ebx, cl
inc ebx
test bl, 0xfe
jne 0x4cf15e
mov ebx, pe_nt_image_headers32
shl ebx, cl
dec ebx
xor eax, ebx
cmp dword [ebp + 0x18], 0
je 0x4cf15b
add eax, dword [ebp + 0xc]
jmp 0x4cf15e
sub eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
xor esi, esi
mov ecx, eax
shr ecx, 8
mov byte [edx + 1], al
mov byte [edx + 2], cl
mov ecx, eax
shr eax, 0x18
shr ecx, 0x10
and al, 1
neg al
mov byte [edx + 3], cl
mov byte [edx + 4], al
jmp 0x4cf090
pop ebx
cmp ecx, 2
jbe 0x4cf19a
mov edx, dword [ebp + 0x14]
xor esi, esi
mov eax, edi
pop edi
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
shr esi, cl
mov eax, edi
pop edi
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4d0aa0
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor eax, eax
or ecx, 0x100
push edi
lea ebx, [ebx]
mov ebx, ecx
shr ebx, 7
mov edi, ecx
shr edi, 8
movzx edi, word [esi + edi*2]
and ebx, 1
neg ebx
sar ebx, 4
shr edi, 4
and ebx, 0x7f
xor edi, ebx
add eax, dword [edx + edi*4]
add ecx, ecx
cmp ecx, 0x10000
jb 0x4d0ab0
pop edi
pop ebx
ret

Function at 0x4d0ae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov edx, pe_nt_image_headers32
xor eax, eax
push edi
or ecx, edx
add esi, esi
mov edi, edx
and edi, esi
add edi, edx
mov ebx, ecx
shr ebx, 8
add ebx, edi
mov edi, dword [ebp + 8]
movzx edi, word [edi + ebx*2]
mov ebx, ecx
shr ebx, 7
and ebx, 1
neg ebx
shr edi, 4
sar ebx, 4
and ebx, 0x7f
xor edi, ebx
mov ebx, dword [ebp + 0xc]
add eax, dword [ebx + edi*4]
add ecx, ecx
mov edi, ecx
xor edi, esi
not edi
and edx, edi
cmp ecx, 0x10000
jb 0x4d0af1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4d0da0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
movzx eax, word [ebx]
mov ecx, eax
shr ecx, 4
mov edx, dword [esi + ecx*4]
movzx ecx, word [ebx + 2]
mov dword [ebp - 0xc], edx
mov edx, ecx
xor eax, 0x7f0
xor ecx, 0x7f0
shr edx, 4
mov edx, dword [esi + edx*4]
shr eax, 4
mov eax, dword [esi + eax*4]
shr ecx, 4
mov ecx, dword [esi + ecx*4]
add edx, eax
add ecx, eax
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 0x14], ecx
xor edx, edx
jmp 0x4d0df0
cmp edx, dword [ebp + 0x10]
jae 0x4d0f10
mov eax, edx
xor edi, edi
or eax, 8
mov dword [ebp - 4], edi
cmp eax, 1
je 0x4d0e39
mov edi, dword [ebp + 0xc]
mov ecx, eax
and eax, 1
shr ecx, 1
lea edi, [ecx + edi*8]
movzx edi, word [ebx + edi*2 + 4]
neg eax
sar eax, 4
shr edi, 4
and eax, 0x7f
xor edi, eax
mov eax, edi
mov edi, dword [ebp - 4]
add edi, dword [esi + eax*4]
mov eax, ecx
mov dword [ebp - 4], edi
cmp eax, 1
jne 0x4d0e08
add edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + edx*4], edi
inc edx
cmp edx, 8
jb 0x4d0df0
cmp edx, 0x10
jae 0x4d0eba
lea eax, [edx - 8]
mov dword [ebp - 8], eax
cmp edx, dword [ebp + 0x10]
jae 0x4d0f10
xor edi, edi
or eax, 8
mov dword [ebp - 4], edi
cmp eax, 1
je 0x4d0ea4
lea esp, [esp]
mov edi, dword [ebp + 0xc]
mov ecx, eax
and eax, 1
shr ecx, 1
lea edi, [ecx + edi*8]
movzx edi, word [ebx + edi*2 + 0x104]
neg eax
sar eax, 4
shr edi, 4
and eax, 0x7f
xor edi, eax
mov eax, edi
mov edi, dword [ebp - 4]
add edi, dword [esi + eax*4]
mov eax, ecx
mov dword [ebp - 4], edi
cmp eax, 1
jne 0x4d0e70
add edi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [ecx + edx*4], edi
inc edx
inc eax
mov dword [ebp - 8], eax
cmp edx, 0x10
jb 0x4d0e53
cmp edx, dword [ebp + 0x10]
jae 0x4d0f10
lea eax, [edx - 0x10]
mov dword [ebp - 8], eax
or eax, 0x100
xor edi, edi
cmp eax, 1
je 0x4d0efa
mov ecx, eax
and eax, 1
shr ecx, 1
movzx ebx, word [ebx + ecx*2 + 0x204]
neg eax
sar eax, 4
shr ebx, 4
and eax, 0x7f
xor ebx, eax
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp + 8]
mov eax, ecx
cmp eax, 1
jne 0x4d0ed1
add edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [ecx + edx*4], edi
inc edx
inc eax
mov dword [ebp - 8], eax
cmp edx, dword [ebp + 0x10]
jb 0x4d0ec5
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d2930
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [edi + 0x325c8]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
lea ebx, [ebx]
xor edx, edx
lea ecx, [edx + 1]
mov dword [ebp - 4], 4
lea esp, [esp]
movzx ebx, word [edi + ecx*2 + 0x32c4c]
mov eax, esi
and eax, 1
mov edi, eax
neg edi
sar edi, 4
and edi, 0x7f
shr ebx, 4
xor ebx, edi
mov edi, dword [ebp + 8]
add edx, dword [edi + ebx*4 + 0x30f34]
add ecx, ecx
shr esi, 1
or ecx, eax
dec dword [ebp - 4]
jne 0x4d2960
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
inc esi
mov dword [eax], edx
add eax, 4
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp esi, 0x10
jb 0x4d2950
mov dword [edi + 0x84], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret