joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4daf60
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.004db180
add esp, 0xc
test eax, eax
js 0x4db172
mov eax, dword [esi + 0xf0]
push ebx
push edi
xor ebx, ebx
lea edi, [eax*4]
test edi, edi
jle 0x4dafe9
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 0x4dafa0
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0xf0]
mov ebx, 1
cmp eax, ebx
jle 0x4db16e
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 + 0x5b9b70]
mov eax, edx
shr eax, 0x18
mov ecx, dword [ecx*4 + 0x5baf70]
movzx eax, byte [eax*4 + 0x5b9b70]
xor ecx, dword [eax*4 + 0x5ba770]
movzx eax, byte [edi - 2]
movzx eax, byte [eax*4 + 0x5b9b70]
xor ecx, dword [eax*4 + 0x5bab70]
movzx eax, dl
mov edx, dword [edi]
movzx eax, byte [eax*4 + 0x5b9b70]
xor ecx, dword [eax*4 + 0x5bb370]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi - 4], ecx
movzx ecx, byte [eax*4 + 0x5b9b70]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5bab70]
movzx eax, byte [eax*4 + 0x5b9b70]
xor ecx, dword [eax*4 + 0x5baf70]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5b9b70]
xor ecx, dword [eax*4 + 0x5ba770]
movzx eax, dl
mov edx, dword [edi + 4]
movzx eax, byte [eax*4 + 0x5b9b70]
xor ecx, dword [eax*4 + 0x5bb370]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi], ecx
movzx ecx, byte [eax*4 + 0x5b9b70]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5bab70]
movzx eax, byte [eax*4 + 0x5b9b70]
xor ecx, dword [eax*4 + 0x5baf70]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5b9b70]
xor ecx, dword [eax*4 + 0x5ba770]
movzx eax, dl
mov edx, dword [edi + 8]
movzx eax, byte [eax*4 + 0x5b9b70]
xor ecx, dword [eax*4 + 0x5bb370]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi + 4], ecx
movzx ecx, byte [eax*4 + 0x5b9b70]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5bab70]
movzx eax, byte [eax*4 + 0x5b9b70]
xor ecx, dword [eax*4 + 0x5baf70]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5b9b70]
xor ecx, dword [eax*4 + 0x5ba770]
movzx eax, dl
movzx eax, byte [eax*4 + 0x5b9b70]
xor ecx, dword [eax*4 + 0x5bb370]
mov dword [edi + 8], ecx
cmp ebx, dword [esi + 0xf0]
jl 0x4db000
pop edi
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x4dbaa0
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 0x4dbad8
mov edx, dword [ebp + 0x1c]
test esi, esi
je 0x4dbad8
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 0x4dbac1
cmp esi, 0x10
jb 0x4dbb57
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 0x4dbb13
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.004dbd00
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 0x4dbb30
sub esi, 0x10
add edi, 0x10
add ebx, 0x10
sub dword [ebp - 4], 1
jne 0x4dbb10
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
test esi, esi
je 0x4dbb93
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call dword [ebp + 0x24]
push dword [ebp + 0x18]
call fcn.004dbd00
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 0x4dbb81
mov eax, dword [ebp + 0x20]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dbba0
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 0x4dbbde
mov ecx, dword [ebp + 0x1c]
test esi, esi
je 0x4dbbde
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 0x4dbbc4
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 0x4dbc75
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 0x4dbc55
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 0x4dbc40
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 0x4dbbf7
mov edi, dword [ebp - 8]
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x10], ecx
test esi, esi
je 0x4dbce6
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 0x4dbcc5
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 0x4dbcb0
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 0x4dbcd4
mov eax, dword [ebp + 0x20]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dbd30
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 0x4dbd68
mov edx, dword [ebp + 0x18]
test edi, edi
je 0x4dbd68
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 0x4dbd51
cmp edi, 0x10
jb 0x4dbde7
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 0x4dbd9b
mov edx, dword [ebp + 0x18]
push dword [ebp + 0x14]
push edx
push edx
call dword [ebp + 0x20]
add esp, 0xc
cmp esi, 0x10
jae 0x4dbdd2
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 0x4dbdc0
add dword [ebp - 4], 0x10
sub edi, 0x10
add ebx, 0x10
xor esi, esi
sub dword [ebp - 8], 1
jne 0x4dbd98
mov ebx, dword [ebp - 0x10]
test edi, edi
je 0x4dbe22
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 0x4dbe10
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dbfb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
sub esp, 0x18
cmp dword [ebp + 0x20], 0
push ebx
push esi
mov esi, dword [eax]
push edi
je 0x4dc0c8
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 0x20], ecx
test esi, esi
je 0x4dbffc
mov edx, dword [ebp + 0x18]
nop dword [eax + eax]
test edi, edi
je 0x4dbffc
movzx eax, byte [ecx]
dec edi
xor byte [esi + edx], al
inc ecx
movzx eax, byte [esi + edx]
inc esi
mov byte [ebx], al
inc ebx
mov dword [ebp + 0x20], ecx
and esi, 0xf
jne 0x4dbfe0
cmp edi, 0x10
jb 0x4dc080
mov edx, dword [ebp + 0x18]
mov eax, ebx
sub eax, edx
mov dword [ebp - 0x10], eax
mov eax, ecx
sub eax, edx
mov dword [ebp - 8], eax
mov eax, edi
shr eax, 4
mov dword [ebp - 0xc], eax
shl eax, 4
add ebx, eax
add ecx, eax
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0x20], ecx
jmp 0x4dc033
mov edx, dword [ebp + 0x18]
push dword [ebp + 0x14]
push edx
push edx
call dword [ebp + 0x24]
add esp, 0xc
cmp esi, 0x10
jae 0x4dc06b
mov ecx, dword [ebp + 0x18]
mov edx, 0xf
sub edx, esi
add ecx, esi
mov esi, dword [ebp - 8]
shr edx, 2
inc edx
mov eax, dword [esi + ecx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
mov eax, dword [ecx - 4]
mov dword [ebx + ecx - 4], eax
sub edx, 1
jne 0x4dc056
add dword [ebp - 8], 0x10
sub edi, 0x10
add ebx, 0x10
xor esi, esi
sub dword [ebp - 0xc], 1
jne 0x4dc030
mov ebx, dword [ebp - 4]
test edi, edi
je 0x4dc1ed
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
push eax
push eax
call dword [ebp + 0x24]
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 0x20]
sub ebx, eax
sub edx, eax
lea ecx, [esi + eax]
add esi, edi
movzx eax, byte [ecx + edx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
movzx eax, byte [ecx - 1]
mov byte [ecx + ebx - 1], al
sub edi, 1
jne 0x4dc0a5
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
test esi, esi
je 0x4dc108
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x20], edx
test ebx, ebx
je 0x4dc10e
mov al, byte [esi + eax]
dec ebx
mov cl, byte [edx]
inc edx
xor al, cl
mov dword [ebp + 0x20], edx
mov byte [edi], al
inc edi
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
mov byte [esi + eax], cl
inc esi
and esi, 0xf
jne 0x4dc0e1
jmp 0x4dc10e
mov eax, dword [ebp + 8]
mov dword [ebp + 0x20], eax
mov edx, dword [ebp + 0x24]
cmp ebx, 0x10
jb 0x4dc1a2
mov ecx, dword [ebp + 0x18]
mov eax, edi
sub eax, ecx
mov dword [ebp - 0xc], eax
invalid
Function at 0x4dc200
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 0x4dc21a
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 0x4dc2ed
jb 0x4dc23e
test eax, eax
jne 0x4dc2ed
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 0x4dc29d
test esi, esi
je 0x4dc26f
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 0x4dc256
jmp 0x4dc276
mov dword [ebp - 4], edx
test edi, edi
jne 0x4dc28e
lea eax, [ecx + 0x60]
push eax
push edx
mov dword [ebp - 8], eax
call fcn.004dd4f0
mov edx, dword [ebp - 4]
add esp, 8
mov ecx, dword [ebp - 8]
jmp 0x4dc2a3
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 0x4dc2bf
push eax
push ebx
push ecx
push edx
call fcn.004dd320
add ebx, dword [ebp - 8]
add esp, 0x10
sub esi, dword [ebp - 8]
test esi, esi
je 0x4dc2db
xor ecx, ecx
mov edi, esi
test esi, esi
je 0x4dc2db
mov edx, dword [ebp - 4]
nop
mov al, byte [ecx + ebx]
xor byte [edx + ecx], al
inc ecx
cmp ecx, esi
jb 0x4dc2d0
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 0x4dd040
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 0x4dd0a5
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 0x4dd1b7
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 0x4dd150
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 0x4dd100
push dword [ebp - 4]
mov edi, dword [ebp - 8]
push edi
call fcn.004dd4f0
mov ecx, dword [ebp - 0xc]
add esp, 8
add esi, 0x10
sub ebx, 0x10
sub dword [ebp + 0x10], 1
jne 0x4dd0f0
mov dword [ebp + 0x10], esi
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
jmp 0x4dd153
mov edx, dword [ebp + 0xc]
test ebx, ebx
je 0x4dd178
xor ecx, ecx
test ebx, ebx
je 0x4dd16b
nop dword [eax]
mov al, byte [ecx + edx]
xor byte [edi + ecx], al
inc ecx
cmp ecx, ebx
jb 0x4dd160
lea eax, [esi + 0x60]
push eax
push edi
call fcn.004dd4f0
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.004dd4f0
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 0x4dd4f0
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 + 0x5bb948]
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 + 0x5bb948]
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 + 0x5bb948]
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 0x4dd570
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 0x4ddca0
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 0x4ddcd0
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 0x4ddd03
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 0x4ddcf0
movzx eax, byte [esi + 0xf]
mov edi, dword [ebp + 0x14]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, edi
je 0x4ddd1e
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
shr edi, 4
test edi, edi
je 0x4ddd5e
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 0x4dddbe
shr edi, 4
push edi
push esi
call fcn.004de430
add esp, 8
jmp 0x4ddd6a
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 0x4dddbe
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 0x4dddb3
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 0x4ddd96
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 0x4ddde0
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