Function at 0x5d09db
Capabilities:
Encode data using xor

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [edi]
mov eax, dword [ecx]
mov dword [ebp - 0x1c], ecx
mov edx, dword [esi]
mov edi, dword [eax + 4]
mov ecx, dword [edx + 0xc]
lea ebx, [edi*8]
mov dword [ebp - 0x20], ebx
mov ebx, dword [edx + 4]
movsx edx, byte [edx + ecx]
shl ebx, 3
sub ebx, edx
mov edx, dword [eax + 0xc]
movsx eax, byte [eax + edx]
lea edx, [edi*8]
sub edx, eax
cmp ebx, edx
cmovl ebx, edx
test ebx, ebx
je 0x5d0d90
lea eax, [ebx + 0xe]
mov ecx, ebx
add ecx, 7
cmovns eax, ecx
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x1c]
sar eax, 3
add eax, 1
mov dword [esp], eax
call fcn.004a7d10
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov ecx, dword [eax]
mov eax, dword [ecx]
cmp eax, 1
jbe 0x5d0dd0
movsx eax, byte [ecx + 0xb]
shr eax, 0x1f
mov dword [esp + 4], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x1c]
add eax, 1
mov dword [esp], eax
call fcn.004a5590
mov eax, dword [ebp - 0x1c]
sub esp, 8
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
add edx, eax
cmp dword [ebp - 0x20], ebx
jl 0x5d0e10
mov ecx, ebx
and ecx, 7
jne 0x5d0de3
mov eax, dword [eax + 4]
shl eax, 3
sub eax, ebx
mov byte [edx], al
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov edx, dword [eax]
cmp edx, 1
jbe 0x5d0db2
movsx edx, byte [eax + 0xb]
mov edi, dword [ebp - 0x1c]
mov ecx, edi
shr edx, 0x1f
mov dword [esp + 4], edx
mov eax, dword [eax + 4]
add eax, 1
mov dword [esp], eax
call fcn.004a5590
mov eax, dword [edi]
sub esp, 8
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [edx + 1]
mov edi, eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
add eax, edi
mov edi, dword [esi]
mov ebx, dword [edi + 0xc]
mov ecx, edi
mov dword [ebp - 0x2c], edi
lea esi, [ebx + 1]
mov dword [ebp - 0x20], ebx
add ecx, esi
mov dword [ebp - 0x34], esi
mov esi, dword [edi + 4]
cmp esi, 1
lea edi, [esi - 2]
jle 0x5d0d77
lea ebx, [esi - 1]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x28]
lea edx, [ebx + edx + 0x11]
mov ebx, dword [ebp - 0x20]
cmp ecx, edx
mov edx, dword [ebp - 0x2c]
setae byte [ebp - 0x24]
lea ebx, [edx + ebx + 0x11]
movzx edx, byte [ebp - 0x24]
cmp eax, ebx
setae bl
or dl, bl
je 0x5d0e40
cmp dword [ebp - 0x30], 0x12
jbe 0x5d0e40
mov edx, eax
neg edx
and edx, 0xf
lea ebx, [edx + 0xf]
cmp edi, ebx
jb 0x5d0d60
test edx, edx
je 0x5d0e5b
lea edi, [ecx + 1]
movzx ebx, byte [ecx]
xor byte [eax], bl
cmp edx, 1
mov dword [ebp - 0x20], edi
lea edi, [eax + 1]
mov dword [ebp - 0x24], edi
lea edi, [esi - 3]
je 0x5d0d11
lea edi, [ecx + 2]
movzx ebx, byte [ecx + 1]
xor byte [eax + 1], bl
cmp edx, 2
mov dword [ebp - 0x20], edi
lea edi, [eax + 2]
mov dword [ebp - 0x24], edi
lea edi, [esi - 4]
je 0x5d0d11
lea edi, [ecx + 3]
movzx ebx, byte [ecx + 2]
xor byte [eax + 2], bl
cmp edx, 3
mov dword [ebp - 0x20], edi
lea edi, [eax + 3]
mov dword [ebp - 0x24], edi
lea edi, [esi - 5]
je 0x5d0d11
lea edi, [ecx + 4]
movzx ebx, byte [ecx + 3]
xor byte [eax + 3], bl
cmp edx, 4
mov dword [ebp - 0x20], edi
lea edi, [eax + 4]
mov dword [ebp - 0x24], edi
lea edi, [esi - 6]
je 0x5d0d11
lea edi, [ecx + 5]
movzx ebx, byte [ecx + 4]
xor byte [eax + 4], bl
cmp edx, 5
mov dword [ebp - 0x20], edi
lea edi, [eax + 5]
mov dword [ebp - 0x24], edi
lea edi, [esi - 7]
je 0x5d0d11
lea edi, [ecx + 6]
movzx ebx, byte [ecx + 5]
xor byte [eax + 5], bl
cmp edx, 6
mov dword [ebp - 0x20], edi
lea edi, [eax + 6]
mov dword [ebp - 0x24], edi
lea edi, [esi - 8]
je 0x5d0d11
lea edi, [ecx + 7]
movzx ebx, byte [ecx + 6]
xor byte [eax + 6], bl
cmp edx, 7
mov dword [ebp - 0x20], edi
lea edi, [eax + 7]
mov dword [ebp - 0x24], edi
lea edi, [esi - 9]
je 0x5d0d11
lea edi, [ecx + 8]
movzx ebx, byte [ecx + 7]
xor byte [eax + 7], bl
cmp edx, 8
mov dword [ebp - 0x20], edi
lea edi, [eax + 8]
mov dword [ebp - 0x24], edi
lea edi, [esi - 0xa]
je 0x5d0d11
lea edi, [ecx + 9]
movzx ebx, byte [ecx + 8]
xor byte [eax + 8], bl
cmp edx, 9
mov dword [ebp - 0x20], edi
lea edi, [eax + 9]
mov dword [ebp - 0x24], edi
lea edi, [esi - 0xb]
je 0x5d0d11
lea edi, [ecx + 0xa]
movzx ebx, byte [ecx + 9]
xor byte [eax + 9], bl
cmp edx, 0xa
mov dword [ebp - 0x20], edi
lea edi, [eax + 0xa]
mov dword [ebp - 0x24], edi
lea edi, [esi - 0xc]
je 0x5d0d11
lea edi, [ecx + 0xb]
movzx ebx, byte [ecx + 0xa]
xor byte [eax + 0xa], bl
cmp edx, 0xb
mov dword [ebp - 0x20], edi
lea edi, [eax + 0xb]
mov dword [ebp - 0x24], edi
lea edi, [esi - 0xd]
je 0x5d0d11
lea edi, [ecx + 0xc]
movzx ebx, byte [ecx + 0xb]
xor byte [eax + 0xb], bl
cmp edx, 0xc
mov dword [ebp - 0x20], edi
lea edi, [eax + 0xc]
mov dword [ebp - 0x24], edi
lea edi, [esi - 0xe]
je 0x5d0d11
lea edi, [ecx + 0xd]
movzx ebx, byte [ecx + 0xc]
xor byte [eax + 0xc], bl
cmp edx, 0xd
mov dword [ebp - 0x20], edi
lea edi, [eax + 0xd]
mov dword [ebp - 0x24], edi
lea edi, [esi - 0xf]
je 0x5d0d11
lea edi, [ecx + 0xe]
movzx ebx, byte [ecx + 0xd]
xor byte [eax + 0xd], bl
cmp edx, 0xf
mov dword [ebp - 0x20], edi
lea edi, [eax + 0xe]
mov dword [ebp - 0x24], edi
lea edi, [esi - 0x10]
jne 0x5d0d11
lea edi, [ecx + 0xf]
movzx ecx, byte [ecx + 0xe]
xor byte [eax + 0xe], cl
mov dword [ebp - 0x20], edi
lea edi, [eax + 0xf]
mov dword [ebp - 0x24], edi
lea edi, [esi - 0x11]
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov ebx, dword [ebp - 0x34]
sub eax, edx
add ebx, edx
add edx, dword [ebp - 0x38]
add ebx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x28]
mov esi, eax
mov dword [ebp - 0x30], eax
shr esi, 4
xor eax, eax
movdqu xmm0, xmmword [ebx + eax]
add ecx, 1
pxor xmm0, xmmword [edx + eax]
movaps xmmword [edx + eax], xmm0
add eax, 0x10
cmp esi, ecx
ja 0x5d0d30
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, esi
and edx, 0xfffffff0
add eax, edx
add ecx, edx
sub edi, edx
cmp esi, edx
je 0x5d0d77
lea esi, [edi + 1]
xor ebx, ebx
movzx edx, byte [ecx + ebx]
xor byte [eax + ebx], dl
add ebx, 1
mov edx, esi
sub edx, ebx
test edx, edx
jg 0x5d0d65
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret 4
mov ecx, dword [ebp - 0x1c]
mov dword [esp], 0
call fcn.004a7d10
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov eax, dword [eax]
mov edx, dword [eax]
cmp edx, 1
ja 0x5d0aaf
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x28], eax
cmp edx, 0x10
jne 0x5d0aaf
jmp 0x5d0ad8
mov edx, dword [ecx + 0xc]
mov eax, ecx
cmp edx, 0x10
jne 0x5d0a58
jmp 0x5d0a7f
mov eax, dword [ebp - 0x24]
test ebx, ebx
mov edi, 1
cmovns eax, ebx
shl edi, cl
sar eax, 3
lea ecx, [edi - 1]
and byte [edx + eax + 1], cl
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
jmp 0x5d0a95
mov eax, dword [eax + 4]
mov dword [esp + 4], 0
mov dword [ebp - 0x20], edx
sub eax, edi
add edi, edx
mov dword [esp + 8], eax
mov dword [esp], edi
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax]
jmp 0x5d0a95
mov edi, dword [ebp - 0x30]
add edi, ecx
add ecx, 1
add eax, 1
movzx edx, byte [ecx - 1]
xor byte [eax - 1], dl
cmp ecx, edi
jne 0x5d0e45
jmp 0x5d0d77
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
jmp 0x5d0d11