joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dc7f0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004dca10
add esp, 0xc
test eax, eax
js 0x4dca02
mov eax, dword [esi + 0xf0]
push ebx
push edi
xor ebx, ebx
lea edi, [eax*4]
test edi, edi
jle 0x4dc879
mov eax, dword [ebp + 0x10]
lea esi, [esi + edi*4]
add esi, 8
add eax, 8
nop
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x4dc830
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0xf0]
mov ebx, 1
cmp eax, ebx
jle 0x4dc9fe
lea edi, [esi + 4]
nop dword [eax]
movzx eax, byte [edi + 0xd]
lea edi, [edi + 0x10]
mov edx, dword [edi - 4]
inc ebx
movzx ecx, byte [eax*4 + 0x5bd160]
mov eax, edx
shr eax, 0x18
mov ecx, dword [ecx*4 + 0x5be560]
movzx eax, byte [eax*4 + 0x5bd160]
xor ecx, dword [eax*4 + 0x5bdd60]
movzx eax, byte [edi - 2]
movzx eax, byte [eax*4 + 0x5bd160]
xor ecx, dword [eax*4 + 0x5be160]
movzx eax, dl
mov edx, dword [edi]
movzx eax, byte [eax*4 + 0x5bd160]
xor ecx, dword [eax*4 + 0x5be960]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi - 4], ecx
movzx ecx, byte [eax*4 + 0x5bd160]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5be160]
movzx eax, byte [eax*4 + 0x5bd160]
xor ecx, dword [eax*4 + 0x5be560]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5bd160]
xor ecx, dword [eax*4 + 0x5bdd60]
movzx eax, dl
mov edx, dword [edi + 4]
movzx eax, byte [eax*4 + 0x5bd160]
xor ecx, dword [eax*4 + 0x5be960]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi], ecx
movzx ecx, byte [eax*4 + 0x5bd160]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5be160]
movzx eax, byte [eax*4 + 0x5bd160]
xor ecx, dword [eax*4 + 0x5be560]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5bd160]
xor ecx, dword [eax*4 + 0x5bdd60]
movzx eax, dl
mov edx, dword [edi + 8]
movzx eax, byte [eax*4 + 0x5bd160]
xor ecx, dword [eax*4 + 0x5be960]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi + 4], ecx
movzx ecx, byte [eax*4 + 0x5bd160]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5be160]
movzx eax, byte [eax*4 + 0x5bd160]
xor ecx, dword [eax*4 + 0x5be560]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5bd160]
xor ecx, dword [eax*4 + 0x5bdd60]
movzx eax, dl
movzx eax, byte [eax*4 + 0x5bd160]
xor ecx, dword [eax*4 + 0x5be960]
mov dword [edi + 8], ecx
cmp ebx, dword [esi + 0xf0]
jl 0x4dc890
pop edi
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x4dd330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x20]
mov dword [ebp + 0x10], ecx
mov edi, dword [edi]
test edi, edi
je 0x4dd368
mov edx, dword [ebp + 0x1c]
test esi, esi
je 0x4dd368
mov al, byte [edi + edx]
dec esi
xor al, byte [ecx]
inc edi
mov byte [ebx], al
inc ecx
inc ebx
mov dword [ebp + 0x10], ecx
and edi, 0xf
jne 0x4dd351
cmp esi, 0x10
jb 0x4dd3e7
mov edx, dword [ebp + 0x1c]
mov eax, ecx
sub eax, edx
xor edi, edi
mov dword [ebp - 8], eax
mov eax, esi
shr eax, 4
mov dword [ebp - 0xc], edi
mov edi, ebx
mov dword [ebp - 4], eax
sub edi, edx
shl eax, 4
add ebx, eax
add ecx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 8]
mov dword [ebp + 0x10], ecx
jmp 0x4dd3a3
mov edx, dword [ebp + 0x1c]
push dword [ebp + 0x14]
push edx
push dword [ebp + 0x18]
call dword [ebp + 0x24]
push dword [ebp + 0x18]
call fcn.004dd590
mov eax, dword [ebp + 0x1c]
add esp, 0x10
mov edx, 4
mov ecx, dword [ebx + eax]
lea eax, [eax + 4]
xor ecx, dword [eax - 4]
mov dword [edi + eax - 4], ecx
sub edx, 1
jne 0x4dd3c0
sub esi, 0x10
add edi, 0x10
add ebx, 0x10
sub dword [ebp - 4], 1
jne 0x4dd3a0
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
test esi, esi
je 0x4dd423
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call dword [ebp + 0x24]
push dword [ebp + 0x18]
call fcn.004dd590
mov eax, dword [ebp + 0x1c]
add esp, 0x10
mov edx, dword [ebp + 0x10]
sub ebx, eax
sub edx, eax
lea ecx, [edi + eax]
add edi, esi
mov al, byte [ecx + edx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebx - 1], al
sub esi, 1
jne 0x4dd411
mov eax, dword [ebp + 0x20]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dd430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x20]
mov dword [ebp - 4], edx
mov edi, dword [edi]
mov dword [ebp - 8], edi
test edi, edi
je 0x4dd46e
mov ecx, dword [ebp + 0x1c]
test esi, esi
je 0x4dd46e
mov al, byte [edi + ecx]
dec esi
xor al, byte [edx]
inc edi
mov byte [ebx], al
inc edx
inc ebx
mov dword [ebp - 4], edx
and edi, 0xf
mov dword [ebp - 8], edi
jne 0x4dd454
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
bswap ecx
mov dword [ebp + 0x10], ecx
cmp esi, 0x10
jb 0x4dd505
mov edi, eax
mov eax, ecx
mov ecx, esi
shr ecx, 4
neg eax
add dword [ebp + 0x10], ecx
cmp dword [ebp + 0x10], ecx
push edi
push dword [ebp + 0x14]
cmovae eax, ecx
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dword [ebp + 0x10], ecx
push dword [ebp - 0xc]
cmovae eax, dword [ebp + 0x10]
push ebx
push edx
mov dword [ebp + 0x10], eax
call dword [ebp + 0x24]
mov ecx, dword [ebp + 0x10]
add esp, 0x14
mov eax, ecx
bswap eax
mov dword [edi + 0xc], eax
test ecx, ecx
jne 0x4dd4e5
mov edx, 0xc
mov eax, 1
nop
movzx ecx, byte [edx + edi - 1]
dec edx
add eax, ecx
mov byte [edx + edi], al
shr eax, 8
test edx, edx
jne 0x4dd4d0
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
shl eax, 4
sub esi, eax
add edx, eax
add ebx, eax
mov dword [ebp - 4], edx
cmp esi, 0x10
jae 0x4dd487
mov edi, dword [ebp - 8]
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x10], ecx
test esi, esi
je 0x4dd576
mov ecx, dword [ebp + 0x1c]
xorps xmm0, xmm0
push eax
push dword [ebp + 0x14]
push 1
push ecx
push ecx
movups xmmword [ecx], xmm0
call dword [ebp + 0x24]
mov ecx, dword [ebp + 0x10]
add esp, 0x14
mov eax, dword [ebp + 0x18]
add ecx, 1
bswap ecx
mov dword [eax + 0xc], ecx
jne 0x4dd555
mov edx, 0xc
mov ecx, 1
mov edi, eax
nop dword [eax]
movzx eax, byte [edx + edi - 1]
dec edx
add ecx, eax
mov byte [edx + edi], cl
shr ecx, 8
test edx, edx
jne 0x4dd540
mov edi, dword [ebp - 8]
mov eax, dword [ebp + 0x1c]
sub ebx, eax
mov edx, dword [ebp - 4]
sub edx, eax
lea ecx, [edi + eax]
add edi, esi
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub esi, 1
jne 0x4dd564
mov eax, dword [ebp + 0x20]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dd5c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0x10], ecx
mov esi, dword [esi]
test esi, esi
je 0x4dd5f8
mov edx, dword [ebp + 0x18]
test edi, edi
je 0x4dd5f8
mov al, byte [esi + edx]
dec edi
xor al, byte [ecx]
inc esi
mov byte [ebx], al
inc ecx
inc ebx
mov dword [ebp + 0x10], ecx
and esi, 0xf
jne 0x4dd5e1
cmp edi, 0x10
jb 0x4dd677
mov edx, dword [ebp + 0x18]
mov eax, ebx
sub eax, edx
mov dword [ebp - 0xc], eax
mov eax, ecx
sub eax, edx
mov dword [ebp - 4], eax
mov eax, edi
shr eax, 4
mov dword [ebp - 8], eax
shl eax, 4
add ebx, eax
add ecx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp + 0x10], ecx
jmp 0x4dd62b
mov edx, dword [ebp + 0x18]
push dword [ebp + 0x14]
push edx
push edx
call dword [ebp + 0x20]
add esp, 0xc
cmp esi, 0x10
jae 0x4dd662
mov eax, dword [ebp + 0x18]
mov edx, 0xf
sub edx, esi
add eax, esi
mov esi, dword [ebp - 4]
shr edx, 2
inc edx
nop
mov ecx, dword [esi + eax]
lea eax, [eax + 4]
xor ecx, dword [eax - 4]
mov dword [ebx + eax - 4], ecx
sub edx, 1
jne 0x4dd650
add dword [ebp - 4], 0x10
sub edi, 0x10
add ebx, 0x10
xor esi, esi
sub dword [ebp - 8], 1
jne 0x4dd628
mov ebx, dword [ebp - 0x10]
test edi, edi
je 0x4dd6b2
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
push eax
push eax
call dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 0x10]
sub ebx, eax
sub edx, eax
lea ecx, [esi + eax]
add esi, edi
nop dword [eax + eax]
mov al, byte [ecx + edx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebx - 1], al
sub edi, 1
jne 0x4dd6a0
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dda90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 8
mov eax, dword [ecx + 0x38]
or eax, dword [ecx + 0x3c]
je 0x4ddaaa
mov eax, 0xfffffffe
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x10]
xor edx, edx
mov eax, esi
add eax, dword [ecx + 0x30]
adc edx, dword [ecx + 0x34]
cmp edx, 0x20000000
ja 0x4ddb7d
jb 0x4ddace
test eax, eax
jne 0x4ddb7d
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ecx + 0x16c]
mov dword [ecx + 0x34], edx
lea edx, [ecx + 0x40]
mov dword [ecx + 0x30], eax
test edi, edi
je 0x4ddb2d
test esi, esi
je 0x4ddaff
mov al, byte [ebx]
lea edx, [ecx + 0x40]
xor byte [edx + edi], al
inc ebx
inc edi
mov dword [ebp - 4], edx
dec esi
and edi, 0xf
jne 0x4ddae6
jmp 0x4ddb06
mov dword [ebp - 4], edx
test edi, edi
jne 0x4ddb1e
lea eax, [ecx + 0x60]
push eax
push edx
mov dword [ebp - 8], eax
call fcn.004ded80
mov edx, dword [ebp - 4]
add esp, 8
mov ecx, dword [ebp - 8]
jmp 0x4ddb33
mov dword [ecx + 0x16c], edi
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
add ecx, 0x60
mov dword [ebp - 4], edx
mov eax, esi
and eax, 0xfffffff0
mov dword [ebp - 8], eax
je 0x4ddb4f
push eax
push ebx
push ecx
push edx
call fcn.004debb0
add ebx, dword [ebp - 8]
add esp, 0x10
sub esi, dword [ebp - 8]
test esi, esi
je 0x4ddb6b
xor ecx, ecx
mov edi, esi
test esi, esi
je 0x4ddb6b
mov edx, dword [ebp - 4]
nop
mov al, byte [ecx + ebx]
xor byte [edx + ecx], al
inc ecx
cmp ecx, esi
jb 0x4ddb60
mov eax, dword [ebp + 8]
mov dword [eax + 0x16c], edi
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4de8d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
cmp ebx, 0xc
jne 0x4de935
mov eax, dword [ebp + 0xc]
mov ebx, 1
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x1000000
jmp 0x4dea47
mov dword [esi + 0x40], 0
lea eax, [esi + 0x60]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [ebp - 0x10], ebx
mov dword [esi + 0x4c], 0
mov dword [ebp - 4], eax
push edi
lea edi, [esi + 0x40]
mov dword [ebp - 8], edi
cmp ebx, 0x10
jb 0x4de9e0
mov eax, ebx
lea ecx, [esi + 0x41]
mov esi, dword [ebp + 0xc]
shr eax, 4
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0x10], eax
nop word [eax + eax]
mov eax, ecx
lea edx, [esi + 1]
mov edi, 4
nop word [eax + eax]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 4]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 2]
xor byte [eax - 2], cl
sub edi, 1
jne 0x4de990
push dword [ebp - 4]
mov edi, dword [ebp - 8]
push edi
call fcn.004ded80
mov ecx, dword [ebp - 0xc]
add esp, 8
add esi, 0x10
sub ebx, 0x10
sub dword [ebp + 0x10], 1
jne 0x4de980
mov dword [ebp + 0x10], esi
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
jmp 0x4de9e3
mov edx, dword [ebp + 0xc]
test ebx, ebx
je 0x4dea08
xor ecx, ecx
test ebx, ebx
je 0x4de9fb
nop dword [eax]
mov al, byte [ecx + edx]
xor byte [edi + ecx], al
inc ecx
cmp ecx, ebx
jb 0x4de9f0
lea eax, [esi + 0x60]
push eax
push edi
call fcn.004ded80
add esp, 8
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shld ecx, eax, 3
shl eax, 3
bswap eax
xor dword [esi + 0x4c], eax
lea eax, [esi + 0x60]
push eax
bswap ecx
xor dword [esi + 0x48], ecx
push edi
call fcn.004ded80
mov eax, dword [edi]
add esp, 8
mov ebx, dword [esi + 0x4c]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x4c]
bswap ebx
mov dword [esi + 0xc], eax
pop edi
mov dword [esi + 0x40], 0
lea eax, [esi + 0x20]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
push dword [esi + 0x174]
push eax
mov eax, dword [esi + 0x170]
push esi
call eax
add esp, 0xc
inc ebx
bswap ebx
mov dword [esi + 0xc], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ded80
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [eax + 0xf]
mov ecx, eax
and eax, 0xf
add eax, eax
and ecx, 0xfffffff0
push edi
mov ebx, dword [esi + eax*8 + 8]
mov edi, dword [esi + eax*8]
mov edx, dword [esi + eax*8 + 4]
mov eax, dword [esi + eax*8 + 0xc]
add esi, ecx
mov ecx, ebx
mov dword [ebp - 0xc], ebx
and ecx, 0xf
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x5bef38]
mov dword [ebp - 4], ecx
mov ecx, edi
shrd ecx, edx, 4
shl edi, 0x1c
xor ebx, ecx
shr edx, 4
mov ecx, dword [ebp - 4]
xor ebx, dword [esi]
xor ecx, edx
xor ecx, dword [esi + 4]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
shrd ecx, eax, 4
mov dword [ebp - 8], ebx
xor ecx, dword [esi + 8]
shr eax, 4
or eax, edi
mov dword [ebp - 0xc], ecx
xor eax, dword [esi + 0xc]
mov esi, 0xe
mov dword [ebp - 0x14], esi
nop dword [eax]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [esi + ecx]
xor esi, esi
mov edi, ecx
and ecx, 0xf
shl ecx, 4
and edi, 0xfffffff0
add edx, ecx
mov ecx, dword [ebp - 0xc]
shrd dword [ebp - 0xc], eax, 4
and ecx, 0xf
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 4]
shr eax, 4
mov ebx, dword [ecx*4 + 0x5bef38]
mov ecx, dword [ebp - 8]
shrd ecx, edx, 4
shr edx, 4
xor esi, ecx
mov ecx, dword [ebp - 8]
xor ebx, edx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x10]
shl ecx, 0x1c
or ecx, eax
mov dword [ebp - 8], 0
xor esi, dword [edx]
xor ebx, dword [edx + 4]
xor ecx, dword [edx + 0xc]
mov dword [ebp - 0x10], esi
xor esi, esi
or esi, dword [ebp - 0xc]
xor esi, dword [edx + 8]
mov edx, dword [ebp + 0xc]
mov eax, esi
and eax, 0xf
shrd esi, ecx, 4
shr ecx, 4
mov eax, dword [eax*4 + 0x5bef38]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
shrd eax, ebx, 4
xor dword [ebp - 8], eax
mov eax, dword [ebp - 4]
shr ebx, 4
xor eax, ebx
mov ebx, dword [ebp - 8]
xor eax, dword [edi + edx + 4]
xor ebx, dword [edi + edx]
xor edx, edx
mov dword [ebp - 4], eax
or edx, esi
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
shl eax, 0x1c
or eax, ecx
mov dword [ebp - 8], ebx
mov ecx, dword [ebp + 0xc]
xor edx, dword [edi + ecx + 8]
xor eax, dword [edi + ecx + 0xc]
sub esi, 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
jns 0x4dee00
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 4]
bswap ebx
bswap ecx
bswap edx
bswap eax
pop edi
mov dword [esi + 4], ebx
mov dword [esi], ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4df530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dl, byte [esi]
lea ebx, [esi + 0x10]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov byte [ebp - 1], dl
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
test dl, 0x40
jne 0x4df560
push eax
push ebx
push esi
call ecx
mov dl, byte [ebp - 1]
add esp, 0xc
movzx eax, dl
xor ecx, ecx
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [esi], al
mov dword [ebp - 0x18], edx
cmp edx, 0xf
jae 0x4df593
nop dword [eax]
movzx eax, byte [edx + esi]
or ecx, eax
mov byte [edx + esi], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x4df580
movzx eax, byte [esi + 0xf]
mov edi, dword [ebp + 0x14]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, edi
je 0x4df5ae
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
shr edi, 4
test edi, edi
je 0x4df5ee
push ebx
push esi
push dword [ebp - 0x10]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
add esp, 0x18
shl edi, 4
add eax, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
add eax, edi
sub dword [ebp + 0x14], edi
mov dword [ebp - 8], eax
je 0x4df64e
shr edi, 4
push edi
push esi
call fcn.004dfcc0
add esp, 8
jmp 0x4df5fa
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x4df64e
push dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
push esi
call dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
test edi, edi
je 0x4df643
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x28]
sub ecx, eax
sub dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 0x28]
add eax, edx
mov cl, byte [ecx + eax]
xor cl, byte [eax]
mov byte [esi + eax], cl
lea eax, [ebx + edx]
xor byte [eax], cl
inc edx
mov ecx, dword [ebp - 0xc]
cmp edx, edi
jb 0x4df626
mov esi, dword [ebp + 8]
push dword [ebp - 0x10]
push ebx
push ebx
call dword [ebp - 0x14]
add esp, 0xc
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jae 0x4df670
mov ecx, 0x10
lea edi, [edx + esi]
sub ecx, edx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
push esi
call dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
add esp, 0xc
xor dword [ebx], eax
mov eax, dword [ebp - 0x24]
xor dword [ebx + 4], eax
mov eax, dword [ebp - 0x20]
xor dword [esi + 0x18], eax
mov eax, dword [ebp - 0x1c]
xor dword [esi + 0x1c], eax
mov al, byte [ebp - 1]
pop edi
mov byte [esi], al
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e1040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x14
xor ecx, ecx
test edx, edx
je 0x4e1147
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
cmp edx, 0x40
jb 0x4e1125
lea eax, [edx - 1]
add eax, ebx
cmp esi, eax
ja 0x4e107e
lea eax, [esi - 1]
add eax, edx
cmp eax, ebx
jae 0x4e1125
lea eax, [edx - 1]
add eax, edi
cmp esi, eax
ja 0x4e1094
lea eax, [esi - 1]
add eax, edx
cmp eax, edi
jae 0x4e1125
mov eax, edx
mov edx, edi
sub edx, ebx
and eax, 0xffffffc0
mov dword [ebp - 4], edx
mov edx, esi
sub edx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], edx
mov eax, ebx
mov ebx, dword [ebp - 4]
mov edx, edi
sub edx, esi
mov dword [ebp - 0xc], edx
lea edx, [edi + 0x30]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x10], edx
lea edx, [esi + 0x10]
movups xmm0, xmmword [eax]
mov esi, dword [ebp - 0xc]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ebx + eax - 0x40]
lea edx, [edx + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [edi + eax - 0x40], xmm1
movups xmm1, xmmword [esi + edx - 0x40]
mov esi, dword [ebp - 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [edx - 0x40], xmm1
movups xmm1, xmmword [esi + ecx - 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
movups xmmword [edx - 0x30], xmm1
movups xmm1, xmmword [esi + ecx]
mov esi, dword [ebp + 0x14]
add ecx, 0x40
pxor xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
cmp ecx, dword [ebp - 0x14]
jb 0x4e10c2
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp ecx, edx
jae 0x4e1144
sub edi, ebx
lea eax, [ecx + ebx]
sub esi, ebx
sub edx, ecx
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + esi - 1], cl
sub edx, 1
jne 0x4e1132
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e1210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x14]
cmp esi, ebx
jbe 0x4e12bb
mov ecx, dword [edi + 0x18]
cmp esi, ecx
jb 0x4e1264
mov eax, esi
sub eax, ecx
add eax, 4
and eax, 0xfffffffc
add eax, ecx
push 0x71
mov dword [edi + 0x18], eax
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_modes_ocb128.c
shl eax, 4
push eax
push dword [edi + 0x40]
call fcn.00457c30
add esp, 0x10
test eax, eax
jne 0x4e1261
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x40], eax
cmp ebx, esi
jae 0x4e12b8
mov ecx, ebx
mov eax, esi
shl ecx, 4
mov esi, edi
sub eax, ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
nop dword [eax]
mov eax, dword [esi + 0x40]
add eax, ecx
mov bl, byte [eax]
lea edi, [eax + 0x10]
push edi
shr bl, 7
push 1
neg bl
push eax
and bl, 0x87
call fcn.004e0fa0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor byte [edi + 0xf], bl
add ecx, 0x10
sub dword [ebp - 8], 1
mov dword [ebp - 4], ecx
jne 0x4e1280
mov esi, dword [ebp + 0xc]
mov ebx, esi
mov edi, dword [ebp + 8]
mov dword [edi + 0x14], ebx
shl esi, 4
add esi, dword [edi + 0x40]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e4e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
je 0x4e4e46
mov dword [ebp + 0x1c], fcn.004e3640
pop ebp
jmp fcn.004dd1a0
mov dword [ebp + 0x1c], fcn.004e2910
pop ebp
jmp fcn.004dcf40
Function at 0x4e5960
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x1048
push 0x5c1068
push esi
call fcn.0053f470
mov ebx, dword [ebp + 0x10]
mov edi, 0x48
add esp, 0xc
mov dword [ebp + 8], 0
cmp dword [ebp + 0xc], edi
mov eax, ebx
cmovle edi, dword [ebp + 0xc]
add edi, ebx
nop dword [eax]
movzx edx, byte [eax]
inc eax
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
mov ecx, dword [ebp + 8]
cmp eax, edi
cmovae eax, ebx
xor dword [esi + ecx*4], edx
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, 0x12
jl 0x4e59a0
mov dword [ebp - 8], 0
xor edi, edi
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push esi
push eax
call fcn.004e63e0
mov eax, dword [ebp - 8]
add esp, 8
mov dword [esi + edi*4], eax
mov eax, dword [ebp - 4]
mov dword [esi + edi*4 + 4], eax
add edi, 2
cmp edi, 0x12
jl 0x4e59f2
xor edi, edi
lea eax, [ebp - 8]
push esi
push eax
call fcn.004e63e0
mov eax, dword [ebp - 8]
add esp, 8
mov dword [esi + edi*4 + 0x48], eax
mov eax, dword [ebp - 4]
mov dword [esi + edi*4 + 0x4c], eax
add edi, 2
cmp edi, 0x400
jl 0x4e5a16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret