Function at 0x5889cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [esp + 0x30], eax
mov edi, edx
mov dword [esp + 0x20], ecx
mov eax, dword [edx + 0x28]
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x60]
shl ebx, 2
mov dword [esp + 0x24], ebx
mov eax, dword [ecx + 0x18]
mov ebx, dword [eax + ebx]
test ebx, ebx
je 0x588a04
mov eax, ebx
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [edx + 0x10]
test ebp, ebp
jle 0x588a21
mov edx, dword [edx + 0x1c]
mov dword [esp + 0x1c], edx
xor eax, eax
mov dword [edx + eax*4], 0
inc eax
cmp dword [edi + 0x10], eax
jg 0x588a14
mov esi, dword [edi + 8]
test esi, esi
jle 0x5889f9
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
mov dword [esp + 0x1c], ecx
xor esi, esi
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 0
xor eax, eax
mov dword [esp + 0x2c], ebx
nop
mov edx, eax
shr edx, 5
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx + edx*4]
mov cl, al
shr edx, cl
and edx, 1
je 0x588ae0
mov ebx, dword [esp + 0x18]
mov ebp, dword [ebx + 0x1c]
mov ecx, dword [ebp + eax*4]
lea edx, [ecx + 8]
movsx ecx, word [ecx + 8]
cmp cx, 0xffff
je 0x588ae0
mov dword [esp + 0x3c], eax
jmp 0x588a8c
add edx, 8
movsx ecx, word [edx]
cmp cx, 0xffff
je 0x588adc
cmp ecx, dword [esp + 0x60]
jne 0x588a80
mov esi, dword [edx + 4]
shr esi, 5
mov ebx, dword [edi + 0x1c]
mov eax, 1
mov cl, byte [edx + 4]
shl eax, cl
or dword [ebx + esi*4], eax
mov ecx, dword [edx + 4]
mov ebx, dword [esp + 0x18]
cmp ecx, dword [ebx + 0x10]
je 0x588be0
mov ecx, dword [ebp + ecx*4]
mov esi, 1
cmp word [ecx], 0
jne 0x588a80
mov dword [esp + 0x28], 0
add edx, 8
movsx ecx, word [edx]
cmp cx, 0xffff
jne 0x588a8c
nop
mov eax, dword [esp + 0x3c]
inc eax
mov edx, dword [edi + 8]
cmp edx, eax
jg 0x588a4c
mov ebx, dword [esp + 0x2c]
test esi, esi
je 0x5889f9
mov esi, dword [esp + 0x18]
test byte [esi + 8], 1
mov dword [esp + 0x3c], 0
je 0x588da6
mov ebx, dword [edi + 0x1c]
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x18]
test edx, edx
jg 0x588bf0
mov edx, dword [edi + 0x10]
cmp edx, 1
je 0x588d7c
test edx, edx
jle 0x588d94
mov eax, dword [esp + 0x1c]
lea ecx, [eax + edx*4]
xor esi, esi
nop
xor esi, dword [eax]
add eax, 4
cmp eax, ecx
jne 0x588b40
mov ebx, dword [edi + 0x14]
mov ebp, dword [edi + 4]
cmp ebp, 0
jle 0x588d9b
lea ecx, [edx*4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], edi
mov edi, ebp
mov ebp, ecx
jmp 0x588b7a
add ebx, 0x20
dec edi
je 0x588d1c
cmp esi, dword [ebx + 4]
jne 0x588b70
cmp dword [esp + 0x18], 1
je 0x588ba0
mov dword [esp + 8], ebp
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x1c]
mov dword [esp], edx
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x588b70
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x5889f9
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x18]
mov esi, dword [esp + 0x24]
mov dword [eax + esi], ebx
mov ecx, dword [ecx + 0x1c]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
mov esi, dword [esp + 0x60]
mov dword [ecx + esi*8], eax
mov dword [ecx + esi*8 + 4], edx
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0xc], ecx
mov word [ebx + 0x10], si
jmp 0x5889f9
mov dword [esp + 0x34], 1
jmp 0x588ab8
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
shr eax, 5
mov eax, dword [edi + eax*4]
mov cl, byte [esp + 0x18]
shr eax, cl
test al, 1
je 0x588cdf
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + ecx*4]
lea ebx, [eax + 8]
movsx eax, word [eax + 8]
cmp ax, 0xffff
je 0x588cdf
mov ebp, dword [esp + 0x3c]
jmp 0x588c55
mov ebp, 1
add ebx, 8
movsx eax, word [ebx]
cmp ax, 0xffff
je 0x588cd4
mov edx, dword [esi + 4]
cmp eax, edx
jle 0x588c49
mov ecx, dword [ebx + 4]
mov ebp, ecx
shr ebp, 5
mov ebp, dword [edi + ebp*4]
shr ebp, cl
and ebp, 1
jne 0x588c44
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x30]
call fcn.005888f8
test eax, eax
je 0x588d08
mov ecx, dword [ebx + 4]
mov edx, ecx
shr edx, 5
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 0x1c]
mov eax, 1
shl eax, cl
or dword [edi + edx*4], eax
mov eax, dword [ebx + 4]
cmp eax, dword [esi + 0x10]
je 0x588d87
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + eax*4]
mov ebp, 1
cmp word [eax], 0
mov dword [esp + 0x38], 1
jne 0x588c49
mov dword [esp + 0x28], 0
jmp 0x588c49
mov dword [esp + 0x3c], ebp
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 8]
inc dword [esp + 0x18]
cmp edx, dword [esp + 0x18]
jg 0x588c08
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x588b19
jmp 0x588b21
mov ebp, 1
mov edx, dword [esp + 0x2c]
mov edi, dword [edx + 0x1c]
jmp 0x588c49
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov edx, edi
mov eax, dword [esp + 0x30]
call fcn.00588298
mov ebx, eax
mov ecx, dword [edi + 0x10]
test ecx, ecx
jle 0x588d54
mov ecx, dword [eax]
mov edx, dword [edi + 0x1c]
xor eax, eax
nop
mov ebp, dword [edx + eax*4]
mov dword [ecx + eax*4], ebp
inc eax
cmp dword [edi + 0x10], eax
jg 0x588d48
mov dword [ebx + 4], esi
mov eax, dword [esp + 0x34]
neg eax
and eax, 2
mov dword [ebx + 8], eax
mov edx, dword [esp + 0x28]
test edx, edx
je 0x588ba0
or eax, 8
mov dword [ebx + 8], eax
jmp 0x588ba0
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx]
jmp 0x588b49
mov dword [esp + 0x34], 1
jmp 0x588cab
xor esi, esi
jmp 0x588b49
jne 0x588ba0
jmp 0x588d20
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x1c], edx
jmp 0x588b21