Function at 0x58d980
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x6480b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
cmp byte [edx + 0xf1], 0xff
mov dword [ebp - 0xb8], eax
movzx eax, byte [edx + 0xf2]
push edi
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x98], edi
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0x9c], eax
jne 0x58d9ff
test dl, 0xf
je 0x58d9ff
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
test eax, eax
je 0x58da98
movups xmm0, xmmword [ecx]
push edx
lea eax, [ebp - 0x90]
push 0x10
push eax
push eax
movups xmmword [ebp - 0x90], xmm0
call fcn.0058e3d0
mov ecx, dword [ebp - 0x9c]
add esp, 0x10
mov edx, dword [ebx + 0x10]
mov esi, dword [ebx + 8]
cmp ecx, 0x10
jae 0x58da65
test edx, edx
je 0x58dd70
mov al, byte [ebp + ecx - 0x90]
dec edx
xor al, byte [esi]
inc ecx
mov byte [edi], al
inc esi
inc edi
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0xa8], edx
cmp ecx, 0x10
jl 0x58da35
jmp 0x58da71
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xa0], esi
test edx, edx
je 0x58dd70
push dword [ebp - 0xac]
call dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xa8]
add esp, 4
xor eax, eax
mov dword [ebp - 0x9c], eax
jmp 0x58daa4
mov esi, dword [ebx + 8]
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0xa0], esi
test ecx, ecx
je 0x58dd6a
mov edx, 0x80
cmp ecx, 0x80
mov eax, ecx
cmovg eax, edx
xor edx, edx
mov dword [ebp - 0xb0], edx
sub ecx, eax
mov edx, eax
mov dword [ebp - 0xa8], ecx
sar edx, 4
lea ecx, [ebp - 0x90]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xa4], edx
test edx, edx
jle 0x58db2d
mov dword [ebp - 0xb0], edx
mov edi, ecx
mov esi, edx
mov eax, dword [ebp - 0xac]
push eax
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
call dword [ebp - 0xb8]
add esp, 4
add edi, 0x10
sub esi, 1
jne 0x58daf1
mov esi, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x94], edi
mov edi, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x94]
test al, 0xf
je 0x58db46
mov eax, dword [ebp - 0xac]
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0xb0]
inc eax
movups xmmword [ecx], xmm0
jmp 0x58db4c
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xbc]
cmp byte [ecx + 0xf1], 0xff
jne 0x58db88
push eax
lea eax, [ebp - 0x90]
push eax
push eax
movzx eax, byte [ecx + 0xf0]
lea eax, [eax*2 - 0x140]
sar eax, 4
lea eax, [eax*4 + 0x648158]
push eax
push ecx
call fcn.0058dda0
add esp, 0x14
jmp 0x58db9d
push ecx
shl eax, 4
push eax
lea eax, [ebp - 0x90]
push eax
push eax
call fcn.0058e3d0
add esp, 0x10
mov eax, edi
mov dword [ebp - 0x94], 0
or eax, esi
lea ecx, [ebp - 0x90]
test al, 3
jne 0x58dc28
mov eax, ecx
test al, 3
jne 0x58dc28
mov edx, dword [ebp - 0xb4]
cmp edx, 0x10
jl 0x58dd1c
lea edi, [ebp - 0x88]
mov eax, 0x10
sub eax, edi
mov edi, dword [ebp - 0x98]
mov dword [ebp - 0xa4], eax
mov eax, dword [esi]
xor eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
xor eax, dword [esi + 4]
add dword [ebp - 0x94], 0x10
mov dword [edi + 4], eax
mov eax, dword [ecx + 8]
xor eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0xc]
add ecx, 0x10
xor eax, dword [esi + 0xc]
add esi, 0x10
mov dword [edi + 0xc], eax
add edi, 0x10
mov eax, dword [ebp - 0xa4]
add eax, 8
add eax, ecx
cmp eax, edx
jle 0x58dbe3
jmp 0x58dd10
mov edx, dword [ebp - 0xb4]
cmp edx, 0x10
jl 0x58dd1c
lea edi, [ebp - 0x8e]
mov eax, 0x10
sub eax, edi
mov edi, dword [ebp - 0x98]
mov dword [ebp - 0xa4], eax
movzx eax, byte [esi]
xor al, byte [ecx]
mov byte [edi], al
movzx eax, byte [ecx + 1]
xor al, byte [esi + 1]
mov byte [edi + 1], al
movzx eax, byte [ecx + 2]
xor al, byte [esi + 2]
mov byte [edi + 2], al
movzx eax, byte [ecx + 3]
xor al, byte [esi + 3]
mov byte [edi + 3], al
movzx eax, byte [ecx + 4]
xor al, byte [esi + 4]
mov byte [edi + 4], al
movzx eax, byte [ecx + 5]
xor al, byte [esi + 5]
mov byte [edi + 5], al
movzx eax, byte [ecx + 6]
xor al, byte [esi + 6]
mov byte [edi + 6], al
movzx eax, byte [ecx + 7]
xor al, byte [esi + 7]
mov byte [edi + 7], al
movzx eax, byte [ecx + 8]
xor al, byte [esi + 8]
mov byte [edi + 8], al
movzx eax, byte [ecx + 9]
xor al, byte [esi + 9]
mov byte [edi + 9], al
movzx eax, byte [ecx + 0xa]
xor al, byte [esi + 0xa]
mov byte [edi + 0xa], al
movzx eax, byte [ecx + 0xb]
xor al, byte [esi + 0xb]
mov byte [edi + 0xb], al
movzx eax, byte [ecx + 0xc]
xor al, byte [esi + 0xc]
add dword [ebp - 0x94], 0x10
mov byte [edi + 0xc], al
movzx eax, byte [ecx + 0xd]
xor al, byte [esi + 0xd]
mov byte [edi + 0xd], al
movzx eax, byte [ecx + 0xe]
xor al, byte [esi + 0xe]
mov byte [edi + 0xe], al
movzx eax, byte [ecx + 0xf]
add ecx, 0x10
xor al, byte [esi + 0xf]
add esi, 0x10
mov byte [edi + 0xf], al
add edi, 0x10
mov eax, dword [ebp - 0xa4]
add eax, 2
add eax, ecx
cmp eax, edx
jle 0x58dc50
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x98], edi
mov eax, dword [ebp - 0x94]
cmp eax, edx
jge 0x58dd57
sub edx, eax
mov eax, dword [ebp - 0x9c]
nop
mov al, byte [ecx + eax]
xor al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov eax, dword [ebp - 0x9c]
inc eax
mov dword [ebp - 0x9c], eax
sub edx, 1
jne 0x58dd30
mov dword [ebp - 0x98], edi
mov dword [ebp - 0xa0], esi
mov ecx, dword [ebp - 0xa8]
mov edx, 0x80
test ecx, ecx
jne 0x58dab1
mov ecx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xbc]
pop edi
pop esi
mov byte [eax + 0xf2], cl
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret