joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57a4a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x80
xor edx, edx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [esi]
test ebx, ebx
je 0x57a4dd
cmp ebx, eax
je 0x57a4d4
test ecx, ecx
je 0x57a65f
test edi, edi
js 0x57a65f
mov edx, 1
mov dword [esi], ebx
jmp 0x57a4e7
test eax, eax
je 0x57a65f
mov ebx, eax
test ecx, ecx
je 0x57a5ad
push ebx
call fcn.004feea0
add esp, 4
mov dword [ebp + 0x14], eax
cmp eax, 0x80
jle 0x57a519
push 0x28
push str.........prog3rdPartyLibsopenssl_1.1cryptohmachmac.c
push str.assertion_failed:_j____int_sizeof_ctx__key_
call fcn.005af0a0
mov eax, dword [ebp + 0x14]
add esp, 0xc
cmp eax, edi
jge 0x57a56b
push dword [ebp + 0x18]
push ebx
push dword [esi + 4]
call fcn.004fb010
add esp, 0xc
test eax, eax
je 0x57a65f
mov eax, dword [ebp + 0xc]
push edi
push eax
push dword [esi + 4]
call fcn.004fb1c0
add esp, 0xc
test eax, eax
je 0x57a65f
lea edi, [esi + 0x10]
push edi
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.004faf70
add esp, 0xc
test eax, eax
je 0x57a65f
mov edi, dword [edi]
jmp 0x57a58b
cmp edi, 0x80
ja 0x57a65f
mov eax, dword [ebp + 0xc]
push edi
push eax
lea eax, [esi + 0x14]
push eax
call fcn.005d67e0
add esp, 0xc
mov dword [esi + 0x10], edi
cmp edi, 0x80
je 0x57a5b5
mov eax, 0x80
sub eax, edi
push eax
lea eax, [esi + 0x14]
add eax, edi
push 0
push eax
call fcn.005d6d60
add esp, 0xc
jmp 0x57a5b5
test edx, edx
je 0x57a641
xor ecx, ecx
nop word [eax + eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [ebp + ecx - 0x80], al
inc ecx
cmp ecx, 0x80
jl 0x57a5c0
mov edi, dword [ebp + 0x18]
push edi
push ebx
push dword [esi + 8]
call fcn.004fb010
add esp, 0xc
test eax, eax
je 0x57a65f
push ebx
call fcn.004feea0
push eax
lea eax, [ebp - 0x80]
push eax
push dword [esi + 8]
call fcn.004fb1c0
add esp, 0x10
test eax, eax
je 0x57a65f
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [ebp + ecx - 0x80], al
inc ecx
cmp ecx, 0x80
jl 0x57a603
push edi
push ebx
push dword [esi + 0xc]
call fcn.004fb010
add esp, 0xc
test eax, eax
je 0x57a65f
push ebx
call fcn.004feea0
push eax
lea eax, [ebp - 0x80]
push eax
push dword [esi + 0xc]
call fcn.004fb1c0
add esp, 0x10
test eax, eax
je 0x57a65f
push dword [esi + 8]
push dword [esi + 4]
call fcn.004fb340
add esp, 8
test eax, eax
je 0x57a65f
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57ccd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [ebp + 0x18]
lea edx, [eax + 1]
mov dword [ebp - 4], 0
movzx ecx, byte [edx + 3]
movzx ebx, byte [eax]
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x14], ebx
movzx eax, byte [edx + 5]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp - 8]
shl ecx, 8
or ecx, eax
mov byte [ebp - 0xc], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
mov edi, dword [ebp + 0x1c]
mov byte [ebp - 5], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov esi, dword [edi]
mov byte [ebp - 8], dl
test eax, eax
je 0x57ce3d
mov edi, dword [ebp + 0xc]
sub dword [ebp + 8], edi
nop word [eax + eax]
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x57cdde
push 1
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
call fcn.0054c850
mov ebx, dword [ebp - 0x14]
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov eax, ebx
shr eax, 8
mov ecx, dword [ebp - 4]
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
inc ecx
mov byte [ebp - 0xc], bl
mov byte [ebp - 8], dl
mov byte [ebp - 5], al
mov dword [ebp - 4], ecx
jmp 0x57cde1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov al, byte [eax + edi]
xor al, byte [ebp + esi - 0xc]
inc esi
mov byte [edi], al
and esi, 7
mov eax, dword [ebp + 0x10]
inc edi
test eax, eax
jne 0x57cd80
test ecx, ecx
je 0x57ce31
mov edi, dword [ebp + 0x18]
mov eax, ebx
shr eax, 8
mov byte [edi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, edx
shr eax, 8
mov byte [edi + 5], al
mov eax, edx
mov byte [edi], bl
shr ebx, 0x18
shr eax, 0x10
mov byte [edi + 4], dl
shr edx, 0x18
mov byte [edi + 3], bl
mov byte [edi + 6], al
mov byte [edi + 7], dl
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57d840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
push ebx
push esi
push edi
movzx ebx, byte [eax]
lea edi, [eax + 1]
mov edx, edi
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x10], edi
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
mov esi, dword [esi]
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x18], ebx
movzx eax, byte [edx + 5]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp - 8]
shl ecx, 8
or ecx, eax
mov byte [ebp - 0xc], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x14], edx
mov byte [ebp - 8], dl
mov byte [ebp - 5], al
je 0x57d9a3
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub edi, ecx
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x57d950
push dword [ebp + 0x1c]
lea eax, [ebp - 0x18]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
call fcn.0054e8a0
mov ebx, dword [ebp - 0x18]
add esp, 0x10
mov edx, dword [ebp - 0x14]
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xb], al
mov eax, ebx
mov ecx, dword [ebp + 0xc]
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
inc dword [ebp - 4]
mov byte [ebp - 0xc], bl
mov byte [ebp - 8], dl
mov byte [ebp - 5], al
mov al, byte [edi + ecx]
xor al, byte [ebp + esi - 0xc]
inc esi
mov byte [ecx], al
and esi, 7
mov eax, dword [ebp + 0x10]
inc ecx
mov dword [ebp + 0xc], ecx
test eax, eax
jne 0x57d8f1
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 4], eax
je 0x57d9a3
mov eax, dword [ebp + 0x20]
mov byte [edi + 3], dl
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [edi], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr eax, 8
mov byte [edi + 4], al
mov eax, edx
shr ebx, 0x18
shr eax, 0x10
shr edx, 0x18
mov byte [edi + 2], bl
mov byte [edi + 5], al
mov byte [edi + 6], dl
mov eax, dword [ebp + 0x24]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57f0d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [ebp + 0x18]
lea edx, [eax + 1]
mov dword [ebp - 4], 0
movzx ecx, byte [edx + 3]
movzx ebx, byte [eax]
movzx eax, byte [edx]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 2]
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0x14], ebx
movzx eax, byte [edx + 6]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [ebp - 8]
shl ecx, 8
or ecx, eax
mov byte [ebp - 9], bl
mov eax, ebx
or edx, ecx
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, edx
shr eax, 8
mov edi, dword [ebp + 0x1c]
mov byte [ebp - 6], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov esi, dword [edi]
mov byte [ebp - 5], dl
test eax, eax
je 0x57f23f
mov edi, dword [ebp + 0xc]
sub dword [ebp + 8], edi
nop word [eax + eax]
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x57f1dc
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
call fcn.0057e730
mov ebx, dword [ebp - 0x14]
add esp, 8
mov edx, dword [ebp - 0x10]
mov eax, ebx
shr eax, 0x18
mov ecx, dword [ebp - 4]
mov byte [ebp - 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, edx
shr eax, 8
inc ecx
mov byte [ebp - 9], bl
mov byte [ebp - 6], al
mov byte [ebp - 5], dl
mov dword [ebp - 4], ecx
jmp 0x57f1df
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov al, byte [eax + edi]
xor al, byte [ebp + esi - 0xc]
inc esi
mov byte [edi], al
and esi, 7
mov eax, dword [ebp + 0x10]
inc edi
test eax, eax
jne 0x57f180
test ecx, ecx
je 0x57f233
mov edi, dword [ebp + 0x18]
mov eax, ebx
shr eax, 0x18
mov byte [edi], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, ebx
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 4], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, edx
shr eax, 8
mov byte [edi + 3], bl
mov byte [edi + 6], al
mov byte [edi + 7], dl
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57f250
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, 0x80
mov edx, ebx
cmp dword [ebp + 0xc], edx
push esi
cmovle edx, dword [ebp + 0xc]
test eax, eax
mov esi, dword [ebp + 8]
push edi
mov edi, 0x400
mov ecx, edi
cmovg ecx, eax
mov byte [esi], 0
cmp ecx, edi
cmovg ecx, edi
mov dword [ebp + 0xc], ecx
test edx, edx
jle 0x57f2a1
sub dword [ebp + 0x10], esi
mov ecx, esi
mov esi, dword [ebp + 0x10]
mov edi, edx
nop
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edi, 1
jne 0x57f290
mov esi, dword [ebp + 8]
movzx edi, byte [edx + esi - 1]
cmp edx, ebx
jge 0x57f2cc
mov ecx, esi
nop dword [eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
add eax, edi
movzx eax, al
mov al, byte [eax + 0x643090]
mov byte [edx + esi], al
inc edx
movzx edi, al
cmp edx, ebx
jl 0x57f2b0
mov ecx, dword [ebp + 0xc]
mov edx, 0xff
lea eax, [ecx + 7]
neg ecx
sar eax, 3
and ecx, 7
sub ebx, eax
mov dword [ebp + 8], eax
movzx eax, byte [ebx + esi]
lea edi, [ebx + esi]
sar edx, cl
and edx, eax
mov al, byte [edx + 0x643090]
movzx ecx, al
mov byte [edi], al
test ebx, ebx
je 0x57f31b
mov edx, dword [ebp + 8]
movzx eax, byte [edi + edx - 1]
lea edi, [edi - 1]
xor eax, ecx
mov al, byte [eax + 0x643090]
movzx ecx, al
mov byte [edi], al
sub ebx, 1
jne 0x57f301
lea edi, [esi + 0xfc]
mov edx, 0x7f
nop word [eax + eax]
movzx ecx, byte [edx + esi]
lea edi, [edi - 4]
movzx eax, byte [edx + esi - 1]
shl ecx, 8
or ecx, eax
sub edx, 2
mov dword [edi + 4], ecx
jns 0x57f330
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x57fd10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [ebp + 0x18]
lea edx, [eax + 1]
mov dword [ebp - 4], 0
movzx ecx, byte [edx + 3]
movzx ebx, byte [eax]
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x14], ebx
movzx eax, byte [edx + 5]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp - 8]
shl ecx, 8
or ecx, eax
mov byte [ebp - 0xc], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
mov edi, dword [ebp + 0x1c]
mov byte [ebp - 5], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov esi, dword [edi]
mov byte [ebp - 8], dl
test eax, eax
je 0x57fe7b
mov edi, dword [ebp + 0xc]
sub dword [ebp + 8], edi
nop word [eax + eax]
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x57fe1c
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
call fcn.0057f9f0
mov ebx, dword [ebp - 0x14]
add esp, 8
mov edx, dword [ebp - 0x10]
mov eax, ebx
shr eax, 8
mov ecx, dword [ebp - 4]
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
inc ecx
mov byte [ebp - 0xc], bl
mov byte [ebp - 8], dl
mov byte [ebp - 5], al
mov dword [ebp - 4], ecx
jmp 0x57fe1f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov al, byte [eax + edi]
xor al, byte [ebp + esi - 0xc]
inc esi
mov byte [edi], al
and esi, 7
mov eax, dword [ebp + 0x10]
inc edi
test eax, eax
jne 0x57fdc0
test ecx, ecx
je 0x57fe6f
mov edi, dword [ebp + 0x18]
mov eax, ebx
shr eax, 8
mov byte [edi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, edx
shr eax, 8
mov byte [edi + 5], al
mov eax, edx
mov byte [edi], bl
shr ebx, 0x18
shr eax, 0x10
mov byte [edi + 4], dl
shr edx, 0x18
mov byte [edi + 3], bl
mov byte [edi + 6], al
mov byte [edi + 7], dl
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5802d0
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 0x580308
mov edx, dword [ebp + 0x1c]
test esi, esi
je 0x580308
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 0x5802f1
cmp esi, 0x10
jb 0x580387
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 0x580343
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.00580520
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 0x580360
sub esi, 0x10
add edi, 0x10
add ebx, 0x10
sub dword [ebp - 4], 1
jne 0x580340
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
test esi, esi
je 0x5803c3
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call dword [ebp + 0x24]
push dword [ebp + 0x18]
call fcn.00580520
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 0x5803b1
mov eax, dword [ebp + 0x20]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5803d0
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 0x58040e
mov ecx, dword [ebp + 0x1c]
test esi, esi
je 0x58040e
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 0x5803f4
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0xc]
bswap ecx
mov dword [ebp + 0x10], ecx
cmp esi, 0x10
jb 0x5804a1
mov edi, eax
mov eax, dword [ebp + 0x10]
mov ecx, esi
mov edx, dword [ebp + 0x10]
shr ecx, 4
neg edx
add eax, ecx
cmp eax, ecx
push edi
push dword [ebp + 0x14]
cmovae edx, ecx
mov dword [ebp - 0xc], edx
xor edx, edx
push dword [ebp - 0xc]
cmp eax, ecx
mov ecx, edx
mov edx, dword [ebp - 4]
cmovae ecx, eax
push ebx
push edx
mov dword [ebp + 0x10], ecx
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 0x580486
mov edx, 0xc
mov eax, 1
movzx ecx, byte [edx + edi - 1]
dec edx
add eax, ecx
mov byte [edx + edi], al
shr eax, 8
test edx, edx
jne 0x580471
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
shl eax, 4
add dword [ebp - 4], eax
sub esi, eax
add ebx, eax
cmp esi, 0x10
jae 0x580424
mov edi, dword [ebp - 8]
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x10], ecx
test esi, esi
je 0x580512
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 eax, dword [ebp + 0x10]
add esp, 0x14
mov edx, dword [ebp + 0x18]
add eax, 1
bswap eax
mov dword [edx + 0xc], eax
jne 0x5804eb
mov edi, 0xc
mov ecx, 1
movzx eax, byte [edi + edx - 1]
dec edi
add ecx, eax
mov byte [edi + edx], cl
shr ecx, 8
test edi, edi
jne 0x5804d6
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
nop word [eax + eax]
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub esi, 1
jne 0x580500
mov eax, dword [ebp + 0x20]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x580550
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 0x580588
mov edx, dword [ebp + 0x18]
test edi, edi
je 0x580588
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 0x580571
cmp edi, 0x10
jb 0x580607
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 0x5805bb
mov edx, dword [ebp + 0x18]
push dword [ebp + 0x14]
push edx
push edx
call dword [ebp + 0x20]
add esp, 0xc
cmp esi, 0x10
jae 0x5805f2
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 0x5805e0
add dword [ebp - 4], 0x10
sub edi, 0x10
add ebx, 0x10
xor esi, esi
sub dword [ebp - 8], 1
jne 0x5805b8
mov ebx, dword [ebp - 0x10]
test edi, edi
je 0x580642
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 0x580630
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x580a30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x160]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0x164]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x38]
or eax, dword [ecx + 0x3c]
je 0x580a5c
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 0x580b24
jb 0x580a80
test eax, eax
jne 0x580b24
push ebx
mov dword [ecx + 0x34], edx
mov edx, dword [ecx + 0x16c]
mov dword [ecx + 0x30], eax
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 0xc]
test edx, edx
je 0x580ad8
test esi, esi
je 0x580ac9
mov al, byte [edi]
dec esi
xor byte [edx + ecx + 0x40], al
inc edi
inc edx
and edx, 0xf
mov dword [ebp - 4], edx
jne 0x580a98
lea eax, [ecx + 0x60]
lea ebx, [ecx + 0x40]
mov dword [ebp - 0xc], eax
push eax
push ebx
call dword [ebp - 8]
mov eax, dword [ebp - 4]
add esp, 8
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jmp 0x580ade
pop edi
pop ebx
mov dword [ecx + 0x16c], edx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ecx + 0x60]
lea ebx, [ecx + 0x40]
mov eax, esi
and eax, 0xfffffff0
mov dword [ebp - 0xc], eax
je 0x580af8
push eax
push edi
push edx
push ebx
call dword [ebp - 0x10]
add edi, dword [ebp - 0xc]
add esp, 0x10
sub esi, dword [ebp - 0xc]
test esi, esi
je 0x580b0f
mov dword [ebp - 4], esi
nop
mov al, byte [edi]
lea edi, [edi + 1]
xor byte [ebx], al
lea ebx, [ebx + 1]
sub esi, 1
jne 0x580b00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
mov dword [eax + 0x16c], ecx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret