Function at 0x5b32a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
xor eax, eax
mov dword [esp + 0x18], edx
cmp dword [ecx], eax
push ebx
mov ebx, dword [ebp + 0x1c]
sete al
push esi
add ebx, 0xffffffff
mov dword [esp + 0xc], ecx
push edi
mov edi, dword [ebp + 0x18]
mov esi, 0xd
mov dword [esp + 0x1c], 0
mov edx, ebx
mov dword [esp + 0x18], eax
js 0x5b32ab8
nop dword [eax]
movzx ecx, byte [edx + edi]
lea eax, [esi*8]
xor ecx, eax
xor esi, ecx
sub edx, 1
jns 0x5b32aa0
mov ecx, dword [esp + 0x10]
movzx edx, byte [ebp + 0x14]
lea eax, [esi*8]
xor eax, edx
mov dword [esp + 0x20], edx
xor eax, esi
xor edx, edx
div dword [ecx + 0xc]
mov esi, dword [ecx + 0x14]
mov eax, edx
mov dword [esp + 0x14], eax
shl eax, 2
mov esi, dword [eax + esi]
test esi, esi
je 0x5b32bf4
mov al, byte [ebp + 0x14]
nop word [eax + eax]
cmp byte [esi + 0x28], al
jne 0x5b32b56
mov eax, dword [ebp + 0x1c]
cmp dword [esi + 0x14], eax
jne 0x5b32b53
mov edx, edi
lea ecx, [esi + 0x29]
mov edi, eax
sub edi, 4
jb 0x5b32b21
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5b32b26
add ecx, 4
add edx, 4
sub edi, 4
jae 0x5b32b10
cmp edi, 0xfffffffc
je 0x5b32b65
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x5b32b53
cmp edi, 0xfffffffd
je 0x5b32b65
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x5b32b53
cmp edi, 0xfffffffe
je 0x5b32b65
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x5b32b53
cmp edi, 0xffffffff
je 0x5b32b65
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x5b32b65
mov al, byte [ebp + 0x14]
mov esi, dword [esi]
test esi, esi
je 0x5b32bf0
mov edi, dword [ebp + 0x18]
jmp 0x5b32af0
mov ecx, dword [esi + 8]
mov eax, ecx
sub eax, dword [esi + 0x10]
cmp eax, 0x16
jge 0x5b32bd8
lea eax, [ecx + ecx]
cdq
mov edi, eax
mov ebx, edx
call fcn.05b7ef20
test eax, eax
jne 0x5b32ecb
push ebx
push edi
mov ecx, esi
call fcn.05c20900
add esp, 8
test eax, eax
je 0x5b32ecb
mov ebx, dword [esp + 0x10]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x14]
mov edx, dword [ebx + 0x14]
lea ecx, [edi*4]
add edx, ecx
mov ecx, dword [edx]
cmp ecx, esi
je 0x5b32bc0
mov edx, ecx
mov ecx, dword [edx]
cmp ecx, esi
jne 0x5b32bb8
mov edi, dword [ebp + 0xc]
mov esi, eax
mov dword [edx], eax
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x10]
neg eax
mov dword [esp + 0x1c], eax
jmp 0x5b32d5d
mov eax, dword [esi + 0x10]
mov ebx, dword [esp + 0x10]
neg eax
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
jmp 0x5b32d5d
mov ecx, dword [esp + 0x10]
mov edi, dword [ebp + 0x1c]
add edi, 0x6a
xor esi, esi
jg 0x5b32c0f
jl 0x5b32c08
cmp edi, 0x80
jae 0x5b32c0f
mov edi, 0x80
xor esi, esi
mov eax, dword [ecx + 8]
add eax, eax
cmp eax, dword [ecx + 0xc]
jl 0x5b32c62
call fcn.05b32fd0
test eax, eax
jne 0x5b32ed0
lea edx, [eax + 0xd]
test ebx, ebx
js 0x5b32c46
mov esi, dword [ebp + 0x18]
movzx ecx, byte [ebx + esi]
lea eax, [edx*8]
xor ecx, eax
xor edx, ecx
sub ebx, 1
jns 0x5b32c30
xor esi, esi
mov ebx, dword [esp + 0x10]
lea eax, [edx*8]
xor eax, dword [esp + 0x20]
xor eax, edx
xor edx, edx
div dword [ebx + 0xc]
mov dword [esp + 0x14], edx
jmp 0x5b32c66
mov ebx, dword [esp + 0x10]
call fcn.05b7ef20
test eax, eax
jne 0x5b32ecb
mov eax, edi
or eax, esi
je 0x5b32c87
push esi
push edi
call fcn.05c20d50
add esp, 8
mov esi, eax
jmp 0x5b32c89
xor esi, esi
test esi, esi
je 0x5b32ecb
mov al, byte [ebp + 0x14]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
movq qword [esi + 0x20], xmm0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x1c]
push edi
push dword [ebp + 0x18]
mov byte [esi + 0x28], al
lea eax, [esi + 0x29]
push eax
call fcn.05b15590
mov dword [esi + 0x14], edi
lea eax, [edi + 0x2a]
mov byte [esi + edi + 0x29], 0
add esp, 0xc
mov edi, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + edi*4]
mov dword [esi], eax
mov eax, dword [ebx + 0x14]
mov dword [eax + edi*4], esi
inc dword [ebx + 8]
mov edx, dword [esi + 0x10]
mov edi, dword [ebp + 0xc]
add edx, esi
mov eax, dword [ebp + 8]
test edi, edi
ja 0x5b32d2c
jb 0x5b32cf5
cmp eax, 0x7f
ja 0x5b32d00
and al, 0x7f
mov byte [edx], al
mov eax, 1
jmp 0x5b32d38
test edi, edi
ja 0x5b32d2c
jb 0x5b32d0d
cmp eax, 0x3fff
ja 0x5b32d2c
mov ecx, eax
mov eax, edi
shrd ecx, eax, 7
shr eax, 7
or cl, 0x80
mov eax, dword [ebp + 8]
and al, 0x7f
mov byte [edx], cl
mov byte [edx + 1], al
mov eax, 2
jmp 0x5b32d38
push edi
push eax
mov ecx, edx
call fcn.05b1e120
add esp, 8
add dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
mov edx, dword [ebp + 8]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edi
mov dword [esi + 0xc], eax
cmp dword [ebx], 1
je 0x5b32d5d
inc eax
mov dword [esi + 0x10], eax
mov eax, dword [ebx]
neg eax
sbb eax, eax
mov word [esi + 0x1a], ax
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
cmp edx, ecx
jne 0x5b32d6f
cmp edi, eax
je 0x5b32e0e
mov ebx, edx
mov edx, esi
sub ebx, ecx
mov ecx, dword [esp + 0x10]
push 0
sbb edi, eax
call fcn.05b32ee0
mov ecx, dword [esi + 0x10]
add esp, 4
add ecx, esi
test edi, edi
ja 0x5b32dc9
jb 0x5b32d95
cmp ebx, 0x7f
ja 0x5b32da1
and bl, 0x7f
mov eax, 1
mov byte [ecx], bl
jmp 0x5b32dd3
test edi, edi
ja 0x5b32dc9
jb 0x5b32daf
cmp ebx, 0x3fff
ja 0x5b32dc9
mov eax, ebx
shrd eax, edi, 7
or al, 0x80
shr edi, 7
and bl, 0x7f
mov byte [ecx], al
mov byte [ecx + 1], bl
mov eax, 2
jmp 0x5b32dd3
push edi
push ebx
call fcn.05b1e120
add esp, 8
mov ecx, dword [ebp + 8]
mov ebx, dword [esp + 0x10]
add dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x24], ecx
mov dword [esi + 0xc], eax
cmp dword [ebx], 1
mov dword [esp + 0x18], 1
je 0x5b32e0e
inc eax
mov dword [esi + 0x10], eax
mov eax, dword [ebx]
neg eax
mov dword [esi + 0x1c], 0
sbb eax, eax
mov word [esi + 0x1a], ax
mov edi, dword [esp + 0x24]
test edi, edi
js 0x5b32eb2
mov ecx, dword [ebx]
cmp ecx, 1
jne 0x5b32e39
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x1c]
mov byte [esi + 0x19], cl
mov ecx, dword [ebx + 4]
add dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, word [esi + 0x1a]
cmp edi, eax
je 0x5b32e6f
test ecx, ecx
jne 0x5b32eac
mov eax, dword [esi + 0x10]
mov byte [esi + eax], 1
mov eax, edi
inc dword [esi + 0x10]
mov ecx, dword [esi + 0x10]
cdq
add ecx, esi
push edx
push eax
call fcn.05b1e0b0
add esp, 8
mov word [esi + 0x1a], di
add dword [esi + 0x10], eax
mov dword [esi + 0x1c], 0
cmp dword [esp + 0x18], 0
je 0x5b32eb6
mov edi, dword [ebp + 0x10]
mov ecx, dword [esi + 0x10]
mov eax, edi
sub eax, dword [esi + 0x1c]
add ecx, esi
add eax, 2
cdq
push edx
push eax
call fcn.05b1e0b0
add dword [esi + 0x10], eax
add esp, 8
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x1c]
mov dword [esi + 0x1c], edi
mov ecx, dword [ebx + 4]
add dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov word [esi + 0x1a], di
jmp 0x5b32e79
mov byte [esi + 0x18], 1
mov ecx, dword [ebx + 4]
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x1c]
add dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret